Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/frag/image-extract-reuse.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 6
4 ; Bound: 19
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability ImageQuery
8 %1 = OpExtInstImport "GLSL.std.450"
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint Fragment %main "main" %Size
11 OpExecutionMode %main OriginUpperLeft
12 OpSource GLSL 450
13 OpName %main "main"
14 OpName %Size "Size"
15 OpName %uTexture "uTexture"
16 OpDecorate %Size Location 0
17 OpDecorate %uTexture DescriptorSet 0
18 OpDecorate %uTexture Binding 0
19 %void = OpTypeVoid
20 %3 = OpTypeFunction %void
21 %int = OpTypeInt 32 1
22 %v2int = OpTypeVector %int 2
23 %_ptr_Output_v2int = OpTypePointer Output %v2int
24 %Size = OpVariable %_ptr_Output_v2int Output
25 %float = OpTypeFloat 32
26 %11 = OpTypeImage %float 2D 0 0 0 1 Unknown
27 %12 = OpTypeSampledImage %11
28 %_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12
29 %uTexture = OpVariable %_ptr_UniformConstant_12 UniformConstant
30 %int_0 = OpConstant %int 0
31 %int_1 = OpConstant %int 1
32 %main = OpFunction %void None %3
33 %5 = OpLabel
34 %15 = OpLoad %12 %uTexture
35 %17 = OpImage %11 %15
36 %18 = OpImageQuerySizeLod %v2int %17 %int_0
37 %19 = OpImageQuerySizeLod %v2int %17 %int_1
38 %20 = OpIAdd %v2int %18 %19
39 OpStore %Size %20
40 OpReturn
41 OpFunctionEnd