2 #extension GL_EXT_ray_tracing : enable
3 #extension GL_NV_shader_sm_builtins : enable
4 #extension GL_KHR_shader_subgroup_ballot : enable
5 #extension GL_ARB_shader_ballot : enable
6 #extension GL_NV_shader_sm_builtins : enable
7 #extension GL_ARB_sparse_texture_clamp: enable
9 layout(binding = 0, set = 0) uniform accelerationStructureEXT accEXT;
10 layout(location = 0) rayPayloadEXT vec4 localPayload;
11 layout(location = 1) rayPayloadInEXT vec4 incomingPayload;
13 layout(binding = 1, set = 0) uniform sampler2D s2D;
14 layout(location = 2) in vec2 c2;
15 layout(location = 3) in float lodClamp;
19 uvec3 v0 = gl_LaunchIDEXT;
20 uvec3 v1 = gl_LaunchSizeEXT;
21 vec3 v2 = gl_WorldRayOriginEXT;
22 vec3 v3 = gl_WorldRayDirectionEXT;
23 float v4 = gl_RayTminEXT;
24 float v5 = gl_RayTmaxEXT;
25 traceRayEXT(accEXT, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
26 incomingPayload.x = float(gl_SubGroupSizeARB) + float(gl_SubgroupEqMask) + float(gl_WarpIDNV);
27 vec4 texel = textureGradOffsetClampARB(s2D, c2, c2, c2, ivec2(5), lodClamp);