summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/texture-types-tests.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-04-21 12:59:09 -0700
committerGitHub <noreply@github.com>2022-04-21 12:59:09 -0700
commitf493d24c70a6227754296439e97adf35ec412496 (patch)
tree25fffb03c067477bef68ccdc66865683159e3ab5 /tools/gfx-unit-test/texture-types-tests.cpp
parent1b6cea2219307f6271e131c43d6e8f48910bd435 (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-unit-test/texture-types-tests.cpp')
-rw-r--r--tools/gfx-unit-test/texture-types-tests.cpp12
1 files changed, 6 insertions, 6 deletions
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)