summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2023-05-01 14:03:32 +0200
committerRay <[email protected]>2023-05-01 14:03:32 +0200
commita4a5a798bdb546646b607b3348a8f2d43b161a09 (patch)
tree2b47fd047c03e2fc0dfa6bf7f976b9e2d7db92c6 /examples
parented2caa12775da95d3e19ce42dccdca4a0ba8f8a0 (diff)
downloadraylib-a4a5a798bdb546646b607b3348a8f2d43b161a09.tar.gz
raylib-a4a5a798bdb546646b607b3348a8f2d43b161a09.zip
Update rlgl_compute_shader.c
Diffstat (limited to 'examples')
-rw-r--r--examples/others/rlgl_compute_shader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/others/rlgl_compute_shader.c b/examples/others/rlgl_compute_shader.c
index e19a6c2f..544e0a53 100644
--- a/examples/others/rlgl_compute_shader.c
+++ b/examples/others/rlgl_compute_shader.c
@@ -74,10 +74,10 @@ int main(void)
unsigned int ssboA = rlLoadShaderBuffer(GOL_WIDTH*GOL_WIDTH*sizeof(unsigned int), NULL, RL_DYNAMIC_COPY);
unsigned int ssboB = rlLoadShaderBuffer(GOL_WIDTH*GOL_WIDTH*sizeof(unsigned int), NULL, RL_DYNAMIC_COPY);
unsigned int ssboTransfert = rlLoadShaderBuffer(sizeof(GolUpdateSSBO), NULL, RL_DYNAMIC_COPY);
-
+
GolUpdateSSBO transfertBuffer = { 0 };
- // Create a white texture of the size of the window to update
+ // Create a white texture of the size of the window to update
// each pixel of the window using the fragment shader: golRenderShader
Image whiteImage = GenImageColor(GOL_WIDTH, GOL_WIDTH, WHITE);
Texture whiteTex = LoadTextureFromImage(whiteImage);
@@ -105,7 +105,7 @@ int main(void)
{
// Send SSBO buffer to GPU
rlUpdateShaderBuffer(ssboTransfert, &transfertBuffer, sizeof(GolUpdateSSBO), 0);
-
+
// Process SSBO commands on GPU
rlEnableShader(golTransfertProgram);
rlBindShaderBuffer(ssboA, 1);
@@ -143,7 +143,7 @@ int main(void)
BeginShaderMode(golRenderShader);
DrawTexture(whiteTex, 0, 0, WHITE);
EndShaderMode();
-
+
DrawRectangleLines(GetMouseX() - brushSize/2, GetMouseY() - brushSize/2, brushSize, brushSize, RED);
DrawText("Use Mouse wheel to increase/decrease brush size", 10, 10, 20, WHITE);