Add support for GLSL_EXT_ray_tracing
and SPV_KHR_ray_tracing
This commit is contained in:
@@ -7,7 +7,7 @@ spv.AnyHitShader.rahit
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint AnyHitNV 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
EntryPoint AnyHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
@@ -42,21 +42,21 @@ spv.AnyHitShader.rahit
|
||||
Name 66 "v14"
|
||||
Name 67 "gl_WorldToObjectNV"
|
||||
Name 71 "incomingPayload"
|
||||
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 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
||||
Decorate 23(gl_InstanceID) BuiltIn InstanceId
|
||||
Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexNV
|
||||
Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginNV
|
||||
Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionNV
|
||||
Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginNV
|
||||
Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionNV
|
||||
Decorate 47(gl_RayTminNV) BuiltIn RayTminNV
|
||||
Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxNV
|
||||
Decorate 53(gl_HitTNV) BuiltIn HitTNV
|
||||
Decorate 58(gl_HitKindNV) BuiltIn HitKindNV
|
||||
Decorate 64(gl_ObjectToWorldNV) BuiltIn ObjectToWorldNV
|
||||
Decorate 67(gl_WorldToObjectNV) BuiltIn WorldToObjectNV
|
||||
Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexKHR
|
||||
Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginKHR
|
||||
Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionKHR
|
||||
Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginKHR
|
||||
Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionKHR
|
||||
Decorate 47(gl_RayTminNV) BuiltIn RayTminKHR
|
||||
Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxKHR
|
||||
Decorate 53(gl_HitTNV) BuiltIn HitTKHR
|
||||
Decorate 58(gl_HitKindNV) BuiltIn HitKindKHR
|
||||
Decorate 64(gl_ObjectToWorldNV) BuiltIn ObjectToWorldKHR
|
||||
Decorate 67(gl_WorldToObjectNV) BuiltIn WorldToObjectKHR
|
||||
Decorate 71(incomingPayload) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
@@ -94,8 +94,8 @@ spv.AnyHitShader.rahit
|
||||
64(gl_ObjectToWorldNV): 63(ptr) Variable Input
|
||||
67(gl_WorldToObjectNV): 63(ptr) Variable Input
|
||||
69: TypeVector 28(float) 4
|
||||
70: TypePointer IncomingRayPayloadNV 69(fvec4)
|
||||
71(incomingPayload): 70(ptr) Variable IncomingRayPayloadNV
|
||||
70: TypePointer IncomingRayPayloadKHR 69(fvec4)
|
||||
71(incomingPayload): 70(ptr) Variable IncomingRayPayloadKHR
|
||||
72: 28(float) Constant 1056964608
|
||||
73: 69(fvec4) ConstantComposite 72 72 72 72
|
||||
75: 16(int) Constant 1
|
||||
@@ -153,10 +153,10 @@ spv.AnyHitShader.rahit
|
||||
SelectionMerge 79 None
|
||||
BranchConditional 77 78 80
|
||||
78: Label
|
||||
IgnoreIntersectionNV
|
||||
IgnoreIntersectionKHR
|
||||
Branch 79
|
||||
80: Label
|
||||
TerminateRayNV
|
||||
TerminateRayKHR
|
||||
Branch 79
|
||||
79: Label
|
||||
Return
|
||||
|
||||
Reference in New Issue
Block a user