xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.ext.IntersectShader.rint (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 460
2#extension GL_EXT_ray_tracing : enable
3#extension GL_EXT_ray_cull_mask : enable
4hitAttributeEXT vec4 iAttr;
5void 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}
26