1spv.intrinsicsSpirvByReference.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 30 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Vertex 4 "main" 15 17 26 10 Source GLSL 450 11 SourceExtension "GL_EXT_spirv_intrinsics" 12 Name 4 "main" 13 Name 10 "func(f1;" 14 Name 9 "f" 15 Name 15 "vec2Out" 16 Name 17 "floatIn" 17 Name 26 "floatOut" 18 Name 27 "param" 19 Decorate 15(vec2Out) Location 0 20 Decorate 17(floatIn) Location 0 21 Decorate 26(floatOut) Location 1 22 2: TypeVoid 23 3: TypeFunction 2 24 6: TypeFloat 32 25 7: TypePointer Function 6(float) 26 8: TypeFunction 2 7(ptr) 27 12: 6(float) Constant 1056964608 28 13: TypeVector 6(float) 2 29 14: TypePointer Output 13(fvec2) 30 15(vec2Out): 14(ptr) Variable Output 31 16: TypePointer Input 6(float) 32 17(floatIn): 16(ptr) Variable Input 33 19: TypeInt 32 0 34 20: 19(int) Constant 1 35 21: TypePointer Output 6(float) 36 24: 19(int) Constant 0 37 26(floatOut): 21(ptr) Variable Output 38 4(main): 2 Function None 3 39 5: Label 40 27(param): 7(ptr) Variable Function 41 18: 6(float) Load 17(floatIn) 42 22: 21(ptr) AccessChain 15(vec2Out) 20 43 23: 6(float) ExtInst 1(GLSL.std.450) 35(Modf) 18 22 44 25: 21(ptr) AccessChain 15(vec2Out) 24 45 Store 25 23 46 28: 6(float) Load 26(floatOut) 47 Store 27(param) 28 48 29: 2 FunctionCall 10(func(f1;) 27(param) 49 Return 50 FunctionEnd 51 10(func(f1;): 2 Function None 8 52 9(f): 7(ptr) FunctionParameter 53 11: Label 54 Store 9(f) 12 55 Return 56 FunctionEnd 57