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: 50
|
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 %main0 "main0" %value
|
|
|
|
OpEntryPoint Fragment %main1 "main1" %value_1
|
|
|
|
OpEntryPoint Fragment %main2 "main2" %value_2
|
|
|
|
OpEntryPoint Fragment %main3 "main3" %value_3
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %main0 OriginUpperLeft
|
|
|
|
OpExecutionMode %main1 OriginUpperLeft
|
|
|
|
OpExecutionMode %main2 OriginUpperLeft
|
|
|
|
OpExecutionMode %main3 OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %value "value"
|
|
|
|
OpName %value_1 "value_1"
|
|
|
|
OpName %value_2 "value_2"
|
|
|
|
OpName %value_3 "value_3"
|
|
|
|
OpName %main0_inner "main0_inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main0 "main0"
|
2021-08-05 17:34:19 +00:00
|
|
|
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
|
|
|
OpName %main3_inner "main3_inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main3 "main3"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %value Location 0
|
|
|
|
OpDecorate %value_1 Location 1
|
|
|
|
OpDecorate %value_2 Location 2
|
|
|
|
OpDecorate %value_3 Location 3
|
2021-06-03 09:38:34 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%_ptr_Output_int = OpTypePointer Output %int
|
|
|
|
%4 = OpConstantNull %int
|
2021-08-05 17:34:19 +00:00
|
|
|
%value = OpVariable %_ptr_Output_int Output %4
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
|
|
|
%8 = OpConstantNull %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%value_1 = OpVariable %_ptr_Output_uint Output %8
|
2021-06-03 09:38:34 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%12 = OpConstantNull %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%value_2 = OpVariable %_ptr_Output_float Output %12
|
2021-06-03 09:38:34 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%16 = OpConstantNull %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%value_3 = OpVariable %_ptr_Output_v4float Output %16
|
|
|
|
%17 = OpTypeFunction %int
|
2021-06-03 09:38:34 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%21 = OpTypeFunction %void
|
|
|
|
%26 = OpTypeFunction %uint
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%33 = OpTypeFunction %float
|
2021-06-03 09:38:34 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%40 = OpTypeFunction %v4float
|
2021-06-03 09:38:34 +00:00
|
|
|
%float_2 = OpConstant %float 2
|
|
|
|
%float_3 = OpConstant %float 3
|
|
|
|
%float_4 = OpConstant %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%46 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
|
|
|
%main0_inner = OpFunction %int None %17
|
|
|
|
%19 = OpLabel
|
|
|
|
OpReturnValue %int_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main0 = OpFunction %void None %21
|
2021-06-03 09:38:34 +00:00
|
|
|
%24 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
%25 = OpFunctionCall %int %main0_inner
|
|
|
|
OpStore %value %25
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main1_inner = OpFunction %uint None %26
|
|
|
|
%28 = OpLabel
|
|
|
|
OpReturnValue %uint_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main1 = OpFunction %void None %21
|
|
|
|
%31 = OpLabel
|
|
|
|
%32 = OpFunctionCall %uint %main1_inner
|
|
|
|
OpStore %value_1 %32
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main2_inner = OpFunction %float None %33
|
|
|
|
%35 = OpLabel
|
|
|
|
OpReturnValue %float_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main2 = OpFunction %void None %21
|
|
|
|
%38 = OpLabel
|
|
|
|
%39 = OpFunctionCall %float %main2_inner
|
|
|
|
OpStore %value_2 %39
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main3_inner = OpFunction %v4float None %40
|
|
|
|
%42 = OpLabel
|
|
|
|
OpReturnValue %46
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main3 = OpFunction %void None %21
|
2021-06-03 09:38:34 +00:00
|
|
|
%48 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
%49 = OpFunctionCall %v4float %main3_inner
|
|
|
|
OpStore %value_3 %49
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|