Reuse loads generated for repeated function arguments
This commit is contained in:
parent
0e311906b9
commit
6a8b2b2439
11 changed files with 9106 additions and 9441 deletions
|
|
@ -1,7 +1,7 @@
|
|||
spv.ext.MissShader.rmiss
|
||||
// Module Version 10400
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 94
|
||||
// Id's are bound by 92
|
||||
|
||||
Capability MinLod
|
||||
Capability GroupNonUniform
|
||||
|
|
@ -16,7 +16,7 @@ spv.ext.MissShader.rmiss
|
|||
Extension "SPV_NV_shader_sm_builtins"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint MissKHR 4 "main" 11 14 21 24 29 32 37 41 56 57 62 67 78 82 89 93
|
||||
EntryPoint MissKHR 4 "main" 11 14 21 24 29 32 37 41 56 57 62 67 78 82 87 91
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_ARB_shader_ballot"
|
||||
SourceExtension "GL_ARB_sparse_texture_clamp"
|
||||
|
|
@ -48,8 +48,8 @@ spv.ext.MissShader.rmiss
|
|||
Name 74 "texel"
|
||||
Name 78 "s2D"
|
||||
Name 82 "c2"
|
||||
Name 89 "lodClamp"
|
||||
Name 93 "localPayload"
|
||||
Name 87 "lodClamp"
|
||||
Name 91 "localPayload"
|
||||
Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
|
||||
Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
|
||||
Decorate 21(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR
|
||||
|
|
@ -71,7 +71,7 @@ spv.ext.MissShader.rmiss
|
|||
Decorate 78(s2D) DescriptorSet 0
|
||||
Decorate 78(s2D) Binding 1
|
||||
Decorate 82(c2) Location 2
|
||||
Decorate 89(lodClamp) Location 3
|
||||
Decorate 87(lodClamp) Location 3
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
|
|
@ -124,12 +124,12 @@ spv.ext.MissShader.rmiss
|
|||
80: TypeVector 16(float) 2
|
||||
81: TypePointer Input 80(fvec2)
|
||||
82(c2): 81(ptr) Variable Input
|
||||
86: TypeVector 52(int) 2
|
||||
87: 52(int) Constant 5
|
||||
88: 86(ivec2) ConstantComposite 87 87
|
||||
89(lodClamp): 28(ptr) Variable Input
|
||||
92: TypePointer RayPayloadKHR 54(fvec4)
|
||||
93(localPayload): 92(ptr) Variable RayPayloadKHR
|
||||
84: TypeVector 52(int) 2
|
||||
85: 52(int) Constant 5
|
||||
86: 84(ivec2) ConstantComposite 85 85
|
||||
87(lodClamp): 28(ptr) Variable Input
|
||||
90: TypePointer RayPayloadKHR 54(fvec4)
|
||||
91(localPayload): 90(ptr) Variable RayPayloadKHR
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(v0): 8(ptr) Variable Function
|
||||
|
|
@ -169,10 +169,8 @@ spv.ext.MissShader.rmiss
|
|||
Store 72 70
|
||||
79: 76 Load 78(s2D)
|
||||
83: 80(fvec2) Load 82(c2)
|
||||
84: 80(fvec2) Load 82(c2)
|
||||
85: 80(fvec2) Load 82(c2)
|
||||
90: 16(float) Load 89(lodClamp)
|
||||
91: 54(fvec4) ImageSampleExplicitLod 79 83 Grad ConstOffset MinLod 84 85 88 90
|
||||
Store 74(texel) 91
|
||||
88: 16(float) Load 87(lodClamp)
|
||||
89: 54(fvec4) ImageSampleExplicitLod 79 83 Grad ConstOffset MinLod 83 83 86 88
|
||||
Store 74(texel) 89
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue