2021-08-23 21:45:23 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 22
|
2021-08-23 21:45:23 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Fragment %main "main"
|
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %data_block "data_block"
|
|
|
|
OpMemberName %data_block 0 "inner"
|
2021-08-23 21:45:23 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "matrix"
|
|
|
|
OpMemberName %S 1 "vector"
|
|
|
|
OpName %data "data"
|
|
|
|
OpName %main "main"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %data_block Block
|
|
|
|
OpMemberDecorate %data_block 0 Offset 0
|
2021-08-23 21:45:23 +00:00
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpMemberDecorate %S 0 ColMajor
|
|
|
|
OpMemberDecorate %S 0 MatrixStride 16
|
|
|
|
OpMemberDecorate %S 1 Offset 48
|
|
|
|
OpDecorate %data NonWritable
|
|
|
|
OpDecorate %data DescriptorSet 0
|
|
|
|
OpDecorate %data Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
|
|
%S = OpTypeStruct %mat3v3float %v3float
|
2022-11-02 02:25:38 +00:00
|
|
|
%data_block = OpTypeStruct %S
|
|
|
|
%_ptr_Uniform_data_block = OpTypePointer Uniform %data_block
|
|
|
|
%data = OpVariable %_ptr_Uniform_data_block Uniform
|
2021-08-23 21:45:23 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%8 = OpTypeFunction %void
|
2021-08-23 21:45:23 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
|
2022-11-02 02:25:38 +00:00
|
|
|
%main = OpFunction %void None %8
|
|
|
|
%11 = OpLabel
|
|
|
|
%15 = OpAccessChain %_ptr_Uniform_mat3v3float %data %uint_0 %uint_0
|
|
|
|
%16 = OpLoad %mat3v3float %15
|
|
|
|
%19 = OpAccessChain %_ptr_Uniform_v3float %data %uint_0 %uint_1
|
|
|
|
%20 = OpLoad %v3float %19
|
|
|
|
%21 = OpMatrixTimesVector %v3float %16 %20
|
2021-08-23 21:45:23 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|