blob: a8e50ce80f3435ac80d5d3dc6ec99a98f5e94724 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %x_1 "x_1"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_1_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %_arr_int_uint_1 ArrayStride 4
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %tint_symbol_1 BuiltIn SampleMask
OpMemberDecorate %main_out 0 Offset 0
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_arr_int_uint_1 = OpTypeArray %int %uint_1
%int_0 = OpConstant %int 0
%6 = OpConstantComposite %_arr_int_uint_1 %int_0
%_ptr_Private__arr_int_uint_1 = OpTypePointer Private %_arr_int_uint_1
%x_1 = OpVariable %_ptr_Private__arr_int_uint_1 Private %6
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
%12 = OpConstantNull %_arr_uint_uint_1
%tint_symbol_1 = OpVariable %_ptr_Output__arr_uint_uint_1 Output %12
%void = OpTypeVoid
%13 = OpTypeFunction %void
%main_out = OpTypeStruct %uint
%17 = OpTypeFunction %void %main_out
%_ptr_Output_uint = OpTypePointer Output %uint
%_ptr_Private_int = OpTypePointer Private %int
%main_1 = OpFunction %void None %13
%16 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %17
%tint_symbol = OpFunctionParameter %main_out
%21 = OpLabel
%23 = OpAccessChain %_ptr_Output_uint %tint_symbol_1 %int_0
%24 = OpCompositeExtract %uint %tint_symbol 0
OpStore %23 %24
OpReturn
OpFunctionEnd
%main = OpFunction %void None %13
%26 = OpLabel
%27 = OpFunctionCall %void %main_1
%31 = OpAccessChain %_ptr_Private_int %x_1 %int_0
%32 = OpLoad %int %31
%29 = OpBitcast %uint %32
%33 = OpCompositeConstruct %main_out %29
%28 = OpFunctionCall %void %tint_symbol_2 %33
OpReturn
OpFunctionEnd