From 42f49937ffa69c82e333e886952eed027e12340e Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 16 Aug 2022 17:11:54 -0700 Subject: Add gfx interface definition in Slang. (#2364) * Add gfx interface definition in Slang. - add gfx interface definitons in Slang. - fix slang compiler to correctly type-check `out` interface argument. - modify gfx interface to be fully COM compatible - add convenient ShaderProgram creation methods to gfx. * Fix compile errors and warnings. * Update project files * Fix cuda. * Properly implement queryInterface in command encoder impls. Co-authored-by: Yong He --- prelude/slang-cpp-host-prelude.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'prelude') diff --git a/prelude/slang-cpp-host-prelude.h b/prelude/slang-cpp-host-prelude.h index 37f28f8d6..3aec0dd07 100644 --- a/prelude/slang-cpp-host-prelude.h +++ b/prelude/slang-cpp-host-prelude.h @@ -5,6 +5,8 @@ #include #include +#define SLANG_COM_PTR_ENABLE_REF_OPERATOR 1 + #include "../source/slang-rt/slang-rt.h" #include "../slang-com-ptr.h" #include "slang-cpp-types.h" -- cgit v1.2.3