Debian Codegraph @

third_party/spirv-cross/shaders-reflection/frag/image-load-store-uint-coord.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 2
4 ; Bound: 63
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability SampledBuffer
8 OpCapability ImageBuffer
9 %1 = OpExtInstImport "GLSL.std.450"
10 OpMemoryModel Logical GLSL450
11 OpEntryPoint Fragment %main "main" %_entryPointOutput
12 OpExecutionMode %main OriginUpperLeft
13 OpSource HLSL 500
14 OpName %main "main"
15 OpName %_main_ "@main("
16 OpName %storeTemp "storeTemp"
17 OpName %RWIm "RWIm"
18 OpName %v "v"
19 OpName %RWBuf "RWBuf"
20 OpName %ROIm "ROIm"
21 OpName %ROBuf "ROBuf"
22 OpName %_entryPointOutput "@entryPointOutput"
23 OpDecorate %RWIm DescriptorSet 0
24 OpDecorate %RWIm Binding 1
25 OpDecorate %RWBuf DescriptorSet 0
26 OpDecorate %RWBuf Binding 0
27 OpDecorate %ROIm DescriptorSet 0
28 OpDecorate %ROIm Binding 1
29 OpDecorate %ROBuf DescriptorSet 0
30 OpDecorate %ROBuf Binding 0
31 OpDecorate %_entryPointOutput Location 0
32 %void = OpTypeVoid
33 %3 = OpTypeFunction %void
34 %float = OpTypeFloat 32
35 %v4float = OpTypeVector %float 4
36 %8 = OpTypeFunction %v4float
37 %_ptr_Function_v4float = OpTypePointer Function %v4float
38 %float_10 = OpConstant %float 10
39 %float_0_5 = OpConstant %float 0.5
40 %float_8 = OpConstant %float 8
41 %float_2 = OpConstant %float 2
42 %17 = OpConstantComposite %v4float %float_10 %float_0_5 %float_8 %float_2
43 %18 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
44 %_ptr_UniformConstant_18 = OpTypePointer UniformConstant %18
45 %RWIm = OpVariable %_ptr_UniformConstant_18 UniformConstant
46 %uint = OpTypeInt 32 0
47 %v2uint = OpTypeVector %uint 2
48 %uint_10 = OpConstant %uint 10
49 %25 = OpConstantComposite %v2uint %uint_10 %uint_10
50 %uint_30 = OpConstant %uint 30
51 %30 = OpConstantComposite %v2uint %uint_30 %uint_30
52 %32 = OpTypeImage %float Buffer 0 0 0 2 Rgba32f
53 %_ptr_UniformConstant_32 = OpTypePointer UniformConstant %32
54 %RWBuf = OpVariable %_ptr_UniformConstant_32 UniformConstant
55 %uint_80 = OpConstant %uint 80
56 %38 = OpTypeImage %float 2D 0 0 0 1 Unknown
57 %SampledImage = OpTypeSampledImage %38
58 %_ptr_UniformConstant_38 = OpTypePointer UniformConstant %SampledImage
59 %ROIm = OpVariable %_ptr_UniformConstant_38 UniformConstant
60 %uint_50 = OpConstant %uint 50
61 %uint_60 = OpConstant %uint 60
62 %44 = OpConstantComposite %v2uint %uint_50 %uint_60
63 %int = OpTypeInt 32 1
64 %int_0 = OpConstant %int 0
65 %50 = OpTypeImage %float Buffer 0 0 0 1 Rgba32f
66 %_ptr_UniformConstant_50 = OpTypePointer UniformConstant %50
67 %ROBuf = OpVariable %_ptr_UniformConstant_50 UniformConstant
68 %_ptr_Output_v4float = OpTypePointer Output %v4float
69 %_entryPointOutput = OpVariable %_ptr_Output_v4float Output
70 %main = OpFunction %void None %3
71 %5 = OpLabel
72 %62 = OpFunctionCall %v4float %_main_
73 OpStore %_entryPointOutput %62
74 OpReturn
75 OpFunctionEnd
76 %_main_ = OpFunction %v4float None %8
77 %10 = OpLabel
78 %storeTemp = OpVariable %_ptr_Function_v4float Function
79 %v = OpVariable %_ptr_Function_v4float Function
80 OpStore %storeTemp %17
81 %21 = OpLoad %18 %RWIm
82 %26 = OpLoad %v4float %storeTemp
83 OpImageWrite %21 %25 %26
84 %28 = OpLoad %18 %RWIm
85 %31 = OpImageRead %v4float %28 %30
86 OpStore %v %31
87 %35 = OpLoad %32 %RWBuf
88 %37 = OpLoad %v4float %v
89 OpImageWrite %35 %uint_80 %37
90 %41 = OpLoad %SampledImage %ROIm
91 %ROImage = OpImage %38 %41
92 %47 = OpImageFetch %v4float %ROImage %44 Lod %int_0
93 %48 = OpLoad %v4float %v
94 %49 = OpFAdd %v4float %48 %47
95 OpStore %v %49
96 %53 = OpLoad %50 %ROBuf
97 %54 = OpImageFetch %v4float %53 %uint_80
98 %55 = OpLoad %v4float %v
99 %56 = OpFAdd %v4float %55 %54
100 OpStore %v %56
101 %57 = OpLoad %v4float %v
102 OpReturnValue %57
103 OpFunctionEnd