Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/comp/struct-resource-name-aliasing.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 21
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 8 8 1
11 OpSource HLSL 500
12 OpName %main "main"
13 OpName %_main_ "@main("
14 OpName %bufA "bufA"
15 OpMemberName %bufA 0 "@data"
16 OpName %bufA_0 "bufA"
17 OpName %bufB "bufB"
18 OpDecorate %_runtimearr_uint ArrayStride 4
19 OpMemberDecorate %bufA 0 Offset 0
20 OpDecorate %bufA BufferBlock
21 OpDecorate %bufA_0 DescriptorSet 0
22 OpDecorate %bufB DescriptorSet 0
23 OpDecorate %bufA_0 Binding 0
24 OpDecorate %bufB Binding 1
25 %void = OpTypeVoid
26 %3 = OpTypeFunction %void
27 %uint = OpTypeInt 32 0
28 %_runtimearr_uint = OpTypeRuntimeArray %uint
29 %bufA = OpTypeStruct %_runtimearr_uint
30 %_ptr_Uniform_bufA = OpTypePointer Uniform %bufA
31 %bufA_0 = OpVariable %_ptr_Uniform_bufA Uniform
32 %int = OpTypeInt 32 1
33 %int_0 = OpConstant %int 0
34 %uint_0 = OpConstant %uint 0
35 %_ptr_Uniform_uint = OpTypePointer Uniform %uint
36 %bufB = OpVariable %_ptr_Uniform_bufA Uniform
37 %main = OpFunction %void None %3
38 %5 = OpLabel
39 %20 = OpFunctionCall %void %_main_
40 OpReturn
41 OpFunctionEnd
42 %_main_ = OpFunction %void None %3
43 %7 = OpLabel
44 %17 = OpAccessChain %_ptr_Uniform_uint %bufA_0 %int_0 %int_0
45 OpStore %17 %uint_0
46 %19 = OpAccessChain %_ptr_Uniform_uint %bufB %int_0 %int_0
47 OpStore %19 %uint_0
48 OpReturn
49 OpFunctionEnd