Debian Codegraph @

third_party/spirv-cross/shaders-reflection/asm/op-source-none-uav-1.asm.comp

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