| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 36 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability SampleRateShading |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %main_position_Input %main_front_facing_Input %main_sample_index_Input %main_sample_mask_Input |
| OpExecutionMode %main OriginUpperLeft |
| OpName %main_position_Input "main_position_Input" |
| OpName %main_front_facing_Input "main_front_facing_Input" |
| OpName %main_sample_index_Input "main_sample_index_Input" |
| OpName %main_sample_mask_Input "main_sample_mask_Input" |
| OpName %main_inner "main_inner" |
| OpName %position "position" |
| OpName %front_facing "front_facing" |
| OpName %sample_index "sample_index" |
| OpName %sample_mask "sample_mask" |
| OpName %position "foo" |
| OpName %bar "bar" |
| OpName %main "main" |
| OpDecorate %main_position_Input BuiltIn FragCoord |
| OpDecorate %main_front_facing_Input BuiltIn FrontFacing |
| OpDecorate %main_sample_index_Input Flat |
| OpDecorate %main_sample_index_Input BuiltIn SampleId |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| OpDecorate %main_sample_mask_Input BuiltIn SampleMask |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %main_position_Input = OpVariable %_ptr_Input_v4float 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_sample_index_Input = OpVariable %_ptr_Input_uint 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 |
| %void = OpTypeVoid |
| %21 = OpTypeFunction %void %v4float %bool %uint %uint |
| %27 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %main_inner = OpFunction %void None %21 |
| %position = OpFunctionParameter %v4float |
| %front_facing = OpFunctionParameter %bool |
| %sample_index = OpFunctionParameter %uint |
| %sample_mask = OpFunctionParameter %uint |
| %22 = OpLabel |
| OpSelectionMerge %23 None |
| OpBranchConditional %front_facing %24 %23 |
| %24 = OpLabel |
| %bar = OpIAdd %uint %sample_index %sample_mask |
| OpBranch %23 |
| %23 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %27 |
| %28 = OpLabel |
| %29 = OpLoad %v4float %main_position_Input None |
| %30 = OpLoad %bool %main_front_facing_Input None |
| %31 = OpLoad %uint %main_sample_index_Input None |
| %32 = OpAccessChain %_ptr_Input_uint %main_sample_mask_Input %uint_0 |
| %34 = OpLoad %uint %32 None |
| %35 = OpFunctionCall %void %main_inner %29 %30 %31 %34 |
| OpReturn |
| OpFunctionEnd |