2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-12-06 18:32:19 +00:00
|
|
|
; Bound: 46
|
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 %frag_main "frag_main" %f_1 %u_1 %v_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %frag_main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %f_1 "f_1"
|
|
|
|
OpName %u_1 "u_1"
|
|
|
|
OpName %v_1 "v_1"
|
2022-09-02 19:19:10 +00:00
|
|
|
OpName %output_block "output_block"
|
|
|
|
OpMemberName %output_block 0 "inner"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "f"
|
|
|
|
OpMemberName %S 1 "u"
|
|
|
|
OpMemberName %S 2 "v"
|
|
|
|
OpName %output "output"
|
2022-12-06 18:32:19 +00:00
|
|
|
OpName %assign_and_preserve_padding_output "assign_and_preserve_padding_output"
|
|
|
|
OpName %value "value"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %frag_main_inner "frag_main_inner"
|
|
|
|
OpName %input "input"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %frag_main "frag_main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %f_1 Location 0
|
|
|
|
OpDecorate %u_1 Location 1
|
|
|
|
OpDecorate %u_1 Flat
|
|
|
|
OpDecorate %v_1 BuiltIn FragCoord
|
2022-09-02 19:19:10 +00:00
|
|
|
OpDecorate %output_block Block
|
|
|
|
OpMemberDecorate %output_block 0 Offset 0
|
2021-06-03 09:38:34 +00:00
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpMemberDecorate %S 1 Offset 4
|
|
|
|
OpMemberDecorate %S 2 Offset 128
|
|
|
|
OpDecorate %output DescriptorSet 0
|
|
|
|
OpDecorate %output Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Input_float = OpTypePointer Input %float
|
|
|
|
%f_1 = OpVariable %_ptr_Input_float Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
|
|
%u_1 = OpVariable %_ptr_Input_uint Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
|
|
|
%v_1 = OpVariable %_ptr_Input_v4float Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%S = OpTypeStruct %float %uint %v4float
|
2022-09-02 19:19:10 +00:00
|
|
|
%output_block = OpTypeStruct %S
|
|
|
|
%_ptr_StorageBuffer_output_block = OpTypePointer StorageBuffer %output_block
|
|
|
|
%output = OpVariable %_ptr_StorageBuffer_output_block StorageBuffer
|
2021-06-03 09:38:34 +00:00
|
|
|
%void = OpTypeVoid
|
2022-09-02 19:19:10 +00:00
|
|
|
%14 = OpTypeFunction %void %S
|
|
|
|
%uint_0 = OpConstant %uint 0
|
2022-12-06 18:32:19 +00:00
|
|
|
%_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
|
|
|
|
%38 = OpTypeFunction %void
|
|
|
|
%assign_and_preserve_padding_output = OpFunction %void None %14
|
|
|
|
%value = OpFunctionParameter %S
|
|
|
|
%18 = OpLabel
|
|
|
|
%21 = OpAccessChain %_ptr_StorageBuffer_float %output %uint_0 %uint_0
|
|
|
|
%22 = OpCompositeExtract %float %value 0
|
|
|
|
OpStore %21 %22
|
|
|
|
%25 = OpAccessChain %_ptr_StorageBuffer_uint %output %uint_0 %uint_1
|
|
|
|
%26 = OpCompositeExtract %uint %value 1
|
|
|
|
OpStore %25 %26
|
|
|
|
%29 = OpAccessChain %_ptr_StorageBuffer_v4float %output %uint_0 %uint_2
|
|
|
|
%30 = OpCompositeExtract %v4float %value 2
|
|
|
|
OpStore %29 %30
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-09-02 19:19:10 +00:00
|
|
|
%frag_main_inner = OpFunction %void None %14
|
2021-08-05 17:34:19 +00:00
|
|
|
%input = OpFunctionParameter %S
|
2022-12-06 18:32:19 +00:00
|
|
|
%33 = OpLabel
|
|
|
|
%34 = OpCompositeExtract %float %input 0
|
|
|
|
%35 = OpCompositeExtract %uint %input 1
|
|
|
|
%36 = OpCompositeExtract %v4float %input 2
|
|
|
|
%37 = OpFunctionCall %void %assign_and_preserve_padding_output %input
|
2021-08-05 17:34:19 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-12-06 18:32:19 +00:00
|
|
|
%frag_main = OpFunction %void None %38
|
|
|
|
%40 = OpLabel
|
|
|
|
%42 = OpLoad %float %f_1
|
|
|
|
%43 = OpLoad %uint %u_1
|
|
|
|
%44 = OpLoad %v4float %v_1
|
|
|
|
%45 = OpCompositeConstruct %S %42 %43 %44
|
|
|
|
%41 = OpFunctionCall %void %frag_main_inner %45
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|