blob: d010a87d244cc0a24355ee71fc806056edb168c4 [file] [log] [blame]
Jeff Bolz61a0cd12018-12-14 20:59:53 -06001#version 460
2#extension GL_NV_ray_tracing : enable
3layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
4layout(location = 0) rayPayloadNV vec4 payload;
5layout(shaderRecordNV) buffer block
6{
Ashwin Leleafa56712019-03-04 11:05:55 -08007 vec3 dir;
8 vec3 origin;
Jeff Bolz61a0cd12018-12-14 20:59:53 -06009};
10void main()
11{
12 uint lx = gl_LaunchIDNV.x;
13 uint ly = gl_LaunchIDNV.y;
14 uint sx = gl_LaunchSizeNV.x;
15 uint sy = gl_LaunchSizeNV.y;
Ashwin Leleafa56712019-03-04 11:05:55 -080016 traceNV(accNV, lx, ly, sx, sy, 0u, origin, 0.5f, dir, 0.75f, 1);
Jeff Bolz61a0cd12018-12-14 20:59:53 -060017}