From 661d6198bbb9857d3fdc6df477e0742ed0b0765c Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 14 Aug 2023 16:23:19 -0700 Subject: Support per field matrix layout (#3101) * Support per field matrix layout * Fix warnings. * Fix. * Fix tests. * Fix spiv gen. * Fix. * More test fixes. * Fix. * Run only GPU tests on self-hosted servers. * Remove -use-glsl-matrix-layout-modifier. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-ast-type.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/slang-ast-type.cpp') diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index 7ea5e8ed1..6d4a52cae 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -238,6 +238,11 @@ IntVal* MatrixExpressionType::getColumnCount() return as(_getGenericTypeArg(this, 2)); } +IntVal* MatrixExpressionType::getLayout() +{ + return as(_getGenericTypeArg(this, 3)); +} + Type* MatrixExpressionType::getRowType() { if (!rowType) -- cgit v1.2.3