blob: 344531c1342f4d394b31327e4052ad322f356e0e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 64
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %frag_main "frag_main" %f_1 %u_1 %v_1 %x_1 %y_1
OpExecutionMode %frag_main OriginUpperLeft
OpName %f_1 "f_1"
OpName %u_1 "u_1"
OpName %v_1 "v_1"
OpName %x_1 "x_1"
OpName %y_1 "y_1"
OpName %output_block "output_block"
OpMemberName %output_block 0 "inner"
OpName %S "S"
OpMemberName %S 0 "f"
OpMemberName %S 1 "u"
OpMemberName %S 2 "v"
OpMemberName %S 3 "x"
OpMemberName %S 4 "y"
OpName %output "output"
OpName %assign_and_preserve_padding_output "assign_and_preserve_padding_output"
OpName %value "value"
OpName %frag_main_inner "frag_main_inner"
OpName %input "input"
OpName %frag_main "frag_main"
OpDecorate %f_1 Location 0
OpDecorate %u_1 Location 1
OpDecorate %u_1 Flat
OpDecorate %v_1 BuiltIn FragCoord
OpDecorate %x_1 Location 2
OpDecorate %y_1 Location 3
OpDecorate %output_block Block
OpMemberDecorate %output_block 0 Offset 0
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
OpMemberDecorate %S 2 Offset 128
OpMemberDecorate %S 3 Offset 160
OpMemberDecorate %S 4 Offset 192
OpDecorate %output DescriptorSet 0
OpDecorate %output Binding 0
%float = OpTypeFloat 32
%_ptr_Input_float = OpTypePointer Input %float
%f_1 = OpVariable %_ptr_Input_float Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%u_1 = OpVariable %_ptr_Input_uint Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%v_1 = OpVariable %_ptr_Input_v4float Input
%half = OpTypeFloat 16
%_ptr_Input_half = OpTypePointer Input %half
%x_1 = OpVariable %_ptr_Input_half Input
%v3half = OpTypeVector %half 3
%_ptr_Input_v3half = OpTypePointer Input %v3half
%y_1 = OpVariable %_ptr_Input_v3half Input
%S = OpTypeStruct %float %uint %v4float %half %v3half
%output_block = OpTypeStruct %S
%_ptr_StorageBuffer_output_block = OpTypePointer StorageBuffer %output_block
%output = OpVariable %_ptr_StorageBuffer_output_block StorageBuffer
%void = OpTypeVoid
%20 = OpTypeFunction %void %S
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%uint_1 = OpConstant %uint 1
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_2 = OpConstant %uint 2
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%uint_4 = OpConstant %uint 4
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%54 = OpTypeFunction %void
%assign_and_preserve_padding_output = OpFunction %void None %20
%value = OpFunctionParameter %S
%24 = OpLabel
%27 = OpAccessChain %_ptr_StorageBuffer_float %output %uint_0 %uint_0
%28 = OpCompositeExtract %float %value 0
OpStore %27 %28
%31 = OpAccessChain %_ptr_StorageBuffer_uint %output %uint_0 %uint_1
%32 = OpCompositeExtract %uint %value 1
OpStore %31 %32
%35 = OpAccessChain %_ptr_StorageBuffer_v4float %output %uint_0 %uint_2
%36 = OpCompositeExtract %v4float %value 2
OpStore %35 %36
%39 = OpAccessChain %_ptr_StorageBuffer_half %output %uint_0 %uint_3
%40 = OpCompositeExtract %half %value 3
OpStore %39 %40
%43 = OpAccessChain %_ptr_StorageBuffer_v3half %output %uint_0 %uint_4
%44 = OpCompositeExtract %v3half %value 4
OpStore %43 %44
OpReturn
OpFunctionEnd
%frag_main_inner = OpFunction %void None %20
%input = OpFunctionParameter %S
%47 = OpLabel
%48 = OpCompositeExtract %float %input 0
%49 = OpCompositeExtract %uint %input 1
%50 = OpCompositeExtract %v4float %input 2
%51 = OpCompositeExtract %half %input 3
%52 = OpCompositeExtract %v3half %input 4
%53 = OpFunctionCall %void %assign_and_preserve_padding_output %input
OpReturn
OpFunctionEnd
%frag_main = OpFunction %void None %54
%56 = OpLabel
%58 = OpLoad %float %f_1
%59 = OpLoad %uint %u_1
%60 = OpLoad %v4float %v_1
%61 = OpLoad %half %x_1
%62 = OpLoad %v3half %y_1
%63 = OpCompositeConstruct %S %58 %59 %60 %61 %62
%57 = OpFunctionCall %void %frag_main_inner %63
OpReturn
OpFunctionEnd