1#version 460 2#extension GL_NV_ray_tracing : enable 3layout(binding = 0, set = 0) uniform accelerationStructureNV accNV0; 4layout(binding = 1, set = 0) uniform accelerationStructureNV accNV1; // Unused 5layout(location = 0) rayPayloadNV vec4 payload; 6layout(shaderRecordNV) buffer block 7{ 8 vec3 dir; 9 vec3 origin; 10 11}; 12void main() 13{ 14 uint lx = gl_LaunchIDNV.x; 15 uint ly = gl_LaunchIDNV.y; 16 uint sx = gl_LaunchSizeNV.x; 17 uint sy = gl_LaunchSizeNV.y; 18 traceNV(accNV0, lx, ly, sx, sy, 0u, origin, 0.5f, dir, 0.75f, 1); 19} 20