Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/sampler-buffer-without-sampler.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 36
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 OpName %main "main"
14 OpName %_main_ "@main("
15 OpName %storeTemp "storeTemp"
16 OpName %RWTex "RWTex"
17 OpName %Tex "Tex"
18 OpName %_entryPointOutput "@entryPointOutput"
19 OpDecorate %RWTex DescriptorSet 0
20 OpDecorate %Tex DescriptorSet 0
21 OpDecorate %RWTex Binding 0
22 OpDecorate %Tex Binding 1
23 OpDecorate %_entryPointOutput Location 0
24 %void = OpTypeVoid
25 %3 = OpTypeFunction %void
26 %float = OpTypeFloat 32
27 %v4float = OpTypeVector %float 4
28 %8 = OpTypeFunction %v4float
29 %_ptr_Function_v4float = OpTypePointer Function %v4float
30 %13 = OpConstant %float 1
31 %14 = OpConstant %float 2
32 %15 = OpConstant %float 3
33 %16 = OpConstant %float 4
34 %17 = OpConstantComposite %v4float %13 %14 %15 %16
35 %18 = OpTypeImage %float Buffer 0 0 0 2 Rgba32f
36 %_ptr_UniformConstant_18 = OpTypePointer UniformConstant %18
37 %RWTex = OpVariable %_ptr_UniformConstant_18 UniformConstant
38 %int = OpTypeInt 32 1
39 %23 = OpConstant %int 20
40 %25 = OpTypeImage %float Buffer 0 0 0 1 Rgba32f
41 %_ptr_UniformConstant_25 = OpTypePointer UniformConstant %25
42 %Tex = OpVariable %_ptr_UniformConstant_25 UniformConstant
43 %29 = OpConstant %int 10
44 %_ptr_Output_v4float = OpTypePointer Output %v4float
45 %_entryPointOutput = OpVariable %_ptr_Output_v4float Output
46 %main = OpFunction %void None %3
47 %5 = OpLabel
48 %35 = OpFunctionCall %v4float %_main_
49 OpStore %_entryPointOutput %35
50 OpReturn
51 OpFunctionEnd
52 %_main_ = OpFunction %v4float None %8
53 %10 = OpLabel
54 %storeTemp = OpVariable %_ptr_Function_v4float Function
55 OpStore %storeTemp %17
56 %21 = OpLoad %18 %RWTex
57 %24 = OpLoad %v4float %storeTemp
58 OpImageWrite %21 %23 %24
59 %28 = OpLoad %25 %Tex
60 %30 = OpImageFetch %v4float %28 %29
61 OpReturnValue %30
62 OpFunctionEnd