Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/asm/packing/scalar-float2x3-row-major.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Google spiregg; 0
4 ; Bound: 30
5 ; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %main "main" %out_var_SV_Target
9 OpExecutionMode %main OriginUpperLeft
10 OpSource HLSL 600
11 OpName %type_Foo "type.Foo"
12 OpMemberName %type_Foo 0 "a"
13 OpMemberName %type_Foo 1 "b"
14 OpName %Foo "Foo"
15 OpName %out_var_SV_Target "out.var.SV_Target"
16 OpName %main "main"
17 OpDecorate %out_var_SV_Target Location 0
18 OpDecorate %Foo DescriptorSet 0
19 OpDecorate %Foo Binding 0
20 OpMemberDecorate %type_Foo 0 Offset 0
21 OpMemberDecorate %type_Foo 0 MatrixStride 16
22 OpMemberDecorate %type_Foo 0 RowMajor
23 OpMemberDecorate %type_Foo 1 Offset 40
24 OpDecorate %type_Foo Block
25 %uint = OpTypeInt 32 0
26 %uint_0 = OpConstant %uint 0
27 %int = OpTypeInt 32 1
28 %int_0 = OpConstant %int 0
29 %uint_1 = OpConstant %uint 1
30 %int_1 = OpConstant %int 1
31 %float = OpTypeFloat 32
32 %v3float = OpTypeVector %float 3
33 %mat2v3float = OpTypeMatrix %v3float 2
34 %type_Foo = OpTypeStruct %mat2v3float %float
35 %_ptr_Uniform_type_Foo = OpTypePointer Uniform %type_Foo
36 %_ptr_Output_v3float = OpTypePointer Output %v3float
37 %void = OpTypeVoid
38 %17 = OpTypeFunction %void
39 %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
40 %_ptr_Uniform_float = OpTypePointer Uniform %float
41 %Foo = OpVariable %_ptr_Uniform_type_Foo Uniform
42 %out_var_SV_Target = OpVariable %_ptr_Output_v3float Output
43 %main = OpFunction %void None %17
44 %20 = OpLabel
45 %21 = OpAccessChain %_ptr_Uniform_v3float %Foo %int_0 %uint_0
46 %22 = OpLoad %v3float %21
47 %23 = OpAccessChain %_ptr_Uniform_v3float %Foo %int_0 %uint_1
48 %24 = OpLoad %v3float %23
49 %25 = OpFAdd %v3float %22 %24
50 %26 = OpAccessChain %_ptr_Uniform_float %Foo %int_1
51 %27 = OpLoad %float %26
52 %28 = OpCompositeConstruct %v3float %27 %27 %27
53 %29 = OpFAdd %v3float %25 %28
54 OpStore %out_var_SV_Target %29
55 OpReturn
56 OpFunctionEnd