2 #extension GL_EXT_ray_tracing : enable
3 #extension GL_ARB_gpu_shader_int64 : enable
4 #extension GL_EXT_scalar_block_layout : enable
5 layout(location = 1) rayPayloadEXT vec4 payload;
6 layout(shaderRecordEXT, scalar) buffer block
22 uint lx = gl_LaunchIDEXT.x;
23 uint ly = gl_LaunchIDEXT.y;
24 uint sx = gl_LaunchSizeEXT.x;
25 uint sy = gl_LaunchSizeEXT.y;
26 traceRayEXT(accelerationStructureEXT(aHandle32), lx, ly, sx, sy, 0u, origin, 0.5f, dir, 0.75f, 1);
27 traceRayEXT(accelerationStructureEXT(aHandle64), lx, ly, sx, sy, 0u, origin, 0.5f, dir, 0.75f, 1);