Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/frag/combined-sampler-reuse.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 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %FragColor %vUV
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %FragColor "FragColor"
14 OpName %uTex "uTex"
15 OpName %uSampler "uSampler"
16 OpName %vUV "vUV"
17 OpDecorate %FragColor Location 0
18 OpDecorate %uTex DescriptorSet 0
19 OpDecorate %uTex Binding 1
20 OpDecorate %uSampler DescriptorSet 0
21 OpDecorate %uSampler Binding 0
22 OpDecorate %vUV Location 0
23 %void = OpTypeVoid
24 %3 = OpTypeFunction %void
25 %float = OpTypeFloat 32
26 %v4float = OpTypeVector %float 4
27 %_ptr_Output_v4float = OpTypePointer Output %v4float
28 %FragColor = OpVariable %_ptr_Output_v4float Output
29 %10 = OpTypeImage %float 2D 0 0 0 1 Unknown
30 %_ptr_UniformConstant_10 = OpTypePointer UniformConstant %10
31 %uTex = OpVariable %_ptr_UniformConstant_10 UniformConstant
32 %14 = OpTypeSampler
33 %_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
34 %uSampler = OpVariable %_ptr_UniformConstant_14 UniformConstant
35 %18 = OpTypeSampledImage %10
36 %v2float = OpTypeVector %float 2
37 %_ptr_Input_v2float = OpTypePointer Input %v2float
38 %vUV = OpVariable %_ptr_Input_v2float Input
39 %int = OpTypeInt 32 1
40 %v2int = OpTypeVector %int 2
41 %int_1 = OpConstant %int 1
42 %32 = OpConstantComposite %v2int %int_1 %int_1
43 %main = OpFunction %void None %3
44 %5 = OpLabel
45 %13 = OpLoad %10 %uTex
46 %17 = OpLoad %14 %uSampler
47 %19 = OpSampledImage %18 %13 %17
48 %23 = OpLoad %v2float %vUV
49 %24 = OpImageSampleImplicitLod %v4float %19 %23
50 OpStore %FragColor %24
51 %28 = OpLoad %v2float %vUV
52 %33 = OpImageSampleImplicitLod %v4float %19 %28 ConstOffset %32
53 %34 = OpLoad %v4float %FragColor
54 %35 = OpFAdd %v4float %34 %33
55 OpStore %FragColor %35
56 OpReturn
57 OpFunctionEnd