File: spv.nv.cluster-allops.rgen

package info (click to toggle)
glslang 16.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,084 kB
  • sloc: cpp: 90,714; yacc: 4,243; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 460
#extension GL_EXT_ray_tracing : enable
#extension GL_EXT_ray_query : enable
#extension GL_NV_cluster_acceleration_structure : enable
#extension GL_NV_shader_invocation_reorder : enable
layout(binding = 1) uniform accelerationStructureEXT as;
void main()
{
	hitObjectNV hitObj;
	int hitObjId = hitObjectGetClusterIdNV(hitObj);
	rayQueryEXT rq;
	int id_candidate = rayQueryGetIntersectionClusterIdNV(rq, false);
	int id_committed = rayQueryGetIntersectionClusterIdNV(rq, true);
	bool test  = (id_candidate == gl_ClusterIDNoneNV) && (id_committed == gl_ClusterIDNoneNV);
}