summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/asm/comp/struct-resource-name-aliasing.asm.comp
blob: 384da305ad1e39655355e2b525f938ddc60268b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 7
; Bound: 21
; Schema: 0
               OpCapability Shader
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %main "main"
               OpExecutionMode %main LocalSize 8 8 1
               OpSource HLSL 500
               OpName %main "main"
               OpName %_main_ "@main("
               OpName %bufA "bufA"
               OpMemberName %bufA 0 "@data"
               OpName %bufA_0 "bufA"
               OpName %bufB "bufB"
               OpDecorate %_runtimearr_uint ArrayStride 4
               OpMemberDecorate %bufA 0 Offset 0
               OpDecorate %bufA BufferBlock
               OpDecorate %bufA_0 DescriptorSet 0
               OpDecorate %bufB DescriptorSet 0
               OpDecorate %bufA_0 Binding 0
               OpDecorate %bufB Binding 1
       %void = OpTypeVoid
          %3 = OpTypeFunction %void
       %uint = OpTypeInt 32 0
%_runtimearr_uint = OpTypeRuntimeArray %uint
       %bufA = OpTypeStruct %_runtimearr_uint
%_ptr_Uniform_bufA = OpTypePointer Uniform %bufA
     %bufA_0 = OpVariable %_ptr_Uniform_bufA Uniform
        %int = OpTypeInt 32 1
      %int_0 = OpConstant %int 0
     %uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
       %bufB = OpVariable %_ptr_Uniform_bufA Uniform
       %main = OpFunction %void None %3
          %5 = OpLabel
         %20 = OpFunctionCall %void %_main_
               OpReturn
               OpFunctionEnd
     %_main_ = OpFunction %void None %3
          %7 = OpLabel
         %17 = OpAccessChain %_ptr_Uniform_uint %bufA_0 %int_0 %int_0
               OpStore %17 %uint_0
         %19 = OpAccessChain %_ptr_Uniform_uint %bufB %int_0 %int_0
               OpStore %19 %uint_0
               OpReturn
               OpFunctionEnd