Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / spv.ext.IntersectShader.rint
1 #version 460
2 #extension GL_EXT_ray_tracing : enable
3 #extension GL_EXT_ray_cull_mask : enable
4 hitAttributeEXT vec4 iAttr;
5 void main()
6 {
7         uvec3 v0 = gl_LaunchIDEXT;
8         uvec3 v1 = gl_LaunchSizeEXT;
9         int v2 = gl_PrimitiveID;
10         int v3 = gl_InstanceID;
11         int v4 = gl_InstanceCustomIndexEXT;
12         vec3 v5 = gl_WorldRayOriginEXT;
13         vec3 v6 = gl_WorldRayDirectionEXT;
14         vec3 v7 = gl_ObjectRayOriginEXT;
15         vec3 v8 = gl_ObjectRayDirectionEXT;
16         float v9 = gl_RayTminEXT;
17         float v10 = gl_RayTmaxEXT;
18         mat4x3 v11 = gl_ObjectToWorldEXT;
19         mat4x3 v12 = gl_WorldToObjectEXT;
20     mat3x4 v13 = gl_ObjectToWorld3x4EXT;
21     mat3x4 v14 = gl_WorldToObject3x4EXT;
22         uint v15 = gl_CullMaskEXT;
23         iAttr = vec4(0.5f,0.5f,0.0f,1.0f);
24         reportIntersectionEXT(0.5, 1U);
25 }