2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-06-01 15:57:22 +00:00
|
|
|
; Bound: 47
|
2021-06-03 09:38:34 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %main "main" %loc0_1 %frag_depth_1 %loc1_1 %loc2_1 %sample_mask_1 %loc3_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
|
|
|
OpExecutionMode %main DepthReplacing
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %loc0_1 "loc0_1"
|
|
|
|
OpName %frag_depth_1 "frag_depth_1"
|
|
|
|
OpName %loc1_1 "loc1_1"
|
|
|
|
OpName %loc2_1 "loc2_1"
|
|
|
|
OpName %sample_mask_1 "sample_mask_1"
|
|
|
|
OpName %loc3_1 "loc3_1"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %FragmentOutputs "FragmentOutputs"
|
|
|
|
OpMemberName %FragmentOutputs 0 "loc0"
|
|
|
|
OpMemberName %FragmentOutputs 1 "frag_depth"
|
|
|
|
OpMemberName %FragmentOutputs 2 "loc1"
|
|
|
|
OpMemberName %FragmentOutputs 3 "loc2"
|
|
|
|
OpMemberName %FragmentOutputs 4 "sample_mask"
|
|
|
|
OpMemberName %FragmentOutputs 5 "loc3"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %loc0_1 Location 0
|
|
|
|
OpDecorate %frag_depth_1 BuiltIn FragDepth
|
|
|
|
OpDecorate %loc1_1 Location 1
|
|
|
|
OpDecorate %loc2_1 Location 2
|
2021-06-03 09:38:34 +00:00
|
|
|
OpDecorate %_arr_uint_uint_1 ArrayStride 4
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %sample_mask_1 BuiltIn SampleMask
|
|
|
|
OpDecorate %loc3_1 Location 3
|
2021-06-03 09:38:34 +00:00
|
|
|
OpMemberDecorate %FragmentOutputs 0 Offset 0
|
|
|
|
OpMemberDecorate %FragmentOutputs 1 Offset 4
|
|
|
|
OpMemberDecorate %FragmentOutputs 2 Offset 8
|
|
|
|
OpMemberDecorate %FragmentOutputs 3 Offset 12
|
|
|
|
OpMemberDecorate %FragmentOutputs 4 Offset 16
|
|
|
|
OpMemberDecorate %FragmentOutputs 5 Offset 32
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%_ptr_Output_int = OpTypePointer Output %int
|
|
|
|
%4 = OpConstantNull %int
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc0_1 = OpVariable %_ptr_Output_int Output %4
|
2021-06-03 09:38:34 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%8 = OpConstantNull %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%frag_depth_1 = OpVariable %_ptr_Output_float Output %8
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
|
|
|
%12 = OpConstantNull %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc1_1 = OpVariable %_ptr_Output_uint Output %12
|
|
|
|
%loc2_1 = OpVariable %_ptr_Output_float Output %8
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
|
|
|
|
%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
|
|
|
|
%18 = OpConstantNull %_arr_uint_uint_1
|
2021-08-05 17:34:19 +00:00
|
|
|
%sample_mask_1 = OpVariable %_ptr_Output__arr_uint_uint_1 Output %18
|
2021-06-03 09:38:34 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%22 = OpConstantNull %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc3_1 = OpVariable %_ptr_Output_v4float Output %22
|
2021-06-03 09:38:34 +00:00
|
|
|
%FragmentOutputs = OpTypeStruct %int %float %uint %float %uint %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%23 = OpTypeFunction %FragmentOutputs
|
2021-06-03 09:38:34 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%float_2 = OpConstant %float 2
|
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%float_3 = OpConstant %float 3
|
|
|
|
%float_4 = OpConstant %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%33 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
|
|
|
%34 = OpConstantComposite %FragmentOutputs %int_1 %float_2 %uint_1 %float_1 %uint_2 %33
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%35 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %FragmentOutputs None %23
|
|
|
|
%26 = OpLabel
|
|
|
|
OpReturnValue %34
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main = OpFunction %void None %35
|
|
|
|
%38 = OpLabel
|
|
|
|
%39 = OpFunctionCall %FragmentOutputs %main_inner
|
|
|
|
%40 = OpCompositeExtract %int %39 0
|
|
|
|
OpStore %loc0_1 %40
|
|
|
|
%41 = OpCompositeExtract %float %39 1
|
|
|
|
OpStore %frag_depth_1 %41
|
|
|
|
%42 = OpCompositeExtract %uint %39 2
|
|
|
|
OpStore %loc1_1 %42
|
|
|
|
%43 = OpCompositeExtract %float %39 3
|
|
|
|
OpStore %loc2_1 %43
|
2022-06-01 15:57:22 +00:00
|
|
|
%44 = OpAccessChain %_ptr_Output_uint %sample_mask_1 %4
|
|
|
|
%45 = OpCompositeExtract %uint %39 4
|
|
|
|
OpStore %44 %45
|
|
|
|
%46 = OpCompositeExtract %v4float %39 5
|
|
|
|
OpStore %loc3_1 %46
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|