summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestShaderResourceLayout.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-08 04:38:41 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-08 04:38:41 +0000
commite4b09fda21a4c3eab5b4ebec96a3c87b4af2327f (patch)
treeda8674f1102b4f042b3ac989a5c0065e5b0be257 /Tests/TestApp/src/TestShaderResourceLayout.cpp
parentFixed test app on UWP (diff)
downloadDiligentEngine-e4b09fda21a4c3eab5b4ebec96a3c87b4af2327f.tar.gz
DiligentEngine-e4b09fda21a4c3eab5b4ebec96a3c87b4af2327f.zip
Updated Core & tests
Diffstat (limited to 'Tests/TestApp/src/TestShaderResourceLayout.cpp')
-rw-r--r--Tests/TestApp/src/TestShaderResourceLayout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/TestApp/src/TestShaderResourceLayout.cpp b/Tests/TestApp/src/TestShaderResourceLayout.cpp
index bdd897e..c6d2194 100644
--- a/Tests/TestApp/src/TestShaderResourceLayout.cpp
+++ b/Tests/TestApp/src/TestShaderResourceLayout.cpp
@@ -295,7 +295,7 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev
auto pVar = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_VERTEX, v);
VERIFY_EXPR(pVar->GetIndex() == v);
VERIFY_EXPR(pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_STATIC);
- auto pVar2 = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_VERTEX, pVar->GetName());
+ auto pVar2 = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_VERTEX, pVar->GetResourceDesc().Name);
VERIFY_EXPR(pVar == pVar2);
}
}
@@ -324,7 +324,7 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev
auto pVar = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_PIXEL, v);
VERIFY_EXPR(pVar->GetIndex() == v);
VERIFY_EXPR(pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_STATIC);
- auto pVar2 = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_PIXEL, pVar->GetName());
+ auto pVar2 = pTestPSO->GetStaticShaderVariable(SHADER_TYPE_PIXEL, pVar->GetResourceDesc().Name);
VERIFY_EXPR(pVar == pVar2);
}
}
@@ -422,7 +422,7 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev
auto pVar = pSRB->GetVariable(SHADER_TYPE_VERTEX, v);
VERIFY_EXPR(pVar->GetIndex() == v);
VERIFY_EXPR(pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_MUTABLE || pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_DYNAMIC);
- auto pVar2 = pSRB->GetVariable(SHADER_TYPE_VERTEX, pVar->GetName());
+ auto pVar2 = pSRB->GetVariable(SHADER_TYPE_VERTEX, pVar->GetResourceDesc().Name);
VERIFY_EXPR(pVar == pVar2);
}
}
@@ -434,7 +434,7 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev
auto pVar = pSRB->GetVariable(SHADER_TYPE_PIXEL, v);
VERIFY_EXPR(pVar->GetIndex() == v);
VERIFY_EXPR(pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_MUTABLE || pVar->GetType() == SHADER_RESOURCE_VARIABLE_TYPE_DYNAMIC);
- auto pVar2 = pSRB->GetVariable(SHADER_TYPE_PIXEL, pVar->GetName());
+ auto pVar2 = pSRB->GetVariable(SHADER_TYPE_PIXEL, pVar->GetResourceDesc().Name);
VERIFY_EXPR(pVar == pVar2);
}
}