summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/shared-textures-tests.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2021-12-09 15:15:16 -0800
committerGitHub <noreply@github.com>2021-12-09 15:15:16 -0800
commit62161b802a8efbf6820ba79f880c99e455ab3bf6 (patch)
treeef242700b665abe3094ded3e21dcbfcf593ede14 /tools/gfx-unit-test/shared-textures-tests.cpp
parent1c99a986ae12a3f1ce4cee86191052183d37208a (diff)
Implement instanced and indirect draw calls (#2053)
* Added implementations of drawInstanced, drawIndexedInstanced, drawIndirect, and drawIndexedIndirect to both render-d3d12 and render-vk * drawInstanced test WIP * Draw calls implemented, working on debugging test * Added new test and accompanying shader file * Fixes. * Fixes. Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx-unit-test/shared-textures-tests.cpp')
-rw-r--r--tools/gfx-unit-test/shared-textures-tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gfx-unit-test/shared-textures-tests.cpp b/tools/gfx-unit-test/shared-textures-tests.cpp
index 896d6d6e6..d32a8493e 100644
--- a/tools/gfx-unit-test/shared-textures-tests.cpp
+++ b/tools/gfx-unit-test/shared-textures-tests.cpp
@@ -184,7 +184,8 @@ namespace gfx_test
dstTexture,
ResourceState::ShaderResource,
texData,
- sizeof(texData));
+ 32,
+ 2);
auto texView = createTexView(dstDevice, dstTexture);
setUpAndRunShader(dstDevice, dstTexture, texView, floatBufferView, "copyTexFloat4");