Debian Codegraph @

third_party/spirv-cross/shaders-reflection/asm/op-source-glsl-ssbo-1.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 35
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID %_
10 OpExecutionMode %main LocalSize 1 1 1
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %SSBO0 "SSBO0"
14 OpMemberName %SSBO0 0 "a"
15 OpName %_ ""
16 OpName %gl_GlobalInvocationID "gl_GlobalInvocationID"
17 OpDecorate %_runtimearr_v4float ArrayStride 16
18 OpMemberDecorate %SSBO0 0 Offset 0
19 OpDecorate %SSBO0 BufferBlock
20 OpDecorate %_ DescriptorSet 0
21 OpDecorate %_ Binding 0
22 OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
23 OpDecorate %_runtimearr_v4float_0 ArrayStride 16
24 %void = OpTypeVoid
25 %3 = OpTypeFunction %void
26 %float = OpTypeFloat 32
27 %v4float = OpTypeVector %float 4
28 %_runtimearr_v4float = OpTypeRuntimeArray %v4float
29 %SSBO0 = OpTypeStruct %_runtimearr_v4float
30 %_ptr_Uniform_SSBO0 = OpTypePointer Uniform %SSBO0
31 %_ = OpVariable %_ptr_Uniform_SSBO0 Uniform
32 %int = OpTypeInt 32 1
33 %int_0 = OpConstant %int 0
34 %uint = OpTypeInt 32 0
35 %v3uint = OpTypeVector %uint 3
36 %_ptr_Input_v3uint = OpTypePointer Input %v3uint
37 %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
38 %uint_0 = OpConstant %uint 0
39 %_ptr_Input_uint = OpTypePointer Input %uint
40 %float_1 = OpConstant %float 1
41 %23 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
42 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
43 %_runtimearr_v4float_0 = OpTypeRuntimeArray %v4float
44 %float_2 = OpConstant %float 2
45 %33 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
46 %main = OpFunction %void None %3
47 %5 = OpLabel
48 %20 = OpAccessChain %_ptr_Input_uint %gl_GlobalInvocationID %uint_0
49 %21 = OpLoad %uint %20
50 %25 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0 %21
51 OpStore %25 %23
52 OpReturn
53 OpFunctionEnd