diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-04-21 12:59:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 12:59:09 -0700 |
| commit | f493d24c70a6227754296439e97adf35ec412496 (patch) | |
| tree | 25fffb03c067477bef68ccdc66865683159e3ab5 /tools/gfx/render.cpp | |
| parent | 1b6cea2219307f6271e131c43d6e8f48910bd435 (diff) | |
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
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 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" |
