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/texture-types-tests.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/gfx-unit-test/texture-types-tests.cpp') diff --git a/tools/gfx-unit-test/texture-types-tests.cpp b/tools/gfx-unit-test/texture-types-tests.cpp index 94f7a764f..4d8037ce8 100644 --- a/tools/gfx-unit-test/texture-types-tests.cpp +++ b/tools/gfx-unit-test/texture-types-tests.cpp @@ -234,11 +234,11 @@ namespace gfx_test void validateTextureValues(ValidationTextureData actual, ValidationTextureData original) { // TODO: needs to be extended to cover mip levels and array layers - for (Int x = 0; x < actual.extents.width; ++x) + for (GfxIndex x = 0; x < actual.extents.width; ++x) { - for (Int y = 0; y < actual.extents.height; ++y) + for (GfxIndex y = 0; y < actual.extents.height; ++y) { - for (Int z = 0; z < actual.extents.depth; ++z) + for (GfxIndex z = 0; z < actual.extents.depth; ++z) { auto actualBlock = (uint8_t*)actual.getBlockAt(x, y, z); for (Int i = 0; i < 4; ++i) @@ -536,11 +536,11 @@ namespace gfx_test // TODO: Needs to handle either the correct slice or array layer (will not always check z) void validateTextureValues(ValidationTextureData actual) { - for (Int x = 0; x < actual.extents.width; ++x) + for (GfxIndex x = 0; x < actual.extents.width; ++x) { - for (Int y = 0; y < actual.extents.height; ++y) + for (GfxIndex y = 0; y < actual.extents.height; ++y) { - for (Int z = 0; z < actual.extents.depth; ++z) + for (GfxIndex z = 0; z < actual.extents.depth; ++z) { auto actualBlock = (float*)actual.getBlockAt(x, y, z); for (Int i = 0; i < 4; ++i) -- cgit v1.2.3