File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
31_HLSLPathTracer/app_resources/glsl Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ layout(set = 2, binding = 2) uniform usampler2D scramblebuf;
1616layout (set= 0 , binding= 0 , rgba16f) uniform image2D outImage;
1717
1818#ifndef _NBL_GLSL_WORKGROUP_SIZE_
19- #define _NBL_GLSL_WORKGROUP_SIZE_ 32
20- layout (local_size_x= _NBL_GLSL_WORKGROUP_SIZE_, local_size_y= _NBL_GLSL_WORKGROUP_SIZE_ , local_size_z= 1 ) in ;
19+ #define _NBL_GLSL_WORKGROUP_SIZE_ 256
20+ layout (local_size_x= _NBL_GLSL_WORKGROUP_SIZE_, local_size_y= 1 , local_size_z= 1 ) in ;
2121#endif
2222
2323ivec2 getCoordinates() {
24- return ivec2 (gl_GlobalInvocationID.xy);
24+ ivec2 imageSize = imageSize(outImage);
25+ return ivec2 (gl_GlobalInvocationID.x % imageSize.x, gl_GlobalInvocationID.x / imageSize.x);
2526}
2627
2728vec2 getTexCoords() {
You can’t perform that action at this time.
0 commit comments