summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/instanced-draw-tests.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-08-16 17:11:54 -0700
committerGitHub <noreply@github.com>2022-08-16 17:11:54 -0700
commit42f49937ffa69c82e333e886952eed027e12340e (patch)
tree08e3e9821dd40e23476060215d589e29092adb53 /tools/gfx-unit-test/instanced-draw-tests.cpp
parente68fab2bda5d979f8d991fc41122bb9aa71849a6 (diff)
Add gfx interface definition in Slang. (#2364)
* Add gfx interface definition in Slang. - add gfx interface definitons in Slang. - fix slang compiler to correctly type-check `out` interface argument. - modify gfx interface to be fully COM compatible - add convenient ShaderProgram creation methods to gfx. * Fix compile errors and warnings. * Update project files * Fix cuda. * Properly implement queryInterface in command encoder impls. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test/instanced-draw-tests.cpp')
-rw-r--r--tools/gfx-unit-test/instanced-draw-tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/instanced-draw-tests.cpp b/tools/gfx-unit-test/instanced-draw-tests.cpp
index 1e2fa1037..6491e8944 100644
--- a/tools/gfx-unit-test/instanced-draw-tests.cpp
+++ b/tools/gfx-unit-test/instanced-draw-tests.cpp
@@ -387,7 +387,7 @@ namespace gfx_test
encoder->setPrimitiveTopology(PrimitiveTopology::TriangleList);
uint32_t maxDrawCount = 1;
- uint64_t argOffset = offsetof(IndirectArgData, args);
+ Offset argOffset = offsetof(IndirectArgData, args);
encoder->drawIndirect(maxDrawCount, indirectBuffer, argOffset);
encoder->endEncoding();
@@ -464,7 +464,7 @@ namespace gfx_test
encoder->setPrimitiveTopology(PrimitiveTopology::TriangleList);
uint32_t maxDrawCount = 1;
- uint64_t argOffset = offsetof(IndexedIndirectArgData, args);
+ Offset argOffset = offsetof(IndexedIndirectArgData, args);
encoder->drawIndexedIndirect(maxDrawCount, indirectBuffer, argOffset);
encoder->endEncoding();