1 spv.buffer.autoassign.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 50 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 47 10 ExecutionMode 4 OriginUpperLeft 11 Source HLSL 500 12 Name 4 "main" 13 Name 8 "PS_OUTPUT" 14 MemberName 8(PS_OUTPUT) 0 "Color" 15 Name 10 "@main(" 16 Name 13 "psout" 17 Name 16 "MyUB1" 18 MemberName 16(MyUB1) 0 "g_a" 19 MemberName 16(MyUB1) 1 "g_b" 20 Name 18 "" 21 Name 28 "MyUB2" 22 MemberName 28(MyUB2) 0 "g_c" 23 Name 30 "" 24 Name 34 "MyUB3" 25 MemberName 34(MyUB3) 0 "g_d" 26 Name 36 "" 27 Name 47 "@entryPointOutput.Color" 28 MemberDecorate 16(MyUB1) 0 Offset 0 29 MemberDecorate 16(MyUB1) 1 Offset 4 30 Decorate 16(MyUB1) Block 31 Decorate 18 DescriptorSet 0 32 Decorate 18 Binding 20 33 MemberDecorate 28(MyUB2) 0 Offset 0 34 Decorate 28(MyUB2) Block 35 Decorate 30 DescriptorSet 0 36 Decorate 30 Binding 15 37 MemberDecorate 34(MyUB3) 0 Offset 0 38 Decorate 34(MyUB3) Block 39 Decorate 36 DescriptorSet 0 40 Decorate 36 Binding 16 41 Decorate 47(@entryPointOutput.Color) Location 0 42 2: TypeVoid 43 3: TypeFunction 2 44 6: TypeFloat 32 45 7: TypeVector 6(float) 4 46 8(PS_OUTPUT): TypeStruct 7(fvec4) 47 9: TypeFunction 8(PS_OUTPUT) 48 12: TypePointer Function 8(PS_OUTPUT) 49 14: TypeInt 32 1 50 15: 14(int) Constant 0 51 16(MyUB1): TypeStruct 6(float) 14(int) 52 17: TypePointer Uniform 16(MyUB1) 53 18: 17(ptr) Variable Uniform 54 19: TypePointer Uniform 6(float) 55 22: 14(int) Constant 1 56 23: TypePointer Uniform 14(int) 57 28(MyUB2): TypeStruct 6(float) 58 29: TypePointer Uniform 28(MyUB2) 59 30: 29(ptr) Variable Uniform 60 34(MyUB3): TypeStruct 6(float) 61 35: TypePointer Uniform 34(MyUB3) 62 36: 35(ptr) Variable Uniform 63 41: TypePointer Function 7(fvec4) 64 46: TypePointer Output 7(fvec4) 65 47(@entryPointOutput.Color): 46(ptr) Variable Output 66 4(main): 2 Function None 3 67 5: Label 68 48:8(PS_OUTPUT) FunctionCall 10(@main() 69 49: 7(fvec4) CompositeExtract 48 0 70 Store 47(@entryPointOutput.Color) 49 71 Return 72 FunctionEnd 73 10(@main():8(PS_OUTPUT) Function None 9 74 11: Label 75 13(psout): 12(ptr) Variable Function 76 20: 19(ptr) AccessChain 18 15 77 21: 6(float) Load 20 78 24: 23(ptr) AccessChain 18 22 79 25: 14(int) Load 24 80 26: 6(float) ConvertSToF 25 81 27: 6(float) FAdd 21 26 82 31: 19(ptr) AccessChain 30 15 83 32: 6(float) Load 31 84 33: 6(float) FAdd 27 32 85 37: 19(ptr) AccessChain 36 15 86 38: 6(float) Load 37 87 39: 6(float) FAdd 33 38 88 40: 7(fvec4) CompositeConstruct 39 39 39 39 89 42: 41(ptr) AccessChain 13(psout) 15 90 Store 42 40 91 43:8(PS_OUTPUT) Load 13(psout) 92 ReturnValue 43 93 FunctionEnd 94