2021-08-23 21:45:23 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-09-01 22:12:19 +00:00
|
|
|
; Bound: 33
|
2021-08-23 21:45:23 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Fragment %main "main"
|
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2022-09-01 22:12:19 +00:00
|
|
|
OpName %S_std140 "S_std140"
|
|
|
|
OpMemberName %S_std140 0 "matrix_0"
|
|
|
|
OpMemberName %S_std140 1 "matrix_1"
|
|
|
|
OpMemberName %S_std140 2 "matrix_2"
|
|
|
|
OpMemberName %S_std140 3 "vector"
|
2021-08-23 21:45:23 +00:00
|
|
|
OpName %data "data"
|
2022-09-01 22:12:19 +00:00
|
|
|
OpName %load_data_matrix "load_data_matrix"
|
2021-08-23 21:45:23 +00:00
|
|
|
OpName %main "main"
|
2022-09-01 22:12:19 +00:00
|
|
|
OpDecorate %S_std140 Block
|
|
|
|
OpMemberDecorate %S_std140 0 Offset 0
|
|
|
|
OpMemberDecorate %S_std140 1 Offset 8
|
|
|
|
OpMemberDecorate %S_std140 2 Offset 16
|
|
|
|
OpMemberDecorate %S_std140 3 Offset 32
|
2021-08-23 21:45:23 +00:00
|
|
|
OpDecorate %data NonWritable
|
|
|
|
OpDecorate %data DescriptorSet 0
|
|
|
|
OpDecorate %data Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%v3float = OpTypeVector %float 3
|
2022-09-01 22:12:19 +00:00
|
|
|
%S_std140 = OpTypeStruct %v2float %v2float %v2float %v3float
|
|
|
|
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
|
|
|
|
%data = OpVariable %_ptr_Uniform_S_std140 Uniform
|
|
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
|
|
|
%7 = OpTypeFunction %mat3v2float
|
2021-08-23 21:45:23 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
2022-09-01 22:12:19 +00:00
|
|
|
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
|
2021-08-23 21:45:23 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-09-01 22:12:19 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%23 = OpTypeFunction %void
|
|
|
|
%uint_3 = OpConstant %uint 3
|
2021-08-23 21:45:23 +00:00
|
|
|
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
|
2022-09-01 22:12:19 +00:00
|
|
|
%load_data_matrix = OpFunction %mat3v2float None %7
|
|
|
|
%10 = OpLabel
|
|
|
|
%14 = OpAccessChain %_ptr_Uniform_v2float %data %uint_0
|
|
|
|
%15 = OpLoad %v2float %14
|
|
|
|
%17 = OpAccessChain %_ptr_Uniform_v2float %data %uint_1
|
|
|
|
%18 = OpLoad %v2float %17
|
|
|
|
%20 = OpAccessChain %_ptr_Uniform_v2float %data %uint_2
|
|
|
|
%21 = OpLoad %v2float %20
|
|
|
|
%22 = OpCompositeConstruct %mat3v2float %15 %18 %21
|
|
|
|
OpReturnValue %22
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %23
|
|
|
|
%26 = OpLabel
|
|
|
|
%27 = OpFunctionCall %mat3v2float %load_data_matrix
|
|
|
|
%30 = OpAccessChain %_ptr_Uniform_v3float %data %uint_3
|
|
|
|
%31 = OpLoad %v3float %30
|
|
|
|
%32 = OpMatrixTimesVector %v2float %27 %31
|
2021-08-23 21:45:23 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|