Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/hlsl-sample-cmp-level-zero.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 70
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %texCoords_1 %cascadeIndex_1 %fragDepth_1 %_entryPointOutput
10 OpExecutionMode %main OriginUpperLeft
11 OpSource HLSL 500
12 OpName %main "main"
13 OpName %_main_vf2_f1_f1_ "@main(vf2;f1;f1;"
14 OpName %texCoords "texCoords"
15 OpName %cascadeIndex "cascadeIndex"
16 OpName %fragDepth "fragDepth"
17 OpName %c "c"
18 OpName %ShadowMap "ShadowMap"
19 OpName %ShadowSamplerPCF "ShadowSamplerPCF"
20 OpName %texCoords_0 "texCoords"
21 OpName %texCoords_1 "texCoords"
22 OpName %cascadeIndex_0 "cascadeIndex"
23 OpName %cascadeIndex_1 "cascadeIndex"
24 OpName %fragDepth_0 "fragDepth"
25 OpName %fragDepth_1 "fragDepth"
26 OpName %_entryPointOutput "@entryPointOutput"
27 OpName %param "param"
28 OpName %param_0 "param"
29 OpName %param_1 "param"
30 OpDecorate %ShadowMap DescriptorSet 0
31 OpDecorate %ShadowSamplerPCF DescriptorSet 0
32 OpDecorate %ShadowMap Binding 0
33 OpDecorate %ShadowSamplerPCF Binding 1
34 OpDecorate %texCoords_1 Location 0
35 OpDecorate %cascadeIndex_1 Location 1
36 OpDecorate %fragDepth_1 Location 2
37 OpDecorate %_entryPointOutput Location 0
38 %void = OpTypeVoid
39 %3 = OpTypeFunction %void
40 %float = OpTypeFloat 32
41 %v2float = OpTypeVector %float 2
42 %_ptr_Function_v2float = OpTypePointer Function %v2float
43 %_ptr_Function_float = OpTypePointer Function %float
44 %v4float = OpTypeVector %float 4
45 %11 = OpTypeFunction %v4float %_ptr_Function_v2float %_ptr_Function_float %_ptr_Function_float
46 %18 = OpTypeImage %float 2D 0 1 0 1 Unknown
47 %_ptr_UniformConstant_18 = OpTypePointer UniformConstant %18
48 %ShadowMap = OpVariable %_ptr_UniformConstant_18 UniformConstant
49 %22 = OpTypeSampler
50 %_ptr_UniformConstant_22 = OpTypePointer UniformConstant %22
51 %ShadowSamplerPCF = OpVariable %_ptr_UniformConstant_22 UniformConstant
52 %26 = OpTypeImage %float 2D 1 1 0 1 Unknown
53 %27 = OpTypeSampledImage %26
54 %v3float = OpTypeVector %float 3
55 %float_0 = OpConstant %float 0
56 %_ptr_Input_v2float = OpTypePointer Input %v2float
57 %texCoords_1 = OpVariable %_ptr_Input_v2float Input
58 %_ptr_Input_float = OpTypePointer Input %float
59 %cascadeIndex_1 = OpVariable %_ptr_Input_float Input
60 %fragDepth_1 = OpVariable %_ptr_Input_float Input
61 %_ptr_Output_v4float = OpTypePointer Output %v4float
62 %_entryPointOutput = OpVariable %_ptr_Output_v4float Output
63 %main = OpFunction %void None %3
64 %5 = OpLabel
65 %texCoords_0 = OpVariable %_ptr_Function_v2float Function
66 %cascadeIndex_0 = OpVariable %_ptr_Function_float Function
67 %fragDepth_0 = OpVariable %_ptr_Function_float Function
68 %param = OpVariable %_ptr_Function_v2float Function
69 %param_0 = OpVariable %_ptr_Function_float Function
70 %param_1 = OpVariable %_ptr_Function_float Function
71 %53 = OpLoad %v2float %texCoords_1
72 OpStore %texCoords_0 %53
73 %57 = OpLoad %float %cascadeIndex_1
74 OpStore %cascadeIndex_0 %57
75 %60 = OpLoad %float %fragDepth_1
76 OpStore %fragDepth_0 %60
77 %64 = OpLoad %v2float %texCoords_0
78 OpStore %param %64
79 %66 = OpLoad %float %cascadeIndex_0
80 OpStore %param_0 %66
81 %68 = OpLoad %float %fragDepth_0
82 OpStore %param_1 %68
83 %69 = OpFunctionCall %v4float %_main_vf2_f1_f1_ %param %param_0 %param_1
84 OpStore %_entryPointOutput %69
85 OpReturn
86 OpFunctionEnd
87 %_main_vf2_f1_f1_ = OpFunction %v4float None %11
88 %texCoords = OpFunctionParameter %_ptr_Function_v2float
89 %cascadeIndex = OpFunctionParameter %_ptr_Function_float
90 %fragDepth = OpFunctionParameter %_ptr_Function_float
91 %16 = OpLabel
92 %c = OpVariable %_ptr_Function_float Function
93 %21 = OpLoad %18 %ShadowMap
94 %25 = OpLoad %22 %ShadowSamplerPCF
95 %28 = OpSampledImage %27 %21 %25
96 %29 = OpLoad %v2float %texCoords
97 %30 = OpLoad %float %cascadeIndex
98 %32 = OpCompositeExtract %float %29 0
99 %33 = OpCompositeExtract %float %29 1
100 %34 = OpCompositeConstruct %v3float %32 %33 %30
101 %35 = OpLoad %float %fragDepth
102 %36 = OpCompositeExtract %float %34 0
103 %37 = OpCompositeExtract %float %34 1
104 %38 = OpCompositeExtract %float %34 2
105 %39 = OpCompositeConstruct %v4float %36 %37 %38 %35
106 %41 = OpCompositeExtract %float %39 3
107 %42 = OpImageSampleDrefExplicitLod %float %28 %39 %41 Lod %float_0
108 OpStore %c %42
109 %43 = OpLoad %float %c
110 %44 = OpLoad %float %c
111 %45 = OpLoad %float %c
112 %46 = OpLoad %float %c
113 %47 = OpCompositeConstruct %v4float %43 %44 %45 %46
114 OpReturnValue %47
115 OpFunctionEnd