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: 32
|
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 %main "main" %loc0_1 %loc1_1 %loc2_1 %loc3_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %loc0_1 "loc0_1"
|
|
|
|
OpName %loc1_1 "loc1_1"
|
|
|
|
OpName %loc2_1 "loc2_1"
|
|
|
|
OpName %loc3_1 "loc3_1"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %FragmentInputs "FragmentInputs"
|
|
|
|
OpMemberName %FragmentInputs 0 "loc0"
|
|
|
|
OpMemberName %FragmentInputs 1 "loc1"
|
|
|
|
OpMemberName %FragmentInputs 2 "loc2"
|
|
|
|
OpMemberName %FragmentInputs 3 "loc3"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %inputs "inputs"
|
|
|
|
OpName %main "main"
|
|
|
|
OpDecorate %loc0_1 Location 0
|
|
|
|
OpDecorate %loc0_1 Flat
|
|
|
|
OpDecorate %loc1_1 Location 1
|
|
|
|
OpDecorate %loc1_1 Flat
|
|
|
|
OpDecorate %loc2_1 Location 2
|
|
|
|
OpDecorate %loc3_1 Location 3
|
2021-06-03 09:38:34 +00:00
|
|
|
OpMemberDecorate %FragmentInputs 0 Offset 0
|
|
|
|
OpMemberDecorate %FragmentInputs 1 Offset 4
|
|
|
|
OpMemberDecorate %FragmentInputs 2 Offset 8
|
|
|
|
OpMemberDecorate %FragmentInputs 3 Offset 16
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%_ptr_Input_int = OpTypePointer Input %int
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc0_1 = OpVariable %_ptr_Input_int Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc1_1 = OpVariable %_ptr_Input_uint Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%_ptr_Input_float = OpTypePointer Input %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc2_1 = OpVariable %_ptr_Input_float Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%loc3_1 = OpVariable %_ptr_Input_v4float Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%FragmentInputs = OpTypeStruct %int %uint %float %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%13 = OpTypeFunction %void %FragmentInputs
|
|
|
|
%23 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %void None %13
|
|
|
|
%inputs = OpFunctionParameter %FragmentInputs
|
|
|
|
%18 = OpLabel
|
|
|
|
%19 = OpCompositeExtract %int %inputs 0
|
|
|
|
%20 = OpCompositeExtract %uint %inputs 1
|
|
|
|
%21 = OpCompositeExtract %float %inputs 2
|
|
|
|
%22 = OpCompositeExtract %v4float %inputs 3
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %23
|
|
|
|
%25 = OpLabel
|
|
|
|
%27 = OpLoad %int %loc0_1
|
|
|
|
%28 = OpLoad %uint %loc1_1
|
|
|
|
%29 = OpLoad %float %loc2_1
|
|
|
|
%30 = OpLoad %v4float %loc3_1
|
|
|
|
%31 = OpCompositeConstruct %FragmentInputs %27 %28 %29 %30
|
|
|
|
%26 = OpFunctionCall %void %main_inner %31
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|