Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/asm/comp/access-chain-invalidate.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Google Shaderc over Glslang; 7
4 ; Bound: 41
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 OpSourceExtension "GL_GOOGLE_cpp_style_line_directive"
13 OpSourceExtension "GL_GOOGLE_include_directive"
14 OpName %main "main"
15 OpName %SSBO "SSBO"
16 OpMemberName %SSBO 0 "index"
17 OpMemberName %SSBO 1 "array"
18 OpName %_ ""
19 OpDecorate %_arr_uint_uint_64 ArrayStride 4
20 OpMemberDecorate %SSBO 0 Offset 0
21 OpMemberDecorate %SSBO 1 Offset 4
22 OpDecorate %SSBO BufferBlock
23 OpDecorate %_ DescriptorSet 0
24 OpDecorate %_ Binding 0
25 %void = OpTypeVoid
26 %3 = OpTypeFunction %void
27 %uint = OpTypeInt 32 0
28 %uint_64 = OpConstant %uint 64
29 %_arr_uint_uint_64 = OpTypeArray %uint %uint_64
30 %SSBO = OpTypeStruct %uint %_arr_uint_uint_64
31 %_ptr_Uniform_SSBO = OpTypePointer Uniform %SSBO
32 %_ = OpVariable %_ptr_Uniform_SSBO Uniform
33 %int = OpTypeInt 32 1
34 %int_1 = OpConstant %int 1
35 %int_0 = OpConstant %int 0
36 %_ptr_Uniform_uint = OpTypePointer Uniform %uint
37 %uint_0 = OpConstant %uint 0
38 %bool = OpTypeBool
39 %main = OpFunction %void None %3
40 %5 = OpLabel
41 %18 = OpAccessChain %_ptr_Uniform_uint %_ %int_0
42 %19 = OpLoad %uint %18
43 %20 = OpAccessChain %_ptr_Uniform_uint %_ %int_1 %19
44 %21 = OpLoad %uint %20
45 OpBranch %24
46 %24 = OpLabel
47 %40 = OpPhi %uint %uint_0 %5 %35 %25
48 %31 = OpULessThan %bool %40 %uint_64
49 OpLoopMerge %26 %25 None
50 OpBranchConditional %31 %25 %26
51 %25 = OpLabel
52 %33 = OpAccessChain %_ptr_Uniform_uint %_ %int_1 %40
53 OpStore %33 %uint_0
54 %35 = OpIAdd %uint %40 %int_1
55 OpBranch %24
56 %26 = OpLabel
57 %37 = OpLoad %uint %18
58 %39 = OpAccessChain %_ptr_Uniform_uint %_ %int_1 %37
59 OpStore %39 %21
60 OpReturn
61 OpFunctionEnd