Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/image-query-no-sampler.vk.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 6
4 ; Bound: 36
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability ImageQuery
8 %1 = OpExtInstImport "GLSL.std.450"
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint Fragment %main "main"
11 OpExecutionMode %main OriginUpperLeft
12 OpSource GLSL 450
13 OpName %main "main"
14 OpName %b "b"
15 OpName %uSampler2D "uSampler2D"
16 OpName %c "c"
17 OpName %uSampler2DMS "uSampler2DMS"
18 OpName %l1 "l1"
19 OpName %s0 "s0"
20 OpDecorate %uSampler2D DescriptorSet 0
21 OpDecorate %uSampler2D Binding 0
22 OpDecorate %uSampler2DMS DescriptorSet 0
23 OpDecorate %uSampler2DMS Binding 0
24 %void = OpTypeVoid
25 %3 = OpTypeFunction %void
26 %int = OpTypeInt 32 1
27 %v2int = OpTypeVector %int 2
28 %_ptr_Function_v2int = OpTypePointer Function %v2int
29 %float = OpTypeFloat 32
30 %11 = OpTypeImage %float 2D 0 0 0 1 Unknown
31 %_ptr_UniformConstant_12 = OpTypePointer UniformConstant %11
32 %uSampler2D = OpVariable %_ptr_UniformConstant_12 UniformConstant
33 %int_0 = OpConstant %int 0
34 %20 = OpTypeImage %float 2D 0 0 1 1 Unknown
35 %_ptr_UniformConstant_21 = OpTypePointer UniformConstant %20
36 %uSampler2DMS = OpVariable %_ptr_UniformConstant_21 UniformConstant
37 %_ptr_Function_int = OpTypePointer Function %int
38 %main = OpFunction %void None %3
39 %5 = OpLabel
40 %b = OpVariable %_ptr_Function_v2int Function
41 %c = OpVariable %_ptr_Function_v2int Function
42 %l1 = OpVariable %_ptr_Function_int Function
43 %s0 = OpVariable %_ptr_Function_int Function
44 %15 = OpLoad %11 %uSampler2D
45 %18 = OpImageQuerySizeLod %v2int %15 %int_0
46 OpStore %b %18
47 %24 = OpLoad %20 %uSampler2DMS
48 %26 = OpImageQuerySize %v2int %24
49 OpStore %c %26
50 %29 = OpLoad %11 %uSampler2D
51 %31 = OpImageQueryLevels %int %29
52 OpStore %l1 %31
53 %33 = OpLoad %20 %uSampler2DMS
54 %35 = OpImageQuerySamples %int %33
55 OpStore %s0 %35
56 OpReturn
57 OpFunctionEnd