Debian Codegraph @

third_party/spirv-cross/shaders/asm/vert/empty-io.asm.vert

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 40
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Vertex %main "main" %position %_entryPointOutput_position %_entryPointOutput
10 OpName %main "main"
11 OpName %VSInput "VSInput"
12 OpMemberName %VSInput 0 "position"
13 OpName %VSOutput "VSOutput"
14 OpMemberName %VSOutput 0 "position"
15 OpName %_main_struct_VSInput_vf41_ "@main(struct-VSInput-vf41;"
16 OpName %_input "_input"
17 OpName %_out "_out"
18 OpName %_input_0 "_input"
19 OpName %position "position"
20 OpName %_entryPointOutput_position "@entryPointOutput_position"
21 OpName %param "param"
22 OpName %VSOutput_0 "VSOutput"
23 OpName %_entryPointOutput "@entryPointOutput"
24 OpDecorate %position Location 0
25 OpDecorate %_entryPointOutput_position BuiltIn Position
26 OpDecorate %_entryPointOutput Location 0
27 %void = OpTypeVoid
28 %3 = OpTypeFunction %void
29 %float = OpTypeFloat 32
30 %v4float = OpTypeVector %float 4
31 %VSInput = OpTypeStruct %v4float
32 %_ptr_Function_VSInput = OpTypePointer Function %VSInput
33 %VSOutput = OpTypeStruct %v4float
34 %11 = OpTypeFunction %VSOutput %_ptr_Function_VSInput
35 %_ptr_Function_VSOutput = OpTypePointer Function %VSOutput
36 %int = OpTypeInt 32 1
37 %18 = OpConstant %int 0
38 %_ptr_Function_v4float = OpTypePointer Function %v4float
39 %_ptr_Input_v4float = OpTypePointer Input %v4float
40 %position = OpVariable %_ptr_Input_v4float Input
41 %_ptr_Output_v4float = OpTypePointer Output %v4float
42 %_entryPointOutput_position = OpVariable %_ptr_Output_v4float Output
43 %VSOutput_0 = OpTypeStruct
44 %_ptr_Output_VSOutput_0 = OpTypePointer Output %VSOutput_0
45 %_entryPointOutput = OpVariable %_ptr_Output_VSOutput_0 Output
46 %main = OpFunction %void None %3
47 %5 = OpLabel
48 %_input_0 = OpVariable %_ptr_Function_VSInput Function
49 %param = OpVariable %_ptr_Function_VSInput Function
50 %29 = OpLoad %v4float %position
51 %30 = OpAccessChain %_ptr_Function_v4float %_input_0 %18
52 OpStore %30 %29
53 %34 = OpLoad %VSInput %_input_0
54 OpStore %param %34
55 %35 = OpFunctionCall %VSOutput %_main_struct_VSInput_vf41_ %param
56 %36 = OpCompositeExtract %v4float %35 0
57 OpStore %_entryPointOutput_position %36
58 OpReturn
59 OpFunctionEnd
60 %_main_struct_VSInput_vf41_ = OpFunction %VSOutput None %11
61 %_input = OpFunctionParameter %_ptr_Function_VSInput
62 %14 = OpLabel
63 %_out = OpVariable %_ptr_Function_VSOutput Function
64 %20 = OpAccessChain %_ptr_Function_v4float %_input %18
65 %21 = OpLoad %v4float %20
66 %22 = OpAccessChain %_ptr_Function_v4float %_out %18
67 OpStore %22 %21
68 %23 = OpLoad %VSOutput %_out
69 OpReturnValue %23
70 OpFunctionEnd