blob: bc951f09e87608586b72748b632ddfd81e96de93 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 57
; Schema: 0
OpCapability Shader
OpCapability SampleRateShading
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %main_position_Input %main_loc0_Input %main_front_facing_Input %main_loc1_Input %main_sample_index_Input %main_loc3_Input %main_sample_mask_Input %main_loc2_Input
OpExecutionMode %main OriginUpperLeft
OpName %main_position_Input "main_position_Input"
OpName %main_loc0_Input "main_loc0_Input"
OpName %main_front_facing_Input "main_front_facing_Input"
OpName %main_loc1_Input "main_loc1_Input"
OpName %main_sample_index_Input "main_sample_index_Input"
OpName %main_loc3_Input "main_loc3_Input"
OpName %main_sample_mask_Input "main_sample_mask_Input"
OpName %main_loc2_Input "main_loc2_Input"
OpName %main_inner "main_inner"
OpMemberName %FragmentInputs0 0 "position"
OpMemberName %FragmentInputs0 1 "loc0"
OpName %FragmentInputs0 "FragmentInputs0"
OpName %inputs0 "inputs0"
OpName %front_facing "front_facing"
OpName %loc1 "loc1"
OpName %sample_index "sample_index"
OpMemberName %FragmentInputs1 0 "loc3"
OpMemberName %FragmentInputs1 1 "sample_mask"
OpName %FragmentInputs1 "FragmentInputs1"
OpName %inputs1 "inputs1"
OpName %loc2 "loc2"
OpName %foo "foo"
OpName %bar "bar"
OpName %i "i"
OpName %loc1 "u"
OpName %loc2 "f"
OpName %v "v"
OpName %main "main"
OpDecorate %main_position_Input BuiltIn FragCoord
OpDecorate %main_loc0_Input Location 0
OpDecorate %main_loc0_Input Flat
OpDecorate %main_front_facing_Input BuiltIn FrontFacing
OpDecorate %main_loc1_Input Location 1
OpDecorate %main_loc1_Input Flat
OpDecorate %main_sample_index_Input Flat
OpDecorate %main_sample_index_Input BuiltIn SampleId
OpDecorate %main_loc3_Input Location 3
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %main_sample_mask_Input BuiltIn SampleMask
OpDecorate %main_loc2_Input Location 2
OpMemberDecorate %FragmentInputs0 0 Offset 0
OpMemberDecorate %FragmentInputs0 1 Offset 16
OpMemberDecorate %FragmentInputs1 0 Offset 0
OpMemberDecorate %FragmentInputs1 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%main_position_Input = OpVariable %_ptr_Input_v4float Input
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%main_loc0_Input = OpVariable %_ptr_Input_int Input
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%main_front_facing_Input = OpVariable %_ptr_Input_bool Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%main_loc1_Input = OpVariable %_ptr_Input_uint Input
%main_sample_index_Input = OpVariable %_ptr_Input_uint Input
%main_loc3_Input = OpVariable %_ptr_Input_v4float Input
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_ptr_Input__arr_uint_uint_1 = OpTypePointer Input %_arr_uint_uint_1
%main_sample_mask_Input = OpVariable %_ptr_Input__arr_uint_uint_1 Input
%_ptr_Input_float = OpTypePointer Input %float
%main_loc2_Input = OpVariable %_ptr_Input_float Input
%void = OpTypeVoid
%FragmentInputs0 = OpTypeStruct %v4float %int
%FragmentInputs1 = OpTypeStruct %v4float %uint
%32 = OpTypeFunction %void %FragmentInputs0 %bool %uint %uint %FragmentInputs1 %float
%42 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%main_inner = OpFunction %void None %32
%inputs0 = OpFunctionParameter %FragmentInputs0
%front_facing = OpFunctionParameter %bool
%loc1 = OpFunctionParameter %uint
%sample_index = OpFunctionParameter %uint
%inputs1 = OpFunctionParameter %FragmentInputs1
%loc2 = OpFunctionParameter %float
%33 = OpLabel
OpSelectionMerge %34 None
OpBranchConditional %front_facing %35 %34
%35 = OpLabel
%foo = OpCompositeExtract %v4float %inputs0 0
%37 = OpCompositeExtract %uint %inputs1 1
%bar = OpIAdd %uint %sample_index %37
%i = OpCompositeExtract %int %inputs0 1
%v = OpCompositeExtract %v4float %inputs1 0
OpBranch %34
%34 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %42
%43 = OpLabel
%44 = OpLoad %v4float %main_position_Input None
%45 = OpLoad %int %main_loc0_Input None
%46 = OpCompositeConstruct %FragmentInputs0 %44 %45
%47 = OpLoad %bool %main_front_facing_Input None
%48 = OpLoad %uint %main_loc1_Input None
%49 = OpLoad %uint %main_sample_index_Input None
%50 = OpLoad %v4float %main_loc3_Input None
%51 = OpAccessChain %_ptr_Input_uint %main_sample_mask_Input %uint_0
%53 = OpLoad %uint %51 None
%54 = OpCompositeConstruct %FragmentInputs1 %50 %53
%55 = OpLoad %float %main_loc2_Input None
%56 = OpFunctionCall %void %main_inner %46 %47 %48 %49 %54 %55
OpReturn
OpFunctionEnd