| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 1 |
| 4 |
; Bound: 38 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %_entryPointOutput |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource HLSL 500 |
| 12 |
OpName %main "main" |
| 13 |
OpName %_main_ "@main(" |
| 14 |
OpName %pointLightShadowMap "pointLightShadowMap" |
| 15 |
OpName %shadowSamplerPCF "shadowSamplerPCF" |
| 16 |
OpName %_entryPointOutput "@entryPointOutput" |
| 17 |
OpDecorate %pointLightShadowMap DescriptorSet 0 |
| 18 |
OpDecorate %shadowSamplerPCF DescriptorSet 0 |
| 19 |
OpDecorate %pointLightShadowMap Binding 0 |
| 20 |
OpDecorate %shadowSamplerPCF Binding 1 |
| 21 |
OpDecorate %_entryPointOutput Location 0 |
| 22 |
%void = OpTypeVoid |
| 23 |
%3 = OpTypeFunction %void |
| 24 |
%float = OpTypeFloat 32 |
| 25 |
%7 = OpTypeFunction %float |
| 26 |
%10 = OpTypeImage %float Cube 0 0 0 1 Unknown |
| 27 |
%_ptr_UniformConstant_10 = OpTypePointer UniformConstant %10 |
| 28 |
%pointLightShadowMap = OpVariable %_ptr_UniformConstant_10 UniformConstant |
| 29 |
%14 = OpTypeSampler |
| 30 |
%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14 |
| 31 |
%shadowSamplerPCF = OpVariable %_ptr_UniformConstant_14 UniformConstant |
| 32 |
%18 = OpTypeImage %float Cube 1 0 0 1 Unknown |
| 33 |
%19 = OpTypeSampledImage %18 |
| 34 |
%v3float = OpTypeVector %float 3 |
| 35 |
%float_0_1 = OpConstant %float 0.1 |
| 36 |
%23 = OpConstantComposite %v3float %float_0_1 %float_0_1 %float_0_1 |
| 37 |
%float_0_5 = OpConstant %float 0.5 |
| 38 |
%v4float = OpTypeVector %float 4 |
| 39 |
%float_0 = OpConstant %float 0 |
| 40 |
%_ptr_Output_float = OpTypePointer Output %float |
| 41 |
%_entryPointOutput = OpVariable %_ptr_Output_float Output |
| 42 |
%main = OpFunction %void None %3 |
| 43 |
%5 = OpLabel |
| 44 |
%37 = OpFunctionCall %float %_main_ |
| 45 |
OpStore %_entryPointOutput %37 |
| 46 |
OpReturn |
| 47 |
OpFunctionEnd |
| 48 |
%_main_ = OpFunction %float None %7 |
| 49 |
%9 = OpLabel |
| 50 |
%13 = OpLoad %10 %pointLightShadowMap |
| 51 |
%17 = OpLoad %14 %shadowSamplerPCF |
| 52 |
%20 = OpSampledImage %19 %13 %17 |
| 53 |
%26 = OpCompositeExtract %float %23 0 |
| 54 |
%27 = OpCompositeExtract %float %23 1 |
| 55 |
%28 = OpCompositeExtract %float %23 2 |
| 56 |
%29 = OpCompositeConstruct %v4float %26 %27 %28 %float_0_5 |
| 57 |
%31 = OpCompositeExtract %float %29 3 |
| 58 |
%32 = OpImageSampleDrefExplicitLod %float %20 %29 %31 Lod %float_0 |
| 59 |
OpReturnValue %32 |
| 60 |
OpFunctionEnd |