56 lines
2.3 KiB
Plaintext
56 lines
2.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 28
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %frag_depth_1 %sample_mask_1
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpExecutionMode %main DepthReplacing
|
|
OpName %frag_depth_1 "frag_depth_1"
|
|
OpName %sample_mask_1 "sample_mask_1"
|
|
OpName %FragmentOutputs "FragmentOutputs"
|
|
OpMemberName %FragmentOutputs 0 "frag_depth"
|
|
OpMemberName %FragmentOutputs 1 "sample_mask"
|
|
OpName %main_inner "main_inner"
|
|
OpName %main "main"
|
|
OpDecorate %frag_depth_1 BuiltIn FragDepth
|
|
OpDecorate %_arr_uint_uint_1 ArrayStride 4
|
|
OpDecorate %sample_mask_1 BuiltIn SampleMask
|
|
OpMemberDecorate %FragmentOutputs 0 Offset 0
|
|
OpMemberDecorate %FragmentOutputs 1 Offset 4
|
|
%float = OpTypeFloat 32
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
%4 = OpConstantNull %float
|
|
%frag_depth_1 = OpVariable %_ptr_Output_float Output %4
|
|
%uint = OpTypeInt 32 0
|
|
%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
|
|
%10 = OpConstantNull %_arr_uint_uint_1
|
|
%sample_mask_1 = OpVariable %_ptr_Output__arr_uint_uint_1 Output %10
|
|
%FragmentOutputs = OpTypeStruct %float %uint
|
|
%11 = OpTypeFunction %FragmentOutputs
|
|
%float_1 = OpConstant %float 1
|
|
%16 = OpConstantComposite %FragmentOutputs %float_1 %uint_1
|
|
%void = OpTypeVoid
|
|
%17 = OpTypeFunction %void
|
|
%int = OpTypeInt 32 1
|
|
%24 = OpConstantNull %int
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
|
%main_inner = OpFunction %FragmentOutputs None %11
|
|
%14 = OpLabel
|
|
OpReturnValue %16
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %17
|
|
%20 = OpLabel
|
|
%21 = OpFunctionCall %FragmentOutputs %main_inner
|
|
%22 = OpCompositeExtract %float %21 0
|
|
OpStore %frag_depth_1 %22
|
|
%26 = OpAccessChain %_ptr_Output_uint %sample_mask_1 %24
|
|
%27 = OpCompositeExtract %uint %21 1
|
|
OpStore %26 %27
|
|
OpReturn
|
|
OpFunctionEnd
|