From f493d24c70a6227754296439e97adf35ec412496 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Thu, 21 Apr 2022 12:59:09 -0700 Subject: GFX renaming work part 2: slang-gfx.h renames (#2194) * Fixed all build errors and type conversion warnings from renames in slang-gfx.h * Made necessary build fixes to the CUDA implementation * Renamed ITextureResource::Size to ITextureResource::Extents * More rename changes based on CI errors * More renames to fix CI build errors * Rerun tests --- 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 80c662597..4d6e1bb85 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -35,7 +35,7 @@ static bool _checkFormat() #define GFX_FORMAT_CHECK(name, blockSizeInBytes, pixelsPerblock) count += Index(Index(Format::name) == value++); GFX_FORMAT(GFX_FORMAT_CHECK) - const bool r = (count == Index(Format::CountOf)); + const bool r = (count == Index(Format::_Count)); SLANG_ASSERT(r); return r; } @@ -168,14 +168,14 @@ struct FormatInfoMap const FormatInfo& get(Format format) const { return m_infos[Index(format)]; } - FormatInfo m_infos[Index(Format::CountOf)]; + FormatInfo m_infos[Index(Format::_Count)]; }; static const FormatInfoMap s_formatInfoMap; static void _compileTimeAsserts() { - SLANG_COMPILE_TIME_ASSERT(SLANG_COUNT_OF(s_formatSizeInfo) == int(Format::CountOf)); + SLANG_COMPILE_TIME_ASSERT(SLANG_COUNT_OF(s_formatSizeInfo) == int(Format::_Count)); } extern "C" -- cgit v1.2.3