summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-system-shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-type-system-shared.cpp')
-rw-r--r--source/slang/slang-type-system-shared.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/slang-type-system-shared.cpp b/source/slang/slang-type-system-shared.cpp
new file mode 100644
index 000000000..7ccde5bcd
--- /dev/null
+++ b/source/slang/slang-type-system-shared.cpp
@@ -0,0 +1,11 @@
+#include "slang-type-system-shared.h"
+
+namespace Slang
+{
+ TextureFlavor TextureFlavor::create(SlangResourceShape shape, SlangResourceAccess access)
+ {
+ TextureFlavor rs;
+ rs.flavor = uint16_t(shape | (access << 8));
+ return rs;
+ }
+}