Add support for GLSL_EXT_ray_tracing
and SPV_KHR_ray_tracing
This commit is contained in:
@@ -7,7 +7,7 @@ spv.RayCallable.rcall
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint CallableNV 4 "main" 11 14
|
||||
EntryPoint CallableKHR 4 "main" 11 14
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
@@ -19,8 +19,8 @@ spv.RayCallable.rcall
|
||||
MemberName 16(dataBlock) 0 "data1"
|
||||
Name 18 ""
|
||||
Name 29 "data0"
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
|
||||
Decorate 16(dataBlock) Block
|
||||
Decorate 18 Location 1
|
||||
Decorate 29(data0) Location 0
|
||||
@@ -33,18 +33,18 @@ spv.RayCallable.rcall
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16(dataBlock): TypeStruct 6(int)
|
||||
17: TypePointer IncomingCallableDataNV 16(dataBlock)
|
||||
18: 17(ptr) Variable IncomingCallableDataNV
|
||||
17: TypePointer IncomingCallableDataKHR 16(dataBlock)
|
||||
18: 17(ptr) Variable IncomingCallableDataKHR
|
||||
19: TypeInt 32 1
|
||||
20: 19(int) Constant 0
|
||||
21: 6(int) Constant 256
|
||||
22: TypePointer IncomingCallableDataNV 6(int)
|
||||
22: TypePointer IncomingCallableDataKHR 6(int)
|
||||
24: 6(int) Constant 2
|
||||
25: 19(int) Constant 1
|
||||
26: TypeFloat 32
|
||||
27: TypeVector 26(float) 4
|
||||
28: TypePointer CallableDataNV 27(fvec4)
|
||||
29(data0): 28(ptr) Variable CallableDataNV
|
||||
28: TypePointer CallableDataKHR 27(fvec4)
|
||||
29(data0): 28(ptr) Variable CallableDataKHR
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(id): 8(ptr) Variable Function
|
||||
@@ -55,6 +55,6 @@ spv.RayCallable.rcall
|
||||
Store 13(size) 15
|
||||
23: 22(ptr) AccessChain 18 20
|
||||
Store 23 21
|
||||
ExecuteCallableNV 24 25
|
||||
ExecuteCallableKHR 24 25
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user