Multiple features and misc fixes for final raytracing non experimental version.
This commit is contained in:
@@ -3,99 +3,99 @@ spv.AnyHitShader.rahit
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 81
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint AnyHitNVX 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
EntryPoint AnyHitNV 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 9 "v0"
|
||||
Name 11 "gl_LaunchIDNVX"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 13 "v1"
|
||||
Name 14 "gl_LaunchSizeNVX"
|
||||
Name 14 "gl_LaunchSizeNV"
|
||||
Name 18 "v2"
|
||||
Name 20 "gl_PrimitiveID"
|
||||
Name 22 "v3"
|
||||
Name 23 "gl_InstanceID"
|
||||
Name 25 "v4"
|
||||
Name 26 "gl_InstanceCustomIndexNVX"
|
||||
Name 26 "gl_InstanceCustomIndexNV"
|
||||
Name 31 "v5"
|
||||
Name 33 "gl_WorldRayOriginNVX"
|
||||
Name 33 "gl_WorldRayOriginNV"
|
||||
Name 35 "v6"
|
||||
Name 36 "gl_WorldRayDirectionNVX"
|
||||
Name 36 "gl_WorldRayDirectionNV"
|
||||
Name 38 "v7"
|
||||
Name 39 "gl_ObjectRayOriginNVX"
|
||||
Name 39 "gl_ObjectRayOriginNV"
|
||||
Name 41 "v8"
|
||||
Name 42 "gl_ObjectRayDirectionNVX"
|
||||
Name 42 "gl_ObjectRayDirectionNV"
|
||||
Name 45 "v9"
|
||||
Name 47 "gl_RayTminNVX"
|
||||
Name 47 "gl_RayTminNV"
|
||||
Name 49 "v10"
|
||||
Name 50 "gl_RayTmaxNVX"
|
||||
Name 50 "gl_RayTmaxNV"
|
||||
Name 52 "v11"
|
||||
Name 53 "gl_HitTNVX"
|
||||
Name 53 "gl_HitTNV"
|
||||
Name 56 "v12"
|
||||
Name 58 "gl_HitKindNVX"
|
||||
Name 58 "gl_HitKindNV"
|
||||
Name 62 "v13"
|
||||
Name 64 "gl_ObjectToWorldNVX"
|
||||
Name 64 "gl_ObjectToWorldNV"
|
||||
Name 66 "v14"
|
||||
Name 67 "gl_WorldToObjectNVX"
|
||||
Name 67 "gl_WorldToObjectNV"
|
||||
Name 71 "incomingPayload"
|
||||
Decorate 11(gl_LaunchIDNVX) BuiltIn LaunchIdNVX
|
||||
Decorate 14(gl_LaunchSizeNVX) BuiltIn LaunchSizeNVX
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
||||
Decorate 23(gl_InstanceID) BuiltIn InstanceId
|
||||
Decorate 26(gl_InstanceCustomIndexNVX) BuiltIn InstanceCustomIndexNVX
|
||||
Decorate 33(gl_WorldRayOriginNVX) BuiltIn WorldRayOriginNVX
|
||||
Decorate 36(gl_WorldRayDirectionNVX) BuiltIn WorldRayDirectionNVX
|
||||
Decorate 39(gl_ObjectRayOriginNVX) BuiltIn ObjectRayOriginNVX
|
||||
Decorate 42(gl_ObjectRayDirectionNVX) BuiltIn ObjectRayDirectionNVX
|
||||
Decorate 47(gl_RayTminNVX) BuiltIn RayTminNVX
|
||||
Decorate 50(gl_RayTmaxNVX) BuiltIn RayTmaxNVX
|
||||
Decorate 53(gl_HitTNVX) BuiltIn HitTNVX
|
||||
Decorate 58(gl_HitKindNVX) BuiltIn HitKindNVX
|
||||
Decorate 64(gl_ObjectToWorldNVX) BuiltIn ObjectToWorldNVX
|
||||
Decorate 67(gl_WorldToObjectNVX) BuiltIn WorldToObjectNVX
|
||||
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 71(incomingPayload) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypeVector 6(int) 2
|
||||
8: TypePointer Function 7(ivec2)
|
||||
10: TypePointer Input 7(ivec2)
|
||||
11(gl_LaunchIDNVX): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNVX): 10(ptr) Variable Input
|
||||
7: TypeVector 6(int) 3
|
||||
8: TypePointer Function 7(ivec3)
|
||||
10: TypePointer Input 7(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16: TypeInt 32 1
|
||||
17: TypePointer Function 16(int)
|
||||
19: TypePointer Input 16(int)
|
||||
20(gl_PrimitiveID): 19(ptr) Variable Input
|
||||
23(gl_InstanceID): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNVX): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNV): 19(ptr) Variable Input
|
||||
28: TypeFloat 32
|
||||
29: TypeVector 28(float) 3
|
||||
30: TypePointer Function 29(fvec3)
|
||||
32: TypePointer Input 29(fvec3)
|
||||
33(gl_WorldRayOriginNVX): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNVX): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNVX): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNVX): 32(ptr) Variable Input
|
||||
33(gl_WorldRayOriginNV): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNV): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNV): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNV): 32(ptr) Variable Input
|
||||
44: TypePointer Function 28(float)
|
||||
46: TypePointer Input 28(float)
|
||||
47(gl_RayTminNVX): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNVX): 46(ptr) Variable Input
|
||||
53(gl_HitTNVX): 46(ptr) Variable Input
|
||||
47(gl_RayTminNV): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNV): 46(ptr) Variable Input
|
||||
53(gl_HitTNV): 46(ptr) Variable Input
|
||||
55: TypePointer Function 6(int)
|
||||
57: TypePointer Input 6(int)
|
||||
58(gl_HitKindNVX): 57(ptr) Variable Input
|
||||
58(gl_HitKindNV): 57(ptr) Variable Input
|
||||
60: TypeMatrix 29(fvec3) 4
|
||||
61: TypePointer Function 60
|
||||
63: TypePointer Input 60
|
||||
64(gl_ObjectToWorldNVX): 63(ptr) Variable Input
|
||||
67(gl_WorldToObjectNVX): 63(ptr) Variable Input
|
||||
64(gl_ObjectToWorldNV): 63(ptr) Variable Input
|
||||
67(gl_WorldToObjectNV): 63(ptr) Variable Input
|
||||
69: TypeVector 28(float) 4
|
||||
70: TypePointer IncomingRayPayloadNVX 69(fvec4)
|
||||
71(incomingPayload): 70(ptr) Variable IncomingRayPayloadNVX
|
||||
70: TypePointer IncomingRayPayloadNV 69(fvec4)
|
||||
71(incomingPayload): 70(ptr) Variable IncomingRayPayloadNV
|
||||
72: 28(float) Constant 1056964608
|
||||
73: 69(fvec4) ConstantComposite 72 72 72 72
|
||||
75: 16(int) Constant 1
|
||||
@@ -117,35 +117,35 @@ spv.AnyHitShader.rahit
|
||||
56(v12): 55(ptr) Variable Function
|
||||
62(v13): 61(ptr) Variable Function
|
||||
66(v14): 61(ptr) Variable Function
|
||||
12: 7(ivec2) Load 11(gl_LaunchIDNVX)
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDNV)
|
||||
Store 9(v0) 12
|
||||
15: 7(ivec2) Load 14(gl_LaunchSizeNVX)
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeNV)
|
||||
Store 13(v1) 15
|
||||
21: 16(int) Load 20(gl_PrimitiveID)
|
||||
Store 18(v2) 21
|
||||
24: 16(int) Load 23(gl_InstanceID)
|
||||
Store 22(v3) 24
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNVX)
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNV)
|
||||
Store 25(v4) 27
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNVX)
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNV)
|
||||
Store 31(v5) 34
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNVX)
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNV)
|
||||
Store 35(v6) 37
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNVX)
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNV)
|
||||
Store 38(v7) 40
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNVX)
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNV)
|
||||
Store 41(v8) 43
|
||||
48: 28(float) Load 47(gl_RayTminNVX)
|
||||
48: 28(float) Load 47(gl_RayTminNV)
|
||||
Store 45(v9) 48
|
||||
51: 28(float) Load 50(gl_RayTmaxNVX)
|
||||
51: 28(float) Load 50(gl_RayTmaxNV)
|
||||
Store 49(v10) 51
|
||||
54: 28(float) Load 53(gl_HitTNVX)
|
||||
54: 28(float) Load 53(gl_HitTNV)
|
||||
Store 52(v11) 54
|
||||
59: 6(int) Load 58(gl_HitKindNVX)
|
||||
59: 6(int) Load 58(gl_HitKindNV)
|
||||
Store 56(v12) 59
|
||||
65: 60 Load 64(gl_ObjectToWorldNVX)
|
||||
65: 60 Load 64(gl_ObjectToWorldNV)
|
||||
Store 62(v13) 65
|
||||
68: 60 Load 67(gl_WorldToObjectNVX)
|
||||
68: 60 Load 67(gl_WorldToObjectNV)
|
||||
Store 66(v14) 68
|
||||
Store 71(incomingPayload) 73
|
||||
74: 16(int) Load 18(v2)
|
||||
@@ -153,10 +153,10 @@ spv.AnyHitShader.rahit
|
||||
SelectionMerge 79 None
|
||||
BranchConditional 77 78 80
|
||||
78: Label
|
||||
IgnoreIntersectionNVX
|
||||
IgnoreIntersectionNV
|
||||
Branch 79
|
||||
80: Label
|
||||
TerminateRayNVX
|
||||
TerminateRayNV
|
||||
Branch 79
|
||||
79: Label
|
||||
Return
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
spv.AnyHitShader_Errors.rahit
|
||||
ERROR: 0:8: 'assign' : l-value required "payload" (cannot modify hitAttributeNVX in this stage)
|
||||
ERROR: 0:9: 'reportIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:10: 'traceNVX' : no matching overloaded function found
|
||||
ERROR: 0:8: 'assign' : l-value required "payload" (cannot modify hitAttributeNV in this stage)
|
||||
ERROR: 0:9: 'reportIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:10: 'traceNV' : no matching overloaded function found
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -3,62 +3,62 @@ spv.ClosestHitShader.rchit
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 88
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint ClosestHitNVX 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
EntryPoint ClosestHitNV 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 9 "v0"
|
||||
Name 11 "gl_LaunchIDNVX"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 13 "v1"
|
||||
Name 14 "gl_LaunchSizeNVX"
|
||||
Name 14 "gl_LaunchSizeNV"
|
||||
Name 18 "v2"
|
||||
Name 20 "gl_PrimitiveID"
|
||||
Name 22 "v3"
|
||||
Name 23 "gl_InstanceID"
|
||||
Name 25 "v4"
|
||||
Name 26 "gl_InstanceCustomIndexNVX"
|
||||
Name 26 "gl_InstanceCustomIndexNV"
|
||||
Name 31 "v5"
|
||||
Name 33 "gl_WorldRayOriginNVX"
|
||||
Name 33 "gl_WorldRayOriginNV"
|
||||
Name 35 "v6"
|
||||
Name 36 "gl_WorldRayDirectionNVX"
|
||||
Name 36 "gl_WorldRayDirectionNV"
|
||||
Name 38 "v7"
|
||||
Name 39 "gl_ObjectRayOriginNVX"
|
||||
Name 39 "gl_ObjectRayOriginNV"
|
||||
Name 41 "v8"
|
||||
Name 42 "gl_ObjectRayDirectionNVX"
|
||||
Name 42 "gl_ObjectRayDirectionNV"
|
||||
Name 45 "v9"
|
||||
Name 47 "gl_RayTminNVX"
|
||||
Name 47 "gl_RayTminNV"
|
||||
Name 49 "v10"
|
||||
Name 50 "gl_RayTmaxNVX"
|
||||
Name 50 "gl_RayTmaxNV"
|
||||
Name 52 "v11"
|
||||
Name 53 "gl_HitTNVX"
|
||||
Name 53 "gl_HitTNV"
|
||||
Name 56 "v12"
|
||||
Name 58 "gl_HitKindNVX"
|
||||
Name 58 "gl_HitKindNV"
|
||||
Name 62 "v13"
|
||||
Name 64 "gl_ObjectToWorldNVX"
|
||||
Name 64 "gl_ObjectToWorldNV"
|
||||
Name 66 "v14"
|
||||
Name 67 "gl_WorldToObjectNVX"
|
||||
Name 67 "gl_WorldToObjectNV"
|
||||
Name 71 "accNV"
|
||||
Name 85 "localPayload"
|
||||
Name 87 "incomingPayload"
|
||||
Decorate 11(gl_LaunchIDNVX) BuiltIn LaunchIdNVX
|
||||
Decorate 14(gl_LaunchSizeNVX) BuiltIn LaunchSizeNVX
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
||||
Decorate 23(gl_InstanceID) BuiltIn InstanceId
|
||||
Decorate 26(gl_InstanceCustomIndexNVX) BuiltIn InstanceCustomIndexNVX
|
||||
Decorate 33(gl_WorldRayOriginNVX) BuiltIn WorldRayOriginNVX
|
||||
Decorate 36(gl_WorldRayDirectionNVX) BuiltIn WorldRayDirectionNVX
|
||||
Decorate 39(gl_ObjectRayOriginNVX) BuiltIn ObjectRayOriginNVX
|
||||
Decorate 42(gl_ObjectRayDirectionNVX) BuiltIn ObjectRayDirectionNVX
|
||||
Decorate 47(gl_RayTminNVX) BuiltIn RayTminNVX
|
||||
Decorate 50(gl_RayTmaxNVX) BuiltIn RayTmaxNVX
|
||||
Decorate 53(gl_HitTNVX) BuiltIn HitTNVX
|
||||
Decorate 58(gl_HitKindNVX) BuiltIn HitKindNVX
|
||||
Decorate 64(gl_ObjectToWorldNVX) BuiltIn ObjectToWorldNVX
|
||||
Decorate 67(gl_WorldToObjectNVX) BuiltIn WorldToObjectNVX
|
||||
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 71(accNV) DescriptorSet 0
|
||||
Decorate 71(accNV) Binding 0
|
||||
Decorate 85(localPayload) Location 0
|
||||
@@ -66,39 +66,39 @@ spv.ClosestHitShader.rchit
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypeVector 6(int) 2
|
||||
8: TypePointer Function 7(ivec2)
|
||||
10: TypePointer Input 7(ivec2)
|
||||
11(gl_LaunchIDNVX): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNVX): 10(ptr) Variable Input
|
||||
7: TypeVector 6(int) 3
|
||||
8: TypePointer Function 7(ivec3)
|
||||
10: TypePointer Input 7(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16: TypeInt 32 1
|
||||
17: TypePointer Function 16(int)
|
||||
19: TypePointer Input 16(int)
|
||||
20(gl_PrimitiveID): 19(ptr) Variable Input
|
||||
23(gl_InstanceID): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNVX): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNV): 19(ptr) Variable Input
|
||||
28: TypeFloat 32
|
||||
29: TypeVector 28(float) 3
|
||||
30: TypePointer Function 29(fvec3)
|
||||
32: TypePointer Input 29(fvec3)
|
||||
33(gl_WorldRayOriginNVX): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNVX): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNVX): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNVX): 32(ptr) Variable Input
|
||||
33(gl_WorldRayOriginNV): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNV): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNV): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNV): 32(ptr) Variable Input
|
||||
44: TypePointer Function 28(float)
|
||||
46: TypePointer Input 28(float)
|
||||
47(gl_RayTminNVX): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNVX): 46(ptr) Variable Input
|
||||
53(gl_HitTNVX): 46(ptr) Variable Input
|
||||
47(gl_RayTminNV): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNV): 46(ptr) Variable Input
|
||||
53(gl_HitTNV): 46(ptr) Variable Input
|
||||
55: TypePointer Function 6(int)
|
||||
57: TypePointer Input 6(int)
|
||||
58(gl_HitKindNVX): 57(ptr) Variable Input
|
||||
58(gl_HitKindNV): 57(ptr) Variable Input
|
||||
60: TypeMatrix 29(fvec3) 4
|
||||
61: TypePointer Function 60
|
||||
63: TypePointer Input 60
|
||||
64(gl_ObjectToWorldNVX): 63(ptr) Variable Input
|
||||
67(gl_WorldToObjectNVX): 63(ptr) Variable Input
|
||||
69: TypeAccelerationStructureNVX
|
||||
64(gl_ObjectToWorldNV): 63(ptr) Variable Input
|
||||
67(gl_WorldToObjectNV): 63(ptr) Variable Input
|
||||
69: TypeAccelerationStructureNV
|
||||
70: TypePointer UniformConstant 69
|
||||
71(accNV): 70(ptr) Variable UniformConstant
|
||||
73: 6(int) Constant 0
|
||||
@@ -112,10 +112,10 @@ spv.ClosestHitShader.rchit
|
||||
81: 28(float) Constant 1061158912
|
||||
82: 16(int) Constant 1
|
||||
83: TypeVector 28(float) 4
|
||||
84: TypePointer RayPayloadNVX 83(fvec4)
|
||||
85(localPayload): 84(ptr) Variable RayPayloadNVX
|
||||
86: TypePointer IncomingRayPayloadNVX 83(fvec4)
|
||||
87(incomingPayload): 86(ptr) Variable IncomingRayPayloadNVX
|
||||
84: TypePointer RayPayloadNV 83(fvec4)
|
||||
85(localPayload): 84(ptr) Variable RayPayloadNV
|
||||
86: TypePointer IncomingRayPayloadNV 83(fvec4)
|
||||
87(incomingPayload): 86(ptr) Variable IncomingRayPayloadNV
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(v0): 8(ptr) Variable Function
|
||||
@@ -133,37 +133,37 @@ spv.ClosestHitShader.rchit
|
||||
56(v12): 55(ptr) Variable Function
|
||||
62(v13): 61(ptr) Variable Function
|
||||
66(v14): 61(ptr) Variable Function
|
||||
12: 7(ivec2) Load 11(gl_LaunchIDNVX)
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDNV)
|
||||
Store 9(v0) 12
|
||||
15: 7(ivec2) Load 14(gl_LaunchSizeNVX)
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeNV)
|
||||
Store 13(v1) 15
|
||||
21: 16(int) Load 20(gl_PrimitiveID)
|
||||
Store 18(v2) 21
|
||||
24: 16(int) Load 23(gl_InstanceID)
|
||||
Store 22(v3) 24
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNVX)
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNV)
|
||||
Store 25(v4) 27
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNVX)
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNV)
|
||||
Store 31(v5) 34
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNVX)
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNV)
|
||||
Store 35(v6) 37
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNVX)
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNV)
|
||||
Store 38(v7) 40
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNVX)
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNV)
|
||||
Store 41(v8) 43
|
||||
48: 28(float) Load 47(gl_RayTminNVX)
|
||||
48: 28(float) Load 47(gl_RayTminNV)
|
||||
Store 45(v9) 48
|
||||
51: 28(float) Load 50(gl_RayTmaxNVX)
|
||||
51: 28(float) Load 50(gl_RayTmaxNV)
|
||||
Store 49(v10) 51
|
||||
54: 28(float) Load 53(gl_HitTNVX)
|
||||
54: 28(float) Load 53(gl_HitTNV)
|
||||
Store 52(v11) 54
|
||||
59: 6(int) Load 58(gl_HitKindNVX)
|
||||
59: 6(int) Load 58(gl_HitKindNV)
|
||||
Store 56(v12) 59
|
||||
65: 60 Load 64(gl_ObjectToWorldNVX)
|
||||
65: 60 Load 64(gl_ObjectToWorldNV)
|
||||
Store 62(v13) 65
|
||||
68: 60 Load 67(gl_WorldToObjectNVX)
|
||||
68: 60 Load 67(gl_WorldToObjectNV)
|
||||
Store 66(v14) 68
|
||||
72: 69 Load 71(accNV)
|
||||
TraceNVX 72 73 74 75 76 73 78 77 80 81 82
|
||||
TraceNV 72 73 74 75 76 73 78 77 80 81 82
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
spv.ClosestHitShader_Errors.rchit
|
||||
ERROR: 0:8: 'assign' : l-value required "payload" (cannot modify hitAttributeNVX in this stage)
|
||||
ERROR: 0:9: 'reportIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:10: 'terminateRayNVX' : no matching overloaded function found
|
||||
ERROR: 0:11: 'ignoreIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:8: 'assign' : l-value required "payload" (cannot modify hitAttributeNV in this stage)
|
||||
ERROR: 0:9: 'reportIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:10: 'terminateRayNV' : no matching overloaded function found
|
||||
ERROR: 0:11: 'ignoreIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 4 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -3,88 +3,88 @@ spv.IntersectShader.rint
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 71
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint IntersectionNVX 4 "main" 11 14 20 23 26 33 36 39 42 47 50 56 59
|
||||
EntryPoint IntersectionNV 4 "main" 11 14 20 23 26 33 36 39 42 47 50 56 59
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 9 "v0"
|
||||
Name 11 "gl_LaunchIDNVX"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 13 "v1"
|
||||
Name 14 "gl_LaunchSizeNVX"
|
||||
Name 14 "gl_LaunchSizeNV"
|
||||
Name 18 "v2"
|
||||
Name 20 "gl_PrimitiveID"
|
||||
Name 22 "v3"
|
||||
Name 23 "gl_InstanceID"
|
||||
Name 25 "v4"
|
||||
Name 26 "gl_InstanceCustomIndexNVX"
|
||||
Name 26 "gl_InstanceCustomIndexNV"
|
||||
Name 31 "v5"
|
||||
Name 33 "gl_WorldRayOriginNVX"
|
||||
Name 33 "gl_WorldRayOriginNV"
|
||||
Name 35 "v6"
|
||||
Name 36 "gl_WorldRayDirectionNVX"
|
||||
Name 36 "gl_WorldRayDirectionNV"
|
||||
Name 38 "v7"
|
||||
Name 39 "gl_ObjectRayOriginNVX"
|
||||
Name 39 "gl_ObjectRayOriginNV"
|
||||
Name 41 "v8"
|
||||
Name 42 "gl_ObjectRayDirectionNVX"
|
||||
Name 42 "gl_ObjectRayDirectionNV"
|
||||
Name 45 "v9"
|
||||
Name 47 "gl_RayTminNVX"
|
||||
Name 47 "gl_RayTminNV"
|
||||
Name 49 "v10"
|
||||
Name 50 "gl_RayTmaxNVX"
|
||||
Name 50 "gl_RayTmaxNV"
|
||||
Name 54 "v11"
|
||||
Name 56 "gl_ObjectToWorldNVX"
|
||||
Name 56 "gl_ObjectToWorldNV"
|
||||
Name 58 "v12"
|
||||
Name 59 "gl_WorldToObjectNVX"
|
||||
Name 59 "gl_WorldToObjectNV"
|
||||
Name 63 "iAttr"
|
||||
Decorate 11(gl_LaunchIDNVX) BuiltIn LaunchIdNVX
|
||||
Decorate 14(gl_LaunchSizeNVX) BuiltIn LaunchSizeNVX
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
||||
Decorate 23(gl_InstanceID) BuiltIn InstanceId
|
||||
Decorate 26(gl_InstanceCustomIndexNVX) BuiltIn InstanceCustomIndexNVX
|
||||
Decorate 33(gl_WorldRayOriginNVX) BuiltIn WorldRayOriginNVX
|
||||
Decorate 36(gl_WorldRayDirectionNVX) BuiltIn WorldRayDirectionNVX
|
||||
Decorate 39(gl_ObjectRayOriginNVX) BuiltIn ObjectRayOriginNVX
|
||||
Decorate 42(gl_ObjectRayDirectionNVX) BuiltIn ObjectRayDirectionNVX
|
||||
Decorate 47(gl_RayTminNVX) BuiltIn RayTminNVX
|
||||
Decorate 50(gl_RayTmaxNVX) BuiltIn RayTmaxNVX
|
||||
Decorate 56(gl_ObjectToWorldNVX) BuiltIn ObjectToWorldNVX
|
||||
Decorate 59(gl_WorldToObjectNVX) BuiltIn WorldToObjectNVX
|
||||
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 56(gl_ObjectToWorldNV) BuiltIn ObjectToWorldNV
|
||||
Decorate 59(gl_WorldToObjectNV) BuiltIn WorldToObjectNV
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypeVector 6(int) 2
|
||||
8: TypePointer Function 7(ivec2)
|
||||
10: TypePointer Input 7(ivec2)
|
||||
11(gl_LaunchIDNVX): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNVX): 10(ptr) Variable Input
|
||||
7: TypeVector 6(int) 3
|
||||
8: TypePointer Function 7(ivec3)
|
||||
10: TypePointer Input 7(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16: TypeInt 32 1
|
||||
17: TypePointer Function 16(int)
|
||||
19: TypePointer Input 16(int)
|
||||
20(gl_PrimitiveID): 19(ptr) Variable Input
|
||||
23(gl_InstanceID): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNVX): 19(ptr) Variable Input
|
||||
26(gl_InstanceCustomIndexNV): 19(ptr) Variable Input
|
||||
28: TypeFloat 32
|
||||
29: TypeVector 28(float) 3
|
||||
30: TypePointer Function 29(fvec3)
|
||||
32: TypePointer Input 29(fvec3)
|
||||
33(gl_WorldRayOriginNVX): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNVX): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNVX): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNVX): 32(ptr) Variable Input
|
||||
33(gl_WorldRayOriginNV): 32(ptr) Variable Input
|
||||
36(gl_WorldRayDirectionNV): 32(ptr) Variable Input
|
||||
39(gl_ObjectRayOriginNV): 32(ptr) Variable Input
|
||||
42(gl_ObjectRayDirectionNV): 32(ptr) Variable Input
|
||||
44: TypePointer Function 28(float)
|
||||
46: TypePointer Input 28(float)
|
||||
47(gl_RayTminNVX): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNVX): 46(ptr) Variable Input
|
||||
47(gl_RayTminNV): 46(ptr) Variable Input
|
||||
50(gl_RayTmaxNV): 46(ptr) Variable Input
|
||||
52: TypeMatrix 29(fvec3) 4
|
||||
53: TypePointer Function 52
|
||||
55: TypePointer Input 52
|
||||
56(gl_ObjectToWorldNVX): 55(ptr) Variable Input
|
||||
59(gl_WorldToObjectNVX): 55(ptr) Variable Input
|
||||
56(gl_ObjectToWorldNV): 55(ptr) Variable Input
|
||||
59(gl_WorldToObjectNV): 55(ptr) Variable Input
|
||||
61: TypeVector 28(float) 4
|
||||
62: TypePointer HitAttributeNVX 61(fvec4)
|
||||
63(iAttr): 62(ptr) Variable HitAttributeNVX
|
||||
62: TypePointer HitAttributeNV 61(fvec4)
|
||||
63(iAttr): 62(ptr) Variable HitAttributeNV
|
||||
64: 28(float) Constant 1056964608
|
||||
65: 28(float) Constant 0
|
||||
66: 28(float) Constant 1065353216
|
||||
@@ -106,33 +106,33 @@ spv.IntersectShader.rint
|
||||
49(v10): 44(ptr) Variable Function
|
||||
54(v11): 53(ptr) Variable Function
|
||||
58(v12): 53(ptr) Variable Function
|
||||
12: 7(ivec2) Load 11(gl_LaunchIDNVX)
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDNV)
|
||||
Store 9(v0) 12
|
||||
15: 7(ivec2) Load 14(gl_LaunchSizeNVX)
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeNV)
|
||||
Store 13(v1) 15
|
||||
21: 16(int) Load 20(gl_PrimitiveID)
|
||||
Store 18(v2) 21
|
||||
24: 16(int) Load 23(gl_InstanceID)
|
||||
Store 22(v3) 24
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNVX)
|
||||
27: 16(int) Load 26(gl_InstanceCustomIndexNV)
|
||||
Store 25(v4) 27
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNVX)
|
||||
34: 29(fvec3) Load 33(gl_WorldRayOriginNV)
|
||||
Store 31(v5) 34
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNVX)
|
||||
37: 29(fvec3) Load 36(gl_WorldRayDirectionNV)
|
||||
Store 35(v6) 37
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNVX)
|
||||
40: 29(fvec3) Load 39(gl_ObjectRayOriginNV)
|
||||
Store 38(v7) 40
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNVX)
|
||||
43: 29(fvec3) Load 42(gl_ObjectRayDirectionNV)
|
||||
Store 41(v8) 43
|
||||
48: 28(float) Load 47(gl_RayTminNVX)
|
||||
48: 28(float) Load 47(gl_RayTminNV)
|
||||
Store 45(v9) 48
|
||||
51: 28(float) Load 50(gl_RayTmaxNVX)
|
||||
51: 28(float) Load 50(gl_RayTmaxNV)
|
||||
Store 49(v10) 51
|
||||
57: 52 Load 56(gl_ObjectToWorldNVX)
|
||||
57: 52 Load 56(gl_ObjectToWorldNV)
|
||||
Store 54(v11) 57
|
||||
60: 52 Load 59(gl_WorldToObjectNVX)
|
||||
60: 52 Load 59(gl_WorldToObjectNV)
|
||||
Store 58(v12) 60
|
||||
Store 63(iAttr) 67
|
||||
70: 69(bool) ReportIntersectionNVX 64 68
|
||||
70: 69(bool) ReportIntersectionNV 64 68
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
spv.IntersectShader_Errors.rint
|
||||
ERROR: 0:3: 'rayPayloadInNVX' : not supported in this stage: intersection
|
||||
ERROR: 0:4: 'rayPayloadNVX' : not supported in this stage: intersection
|
||||
ERROR: 0:8: 'gl_HitTNVX' : undeclared identifier
|
||||
ERROR: 0:9: 'gl_HitKindNVX' : undeclared identifier
|
||||
ERROR: 0:10: 'traceNVX' : no matching overloaded function found
|
||||
ERROR: 0:3: 'rayPayloadInNV' : not supported in this stage: intersection
|
||||
ERROR: 0:4: 'rayPayloadNV' : not supported in this stage: intersection
|
||||
ERROR: 0:8: 'gl_HitTNV' : undeclared identifier
|
||||
ERROR: 0:9: 'gl_HitKindNV' : undeclared identifier
|
||||
ERROR: 0:10: 'traceNV' : no matching overloaded function found
|
||||
ERROR: 5 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -3,41 +3,41 @@ spv.MissShader.rmiss
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 60
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint MissNVX 4 "main" 11 14 21 24 27 30 35 38
|
||||
EntryPoint MissNV 4 "main" 11 14 21 24 27 30 35 38
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 9 "v0"
|
||||
Name 11 "gl_LaunchIDNVX"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 13 "v1"
|
||||
Name 14 "gl_LaunchSizeNVX"
|
||||
Name 14 "gl_LaunchSizeNV"
|
||||
Name 19 "v2"
|
||||
Name 21 "gl_WorldRayOriginNVX"
|
||||
Name 21 "gl_WorldRayOriginNV"
|
||||
Name 23 "v3"
|
||||
Name 24 "gl_WorldRayDirectionNVX"
|
||||
Name 24 "gl_WorldRayDirectionNV"
|
||||
Name 26 "v4"
|
||||
Name 27 "gl_ObjectRayOriginNVX"
|
||||
Name 27 "gl_ObjectRayOriginNV"
|
||||
Name 29 "v5"
|
||||
Name 30 "gl_ObjectRayDirectionNVX"
|
||||
Name 30 "gl_ObjectRayDirectionNV"
|
||||
Name 33 "v6"
|
||||
Name 35 "gl_RayTminNVX"
|
||||
Name 35 "gl_RayTminNV"
|
||||
Name 37 "v7"
|
||||
Name 38 "gl_RayTmaxNVX"
|
||||
Name 38 "gl_RayTmaxNV"
|
||||
Name 42 "accNV"
|
||||
Name 57 "localPayload"
|
||||
Name 59 "incomingPayload"
|
||||
Decorate 11(gl_LaunchIDNVX) BuiltIn LaunchIdNVX
|
||||
Decorate 14(gl_LaunchSizeNVX) BuiltIn LaunchSizeNVX
|
||||
Decorate 21(gl_WorldRayOriginNVX) BuiltIn WorldRayOriginNVX
|
||||
Decorate 24(gl_WorldRayDirectionNVX) BuiltIn WorldRayDirectionNVX
|
||||
Decorate 27(gl_ObjectRayOriginNVX) BuiltIn ObjectRayOriginNVX
|
||||
Decorate 30(gl_ObjectRayDirectionNVX) BuiltIn ObjectRayDirectionNVX
|
||||
Decorate 35(gl_RayTminNVX) BuiltIn RayTminNVX
|
||||
Decorate 38(gl_RayTmaxNVX) BuiltIn RayTmaxNVX
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 21(gl_WorldRayOriginNV) BuiltIn WorldRayOriginNV
|
||||
Decorate 24(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionNV
|
||||
Decorate 27(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginNV
|
||||
Decorate 30(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionNV
|
||||
Decorate 35(gl_RayTminNV) BuiltIn RayTminNV
|
||||
Decorate 38(gl_RayTmaxNV) BuiltIn RayTmaxNV
|
||||
Decorate 42(accNV) DescriptorSet 0
|
||||
Decorate 42(accNV) Binding 0
|
||||
Decorate 57(localPayload) Location 0
|
||||
@@ -45,24 +45,24 @@ spv.MissShader.rmiss
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypeVector 6(int) 2
|
||||
8: TypePointer Function 7(ivec2)
|
||||
10: TypePointer Input 7(ivec2)
|
||||
11(gl_LaunchIDNVX): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNVX): 10(ptr) Variable Input
|
||||
7: TypeVector 6(int) 3
|
||||
8: TypePointer Function 7(ivec3)
|
||||
10: TypePointer Input 7(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16: TypeFloat 32
|
||||
17: TypeVector 16(float) 3
|
||||
18: TypePointer Function 17(fvec3)
|
||||
20: TypePointer Input 17(fvec3)
|
||||
21(gl_WorldRayOriginNVX): 20(ptr) Variable Input
|
||||
24(gl_WorldRayDirectionNVX): 20(ptr) Variable Input
|
||||
27(gl_ObjectRayOriginNVX): 20(ptr) Variable Input
|
||||
30(gl_ObjectRayDirectionNVX): 20(ptr) Variable Input
|
||||
21(gl_WorldRayOriginNV): 20(ptr) Variable Input
|
||||
24(gl_WorldRayDirectionNV): 20(ptr) Variable Input
|
||||
27(gl_ObjectRayOriginNV): 20(ptr) Variable Input
|
||||
30(gl_ObjectRayDirectionNV): 20(ptr) Variable Input
|
||||
32: TypePointer Function 16(float)
|
||||
34: TypePointer Input 16(float)
|
||||
35(gl_RayTminNVX): 34(ptr) Variable Input
|
||||
38(gl_RayTmaxNVX): 34(ptr) Variable Input
|
||||
40: TypeAccelerationStructureNVX
|
||||
35(gl_RayTminNV): 34(ptr) Variable Input
|
||||
38(gl_RayTmaxNV): 34(ptr) Variable Input
|
||||
40: TypeAccelerationStructureNV
|
||||
41: TypePointer UniformConstant 40
|
||||
42(accNV): 41(ptr) Variable UniformConstant
|
||||
44: 6(int) Constant 0
|
||||
@@ -77,10 +77,10 @@ spv.MissShader.rmiss
|
||||
53: TypeInt 32 1
|
||||
54: 53(int) Constant 1
|
||||
55: TypeVector 16(float) 4
|
||||
56: TypePointer RayPayloadNVX 55(fvec4)
|
||||
57(localPayload): 56(ptr) Variable RayPayloadNVX
|
||||
58: TypePointer IncomingRayPayloadNVX 55(fvec4)
|
||||
59(incomingPayload): 58(ptr) Variable IncomingRayPayloadNVX
|
||||
56: TypePointer RayPayloadNV 55(fvec4)
|
||||
57(localPayload): 56(ptr) Variable RayPayloadNV
|
||||
58: TypePointer IncomingRayPayloadNV 55(fvec4)
|
||||
59(incomingPayload): 58(ptr) Variable IncomingRayPayloadNV
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(v0): 8(ptr) Variable Function
|
||||
@@ -91,23 +91,23 @@ spv.MissShader.rmiss
|
||||
29(v5): 18(ptr) Variable Function
|
||||
33(v6): 32(ptr) Variable Function
|
||||
37(v7): 32(ptr) Variable Function
|
||||
12: 7(ivec2) Load 11(gl_LaunchIDNVX)
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDNV)
|
||||
Store 9(v0) 12
|
||||
15: 7(ivec2) Load 14(gl_LaunchSizeNVX)
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeNV)
|
||||
Store 13(v1) 15
|
||||
22: 17(fvec3) Load 21(gl_WorldRayOriginNVX)
|
||||
22: 17(fvec3) Load 21(gl_WorldRayOriginNV)
|
||||
Store 19(v2) 22
|
||||
25: 17(fvec3) Load 24(gl_WorldRayDirectionNVX)
|
||||
25: 17(fvec3) Load 24(gl_WorldRayDirectionNV)
|
||||
Store 23(v3) 25
|
||||
28: 17(fvec3) Load 27(gl_ObjectRayOriginNVX)
|
||||
28: 17(fvec3) Load 27(gl_ObjectRayOriginNV)
|
||||
Store 26(v4) 28
|
||||
31: 17(fvec3) Load 30(gl_ObjectRayDirectionNVX)
|
||||
31: 17(fvec3) Load 30(gl_ObjectRayDirectionNV)
|
||||
Store 29(v5) 31
|
||||
36: 16(float) Load 35(gl_RayTminNVX)
|
||||
36: 16(float) Load 35(gl_RayTminNV)
|
||||
Store 33(v6) 36
|
||||
39: 16(float) Load 38(gl_RayTmaxNVX)
|
||||
39: 16(float) Load 38(gl_RayTmaxNV)
|
||||
Store 37(v7) 39
|
||||
43: 40 Load 42(accNV)
|
||||
TraceNVX 43 44 45 46 47 44 49 48 51 52 54
|
||||
TraceNV 43 44 45 46 47 44 49 48 51 52 54
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
spv.MissShader_Errors.rmiss
|
||||
ERROR: 0:3: 'hitAttributeNVX' : not supported in this stage: miss
|
||||
ERROR: 0:3: 'hitAttributeNV' : not supported in this stage: miss
|
||||
ERROR: 0:6: 'gl_PrimitiveID' : undeclared identifier
|
||||
ERROR: 0:6: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:7: 'gl_InstanceID' : undeclared identifier (Did you mean gl_InstanceIndex?)
|
||||
ERROR: 0:7: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:8: 'gl_InstanceCustomIndexNVX' : undeclared identifier
|
||||
ERROR: 0:8: 'gl_InstanceCustomIndexNV' : undeclared identifier
|
||||
ERROR: 0:8: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:9: 'gl_ObjectToWorldNVX' : undeclared identifier
|
||||
ERROR: 0:9: 'gl_ObjectToWorldNV' : undeclared identifier
|
||||
ERROR: 0:9: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:10: 'gl_WorldToObjectNVX' : undeclared identifier
|
||||
ERROR: 0:10: 'gl_WorldToObjectNV' : undeclared identifier
|
||||
ERROR: 0:10: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:11: 'gl_HitTNVX' : undeclared identifier
|
||||
ERROR: 0:12: 'gl_HitKindNVX' : undeclared identifier
|
||||
ERROR: 0:13: 'reportIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:14: 'ignoreIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:15: 'terminateRayNVX' : no matching overloaded function found
|
||||
ERROR: 0:11: 'gl_HitTNV' : undeclared identifier
|
||||
ERROR: 0:12: 'gl_HitKindNV' : undeclared identifier
|
||||
ERROR: 0:13: 'reportIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:14: 'ignoreIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:15: 'terminateRayNV' : no matching overloaded function found
|
||||
ERROR: 16 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
73
Test/baseResults/spv.RayCallable.rcall.out
Normal file
73
Test/baseResults/spv.RayCallable.rcall.out
Normal file
@@ -0,0 +1,73 @@
|
||||
spv.RayCallable.rcall
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 38
|
||||
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint CallableNV 4 "main" 11 14 19
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 9 "id"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 13 "size"
|
||||
Name 14 "gl_LaunchSizeNV"
|
||||
Name 17 "curFlags"
|
||||
Name 19 "gl_IncomingRayFlagsNV"
|
||||
Name 24 "dataBlock"
|
||||
MemberName 24(dataBlock) 0 "data1"
|
||||
Name 26 ""
|
||||
Name 37 "data0"
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 19(gl_IncomingRayFlagsNV) BuiltIn IncomingRayFlagsNV
|
||||
Decorate 24(dataBlock) Block
|
||||
Decorate 26 Location 1
|
||||
Decorate 37(data0) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypeVector 6(int) 3
|
||||
8: TypePointer Function 7(ivec3)
|
||||
10: TypePointer Input 7(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
14(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
16: TypePointer Function 6(int)
|
||||
18: TypePointer Input 6(int)
|
||||
19(gl_IncomingRayFlagsNV): 18(ptr) Variable Input
|
||||
22: 6(int) Constant 1
|
||||
24(dataBlock): TypeStruct 6(int)
|
||||
25: TypePointer IncomingCallableDataNV 24(dataBlock)
|
||||
26: 25(ptr) Variable IncomingCallableDataNV
|
||||
27: TypeInt 32 1
|
||||
28: 27(int) Constant 0
|
||||
29: 6(int) Constant 256
|
||||
30: TypePointer IncomingCallableDataNV 6(int)
|
||||
32: 6(int) Constant 2
|
||||
33: 27(int) Constant 1
|
||||
34: TypeFloat 32
|
||||
35: TypeVector 34(float) 4
|
||||
36: TypePointer CallableDataNV 35(fvec4)
|
||||
37(data0): 36(ptr) Variable CallableDataNV
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(id): 8(ptr) Variable Function
|
||||
13(size): 8(ptr) Variable Function
|
||||
17(curFlags): 16(ptr) Variable Function
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDNV)
|
||||
Store 9(id) 12
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeNV)
|
||||
Store 13(size) 15
|
||||
20: 6(int) Load 19(gl_IncomingRayFlagsNV)
|
||||
Store 17(curFlags) 20
|
||||
21: 6(int) Load 17(curFlags)
|
||||
23: 6(int) BitwiseAnd 21 22
|
||||
Store 17(curFlags) 23
|
||||
31: 30(ptr) AccessChain 26 28
|
||||
Store 31 29
|
||||
ExecuteCallableNV 32 33
|
||||
Return
|
||||
FunctionEnd
|
||||
33
Test/baseResults/spv.RayCallable_Errors.rcall.out
Normal file
33
Test/baseResults/spv.RayCallable_Errors.rcall.out
Normal file
@@ -0,0 +1,33 @@
|
||||
spv.RayCallable_Errors.rcall
|
||||
ERROR: 0:3: 'hitAttributeNV' : not supported in this stage: callable
|
||||
ERROR: 0:4: 'rayPayloadNV' : not supported in this stage: callable
|
||||
ERROR: 0:5: 'rayPayloadInNV' : not supported in this stage: callable
|
||||
ERROR: 0:9: 'gl_PrimitiveID' : undeclared identifier
|
||||
ERROR: 0:9: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:10: 'gl_InstanceID' : undeclared identifier (Did you mean gl_InstanceIndex?)
|
||||
ERROR: 0:10: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:11: 'gl_InstanceCustomIndexNV' : undeclared identifier
|
||||
ERROR: 0:11: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:12: 'gl_WorldRayOriginNV' : undeclared identifier
|
||||
ERROR: 0:12: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:13: 'gl_WorldRayDirectionNV' : undeclared identifier
|
||||
ERROR: 0:13: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:14: 'gl_ObjectRayOriginNV' : undeclared identifier
|
||||
ERROR: 0:14: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:15: 'gl_ObjectRayDirectionNV' : undeclared identifier
|
||||
ERROR: 0:15: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:16: 'gl_RayTminNV' : undeclared identifier
|
||||
ERROR: 0:17: 'gl_RayTmaxNV' : undeclared identifier
|
||||
ERROR: 0:18: 'gl_ObjectToWorldNV' : undeclared identifier
|
||||
ERROR: 0:18: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:19: 'gl_WorldToObjectNV' : undeclared identifier
|
||||
ERROR: 0:19: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:20: 'gl_HitTNV' : undeclared identifier
|
||||
ERROR: 0:21: 'gl_HitKindNV' : undeclared identifier
|
||||
ERROR: 0:22: 'reportIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:23: 'ignoreIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:24: 'terminateRayNV' : no matching overloaded function found
|
||||
ERROR: 28 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
@@ -3,13 +3,13 @@ spv.RayConstants.rgen
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 27
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint RayGenerationNVX 4 "main"
|
||||
EntryPoint RayGenerationNV 4 "main"
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 8 "accNV"
|
||||
Name 26 "payload"
|
||||
@@ -18,7 +18,7 @@ spv.RayConstants.rgen
|
||||
Decorate 26(payload) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeAccelerationStructureNVX
|
||||
6: TypeAccelerationStructureNV
|
||||
7: TypePointer UniformConstant 6
|
||||
8(accNV): 7(ptr) Variable UniformConstant
|
||||
10: TypeInt 32 0
|
||||
@@ -36,11 +36,11 @@ spv.RayConstants.rgen
|
||||
22: TypeInt 32 1
|
||||
23: 22(int) Constant 1
|
||||
24: TypeVector 14(float) 4
|
||||
25: TypePointer RayPayloadNVX 24(fvec4)
|
||||
26(payload): 25(ptr) Variable RayPayloadNVX
|
||||
25: TypePointer RayPayloadNV 24(fvec4)
|
||||
26(payload): 25(ptr) Variable RayPayloadNV
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9: 6 Load 8(accNV)
|
||||
TraceNVX 9 11 12 13 13 12 17 18 20 21 23
|
||||
TraceNV 9 11 12 13 13 12 17 18 20 21 23
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
@@ -3,19 +3,19 @@ spv.RayGenShader.rgen
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 60
|
||||
|
||||
Capability RaytracingNVX
|
||||
Extension "SPV_NVX_raytracing"
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint RayGenerationNVX 4 "main" 11 21
|
||||
EntryPoint RayGenerationNV 4 "main" 11 21
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_NVX_raytracing"
|
||||
SourceExtension "GL_NV_ray_tracing"
|
||||
Name 4 "main"
|
||||
Name 8 "lx"
|
||||
Name 11 "gl_LaunchIDNVX"
|
||||
Name 11 "gl_LaunchIDNV"
|
||||
Name 16 "ly"
|
||||
Name 20 "sx"
|
||||
Name 21 "gl_LaunchSizeNVX"
|
||||
Name 21 "gl_LaunchSizeNV"
|
||||
Name 24 "sy"
|
||||
Name 29 "accNV"
|
||||
Name 48 "block"
|
||||
@@ -23,8 +23,8 @@ spv.RayGenShader.rgen
|
||||
MemberName 48(block) 1 "pad"
|
||||
Name 50 ""
|
||||
Name 56 "payload"
|
||||
Decorate 11(gl_LaunchIDNVX) BuiltIn LaunchIdNVX
|
||||
Decorate 21(gl_LaunchSizeNVX) BuiltIn LaunchSizeNVX
|
||||
Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
|
||||
Decorate 21(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
|
||||
Decorate 29(accNV) DescriptorSet 0
|
||||
Decorate 29(accNV) Binding 0
|
||||
Decorate 46 ArrayStride 4
|
||||
@@ -36,14 +36,14 @@ spv.RayGenShader.rgen
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
7: TypePointer Function 6(int)
|
||||
9: TypeVector 6(int) 2
|
||||
10: TypePointer Input 9(ivec2)
|
||||
11(gl_LaunchIDNVX): 10(ptr) Variable Input
|
||||
9: TypeVector 6(int) 3
|
||||
10: TypePointer Input 9(ivec3)
|
||||
11(gl_LaunchIDNV): 10(ptr) Variable Input
|
||||
12: 6(int) Constant 0
|
||||
13: TypePointer Input 6(int)
|
||||
17: 6(int) Constant 1
|
||||
21(gl_LaunchSizeNVX): 10(ptr) Variable Input
|
||||
27: TypeAccelerationStructureNVX
|
||||
21(gl_LaunchSizeNV): 10(ptr) Variable Input
|
||||
27: TypeAccelerationStructureNV
|
||||
28: TypePointer UniformConstant 27
|
||||
29(accNV): 28(ptr) Variable UniformConstant
|
||||
35: TypeFloat 32
|
||||
@@ -60,30 +60,30 @@ spv.RayGenShader.rgen
|
||||
46: TypeArray 35(float) 45
|
||||
47: TypeVector 35(float) 4
|
||||
48(block): TypeStruct 46 47(fvec4)
|
||||
49: TypePointer ShaderRecordBufferNVX 48(block)
|
||||
50: 49(ptr) Variable ShaderRecordBufferNVX
|
||||
49: TypePointer ShaderRecordBufferNV 48(block)
|
||||
50: 49(ptr) Variable ShaderRecordBufferNV
|
||||
51: 43(int) Constant 0
|
||||
52: 43(int) Constant 3
|
||||
53: TypePointer ShaderRecordBufferNVX 35(float)
|
||||
55: TypePointer RayPayloadNVX 47(fvec4)
|
||||
56(payload): 55(ptr) Variable RayPayloadNVX
|
||||
58: TypePointer ShaderRecordBufferNVX 47(fvec4)
|
||||
53: TypePointer ShaderRecordBufferNV 35(float)
|
||||
55: TypePointer RayPayloadNV 47(fvec4)
|
||||
56(payload): 55(ptr) Variable RayPayloadNV
|
||||
58: TypePointer ShaderRecordBufferNV 47(fvec4)
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(lx): 7(ptr) Variable Function
|
||||
16(ly): 7(ptr) Variable Function
|
||||
20(sx): 7(ptr) Variable Function
|
||||
24(sy): 7(ptr) Variable Function
|
||||
14: 13(ptr) AccessChain 11(gl_LaunchIDNVX) 12
|
||||
14: 13(ptr) AccessChain 11(gl_LaunchIDNV) 12
|
||||
15: 6(int) Load 14
|
||||
Store 8(lx) 15
|
||||
18: 13(ptr) AccessChain 11(gl_LaunchIDNVX) 17
|
||||
18: 13(ptr) AccessChain 11(gl_LaunchIDNV) 17
|
||||
19: 6(int) Load 18
|
||||
Store 16(ly) 19
|
||||
22: 13(ptr) AccessChain 21(gl_LaunchSizeNVX) 12
|
||||
22: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 12
|
||||
23: 6(int) Load 22
|
||||
Store 20(sx) 23
|
||||
25: 13(ptr) AccessChain 21(gl_LaunchSizeNVX) 17
|
||||
25: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 17
|
||||
26: 6(int) Load 25
|
||||
Store 24(sy) 26
|
||||
30: 27 Load 29(accNV)
|
||||
@@ -91,7 +91,7 @@ spv.RayGenShader.rgen
|
||||
32: 6(int) Load 16(ly)
|
||||
33: 6(int) Load 20(sx)
|
||||
34: 6(int) Load 24(sy)
|
||||
TraceNVX 30 31 32 33 34 12 38 39 41 42 44
|
||||
TraceNV 30 31 32 33 34 12 38 39 41 42 44
|
||||
54: 53(ptr) AccessChain 50 51 52
|
||||
Store 54 40
|
||||
57: 47(fvec4) Load 56(payload)
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
spv.RayGenShader_Errors.rgen
|
||||
ERROR: 0:3: 'hitAttributeNVX' : not supported in this stage: ray-generation
|
||||
ERROR: 0:4: 'rayPayloadInNVX' : not supported in this stage: ray-generation
|
||||
ERROR: 0:5: 'shaderRecordNVX' : can only be used with a buffer
|
||||
ERROR: 0:9: 'binding' : cannot be used with shaderRecordNVX
|
||||
ERROR: 0:12: 'set' : cannot be used with shaderRecordNVX
|
||||
ERROR: 0:23: 'accelerationStructureNVX' : accelerationStructureNVX can only be used in uniform variables or function parameters: a
|
||||
ERROR: 0:23: '=' : cannot convert from ' const int' to ' temp accelerationStructureNVX'
|
||||
ERROR: 0:3: 'hitAttributeNV' : not supported in this stage: ray-generation
|
||||
ERROR: 0:4: 'rayPayloadInNV' : not supported in this stage: ray-generation
|
||||
ERROR: 0:5: 'shaderRecordNV' : can only be used with a buffer
|
||||
ERROR: 0:9: 'binding' : cannot be used with shaderRecordNV
|
||||
ERROR: 0:12: 'set' : cannot be used with shaderRecordNV
|
||||
ERROR: 0:23: 'accelerationStructureNV' : accelerationStructureNV can only be used in uniform variables or function parameters: a
|
||||
ERROR: 0:23: '=' : cannot convert from ' const int' to ' temp accelerationStructureNV'
|
||||
ERROR: 0:24: 'gl_PrimitiveID' : undeclared identifier
|
||||
ERROR: 0:24: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:25: 'gl_InstanceID' : undeclared identifier (Did you mean gl_InstanceIndex?)
|
||||
ERROR: 0:25: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:26: 'gl_InstanceCustomIndexNVX' : undeclared identifier
|
||||
ERROR: 0:26: 'gl_InstanceCustomIndexNV' : undeclared identifier
|
||||
ERROR: 0:26: '=' : cannot convert from ' temp float' to ' temp highp int'
|
||||
ERROR: 0:27: 'gl_WorldRayOriginNVX' : undeclared identifier
|
||||
ERROR: 0:27: 'gl_WorldRayOriginNV' : undeclared identifier
|
||||
ERROR: 0:27: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:28: 'gl_WorldRayDirectionNVX' : undeclared identifier
|
||||
ERROR: 0:28: 'gl_WorldRayDirectionNV' : undeclared identifier
|
||||
ERROR: 0:28: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:29: 'gl_ObjectRayOriginNVX' : undeclared identifier
|
||||
ERROR: 0:29: 'gl_ObjectRayOriginNV' : undeclared identifier
|
||||
ERROR: 0:29: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:30: 'gl_ObjectRayDirectionNVX' : undeclared identifier
|
||||
ERROR: 0:30: 'gl_ObjectRayDirectionNV' : undeclared identifier
|
||||
ERROR: 0:30: '=' : cannot convert from ' temp float' to ' temp highp 3-component vector of float'
|
||||
ERROR: 0:31: 'gl_RayTminNVX' : undeclared identifier
|
||||
ERROR: 0:32: 'gl_RayTmaxNVX' : undeclared identifier
|
||||
ERROR: 0:33: 'gl_ObjectToWorldNVX' : undeclared identifier
|
||||
ERROR: 0:31: 'gl_RayTminNV' : undeclared identifier
|
||||
ERROR: 0:32: 'gl_RayTmaxNV' : undeclared identifier
|
||||
ERROR: 0:33: 'gl_ObjectToWorldNV' : undeclared identifier
|
||||
ERROR: 0:33: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:34: 'gl_WorldToObjectNVX' : undeclared identifier
|
||||
ERROR: 0:34: 'gl_WorldToObjectNV' : undeclared identifier
|
||||
ERROR: 0:34: '=' : cannot convert from ' temp float' to ' temp highp 4X3 matrix of float'
|
||||
ERROR: 0:35: 'gl_HitTNVX' : undeclared identifier
|
||||
ERROR: 0:36: 'gl_HitKindNVX' : undeclared identifier
|
||||
ERROR: 0:37: 'reportIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:38: 'ignoreIntersectionNVX' : no matching overloaded function found
|
||||
ERROR: 0:39: 'terminateRayNVX' : no matching overloaded function found
|
||||
ERROR: 0:35: 'gl_HitTNV' : undeclared identifier
|
||||
ERROR: 0:36: 'gl_HitKindNV' : undeclared identifier
|
||||
ERROR: 0:37: 'reportIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:38: 'ignoreIntersectionNV' : no matching overloaded function found
|
||||
ERROR: 0:39: 'terminateRayNV' : no matching overloaded function found
|
||||
ERROR: 32 compilation errors. No code generated.
|
||||
|
||||
|
||||
ERROR: Linking ray-generation stage: Only one shaderRecordNVX buffer block is allowed per stage
|
||||
ERROR: Linking ray-generation stage: Only one shaderRecordNV buffer block is allowed per stage
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
layout(location = 1) rayPayloadInNVX vec4 incomingPayload;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(location = 1) rayPayloadInNV vec4 incomingPayload;
|
||||
void main()
|
||||
{
|
||||
uvec2 v0 = gl_LaunchIDNVX;
|
||||
uvec2 v1 = gl_LaunchSizeNVX;
|
||||
uvec3 v0 = gl_LaunchIDNV;
|
||||
uvec3 v1 = gl_LaunchSizeNV;
|
||||
int v2 = gl_PrimitiveID;
|
||||
int v3 = gl_InstanceID;
|
||||
int v4 = gl_InstanceCustomIndexNVX;
|
||||
vec3 v5 = gl_WorldRayOriginNVX;
|
||||
vec3 v6 = gl_WorldRayDirectionNVX;
|
||||
vec3 v7 = gl_ObjectRayOriginNVX;
|
||||
vec3 v8 = gl_ObjectRayDirectionNVX;
|
||||
float v9 = gl_RayTminNVX;
|
||||
float v10 = gl_RayTmaxNVX;
|
||||
float v11 = gl_HitTNVX;
|
||||
uint v12 = gl_HitKindNVX;
|
||||
mat4x3 v13 = gl_ObjectToWorldNVX;
|
||||
mat4x3 v14 = gl_WorldToObjectNVX;
|
||||
int v4 = gl_InstanceCustomIndexNV;
|
||||
vec3 v5 = gl_WorldRayOriginNV;
|
||||
vec3 v6 = gl_WorldRayDirectionNV;
|
||||
vec3 v7 = gl_ObjectRayOriginNV;
|
||||
vec3 v8 = gl_ObjectRayDirectionNV;
|
||||
float v9 = gl_RayTminNV;
|
||||
float v10 = gl_RayTmaxNV;
|
||||
float v11 = gl_HitTNV;
|
||||
uint v12 = gl_HitKindNV;
|
||||
mat4x3 v13 = gl_ObjectToWorldNV;
|
||||
mat4x3 v14 = gl_WorldToObjectNV;
|
||||
incomingPayload = vec4(0.5f);
|
||||
if (v2 == 1)
|
||||
ignoreIntersectionNVX();
|
||||
ignoreIntersectionNV();
|
||||
else
|
||||
terminateRayNVX();
|
||||
terminateRayNV();
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
hitAttributeNVX vec4 payload;
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 payload;
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
|
||||
void main()
|
||||
{
|
||||
payload.x = 1.0f; // ERROR, cannot write to hitattributeNVX in stage
|
||||
reportIntersectionNVX(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
traceNVX(accNV, 0, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 0); // ERROR, unsupported builtin in stage
|
||||
payload.x = 1.0f; // ERROR, cannot write to hitattributeNV in stage
|
||||
reportIntersectionNV(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
traceNV(accNV, 0, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 0); // ERROR, unsupported builtin in stage
|
||||
}
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
layout(location = 0) rayPayloadNVX vec4 localPayload;
|
||||
layout(location = 1) rayPayloadInNVX vec4 incomingPayload;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
layout(location = 0) rayPayloadNV vec4 localPayload;
|
||||
layout(location = 1) rayPayloadInNV vec4 incomingPayload;
|
||||
void main()
|
||||
{
|
||||
uvec2 v0 = gl_LaunchIDNVX;
|
||||
uvec2 v1 = gl_LaunchSizeNVX;
|
||||
uvec3 v0 = gl_LaunchIDNV;
|
||||
uvec3 v1 = gl_LaunchSizeNV;
|
||||
int v2 = gl_PrimitiveID;
|
||||
int v3 = gl_InstanceID;
|
||||
int v4 = gl_InstanceCustomIndexNVX;
|
||||
vec3 v5 = gl_WorldRayOriginNVX;
|
||||
vec3 v6 = gl_WorldRayDirectionNVX;
|
||||
vec3 v7 = gl_ObjectRayOriginNVX;
|
||||
vec3 v8 = gl_ObjectRayDirectionNVX;
|
||||
float v9 = gl_RayTminNVX;
|
||||
float v10 = gl_RayTmaxNVX;
|
||||
float v11 = gl_HitTNVX;
|
||||
uint v12 = gl_HitKindNVX;
|
||||
mat4x3 v13 = gl_ObjectToWorldNVX;
|
||||
mat4x3 v14 = gl_WorldToObjectNVX;
|
||||
traceNVX(accNV, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
int v4 = gl_InstanceCustomIndexNV;
|
||||
vec3 v5 = gl_WorldRayOriginNV;
|
||||
vec3 v6 = gl_WorldRayDirectionNV;
|
||||
vec3 v7 = gl_ObjectRayOriginNV;
|
||||
vec3 v8 = gl_ObjectRayDirectionNV;
|
||||
float v9 = gl_RayTminNV;
|
||||
float v10 = gl_RayTmaxNV;
|
||||
float v11 = gl_HitTNV;
|
||||
uint v12 = gl_HitKindNV;
|
||||
mat4x3 v13 = gl_ObjectToWorldNV;
|
||||
mat4x3 v14 = gl_WorldToObjectNV;
|
||||
traceNV(accNV, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
hitAttributeNVX vec4 payload;
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 payload;
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
|
||||
void main()
|
||||
{
|
||||
payload.x = 1.0f; // ERROR, cannot write to hitattributeNVX in stage
|
||||
reportIntersectionNVX(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
terminateRayNVX();
|
||||
ignoreIntersectionNVX();
|
||||
payload.x = 1.0f; // ERROR, cannot write to hitattributeNV in stage
|
||||
reportIntersectionNV(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
terminateRayNV();
|
||||
ignoreIntersectionNV();
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
hitAttributeNVX vec4 iAttr;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 iAttr;
|
||||
void main()
|
||||
{
|
||||
uvec2 v0 = gl_LaunchIDNVX;
|
||||
uvec2 v1 = gl_LaunchSizeNVX;
|
||||
uvec3 v0 = gl_LaunchIDNV;
|
||||
uvec3 v1 = gl_LaunchSizeNV;
|
||||
int v2 = gl_PrimitiveID;
|
||||
int v3 = gl_InstanceID;
|
||||
int v4 = gl_InstanceCustomIndexNVX;
|
||||
vec3 v5 = gl_WorldRayOriginNVX;
|
||||
vec3 v6 = gl_WorldRayDirectionNVX;
|
||||
vec3 v7 = gl_ObjectRayOriginNVX;
|
||||
vec3 v8 = gl_ObjectRayDirectionNVX;
|
||||
float v9 = gl_RayTminNVX;
|
||||
float v10 = gl_RayTmaxNVX;
|
||||
mat4x3 v11 = gl_ObjectToWorldNVX;
|
||||
mat4x3 v12 = gl_WorldToObjectNVX;
|
||||
int v4 = gl_InstanceCustomIndexNV;
|
||||
vec3 v5 = gl_WorldRayOriginNV;
|
||||
vec3 v6 = gl_WorldRayDirectionNV;
|
||||
vec3 v7 = gl_ObjectRayOriginNV;
|
||||
vec3 v8 = gl_ObjectRayDirectionNV;
|
||||
float v9 = gl_RayTminNV;
|
||||
float v10 = gl_RayTmaxNV;
|
||||
mat4x3 v11 = gl_ObjectToWorldNV;
|
||||
mat4x3 v12 = gl_WorldToObjectNV;
|
||||
iAttr = vec4(0.5f,0.5f,0.0f,1.0f);
|
||||
reportIntersectionNVX(0.5, 1U);
|
||||
reportIntersectionNV(0.5, 1U);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
rayPayloadInNVX vec4 payloadIn; // ERROR, rayPayloadIn unsupported in this stage
|
||||
rayPayloadNVX vec4 payload; // ERROR, rayPayload unsuppoted in this stage
|
||||
uniform accelerationStructureNVX accNV;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
rayPayloadInNV vec4 payloadIn; // ERROR, rayPayloadIn unsupported in this stage
|
||||
rayPayloadNV vec4 payload; // ERROR, rayPayload unsuppoted in this stage
|
||||
uniform accelerationStructureNV accNV;
|
||||
void main()
|
||||
{
|
||||
float e12 = gl_HitTNVX; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNVX; // ERROR, unsupported builtin in stage
|
||||
traceNVX(accNV, 0, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 0); // ERROR, unsupported
|
||||
float e12 = gl_HitTNV; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNV; // ERROR, unsupported builtin in stage
|
||||
traceNV(accNV, 0, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 0); // ERROR, unsupported
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
layout(location = 0) rayPayloadNVX vec4 localPayload;
|
||||
layout(location = 1) rayPayloadInNVX vec4 incomingPayload;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
layout(location = 0) rayPayloadNV vec4 localPayload;
|
||||
layout(location = 1) rayPayloadInNV vec4 incomingPayload;
|
||||
void main()
|
||||
{
|
||||
uvec2 v0 = gl_LaunchIDNVX;
|
||||
uvec2 v1 = gl_LaunchSizeNVX;
|
||||
vec3 v2 = gl_WorldRayOriginNVX;
|
||||
vec3 v3 = gl_WorldRayDirectionNVX;
|
||||
vec3 v4 = gl_ObjectRayOriginNVX;
|
||||
vec3 v5 = gl_ObjectRayDirectionNVX;
|
||||
float v6 = gl_RayTminNVX;
|
||||
float v7 = gl_RayTmaxNVX;
|
||||
traceNVX(accNV, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
uvec3 v0 = gl_LaunchIDNV;
|
||||
uvec3 v1 = gl_LaunchSizeNV;
|
||||
vec3 v2 = gl_WorldRayOriginNV;
|
||||
vec3 v3 = gl_WorldRayDirectionNV;
|
||||
vec3 v4 = gl_ObjectRayOriginNV;
|
||||
vec3 v5 = gl_ObjectRayDirectionNV;
|
||||
float v6 = gl_RayTminNV;
|
||||
float v7 = gl_RayTmaxNV;
|
||||
traceNV(accNV, 0u, 1u, 2u, 3u, 0u, vec3(0.5f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
hitAttributeNVX vec4 payload; // ERROR, hitattributeNVX unsupported in this stage
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 payload; // ERROR, hitattributeNV unsupported in this stage
|
||||
void main()
|
||||
{
|
||||
int e0 = gl_PrimitiveID; // ERROR, unsupported builtin in stage
|
||||
int e1 = gl_InstanceID; // ERROR, unsupported builtin in stage
|
||||
int e3 = gl_InstanceCustomIndexNVX; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e10 = gl_ObjectToWorldNVX; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e11 = gl_WorldToObjectNVX; // ERROR, unsupported builtin in stage
|
||||
float e12 = gl_HitTNVX; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNVX; // ERROR, unsupported builtin in stage
|
||||
reportIntersectionNVX(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
ignoreIntersectionNVX(); // ERROR, unsupported builtin in stage
|
||||
terminateRayNVX(); // ERROR, unsupported builtin in stage
|
||||
int e0 = gl_PrimitiveID; // ERROR, unsupported builtin in stage
|
||||
int e1 = gl_InstanceID; // ERROR, unsupported builtin in stage
|
||||
int e3 = gl_InstanceCustomIndexNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e10 = gl_ObjectToWorldNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e11 = gl_WorldToObjectNV; // ERROR, unsupported builtin in stage
|
||||
float e12 = gl_HitTNV; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNV; // ERROR, unsupported builtin in stage
|
||||
reportIntersectionNV(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
ignoreIntersectionNV(); // ERROR, unsupported builtin in stage
|
||||
terminateRayNV(); // ERROR, unsupported builtin in stage
|
||||
}
|
||||
|
||||
15
Test/spv.RayCallable.rcall
Normal file
15
Test/spv.RayCallable.rcall
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 460
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(location = 0) callableDataNV vec4 data0;
|
||||
layout(location = 1) callableDataInNV dataBlock {
|
||||
uint data1;
|
||||
};
|
||||
void main()
|
||||
{
|
||||
uvec3 id = gl_LaunchIDNV;
|
||||
uvec3 size = gl_LaunchSizeNV;
|
||||
uint curFlags = gl_IncomingRayFlagsNV;
|
||||
curFlags = curFlags & gl_RayFlagsOpaqueNV;
|
||||
data1 = 256U;
|
||||
executeCallableNV(2,1);
|
||||
}
|
||||
25
Test/spv.RayCallable_Errors.rcall
Normal file
25
Test/spv.RayCallable_Errors.rcall
Normal file
@@ -0,0 +1,25 @@
|
||||
#version 460
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 hitattr; // ERROR, hitattributeNV unsupported in this stage
|
||||
rayPayloadNV vec4 payload; // ERROR, rayPayloadNV unsupported in this stage
|
||||
rayPayloadInNV vec4 payloadIn; // ERROR, rayPayloadInNV unsupported in this stage
|
||||
|
||||
void main()
|
||||
{
|
||||
int e0 = gl_PrimitiveID; // ERROR, unsupported builtin in stage
|
||||
int e1 = gl_InstanceID; // ERROR, unsupported builtin in stage
|
||||
int e3 = gl_InstanceCustomIndexNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e4 = gl_WorldRayOriginNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e5 = gl_WorldRayDirectionNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e6 = gl_ObjectRayOriginNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e7 = gl_ObjectRayDirectionNV; // ERROR, unsupported builtin in stage
|
||||
float e8 = gl_RayTminNV; // ERROR, unsupported builtin in stage
|
||||
float e9 = gl_RayTmaxNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e10 = gl_ObjectToWorldNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e11 = gl_WorldToObjectNV; // ERROR, unsupported builtin in stage
|
||||
float e12 = gl_HitTNV; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNV; // ERROR, unsupported builtin in stage
|
||||
reportIntersectionNV(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
ignoreIntersectionNV(); // ERROR, unsupported builtin in stage
|
||||
terminateRayNV(); // ERROR, unsupported builtin in stage
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
layout(location = 0) rayPayloadNVX vec4 payload;
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
layout(location = 0) rayPayloadNV vec4 payload;
|
||||
void main()
|
||||
{
|
||||
const uint rayFlags = gl_RayFlagsNoneNVX | gl_RayFlagsOpaqueNVX |
|
||||
gl_RayFlagsNoOpaqueNVX | gl_RayFlagsTerminateOnFirstHitNVX |
|
||||
gl_RayFlagsSkipClosestHitShaderNVX | gl_RayFlagsCullBackFacingTrianglesNVX |
|
||||
gl_RayFlagsCullFrontFacingTrianglesNVX | gl_RayFlagsCullOpaqueNVX |
|
||||
gl_RayFlagsCullNoOpaqueNVX;
|
||||
const uint rayFlags = gl_RayFlagsNoneNV | gl_RayFlagsOpaqueNV |
|
||||
gl_RayFlagsNoOpaqueNV | gl_RayFlagsTerminateOnFirstHitNV |
|
||||
gl_RayFlagsSkipClosestHitShaderNV | gl_RayFlagsCullBackFacingTrianglesNV |
|
||||
gl_RayFlagsCullFrontFacingTrianglesNV | gl_RayFlagsCullOpaqueNV |
|
||||
gl_RayFlagsCullNoOpaqueNV;
|
||||
|
||||
const int payloadId = 1;
|
||||
traceNVX(accNV, rayFlags, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, payloadId);
|
||||
traceNV(accNV, rayFlags, 0, 1, 1, 0, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, payloadId);
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNVX accNV;
|
||||
layout(location = 0) rayPayloadNVX vec4 payload;
|
||||
layout(shaderRecordNVX) buffer block
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
layout(binding = 0, set = 0) uniform accelerationStructureNV accNV;
|
||||
layout(location = 0) rayPayloadNV vec4 payload;
|
||||
layout(shaderRecordNV) buffer block
|
||||
{
|
||||
float arr[4];
|
||||
vec4 pad;
|
||||
};
|
||||
void main()
|
||||
{
|
||||
uint lx = gl_LaunchIDNVX.x;
|
||||
uint ly = gl_LaunchIDNVX.y;
|
||||
uint sx = gl_LaunchSizeNVX.x;
|
||||
uint sy = gl_LaunchSizeNVX.y;
|
||||
traceNVX(accNV, lx, ly, sx, sy, 0u, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
uint lx = gl_LaunchIDNV.x;
|
||||
uint ly = gl_LaunchIDNV.y;
|
||||
uint sx = gl_LaunchSizeNV.x;
|
||||
uint sy = gl_LaunchSizeNV.y;
|
||||
traceNV(accNV, lx, ly, sx, sy, 0u, vec3(0.0f), 0.5f, vec3(1.0f), 0.75f, 1);
|
||||
arr[3] = 1.0f;
|
||||
pad = payload;
|
||||
}
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
#version 460
|
||||
#extension GL_NVX_raytracing : enable
|
||||
hitAttributeNVX vec4 payload; // ERROR, hitattributeNVX unsupported in this stage
|
||||
rayPayloadInNVX vec4 payloadIn; // ERROR, rayPayloadIn unsupported in this stage
|
||||
layout(shaderRecordNVX) uniform ublock // ERROR, shaderRecordNVX unsupported on uniform blocks
|
||||
#extension GL_NV_ray_tracing : enable
|
||||
hitAttributeNV vec4 payload; // ERROR, hitattributeNV unsupported in this stage
|
||||
rayPayloadInNV vec4 payloadIn; // ERROR, rayPayloadIn unsupported in this stage
|
||||
layout(shaderRecordNV) uniform ublock // ERROR, shaderRecordNV unsupported on uniform blocks
|
||||
{
|
||||
float a;
|
||||
};
|
||||
layout(binding = 0, shaderRecordNVX) buffer bblock { // ERROR, binding unsupported on shaderRecordNVX blocks
|
||||
layout(binding = 0, shaderRecordNV) buffer bblock { // ERROR, binding unsupported on shaderRecordNV blocks
|
||||
float b;
|
||||
};
|
||||
layout(set = 0, shaderRecordNVX) buffer bblock2 { // ERROR, set unsupported on shaderRecordNVX blocks
|
||||
layout(set = 0, shaderRecordNV) buffer bblock2 { // ERROR, set unsupported on shaderRecordNV blocks
|
||||
float c;
|
||||
};
|
||||
layout(shaderRecordNVX) buffer bblock3 {
|
||||
layout(shaderRecordNV) buffer bblock3 {
|
||||
float d;
|
||||
};
|
||||
layout(shaderRecordNVX) buffer bblock4 { // ERROR, cannot have more than one shaderRecordNVX block
|
||||
layout(shaderRecordNV) buffer bblock4 { // ERROR, cannot have more than one shaderRecordNVX block
|
||||
float e;
|
||||
};
|
||||
void main()
|
||||
{
|
||||
accelerationStructureNVX a = 0;
|
||||
accelerationStructureNV a = 0;
|
||||
int e0 = gl_PrimitiveID; // ERROR, unsupported builtin in stage
|
||||
int e1 = gl_InstanceID; // ERROR, unsupported builtin in stage
|
||||
int e3 = gl_InstanceCustomIndexNVX; // ERROR, unsupported builtin in stage
|
||||
vec3 e4 = gl_WorldRayOriginNVX; // ERROR, unsupported builtin in stage
|
||||
vec3 e5 = gl_WorldRayDirectionNVX; // ERROR, unsupported builtin in stage
|
||||
vec3 e6 = gl_ObjectRayOriginNVX; // ERROR, unsupported builtin in stage
|
||||
vec3 e7 = gl_ObjectRayDirectionNVX; // ERROR, unsupported builtin in stage
|
||||
float e8 = gl_RayTminNVX; // ERROR, unsupported builtin in stage
|
||||
float e9 = gl_RayTmaxNVX; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e10 = gl_ObjectToWorldNVX; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e11 = gl_WorldToObjectNVX; // ERROR, unsupported builtin in stage
|
||||
float e12 = gl_HitTNVX; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNVX; // ERROR, unsupported builtin in stage
|
||||
reportIntersectionNVX(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
ignoreIntersectionNVX(); // ERROR, unsupported builtin in stage
|
||||
terminateRayNVX(); // ERROR, unsupported builtin in stage
|
||||
int e3 = gl_InstanceCustomIndexNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e4 = gl_WorldRayOriginNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e5 = gl_WorldRayDirectionNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e6 = gl_ObjectRayOriginNV; // ERROR, unsupported builtin in stage
|
||||
vec3 e7 = gl_ObjectRayDirectionNV; // ERROR, unsupported builtin in stage
|
||||
float e8 = gl_RayTminNV; // ERROR, unsupported builtin in stage
|
||||
float e9 = gl_RayTmaxNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e10 = gl_ObjectToWorldNV; // ERROR, unsupported builtin in stage
|
||||
mat4x3 e11 = gl_WorldToObjectNV; // ERROR, unsupported builtin in stage
|
||||
float e12 = gl_HitTNV; // ERROR, unsupported builtin in stage
|
||||
float e13 = gl_HitKindNV; // ERROR, unsupported builtin in stage
|
||||
reportIntersectionNV(1.0, 1U); // ERROR, unsupported builtin in stage
|
||||
ignoreIntersectionNV(); // ERROR, unsupported builtin in stage
|
||||
terminateRayNV(); // ERROR, unsupported builtin in stage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user