2021-06-04 15:28:47 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-06-01 15:57:22 +00:00
|
|
|
; Bound: 56
|
2021-06-04 15:28:47 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %main "main" %value
|
2021-06-04 15:28:47 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %value "value"
|
2021-06-04 15:28:47 +00:00
|
|
|
OpName %ret_i32 "ret_i32"
|
|
|
|
OpName %ret_u32 "ret_u32"
|
|
|
|
OpName %ret_f32 "ret_f32"
|
|
|
|
OpName %MyStruct "MyStruct"
|
|
|
|
OpMemberName %MyStruct 0 "f1"
|
|
|
|
OpName %ret_MyStruct "ret_MyStruct"
|
|
|
|
OpName %ret_MyArray "ret_MyArray"
|
|
|
|
OpName %let_decls "let_decls"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
2021-06-04 15:28:47 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %value Location 0
|
2021-06-04 15:28:47 +00:00
|
|
|
OpMemberDecorate %MyStruct 0 Offset 0
|
|
|
|
OpDecorate %_arr_float_uint_10 ArrayStride 4
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%5 = OpConstantNull %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%value = OpVariable %_ptr_Output_v4float Output %5
|
2021-06-04 15:28:47 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%6 = OpTypeFunction %int
|
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%11 = OpTypeFunction %uint
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%16 = OpTypeFunction %float
|
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%MyStruct = OpTypeStruct %float
|
|
|
|
%20 = OpTypeFunction %MyStruct
|
|
|
|
%24 = OpConstantNull %MyStruct
|
|
|
|
%uint_10 = OpConstant %uint 10
|
|
|
|
%_arr_float_uint_10 = OpTypeArray %float %uint_10
|
|
|
|
%25 = OpTypeFunction %_arr_float_uint_10
|
|
|
|
%30 = OpConstantNull %_arr_float_uint_10
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%31 = OpTypeFunction %void
|
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%36 = OpConstantComposite %v3int %int_1 %int_1 %int_1
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%38 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%40 = OpConstantComposite %v3float %float_1 %float_1 %float_1
|
|
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
|
|
%43 = OpConstantComposite %MyStruct %float_1
|
2021-08-05 17:34:19 +00:00
|
|
|
%50 = OpTypeFunction %v4float
|
2021-06-04 15:28:47 +00:00
|
|
|
%ret_i32 = OpFunction %int None %6
|
|
|
|
%9 = OpLabel
|
|
|
|
OpReturnValue %int_1
|
|
|
|
OpFunctionEnd
|
|
|
|
%ret_u32 = OpFunction %uint None %11
|
|
|
|
%14 = OpLabel
|
|
|
|
OpReturnValue %uint_1
|
|
|
|
OpFunctionEnd
|
|
|
|
%ret_f32 = OpFunction %float None %16
|
|
|
|
%18 = OpLabel
|
|
|
|
OpReturnValue %float_1
|
|
|
|
OpFunctionEnd
|
|
|
|
%ret_MyStruct = OpFunction %MyStruct None %20
|
|
|
|
%23 = OpLabel
|
|
|
|
OpReturnValue %24
|
|
|
|
OpFunctionEnd
|
|
|
|
%ret_MyArray = OpFunction %_arr_float_uint_10 None %25
|
|
|
|
%29 = OpLabel
|
|
|
|
OpReturnValue %30
|
|
|
|
OpFunctionEnd
|
|
|
|
%let_decls = OpFunction %void None %31
|
|
|
|
%34 = OpLabel
|
2022-06-29 00:55:36 +00:00
|
|
|
%42 = OpCompositeConstruct %mat3v3float %40 %40 %40
|
2021-06-04 15:28:47 +00:00
|
|
|
%44 = OpFunctionCall %int %ret_i32
|
|
|
|
%45 = OpFunctionCall %uint %ret_u32
|
|
|
|
%46 = OpFunctionCall %float %ret_f32
|
|
|
|
%47 = OpFunctionCall %MyStruct %ret_MyStruct
|
|
|
|
%48 = OpFunctionCall %MyStruct %ret_MyStruct
|
|
|
|
%49 = OpFunctionCall %_arr_float_uint_10 %ret_MyArray
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main_inner = OpFunction %v4float None %50
|
|
|
|
%52 = OpLabel
|
2022-06-01 15:57:22 +00:00
|
|
|
OpReturnValue %5
|
2021-06-04 15:28:47 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %31
|
2022-06-01 15:57:22 +00:00
|
|
|
%54 = OpLabel
|
|
|
|
%55 = OpFunctionCall %v4float %main_inner
|
|
|
|
OpStore %value %55
|
2021-06-04 15:28:47 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|