2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 30
|
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 %main1 "main1" %value
|
|
|
|
OpEntryPoint Fragment %main2 "main2" %value_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %main1 OriginUpperLeft
|
|
|
|
OpExecutionMode %main1 DepthReplacing
|
|
|
|
OpExecutionMode %main2 OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %value "value"
|
|
|
|
OpName %value_1 "value_1"
|
|
|
|
OpName %main1_inner "main1_inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main1 "main1"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main2_inner "main2_inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main2 "main2"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %value BuiltIn FragDepth
|
2021-06-03 09:38:34 +00:00
|
|
|
OpDecorate %_arr_uint_uint_1 ArrayStride 4
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %value_1 BuiltIn SampleMask
|
2021-06-03 09:38:34 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%4 = OpConstantNull %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%value = OpVariable %_ptr_Output_float Output %4
|
2021-06-03 09:38:34 +00:00
|
|
|
%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
|
2021-08-05 17:34:19 +00:00
|
|
|
%value_1 = OpVariable %_ptr_Output__arr_uint_uint_1 Output %10
|
|
|
|
%11 = OpTypeFunction %float
|
2021-06-03 09:38:34 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%15 = OpTypeFunction %void
|
|
|
|
%20 = OpTypeFunction %uint
|
2021-06-03 09:38:34 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%main1_inner = OpFunction %float None %11
|
|
|
|
%13 = OpLabel
|
|
|
|
OpReturnValue %float_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main1 = OpFunction %void None %15
|
2021-06-03 09:38:34 +00:00
|
|
|
%18 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
%19 = OpFunctionCall %float %main1_inner
|
|
|
|
OpStore %value %19
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main2_inner = OpFunction %uint None %20
|
|
|
|
%22 = OpLabel
|
|
|
|
OpReturnValue %uint_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main2 = OpFunction %void None %15
|
|
|
|
%24 = OpLabel
|
|
|
|
%25 = OpFunctionCall %uint %main2_inner
|
|
|
|
%29 = OpAccessChain %_ptr_Output_uint %value_1 %int_0
|
|
|
|
OpStore %29 %25
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|