Debian Codegraph @

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