-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GL_NV_cluster_acceleration_structure.
- Loading branch information
1 parent
1b65bd6
commit 39766a0
Showing
23 changed files
with
502 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
spv.nv.cluster-allops.frag | ||
// Module Version 10400 | ||
// Generated by (magic number): 8000b | ||
// Id's are bound by 31 | ||
|
||
Capability Shader | ||
Capability RayQueryKHR | ||
Capability RayTracingClusterAccelerationStructureNV | ||
Extension "SPV_KHR_ray_query" | ||
Extension "SPV_NV_cluster_acceleration_structure" | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint Fragment 4 "main" 11 30 | ||
ExecutionMode 4 OriginUpperLeft | ||
Source GLSL 460 | ||
SourceExtension "GL_EXT_ray_query" | ||
SourceExtension "GL_NV_cluster_acceleration_structure" | ||
Name 4 "main" | ||
Name 8 "id_candidate" | ||
Name 11 "rq" | ||
Name 16 "id_committed" | ||
Name 21 "test" | ||
Name 30 "as" | ||
Decorate 30(as) Binding 1 | ||
Decorate 30(as) DescriptorSet 0 | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeInt 32 1 | ||
7: TypePointer Function 6(int) | ||
9: TypeRayQueryKHR | ||
10: TypePointer Private 9 | ||
11(rq): 10(ptr) Variable Private | ||
12: TypeBool | ||
13: 12(bool) ConstantFalse | ||
14: 6(int) Constant 0 | ||
17: 12(bool) ConstantTrue | ||
18: 6(int) Constant 1 | ||
20: TypePointer Function 12(bool) | ||
23: 6(int) Constant 4294967295 | ||
28: TypeAccelerationStructureKHR | ||
29: TypePointer UniformConstant 28 | ||
30(as): 29(ptr) Variable UniformConstant | ||
4(main): 2 Function None 3 | ||
5: Label | ||
8(id_candidate): 7(ptr) Variable Function | ||
16(id_committed): 7(ptr) Variable Function | ||
21(test): 20(ptr) Variable Function | ||
15: 6(int) RayQueryGetIntersectionClusterIdNV 11(rq) 14 | ||
Store 8(id_candidate) 15 | ||
19: 6(int) RayQueryGetIntersectionClusterIdNV 11(rq) 18 | ||
Store 16(id_committed) 19 | ||
22: 6(int) Load 8(id_candidate) | ||
24: 12(bool) IEqual 22 23 | ||
25: 6(int) Load 16(id_committed) | ||
26: 12(bool) IEqual 25 23 | ||
27: 12(bool) LogicalAnd 24 26 | ||
Store 21(test) 27 | ||
Return | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
spv.nv.cluster-allops.rahit | ||
// Module Version 10400 | ||
// Generated by (magic number): 8000b | ||
// Id's are bound by 35 | ||
|
||
Capability RayQueryKHR | ||
Capability RayTracingKHR | ||
Capability RayTracingClusterAccelerationStructureNV | ||
Extension "SPV_KHR_ray_query" | ||
Extension "SPV_KHR_ray_tracing" | ||
Extension "SPV_NV_cluster_acceleration_structure" | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint AnyHitKHR 4 "main" 10 15 34 | ||
Source GLSL 460 | ||
SourceExtension "GL_EXT_ray_query" | ||
SourceExtension "GL_EXT_ray_tracing" | ||
SourceExtension "GL_NV_cluster_acceleration_structure" | ||
Name 4 "main" | ||
Name 8 "clusterid" | ||
Name 10 "gl_ClusterIDNV" | ||
Name 12 "id_candidate" | ||
Name 15 "rq" | ||
Name 20 "id_committed" | ||
Name 25 "test" | ||
Name 34 "as" | ||
Decorate 10(gl_ClusterIDNV) BuiltIn ClusterIDNV | ||
Decorate 34(as) Binding 1 | ||
Decorate 34(as) DescriptorSet 0 | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeInt 32 1 | ||
7: TypePointer Function 6(int) | ||
9: TypePointer Input 6(int) | ||
10(gl_ClusterIDNV): 9(ptr) Variable Input | ||
13: TypeRayQueryKHR | ||
14: TypePointer Private 13 | ||
15(rq): 14(ptr) Variable Private | ||
16: TypeBool | ||
17: 16(bool) ConstantFalse | ||
18: 6(int) Constant 0 | ||
21: 16(bool) ConstantTrue | ||
22: 6(int) Constant 1 | ||
24: TypePointer Function 16(bool) | ||
27: 6(int) Constant 4294967295 | ||
32: TypeAccelerationStructureKHR | ||
33: TypePointer UniformConstant 32 | ||
34(as): 33(ptr) Variable UniformConstant | ||
4(main): 2 Function None 3 | ||
5: Label | ||
8(clusterid): 7(ptr) Variable Function | ||
12(id_candidate): 7(ptr) Variable Function | ||
20(id_committed): 7(ptr) Variable Function | ||
25(test): 24(ptr) Variable Function | ||
11: 6(int) Load 10(gl_ClusterIDNV) | ||
Store 8(clusterid) 11 | ||
19: 6(int) RayQueryGetIntersectionClusterIdNV 15(rq) 18 | ||
Store 12(id_candidate) 19 | ||
23: 6(int) RayQueryGetIntersectionClusterIdNV 15(rq) 22 | ||
Store 20(id_committed) 23 | ||
26: 6(int) Load 12(id_candidate) | ||
28: 16(bool) IEqual 26 27 | ||
29: 6(int) Load 20(id_committed) | ||
30: 16(bool) IEqual 29 27 | ||
31: 16(bool) LogicalAnd 28 30 | ||
Store 25(test) 31 | ||
Return | ||
FunctionEnd |
Oops, something went wrong.