From 0b808453407f8feef8574cae99afd90771712185 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 24 Aug 2022 13:09:07 -0400 Subject: Use enums with backing types in Slang API (#2375) * #include an absolute path didn't work - because paths were taken to always be relative. * Use enum types and specify backing rather than use typedefs so as to get enum type safety. * Add version of TextureFlavor that uses internal types. Co-authored-by: Yong He --- source/slang/slang-compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-compiler.cpp') diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index d50350b29..c1f25a012 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -1221,7 +1221,7 @@ namespace Slang } // Set the matrix layout - options.matrixLayout = getTargetReq()->getDefaultMatrixLayoutMode(); + options.matrixLayout = SlangMatrixLayoutMode(getTargetReq()->getDefaultMatrixLayoutMode()); } // Set the profile -- cgit v1.2.3