blob: 7233f17adb5ee5e7d95aa08e721de4369d84c6c2 [file] [log] [blame] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 32
; Schema: 0
OpCapability Shader
OpCapability InputAttachment
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %f "f" %f_position_Input
OpExecutionMode %f OriginUpperLeft
OpName %f_Input "f_Input"
OpName %f_position_Input "f_position_Input"
OpName %g "g"
OpName %a "a"
OpName %b "b"
OpName %f_inner "f_inner"
OpName %fbf "fbf"
OpName %pos "pos"
OpName %f "f"
OpDecorate %f_Input DescriptorSet 66
OpDecorate %f_Input Binding 0
OpDecorate %f_Input InputAttachmentIndex 3
OpDecorate %f_position_Input BuiltIn FragCoord
%float = OpTypeFloat 32
%3 = OpTypeImage %float SubpassData 0 0 0 2 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%f_Input = OpVariable %_ptr_UniformConstant_3 UniformConstant
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%f_position_Input = OpVariable %_ptr_Input_v4float Input
%void = OpTypeVoid
%12 = OpTypeFunction %void %float %float
%17 = OpTypeFunction %void %v4float %v4float
%23 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%27 = OpConstantNull %v2int
%g = OpFunction %void None %12
%a = OpFunctionParameter %float
%b = OpFunctionParameter %float
%13 = OpLabel
OpReturn
OpFunctionEnd
%f_inner = OpFunction %void None %17
%fbf = OpFunctionParameter %v4float
%pos = OpFunctionParameter %v4float
%18 = OpLabel
%19 = OpCompositeExtract %float %fbf 3
%20 = OpCompositeExtract %float %pos 0
%21 = OpFunctionCall %void %g %19 %20
OpReturn
OpFunctionEnd
%f = OpFunction %void None %23
%24 = OpLabel
%25 = OpLoad %3 %f_Input None
%26 = OpImageRead %v4float %25 %27
%30 = OpLoad %v4float %f_position_Input None
%31 = OpFunctionCall %void %f_inner %26 %30
OpReturn
OpFunctionEnd