diff options
| author | Yong He <yonghe@outlook.com> | 2022-08-20 01:03:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-20 01:03:06 -0700 |
| commit | af70651a4843b16dd24e14b5cedffe399ebeb862 (patch) | |
| tree | a6aefd5db94a048114b9a8d7ed3f826533105fab /tools/gfx/render.cpp | |
| parent | 6412c4913b6a063438bb11863f2c154d3ae42dfe (diff) | |
Call `gfx` in slang program. (#2370)
Diffstat (limited to 'tools/gfx/render.cpp')
| -rw-r--r-- | tools/gfx/render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
