Debian Codegraph @

third_party/spirv-cross/shaders-msl/asm/frag/unknown-depth-state.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 6
4 ; Bound: 44
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %vUV %FragColor
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %sample_combined_ "sample_combined("
14 OpName %sample_separate_ "sample_separate("
15 OpName %uShadow "uShadow"
16 OpName %vUV "vUV"
17 OpName %uTexture "uTexture"
18 OpName %uSampler "uSampler"
19 OpName %FragColor "FragColor"
20 OpDecorate %uShadow DescriptorSet 0
21 OpDecorate %uShadow Binding 0
22 OpDecorate %vUV Location 0
23 OpDecorate %uTexture DescriptorSet 0
24 OpDecorate %uTexture Binding 1
25 OpDecorate %uSampler DescriptorSet 0
26 OpDecorate %uSampler Binding 2
27 OpDecorate %FragColor Location 0
28 %void = OpTypeVoid
29 %3 = OpTypeFunction %void
30 %float = OpTypeFloat 32
31 %7 = OpTypeFunction %float
32 %12 = OpTypeImage %float 2D 2 0 0 1 Unknown
33 %13 = OpTypeSampledImage %12
34 %_ptr_UniformConstant_13 = OpTypePointer UniformConstant %13
35 %uShadow = OpVariable %_ptr_UniformConstant_13 UniformConstant
36 %v3float = OpTypeVector %float 3
37 %_ptr_Input_v3float = OpTypePointer Input %v3float
38 %vUV = OpVariable %_ptr_Input_v3float Input
39 %_ptr_UniformConstant_25 = OpTypePointer UniformConstant %12
40 %uTexture = OpVariable %_ptr_UniformConstant_25 UniformConstant
41 %29 = OpTypeSampler
42 %_ptr_UniformConstant_29 = OpTypePointer UniformConstant %29
43 %uSampler = OpVariable %_ptr_UniformConstant_29 UniformConstant
44 %_ptr_Output_float = OpTypePointer Output %float
45 %FragColor = OpVariable %_ptr_Output_float Output
46 %main = OpFunction %void None %3
47 %5 = OpLabel
48 %41 = OpFunctionCall %float %sample_combined_
49 %42 = OpFunctionCall %float %sample_separate_
50 %43 = OpFAdd %float %41 %42
51 OpStore %FragColor %43
52 OpReturn
53 OpFunctionEnd
54 %sample_combined_ = OpFunction %float None %7
55 %9 = OpLabel
56 %16 = OpLoad %13 %uShadow
57 %20 = OpLoad %v3float %vUV
58 %21 = OpCompositeExtract %float %20 2
59 %22 = OpImageSampleDrefImplicitLod %float %16 %20 %21
60 OpReturnValue %22
61 OpFunctionEnd
62 %sample_separate_ = OpFunction %float None %7
63 %11 = OpLabel
64 %28 = OpLoad %12 %uTexture
65 %32 = OpLoad %29 %uSampler
66 %33 = OpSampledImage %13 %28 %32
67 %34 = OpLoad %v3float %vUV
68 %35 = OpCompositeExtract %float %34 2
69 %36 = OpImageSampleDrefImplicitLod %float %33 %34 %35
70 OpReturnValue %36
71 OpFunctionEnd