blob: b565b1441084c8b8a96337c14e86cab740337f34 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 67
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpCapability SampleRateShading
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %position_1 %loc0_1 %front_facing_1 %loc1_1 %sample_index_1 %loc3_1 %loc5_1 %sample_mask_1 %loc2_1 %loc4_1
OpExecutionMode %main OriginUpperLeft
OpName %position_1 "position_1"
OpName %loc0_1 "loc0_1"
OpName %front_facing_1 "front_facing_1"
OpName %loc1_1 "loc1_1"
OpName %sample_index_1 "sample_index_1"
OpName %loc3_1 "loc3_1"
OpName %loc5_1 "loc5_1"
OpName %sample_mask_1 "sample_mask_1"
OpName %loc2_1 "loc2_1"
OpName %loc4_1 "loc4_1"
OpName %FragmentInputs0 "FragmentInputs0"
OpMemberName %FragmentInputs0 0 "position"
OpMemberName %FragmentInputs0 1 "loc0"
OpName %FragmentInputs1 "FragmentInputs1"
OpMemberName %FragmentInputs1 0 "loc3"
OpMemberName %FragmentInputs1 1 "loc5"
OpMemberName %FragmentInputs1 2 "sample_mask"
OpName %main_inner "main_inner"
OpName %inputs0 "inputs0"
OpName %front_facing "front_facing"
OpName %loc1 "loc1"
OpName %sample_index "sample_index"
OpName %inputs1 "inputs1"
OpName %loc2 "loc2"
OpName %loc4 "loc4"
OpName %main "main"
OpDecorate %position_1 BuiltIn FragCoord
OpDecorate %loc0_1 Location 0
OpDecorate %loc0_1 Flat
OpDecorate %front_facing_1 BuiltIn FrontFacing
OpDecorate %loc1_1 Location 1
OpDecorate %loc1_1 Flat
OpDecorate %sample_index_1 BuiltIn SampleId
OpDecorate %sample_index_1 Flat
OpDecorate %loc3_1 Location 3
OpDecorate %loc5_1 Location 5
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %sample_mask_1 BuiltIn SampleMask
OpDecorate %sample_mask_1 Flat
OpDecorate %loc2_1 Location 2
OpDecorate %loc4_1 Location 4
OpMemberDecorate %FragmentInputs0 0 Offset 0
OpMemberDecorate %FragmentInputs0 1 Offset 16
OpMemberDecorate %FragmentInputs1 0 Offset 0
OpMemberDecorate %FragmentInputs1 1 Offset 16
OpMemberDecorate %FragmentInputs1 2 Offset 24
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%position_1 = OpVariable %_ptr_Input_v4float Input
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%loc0_1 = OpVariable %_ptr_Input_int Input
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%front_facing_1 = OpVariable %_ptr_Input_bool Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%loc1_1 = OpVariable %_ptr_Input_uint Input
%sample_index_1 = OpVariable %_ptr_Input_uint Input
%loc3_1 = OpVariable %_ptr_Input_v4float Input
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%_ptr_Input_v3half = OpTypePointer Input %v3half
%loc5_1 = OpVariable %_ptr_Input_v3half 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
%sample_mask_1 = OpVariable %_ptr_Input__arr_uint_uint_1 Input
%_ptr_Input_float = OpTypePointer Input %float
%loc2_1 = OpVariable %_ptr_Input_float Input
%_ptr_Input_half = OpTypePointer Input %half
%loc4_1 = OpVariable %_ptr_Input_half Input
%void = OpTypeVoid
%FragmentInputs0 = OpTypeStruct %v4float %int
%FragmentInputs1 = OpTypeStruct %v4float %v3half %uint
%28 = OpTypeFunction %void %FragmentInputs0 %bool %uint %uint %FragmentInputs1 %float %half
%49 = OpTypeFunction %void
%61 = OpConstantNull %int
%main_inner = OpFunction %void None %28
%inputs0 = OpFunctionParameter %FragmentInputs0
%front_facing = OpFunctionParameter %bool
%loc1 = OpFunctionParameter %uint
%sample_index = OpFunctionParameter %uint
%inputs1 = OpFunctionParameter %FragmentInputs1
%loc2 = OpFunctionParameter %float
%loc4 = OpFunctionParameter %half
%40 = OpLabel
OpSelectionMerge %41 None
OpBranchConditional %front_facing %42 %41
%42 = OpLabel
%43 = OpCompositeExtract %v4float %inputs0 0
%44 = OpCompositeExtract %uint %inputs1 2
%45 = OpIAdd %uint %sample_index %44
%46 = OpCompositeExtract %int %inputs0 1
%47 = OpCompositeExtract %v4float %inputs1 0
%48 = OpCompositeExtract %v3half %inputs1 1
OpBranch %41
%41 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %49
%51 = OpLabel
%53 = OpLoad %v4float %position_1
%54 = OpLoad %int %loc0_1
%55 = OpCompositeConstruct %FragmentInputs0 %53 %54
%56 = OpLoad %bool %front_facing_1
%57 = OpLoad %uint %loc1_1
%58 = OpLoad %uint %sample_index_1
%59 = OpLoad %v4float %loc3_1
%60 = OpLoad %v3half %loc5_1
%62 = OpAccessChain %_ptr_Input_uint %sample_mask_1 %61
%63 = OpLoad %uint %62
%64 = OpCompositeConstruct %FragmentInputs1 %59 %60 %63
%65 = OpLoad %float %loc2_1
%66 = OpLoad %half %loc4_1
%52 = OpFunctionCall %void %main_inner %55 %56 %57 %58 %64 %65 %66
OpReturn
OpFunctionEnd