Debian Codegraph @

third_party/spirv-cross/shaders-reflection/asm/op-source-none-uav-2.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 %UAV1 "UAV1"
16 OpName %threadId "threadId"
17 OpDecorate %_runtimearr_v4float ArrayStride 16
18 OpMemberDecorate %UAV0 0 Offset 0
19 OpDecorate %UAV0 BufferBlock
20 OpDecorate %UAV0_0 DescriptorSet 0
21 OpDecorate %UAV0_0 Binding 0
22 OpDecorate %UAV1 DescriptorSet 0
23 OpDecorate %UAV1 Binding 1
24 OpDecorate %threadId BuiltIn GlobalInvocationId
25 %void = OpTypeVoid
26 %3 = OpTypeFunction %void
27 %int = OpTypeInt 32 1
28 %v3int = OpTypeVector %int 3
29 %float = OpTypeFloat 32
30 %v4float = OpTypeVector %float 4
31 %_runtimearr_v4float = OpTypeRuntimeArray %v4float
32 %UAV0 = OpTypeStruct %_runtimearr_v4float
33 %_ptr_Uniform_UAV0 = OpTypePointer Uniform %UAV0
34 %UAV0_0 = OpVariable %_ptr_Uniform_UAV0 Uniform
35 %int_0 = OpConstant %int 0
36 %float_1 = OpConstant %float 1
37 %26 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
38 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
39 %UAV1 = OpVariable %_ptr_Uniform_UAV0 Uniform
40 %float_2 = OpConstant %float 2
41 %33 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
42 %_ptr_Input_v3int = OpTypePointer Input %v3int
43 %threadId = OpVariable %_ptr_Input_v3int Input
44 %main = OpFunction %void None %3
45 %5 = OpLabel
46 %38 = OpLoad %v3int %threadId
47 %43 = OpCompositeExtract %int %38 0
48 %44 = OpAccessChain %_ptr_Uniform_v4float %UAV0_0 %int_0 %43
49 OpStore %44 %26
50 %47 = OpAccessChain %_ptr_Uniform_v4float %UAV1 %int_0 %43
51 OpStore %47 %33
52 OpReturn
53 OpFunctionEnd