diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.cpp b/internal/graphicsdriver/playstation5/graphics_playstation5.cpp index ab3524cf4..76cafc618 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.cpp +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.cpp @@ -36,14 +36,16 @@ extern "C" void ebitengine_Begin() {} extern "C" void ebitengine_End(int present) {} -extern "C" void ebitengine_SetVertices(float *vertices, int vertexCount, - uint32_t *indices, int indexCount) {} +extern "C" void ebitengine_SetVertices(const float *vertices, int vertexCount, + const uint32_t *indices, + int indexCount) {} extern "C" ebitengine_Error -ebitengine_DrawTriangles(int dst, int *srcs, int srcCount, int shader, - ebitengine_DstRegion *dstRegions, int dstRegionCount, - int indexOffset, ebitengine_Blend blend, - uint32_t *uniforms, int uniformCount, int fillRule) { +ebitengine_DrawTriangles(int dst, const int *srcs, int srcCount, int shader, + const ebitengine_DstRegion *dstRegions, + int dstRegionCount, int indexOffset, + ebitengine_Blend blend, const uint32_t *uniforms, + int uniformCount, int fillRule) { return {}; } diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.h b/internal/graphicsdriver/playstation5/graphics_playstation5.h index 12dcbc5b4..c2d1cbf5e 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.h +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.h @@ -59,14 +59,15 @@ void ebitengine_DisposeImage(int id); void ebitengine_Begin(); void ebitengine_End(int present); -void ebitengine_SetVertices(float *vertices, int vertexCount, uint32_t *indices, - int indexCount); +void ebitengine_SetVertices(const float *vertices, int vertexCount, + const uint32_t *indices, int indexCount); ebitengine_Error -ebitengine_DrawTriangles(int dst, int *srcs, int srcCount, int shader, - ebitengine_DstRegion *dstRegions, int dstRegionCount, - int indexOffset, ebitengine_Blend blend, - uint32_t *uniforms, int uniformCount, int fillRule); +ebitengine_DrawTriangles(int dst, const int *srcs, int srcCount, int shader, + const ebitengine_DstRegion *dstRegions, + int dstRegionCount, int indexOffset, + ebitengine_Blend blend, const uint32_t *uniforms, + int uniformCount, int fillRule); ebitengine_Error ebitengine_NewShader(int *shader, const char *source); void ebitengine_DisposeShader(int id);