blob: 06113debc68b80c6b0e62ef0bed812c385ac829b [file] [log] [blame]
Chao Chenb50c02e2018-09-19 11:42:24 -07001#version 460
Ashwin Leleff1783d2018-10-22 16:41:44 -07002#extension GL_NV_ray_tracing : enable
3layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
4layout(location = 0) rayPayloadNV vec4 localPayload;
5layout(location = 1) rayPayloadInNV vec4 incomingPayload;
Chao Chenb50c02e2018-09-19 11:42:24 -07006void main()
7{
Ashwin Leleff1783d2018-10-22 16:41:44 -07008 uvec3 v0 = gl_LaunchIDNV;
9 uvec3 v1 = gl_LaunchSizeNV;
10 vec3 v2 = gl_WorldRayOriginNV;
11 vec3 v3 = gl_WorldRayDirectionNV;
12 vec3 v4 = gl_ObjectRayOriginNV;
13 vec3 v5 = gl_ObjectRayDirectionNV;
14 float v6 = gl_RayTminNV;
15 float v7 = gl_RayTmaxNV;
16 traceNV(accNV, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
Chao Chenb50c02e2018-09-19 11:42:24 -070017}