Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/vert/packed-bool2-to-packed_uint2.asm.vert

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 64
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Vertex %main "main" %_ %gl_VertexIndex %a_position
10 OpSource GLSL 450
11 OpName %main "main"
12 OpName %gl_PerVertex "gl_PerVertex"
13 OpMemberName %gl_PerVertex 0 "gl_Position"
14 OpMemberName %gl_PerVertex 1 "gl_PointSize"
15 OpMemberName %gl_PerVertex 2 "gl_ClipDistance"
16 OpMemberName %gl_PerVertex 3 "gl_CullDistance"
17 OpName %_ ""
18 OpName %Struct "Struct"
19 OpMemberName %Struct 0 "flags"
20 OpName %defaultUniformsVS "defaultUniformsVS"
21 OpMemberName %defaultUniformsVS 0 "flags"
22 OpMemberName %defaultUniformsVS 1 "uquad"
23 OpMemberName %defaultUniformsVS 2 "umatrix"
24 OpName %__0 ""
25 OpName %gl_VertexIndex "gl_VertexIndex"
26 OpName %a_position "a_position"
27 OpMemberDecorate %gl_PerVertex 0 BuiltIn Position
28 OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize
29 OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance
30 OpMemberDecorate %gl_PerVertex 3 BuiltIn CullDistance
31 OpDecorate %gl_PerVertex Block
32 OpDecorate %_arr_v2uint_uint_1 ArrayStride 16
33 OpMemberDecorate %Struct 0 Offset 0
34 OpDecorate %_arr_v2float_uint_4 ArrayStride 16
35 OpMemberDecorate %defaultUniformsVS 0 Offset 0
36 OpMemberDecorate %defaultUniformsVS 1 Offset 16
37 OpMemberDecorate %defaultUniformsVS 2 ColMajor
38 OpMemberDecorate %defaultUniformsVS 2 Offset 80
39 OpMemberDecorate %defaultUniformsVS 2 MatrixStride 16
40 OpDecorate %defaultUniformsVS Block
41 OpDecorate %__0 DescriptorSet 0
42 OpDecorate %__0 Binding 0
43 OpDecorate %gl_VertexIndex BuiltIn VertexIndex
44 OpDecorate %a_position Location 0
45 %void = OpTypeVoid
46 %3 = OpTypeFunction %void
47 %float = OpTypeFloat 32
48 %v4float = OpTypeVector %float 4
49 %uint = OpTypeInt 32 0
50 %uint_1 = OpConstant %uint 1
51 %_arr_float_uint_1 = OpTypeArray %float %uint_1
52 %gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1
53 %_ptr_Output_gl_PerVertex = OpTypePointer Output %gl_PerVertex
54 %_ = OpVariable %_ptr_Output_gl_PerVertex Output
55 %int = OpTypeInt 32 1
56 %int_0 = OpConstant %int 0
57 %v2uint = OpTypeVector %uint 2
58 %_arr_v2uint_uint_1 = OpTypeArray %v2uint %uint_1
59 %Struct = OpTypeStruct %_arr_v2uint_uint_1
60 %v2float = OpTypeVector %float 2
61 %uint_4 = OpConstant %uint 4
62 %_arr_v2float_uint_4 = OpTypeArray %v2float %uint_4
63 %mat4v4float = OpTypeMatrix %v4float 4
64 %defaultUniformsVS = OpTypeStruct %Struct %_arr_v2float_uint_4 %mat4v4float
65 %_ptr_Uniform_defaultUniformsVS = OpTypePointer Uniform %defaultUniformsVS
66 %__0 = OpVariable %_ptr_Uniform_defaultUniformsVS Uniform
67 %int_2 = OpConstant %int 2
68 %_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
69 %int_1 = OpConstant %int 1
70 %_ptr_Input_int = OpTypePointer Input %int
71 %gl_VertexIndex = OpVariable %_ptr_Input_int Input
72 %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
73 %_ptr_Input_v4float = OpTypePointer Input %v4float
74 %a_position = OpVariable %_ptr_Input_v4float Input
75 %uint_2 = OpConstant %uint 2
76 %_ptr_Input_float = OpTypePointer Input %float
77 %uint_3 = OpConstant %uint 3
78 %_ptr_Output_v4float = OpTypePointer Output %v4float
79 %bool = OpTypeBool
80 %v2bool = OpTypeVector %bool 2
81 %uint_0 = OpConstant %uint 0
82 %_ptr_Uniform_uint = OpTypePointer Uniform %uint
83 %float_0 = OpConstant %float 0
84 %_ptr_Output_float = OpTypePointer Output %float
85 %main = OpFunction %void None %3
86 %5 = OpLabel
87 %28 = OpAccessChain %_ptr_Uniform_mat4v4float %__0 %int_2
88 %29 = OpLoad %mat4v4float %28
89 %33 = OpLoad %int %gl_VertexIndex
90 %35 = OpAccessChain %_ptr_Uniform_v2float %__0 %int_1 %33
91 %36 = OpLoad %v2float %35
92 %41 = OpAccessChain %_ptr_Input_float %a_position %uint_2
93 %42 = OpLoad %float %41
94 %44 = OpAccessChain %_ptr_Input_float %a_position %uint_3
95 %45 = OpLoad %float %44
96 %46 = OpCompositeExtract %float %36 0
97 %47 = OpCompositeExtract %float %36 1
98 %48 = OpCompositeConstruct %v4float %46 %47 %42 %45
99 %49 = OpMatrixTimesVector %v4float %29 %48
100 %51 = OpAccessChain %_ptr_Output_v4float %_ %int_0
101 OpStore %51 %49
102 %56 = OpAccessChain %_ptr_Uniform_uint %__0 %int_0 %int_0 %int_0 %uint_0
103 %57 = OpLoad %uint %56
104 %58 = OpINotEqual %bool %57 %uint_0
105 OpSelectionMerge %60 None
106 OpBranchConditional %58 %59 %60
107 %59 = OpLabel
108 %63 = OpAccessChain %_ptr_Output_float %_ %int_0 %uint_2
109 OpStore %63 %float_0
110 OpBranch %60
111 %60 = OpLabel
112 OpReturn
113 OpFunctionEnd