From 7b4c72379bf3c5feae58120cf3ef26d53d16ff10 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Thu, 24 Jul 2025 01:03:15 +0800 Subject: Fix MSVC compiler complains about different calling convention between interface and impl when building Win32 binaries (#7845) (#7872) --- include/slang.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/slang.h b/include/slang.h index 9d7fe2d49..5db0a8ee0 100644 --- a/include/slang.h +++ b/include/slang.h @@ -4201,7 +4201,7 @@ struct IMetadata : public ISlangCastable /* Returns the debug build identifier for a base and debug spirv pair. */ - virtual const char* getDebugBuildIdentifier() = 0; + virtual const char* SLANG_MCALL getDebugBuildIdentifier() = 0; }; #define SLANG_UUID_IMetadata IMetadata::getTypeGuid() @@ -4217,9 +4217,9 @@ struct ICompileResult : public ISlangCastable 0x41e5, {0x9f, 0x12, 0x4b, 0xad, 0x4d, 0x9e, 0xaa, 0xe4}) - virtual uint32_t getItemCount() = 0; - virtual SlangResult getItemData(uint32_t index, IBlob** outblob) = 0; - virtual SlangResult getMetadata(IMetadata** outMetadata) = 0; + virtual uint32_t SLANG_MCALL getItemCount() = 0; + virtual SlangResult SLANG_MCALL getItemData(uint32_t index, IBlob** outblob) = 0; + virtual SlangResult SLANG_MCALL getMetadata(IMetadata** outMetadata) = 0; }; #define SLANG_UUID_ICompileResult ICompileResult::getTypeGuid() -- cgit v1.2.3