Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/frag/min-lod.msl22.asm.frag

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