Debian Codegraph @

third_party/spirv-cross/shaders/asm/geom/split-access-chain-input.asm.geom

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 3
4 ; Bound: 23
5 ; Schema: 0
6 OpCapability Geometry
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Geometry %main "main" %gl_in %position
10 OpExecutionMode %main Triangles
11 OpExecutionMode %main Invocations 1
12 OpExecutionMode %main OutputTriangleStrip
13 OpExecutionMode %main OutputVertices 3
14 OpSource GLSL 440
15 OpName %main "main"
16 OpName %position "position"
17 OpName %gl_PerVertex "gl_PerVertex"
18 OpMemberName %gl_PerVertex 0 "gl_Position"
19 OpMemberName %gl_PerVertex 1 "gl_PointSize"
20 OpMemberName %gl_PerVertex 2 "gl_ClipDistance"
21 OpName %gl_in "gl_in"
22 OpMemberDecorate %gl_PerVertex 0 BuiltIn Position
23 OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize
24 OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance
25 OpDecorate %gl_PerVertex Block
26 OpDecorate %position BuiltIn Position
27 %void = OpTypeVoid
28 %3 = OpTypeFunction %void
29 %float = OpTypeFloat 32
30 %v4float = OpTypeVector %float 4
31 %_ptr_Function_v4float = OpTypePointer Output %v4float
32 %uint = OpTypeInt 32 0
33 %uint_1 = OpConstant %uint 1
34 %_arr_float_uint_1 = OpTypeArray %float %uint_1
35 %gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1
36 %uint_3 = OpConstant %uint 3
37 %_arr_gl_PerVertex_uint_3 = OpTypeArray %gl_PerVertex %uint_3
38 %ptr_Input_gl_PerVertex = OpTypePointer Input %gl_PerVertex
39 %_ptr_Input__arr_gl_PerVertex_uint_3 = OpTypePointer Input %_arr_gl_PerVertex_uint_3
40 %gl_in = OpVariable %_ptr_Input__arr_gl_PerVertex_uint_3 Input
41 %position = OpVariable %_ptr_Function_v4float Output
42 %int = OpTypeInt 32 1
43 %int_0 = OpConstant %int 0
44 %_ptr_Input_v4float = OpTypePointer Input %v4float
45 %main = OpFunction %void None %3
46 %5 = OpLabel
47 %21 = OpAccessChain %ptr_Input_gl_PerVertex %gl_in %int_0
48 %22 = OpAccessChain %_ptr_Input_v4float %21 %int_0
49 %23 = OpLoad %v4float %22
50 OpStore %position %23
51 OpReturn
52 OpFunctionEnd