From af70651a4843b16dd24e14b5cedffe399ebeb862 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 20 Aug 2022 01:03:06 -0700 Subject: Call `gfx` in slang program. (#2370) --- tools/gfx/render.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gfx/render.cpp') diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp index b508e0fe8..e32ed8f6c 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -180,7 +180,7 @@ static void _compileTimeAsserts() extern "C" { - SLANG_GFX_API bool gfxIsCompressedFormat(Format format) + SLANG_GFX_API bool SLANG_MCALL gfxIsCompressedFormat(Format format) { switch (format) { @@ -204,7 +204,7 @@ extern "C" } } - SLANG_GFX_API bool gfxIsTypelessFormat(Format format) + SLANG_GFX_API bool SLANG_MCALL gfxIsTypelessFormat(Format format) { switch (format) { @@ -226,7 +226,7 @@ extern "C" } } - SLANG_GFX_API SlangResult gfxGetFormatInfo(Format format, FormatInfo* outInfo) + SLANG_GFX_API SlangResult SLANG_MCALL gfxGetFormatInfo(Format format, FormatInfo* outInfo) { *outInfo = s_formatInfoMap.get(format); return SLANG_OK; -- cgit v1.2.3