dawn-cmake/test/tint/shader_io/fragment_output_locations_f...

152 lines
5.8 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 75
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main0 "main0" %value
OpEntryPoint Fragment %main1 "main1" %value_1
OpEntryPoint Fragment %main2 "main2" %value_2
OpEntryPoint Fragment %main3 "main3" %value_3
OpEntryPoint Fragment %main4 "main4" %value_4
OpEntryPoint Fragment %main5 "main5" %value_5
OpExecutionMode %main0 OriginUpperLeft
OpExecutionMode %main1 OriginUpperLeft
OpExecutionMode %main2 OriginUpperLeft
OpExecutionMode %main3 OriginUpperLeft
OpExecutionMode %main4 OriginUpperLeft
OpExecutionMode %main5 OriginUpperLeft
OpName %value "value"
OpName %value_1 "value_1"
OpName %value_2 "value_2"
OpName %value_3 "value_3"
OpName %value_4 "value_4"
OpName %value_5 "value_5"
OpName %main0_inner "main0_inner"
OpName %main0 "main0"
OpName %main1_inner "main1_inner"
OpName %main1 "main1"
OpName %main2_inner "main2_inner"
OpName %main2 "main2"
OpName %main3_inner "main3_inner"
OpName %main3 "main3"
OpName %main4_inner "main4_inner"
OpName %main4 "main4"
OpName %main5_inner "main5_inner"
OpName %main5 "main5"
OpDecorate %value Location 0
OpDecorate %value_1 Location 1
OpDecorate %value_2 Location 2
OpDecorate %value_3 Location 3
OpDecorate %value_4 Location 4
OpDecorate %value_5 Location 5
%int = OpTypeInt 32 1
%_ptr_Output_int = OpTypePointer Output %int
%4 = OpConstantNull %int
%value = OpVariable %_ptr_Output_int Output %4
%uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%8 = OpConstantNull %uint
%value_1 = OpVariable %_ptr_Output_uint Output %8
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%12 = OpConstantNull %float
%value_2 = OpVariable %_ptr_Output_float Output %12
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%16 = OpConstantNull %v4float
%value_3 = OpVariable %_ptr_Output_v4float Output %16
%half = OpTypeFloat 16
%_ptr_Output_half = OpTypePointer Output %half
%20 = OpConstantNull %half
%value_4 = OpVariable %_ptr_Output_half Output %20
%v3half = OpTypeVector %half 3
%_ptr_Output_v3half = OpTypePointer Output %v3half
%24 = OpConstantNull %v3half
%value_5 = OpVariable %_ptr_Output_v3half Output %24
%25 = OpTypeFunction %int
%int_1 = OpConstant %int 1
%void = OpTypeVoid
%29 = OpTypeFunction %void
%34 = OpTypeFunction %uint
%uint_1 = OpConstant %uint 1
%41 = OpTypeFunction %float
%float_1 = OpConstant %float 1
%48 = OpTypeFunction %v4float
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%54 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%58 = OpTypeFunction %half
%half_0x1_2p_1 = OpConstant %half 0x1.2p+1
%65 = OpTypeFunction %v3half
%half_0x1_8p_1 = OpConstant %half 0x1.8p+1
%half_0x1_4p_2 = OpConstant %half 0x1.4p+2
%half_0x1p_3 = OpConstant %half 0x1p+3
%71 = OpConstantComposite %v3half %half_0x1_8p_1 %half_0x1_4p_2 %half_0x1p_3
%main0_inner = OpFunction %int None %25
%27 = OpLabel
OpReturnValue %int_1
OpFunctionEnd
%main0 = OpFunction %void None %29
%32 = OpLabel
%33 = OpFunctionCall %int %main0_inner
OpStore %value %33
OpReturn
OpFunctionEnd
%main1_inner = OpFunction %uint None %34
%36 = OpLabel
OpReturnValue %uint_1
OpFunctionEnd
%main1 = OpFunction %void None %29
%39 = OpLabel
%40 = OpFunctionCall %uint %main1_inner
OpStore %value_1 %40
OpReturn
OpFunctionEnd
%main2_inner = OpFunction %float None %41
%43 = OpLabel
OpReturnValue %float_1
OpFunctionEnd
%main2 = OpFunction %void None %29
%46 = OpLabel
%47 = OpFunctionCall %float %main2_inner
OpStore %value_2 %47
OpReturn
OpFunctionEnd
%main3_inner = OpFunction %v4float None %48
%50 = OpLabel
OpReturnValue %54
OpFunctionEnd
%main3 = OpFunction %void None %29
%56 = OpLabel
%57 = OpFunctionCall %v4float %main3_inner
OpStore %value_3 %57
OpReturn
OpFunctionEnd
%main4_inner = OpFunction %half None %58
%60 = OpLabel
OpReturnValue %half_0x1_2p_1
OpFunctionEnd
%main4 = OpFunction %void None %29
%63 = OpLabel
%64 = OpFunctionCall %half %main4_inner
OpStore %value_4 %64
OpReturn
OpFunctionEnd
%main5_inner = OpFunction %v3half None %65
%67 = OpLabel
OpReturnValue %71
OpFunctionEnd
%main5 = OpFunction %void None %29
%73 = OpLabel
%74 = OpFunctionCall %v3half %main5_inner
OpStore %value_5 %74
OpReturn
OpFunctionEnd