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-unit-test/gfx-test-texture-util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/gfx-unit-test/gfx-test-texture-util.cpp') diff --git a/tools/gfx-unit-test/gfx-test-texture-util.cpp b/tools/gfx-unit-test/gfx-test-texture-util.cpp index c7c85db58..e9d884894 100644 --- a/tools/gfx-unit-test/gfx-test-texture-util.cpp +++ b/tools/gfx-unit-test/gfx-test-texture-util.cpp @@ -29,14 +29,14 @@ namespace gfx_test } } - uint32_t getTexelSize(Format format) + Size getTexelSize(Format format) { FormatInfo info; GFX_CHECK_CALL_ABORT(gfxGetFormatInfo(format, &info)); return info.blockSizeInBytes / info.pixelsPerBlock; } - uint32_t getSubresourceIndex(uint32_t mipLevel, uint32_t mipLevelCount, uint32_t baseArrayLayer) + GfxIndex getSubresourceIndex(GfxIndex mipLevel, GfxCount mipLevelCount, GfxIndex baseArrayLayer) { return baseArrayLayer * mipLevelCount + mipLevel; } @@ -155,9 +155,9 @@ namespace gfx_test auto mipLevels = texture->mipLevelCount; auto texelSize = getTexelSize(texture->format); - for (uint32_t layer = 0; layer < arrayLayers; ++layer) + for (GfxIndex layer = 0; layer < arrayLayers; ++layer) { - for (uint32_t mip = 0; mip < mipLevels; ++mip) + for (GfxIndex mip = 0; mip < mipLevels; ++mip) { RefPtr subresource = new ValidationTextureData(); -- cgit v1.2.3