51 lines
2.0 KiB
Plaintext
51 lines
2.0 KiB
Plaintext
SKIP: FAILED
|
|
|
|
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 22
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main"
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %S "S"
|
|
OpMemberName %S 0 "matrix"
|
|
OpMemberName %S 1 "vector"
|
|
OpName %data "data"
|
|
OpName %main "main"
|
|
OpDecorate %S Block
|
|
OpMemberDecorate %S 0 Offset 0
|
|
OpMemberDecorate %S 0 ColMajor
|
|
OpMemberDecorate %S 0 MatrixStride 8
|
|
OpMemberDecorate %S 1 Offset 32
|
|
OpDecorate %data NonWritable
|
|
OpDecorate %data DescriptorSet 0
|
|
OpDecorate %data Binding 0
|
|
%float = OpTypeFloat 32
|
|
%v2float = OpTypeVector %float 2
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
|
%v3float = OpTypeVector %float 3
|
|
%S = OpTypeStruct %mat3v2float %v3float
|
|
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
|
%data = OpVariable %_ptr_Uniform_S Uniform
|
|
%void = OpTypeVoid
|
|
%8 = OpTypeFunction %void
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Uniform_mat3v2float = OpTypePointer Uniform %mat3v2float
|
|
%uint_1 = OpConstant %uint 1
|
|
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
|
|
%main = OpFunction %void None %8
|
|
%11 = OpLabel
|
|
%15 = OpAccessChain %_ptr_Uniform_mat3v2float %data %uint_0
|
|
%16 = OpLoad %mat3v2float %15
|
|
%19 = OpAccessChain %_ptr_Uniform_v3float %data %uint_1
|
|
%20 = OpLoad %v3float %19
|
|
%21 = OpMatrixTimesVector %v2float %16 %20
|
|
OpReturn
|
|
OpFunctionEnd
|
|
1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16
|
|
%S = OpTypeStruct %mat3v2float %v3float
|
|
|