mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
81 lines
4.0 KiB
Plaintext
81 lines
4.0 KiB
Plaintext
spv.RayGenShaderMotion.rgen
|
|
// Module Version 10400
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 47
|
|
|
|
Capability RayTracingKHR
|
|
Capability RayTracingMotionBlurNV
|
|
Extension "SPV_KHR_ray_tracing"
|
|
Extension "SPV_NV_ray_tracing_motion_blur"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint RayGenerationKHR 4 "main" 11 21 29 46
|
|
Source GLSL 460
|
|
SourceExtension "GL_EXT_ray_tracing"
|
|
SourceExtension "GL_NV_ray_tracing_motion_blur"
|
|
Name 4 "main"
|
|
Name 8 "lx"
|
|
Name 11 "gl_LaunchIDEXT"
|
|
Name 16 "ly"
|
|
Name 20 "sx"
|
|
Name 21 "gl_LaunchSizeEXT"
|
|
Name 24 "sy"
|
|
Name 29 "accEXT"
|
|
Name 46 "payloadEXT"
|
|
Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
|
|
Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
|
|
Decorate 29(accEXT) DescriptorSet 0
|
|
Decorate 29(accEXT) Binding 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 0
|
|
7: TypePointer Function 6(int)
|
|
9: TypeVector 6(int) 3
|
|
10: TypePointer Input 9(ivec3)
|
|
11(gl_LaunchIDEXT): 10(ptr) Variable Input
|
|
12: 6(int) Constant 0
|
|
13: TypePointer Input 6(int)
|
|
17: 6(int) Constant 1
|
|
21(gl_LaunchSizeEXT): 10(ptr) Variable Input
|
|
27: TypeAccelerationStructureKHR
|
|
28: TypePointer UniformConstant 27
|
|
29(accEXT): 28(ptr) Variable UniformConstant
|
|
35: TypeFloat 32
|
|
36: TypeVector 35(float) 3
|
|
37: 35(float) Constant 1056964608
|
|
38: 36(fvec3) ConstantComposite 37 37 37
|
|
39: 35(float) Constant 1065353216
|
|
40: 36(fvec3) ConstantComposite 39 39 39
|
|
41: 35(float) Constant 1061158912
|
|
42: TypeInt 32 1
|
|
43: 42(int) Constant 0
|
|
44: TypeVector 35(float) 4
|
|
45: TypePointer RayPayloadKHR 44(fvec4)
|
|
46(payloadEXT): 45(ptr) Variable RayPayloadKHR
|
|
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_LaunchIDEXT) 12
|
|
15: 6(int) Load 14
|
|
Store 8(lx) 15
|
|
18: 13(ptr) AccessChain 11(gl_LaunchIDEXT) 17
|
|
19: 6(int) Load 18
|
|
Store 16(ly) 19
|
|
22: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12
|
|
23: 6(int) Load 22
|
|
Store 20(sx) 23
|
|
25: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17
|
|
26: 6(int) Load 25
|
|
Store 24(sy) 26
|
|
30: 27 Load 29(accEXT)
|
|
31: 6(int) Load 8(lx)
|
|
32: 6(int) Load 16(ly)
|
|
33: 6(int) Load 20(sx)
|
|
34: 6(int) Load 24(sy)
|
|
TraceRayMotionNV 30 31 32 33 34 12 38 37 40 41 37 46(payloadEXT)
|
|
Return
|
|
FunctionEnd
|