Debian Codegraph @

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