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: 32
|
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 %v1 "v1"
|
|
|
|
OpName %v2 "v2"
|
|
|
|
OpName %v3 "v3"
|
|
|
|
OpName %v4 "v4"
|
|
|
|
OpName %v5 "v5"
|
|
|
|
OpName %v6 "v6"
|
|
|
|
OpName %v7 "v7"
|
|
|
|
OpName %MyStruct "MyStruct"
|
|
|
|
OpMemberName %MyStruct 0 "f1"
|
|
|
|
OpName %v8 "v8"
|
|
|
|
OpName %v9 "v9"
|
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
|
2021-08-05 17:34:19 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%5 = OpConstantNull %v4float
|
|
|
|
%value = OpVariable %_ptr_Output_v4float Output %5
|
2021-06-04 15:28:47 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v1 = OpConstant %int 1
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v2 = OpConstant %uint 1
|
|
|
|
%v3 = OpConstant %float 1
|
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%v4 = OpConstantComposite %v3int %v1 %v1 %v1
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%v5 = OpConstantComposite %v3uint %v2 %v2 %v2
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%v6 = OpConstantComposite %v3float %v3 %v3 %v3
|
|
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
|
|
%v7 = OpConstantComposite %mat3v3float %v6 %v6 %v6
|
|
|
|
%MyStruct = OpTypeStruct %float
|
|
|
|
%v8 = OpConstantNull %MyStruct
|
|
|
|
%uint_10 = OpConstant %uint 10
|
|
|
|
%_arr_float_uint_10 = OpTypeArray %float %uint_10
|
|
|
|
%v9 = OpConstantNull %_arr_float_uint_10
|
2021-08-05 17:34:19 +00:00
|
|
|
%24 = OpTypeFunction %v4float
|
2021-06-04 15:28:47 +00:00
|
|
|
%void = OpTypeVoid
|
2022-06-01 15:57:22 +00:00
|
|
|
%27 = OpTypeFunction %void
|
2021-08-05 17:34:19 +00:00
|
|
|
%main_inner = OpFunction %v4float None %24
|
|
|
|
%26 = OpLabel
|
2022-06-01 15:57:22 +00:00
|
|
|
OpReturnValue %5
|
2021-06-04 15:28:47 +00:00
|
|
|
OpFunctionEnd
|
2022-06-01 15:57:22 +00:00
|
|
|
%main = OpFunction %void None %27
|
|
|
|
%30 = OpLabel
|
|
|
|
%31 = OpFunctionCall %v4float %main_inner
|
|
|
|
OpStore %value %31
|
2021-06-04 15:28:47 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|