Skip to content

Commit

Permalink
Enable GL_ARB_shader_image_load_store for 'writeonly' keyword
Browse files Browse the repository at this point in the history
This extension is necessary and its existence is queried anyway
for the code/render path where these shaders are being used, so enabling
these extensions should work.
  • Loading branch information
httpdigest committed Sep 20, 2022
1 parent 8d47965 commit 19f6c5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions res/org/lwjgl/demo/game/voxelgame/boundingboxes.fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#version 330 core
#extension GL_ARB_shader_storage_buffer_object : enable
#extension GL_ARB_shader_image_load_store : enable

layout(early_fragment_tests) in;

Expand Down
1 change: 1 addition & 0 deletions res/org/lwjgl/demo/game/voxelgame/boundingboxes.vs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#version 330 core
#extension GL_ARB_shader_storage_buffer_object : enable
#extension GL_ARB_shader_image_load_store : enable

layout(std430, binding = 0) writeonly restrict buffer VisibleChunksBuffer {
uint visibles[];
Expand Down
1 change: 1 addition & 0 deletions res/org/lwjgl/demo/game/voxelgame/collectdrawcalls.vs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#version 330 core
#extension GL_ARB_shader_storage_buffer_object : enable
#extension GL_ARB_shader_atomic_counters : enable
#extension GL_ARB_shader_image_load_store : enable
#pragma {{DEFINES}}

/**
Expand Down

0 comments on commit 19f6c5f

Please sign in to comment.