Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 44
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability StorageImageExtendedFormats
8 %1 = OpExtInstImport "GLSL.std.450"
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint GLCompute %main "main" %id_1
11 OpExecutionMode %main LocalSize 1 1 1
12 OpSource HLSL 500
13 OpName %main "main"
14 OpName %_main_vu3_ "@main(vu3;"
15 OpName %id "id"
16 OpName %loaded "loaded"
17 OpName %TargetTexture "TargetTexture"
18 OpName %storeTemp "storeTemp"
19 OpName %id_0 "id"
20 OpName %id_1 "id"
21 OpName %param "param"
22 OpDecorate %TargetTexture DescriptorSet 0
23 OpDecorate %TargetTexture Binding 0
24 OpDecorate %id_1 BuiltIn WorkgroupId
25 %void = OpTypeVoid
26 %3 = OpTypeFunction %void
27 %uint = OpTypeInt 32 0
28 %v3uint = OpTypeVector %uint 3
29 %_ptr_Function_v3uint = OpTypePointer Function %v3uint
30 %9 = OpTypeFunction %void %_ptr_Function_v3uint
31 %float = OpTypeFloat 32
32 %v2float = OpTypeVector %float 2
33 %_ptr_Function_v2float = OpTypePointer Function %v2float
34 %17 = OpTypeImage %float 2D 0 0 0 2 Rg32f
35 %_ptr_UniformConstant_17 = OpTypePointer UniformConstant %17
36 %TargetTexture = OpVariable %_ptr_UniformConstant_17 UniformConstant
37 %v2uint = OpTypeVector %uint 2
38 %float_1 = OpConstant %float 1
39 %uint_1 = OpConstant %uint 1
40 %_ptr_Input_v3uint = OpTypePointer Input %v3uint
41 %id_1 = OpVariable %_ptr_Input_v3uint Input
42 %main = OpFunction %void None %3
43 %5 = OpLabel
44 %id_0 = OpVariable %_ptr_Function_v3uint Function
45 %param = OpVariable %_ptr_Function_v3uint Function
46 %40 = OpLoad %v3uint %id_1
47 OpStore %id_0 %40
48 %42 = OpLoad %v3uint %id_0
49 OpStore %param %42
50 %43 = OpFunctionCall %void %_main_vu3_ %param
51 OpReturn
52 OpFunctionEnd
53 %_main_vu3_ = OpFunction %void None %9
54 %id = OpFunctionParameter %_ptr_Function_v3uint
55 %12 = OpLabel
56 %loaded = OpVariable %_ptr_Function_v2float Function
57 %storeTemp = OpVariable %_ptr_Function_v2float Function
58 %20 = OpLoad %17 %TargetTexture
59 %22 = OpLoad %v3uint %id
60 %23 = OpVectorShuffle %v2uint %22 %22 0 1
61 %24 = OpImageRead %v2float %20 %23
62 OpStore %loaded %24
63 %26 = OpLoad %v2float %loaded
64 %28 = OpCompositeConstruct %v2float %float_1 %float_1
65 %29 = OpFAdd %v2float %26 %28
66 OpStore %storeTemp %29
67 %30 = OpLoad %17 %TargetTexture
68 %31 = OpLoad %v3uint %id
69 %32 = OpVectorShuffle %v2uint %31 %31 0 1
70 %34 = OpCompositeConstruct %v2uint %uint_1 %uint_1
71 %35 = OpIAdd %v2uint %32 %34
72 %36 = OpLoad %v2float %storeTemp
73 OpImageWrite %30 %35 %36
74 OpReturn
75 OpFunctionEnd