1hlsl.autosampledtextures.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 45 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "MainPs" 36 40 10 ExecutionMode 4 OriginUpperLeft 11 Source HLSL 500 12 Name 4 "MainPs" 13 Name 8 "PS_INPUT" 14 MemberName 8(PS_INPUT) 0 "vTextureCoords" 15 Name 11 "PS_OUTPUT" 16 MemberName 11(PS_OUTPUT) 0 "vColor" 17 Name 14 "@MainPs(struct-PS_INPUT-vf21;" 18 Name 13 "i" 19 Name 17 "ps_output" 20 Name 23 "g_tColor" 21 Name 34 "i" 22 Name 36 "i.vTextureCoords" 23 Name 40 "@entryPointOutput.vColor" 24 Name 41 "param" 25 Decorate 23(g_tColor) DescriptorSet 0 26 Decorate 23(g_tColor) Binding 0 27 Decorate 36(i.vTextureCoords) Location 0 28 Decorate 40(@entryPointOutput.vColor) Location 0 29 2: TypeVoid 30 3: TypeFunction 2 31 6: TypeFloat 32 32 7: TypeVector 6(float) 2 33 8(PS_INPUT): TypeStruct 7(fvec2) 34 9: TypePointer Function 8(PS_INPUT) 35 10: TypeVector 6(float) 4 36 11(PS_OUTPUT): TypeStruct 10(fvec4) 37 12: TypeFunction 11(PS_OUTPUT) 9(ptr) 38 16: TypePointer Function 11(PS_OUTPUT) 39 18: TypeInt 32 1 40 19: 18(int) Constant 0 41 20: TypeImage 6(float) 2D sampled format:Unknown 42 21: TypeSampledImage 20 43 22: TypePointer UniformConstant 21 44 23(g_tColor): 22(ptr) Variable UniformConstant 45 25: TypePointer Function 7(fvec2) 46 29: TypePointer Function 10(fvec4) 47 35: TypePointer Input 7(fvec2) 4836(i.vTextureCoords): 35(ptr) Variable Input 49 39: TypePointer Output 10(fvec4) 5040(@entryPointOutput.vColor): 39(ptr) Variable Output 51 4(MainPs): 2 Function None 3 52 5: Label 53 34(i): 9(ptr) Variable Function 54 41(param): 9(ptr) Variable Function 55 37: 7(fvec2) Load 36(i.vTextureCoords) 56 38: 25(ptr) AccessChain 34(i) 19 57 Store 38 37 58 42: 8(PS_INPUT) Load 34(i) 59 Store 41(param) 42 60 43:11(PS_OUTPUT) FunctionCall 14(@MainPs(struct-PS_INPUT-vf21;) 41(param) 61 44: 10(fvec4) CompositeExtract 43 0 62 Store 40(@entryPointOutput.vColor) 44 63 Return 64 FunctionEnd 6514(@MainPs(struct-PS_INPUT-vf21;):11(PS_OUTPUT) Function None 12 66 13(i): 9(ptr) FunctionParameter 67 15: Label 68 17(ps_output): 16(ptr) Variable Function 69 24: 21 Load 23(g_tColor) 70 26: 25(ptr) AccessChain 13(i) 19 71 27: 7(fvec2) Load 26 72 28: 10(fvec4) ImageSampleImplicitLod 24 27 73 30: 29(ptr) AccessChain 17(ps_output) 19 74 Store 30 28 75 31:11(PS_OUTPUT) Load 17(ps_output) 76 ReturnValue 31 77 FunctionEnd 78