Debian Codegraph @

third_party/spirv-cross/shaders-hlsl-no-opt/asm/comp/access-chain-load-store-composite.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 8
4 ; Bound: 437
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint GLCompute %main "main"
10 OpExecutionMode %main LocalSize 1 1 1
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %Baz "Baz"
14 OpMemberName %Baz 0 "c"
15 OpName %Bar "Bar"
16 OpMemberName %Bar 0 "d"
17 OpMemberName %Bar 1 "baz"
18 OpName %Foo "Foo"
19 OpMemberName %Foo 0 "a"
20 OpMemberName %Foo 1 "b"
21 OpMemberName %Foo 2 "c"
22 OpName %Baz_0 "Baz"
23 OpMemberName %Baz_0 0 "c"
24 OpName %Bar_0 "Bar"
25 OpMemberName %Bar_0 0 "d"
26 OpMemberName %Bar_0 1 "baz"
27 OpName %Foo_0 "Foo"
28 OpMemberName %Foo_0 0 "a"
29 OpMemberName %Foo_0 1 "b"
30 OpMemberName %Foo_0 2 "c"
31 OpName %SSBO "SSBO"
32 OpMemberName %SSBO 0 "foo"
33 OpMemberName %SSBO 1 "foo2"
34 OpName %_ ""
35 OpDecorate %_arr_float_uint_4_0 ArrayStride 4
36 OpDecorate %_arr__arr_float_uint_4_0_uint_2 ArrayStride 16
37 OpMemberDecorate %Baz_0 0 Offset 0
38 OpDecorate %_arr_Baz_0_uint_2 ArrayStride 4
39 OpMemberDecorate %Bar_0 0 Offset 0
40 OpMemberDecorate %Bar_0 1 Offset 32
41 OpDecorate %_arr_Bar_0_uint_5 ArrayStride 40
42 OpMemberDecorate %Foo_0 0 RowMajor
43 OpMemberDecorate %Foo_0 0 Offset 0
44 OpMemberDecorate %Foo_0 0 MatrixStride 8
45 OpMemberDecorate %Foo_0 1 Offset 16
46 OpMemberDecorate %Foo_0 2 Offset 24
47 OpMemberDecorate %SSBO 0 Offset 0
48 OpMemberDecorate %SSBO 1 Offset 224
49 OpDecorate %SSBO BufferBlock
50 OpDecorate %_ DescriptorSet 0
51 OpDecorate %_ Binding 0
52 OpDecorate %gl_WorkGroupSize BuiltIn WorkgroupSize
53 %void = OpTypeVoid
54 %3 = OpTypeFunction %void
55 %float = OpTypeFloat 32
56 %v2float = OpTypeVector %float 2
57 %mat2v2float = OpTypeMatrix %v2float 2
58 %uint = OpTypeInt 32 0
59 %uint_4 = OpConstant %uint 4
60 %_arr_float_uint_4 = OpTypeArray %float %uint_4
61 %uint_2 = OpConstant %uint 2
62 %_arr__arr_float_uint_4_uint_2 = OpTypeArray %_arr_float_uint_4 %uint_2
63 %Baz = OpTypeStruct %float
64 %_arr_Baz_uint_2 = OpTypeArray %Baz %uint_2
65 %Bar = OpTypeStruct %_arr__arr_float_uint_4_uint_2 %_arr_Baz_uint_2
66 %uint_5 = OpConstant %uint 5
67 %_arr_Bar_uint_5 = OpTypeArray %Bar %uint_5
68 %Foo = OpTypeStruct %mat2v2float %v2float %_arr_Bar_uint_5
69 %_ptr_Function_Foo = OpTypePointer Function %Foo
70 %_arr_float_uint_4_0 = OpTypeArray %float %uint_4
71 %_arr__arr_float_uint_4_0_uint_2 = OpTypeArray %_arr_float_uint_4_0 %uint_2
72 %Baz_0 = OpTypeStruct %float
73 %_arr_Baz_0_uint_2 = OpTypeArray %Baz_0 %uint_2
74 %Bar_0 = OpTypeStruct %_arr__arr_float_uint_4_0_uint_2 %_arr_Baz_0_uint_2
75 %_arr_Bar_0_uint_5 = OpTypeArray %Bar_0 %uint_5
76 %Foo_0 = OpTypeStruct %mat2v2float %v2float %_arr_Bar_0_uint_5
77 %SSBO = OpTypeStruct %Foo_0 %Foo_0
78 %_ptr_Uniform_SSBO = OpTypePointer Uniform %SSBO
79 %_ = OpVariable %_ptr_Uniform_SSBO Uniform
80 %int = OpTypeInt 32 1
81 %int_0 = OpConstant %int 0
82 %_ptr_Uniform_Foo_0 = OpTypePointer Uniform %Foo_0
83 %_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
84 %int_1 = OpConstant %int 1
85 %_ptr_Function_v2float = OpTypePointer Function %v2float
86 %int_2 = OpConstant %int 2
87 %_ptr_Function__arr_Bar_uint_5 = OpTypePointer Function %_arr_Bar_uint_5
88 %_ptr_Function_Bar = OpTypePointer Function %Bar
89 %_ptr_Function__arr__arr_float_uint_4_uint_2 = OpTypePointer Function %_arr__arr_float_uint_4_uint_2
90 %_ptr_Function__arr_float_uint_4 = OpTypePointer Function %_arr_float_uint_4
91 %_ptr_Function_float = OpTypePointer Function %float
92 %int_3 = OpConstant %int 3
93 %_ptr_Function__arr_Baz_uint_2 = OpTypePointer Function %_arr_Baz_uint_2
94 %_ptr_Function_Baz = OpTypePointer Function %Baz
95 %int_4 = OpConstant %int 4
96 %float_1 = OpConstant %float 1
97 %float_2 = OpConstant %float 2
98 %float_5 = OpConstant %float 5
99 %_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
100 %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
101 %_ptr_Uniform__arr_Bar_0_uint_5 = OpTypePointer Uniform %_arr_Bar_0_uint_5
102 %_ptr_Uniform_Bar_0 = OpTypePointer Uniform %Bar_0
103 %_ptr_Uniform__arr__arr_float_uint_4_0_uint_2 = OpTypePointer Uniform %_arr__arr_float_uint_4_0_uint_2
104 %_ptr_Uniform__arr_float_uint_4_0 = OpTypePointer Uniform %_arr_float_uint_4_0
105 %_ptr_Uniform_float = OpTypePointer Uniform %float
106 %_ptr_Uniform__arr_Baz_0_uint_2 = OpTypePointer Uniform %_arr_Baz_0_uint_2
107 %_ptr_Uniform_Baz_0 = OpTypePointer Uniform %Baz_0
108 %v3uint = OpTypeVector %uint 3
109 %uint_1 = OpConstant %uint 1
110 %gl_WorkGroupSize = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
111 %main = OpFunction %void None %3
112 %5 = OpLabel
113 %ptr_load = OpAccessChain %_ptr_Uniform_Foo_0 %_ %int_0
114 %ptr_store = OpAccessChain %_ptr_Uniform_Foo_0 %_ %int_1
115 %loaded = OpLoad %Foo_0 %ptr_load
116 OpStore %ptr_store %loaded
117 OpReturn
118 OpFunctionEnd