summaryrefslogtreecommitdiffstats
path: root/tools/platform
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-11-22 11:24:25 -0800
committerGitHub <noreply@github.com>2021-11-22 11:24:25 -0800
commitfd46034bf2de59b8ad51743e62b26359678432f7 (patch)
tree2879aac8cc49fea87fa2c168e69afae5c6e7b5df /tools/platform
parent87eb789ae03cbd7a79d5433cefb37f10bec86753 (diff)
gfx: Add more fixed function states and instancing draw calls. (#2023)
* gfx: Add more fixed function states and instancing draw calls. * Fix clang error. * Fix clang. * Fixes. * Add `AccelerationStructureCurrentSize` enum. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/platform')
-rw-r--r--tools/platform/gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/platform/gui.cpp b/tools/platform/gui.cpp
index 1573a848b..53d0a43ba 100644
--- a/tools/platform/gui.cpp
+++ b/tools/platform/gui.cpp
@@ -310,10 +310,10 @@ void GUI::endFrame(ITransientResourceHeap* transientHeap, IFramebuffer* framebuf
{
ScissorRect rect =
{
- (Int)(command->ClipRect.x - pos.x),
- (Int)(command->ClipRect.y - pos.y),
- (Int)(command->ClipRect.z - pos.x),
- (Int)(command->ClipRect.w - pos.y)
+ (int32_t)(command->ClipRect.x - pos.x),
+ (int32_t)(command->ClipRect.y - pos.y),
+ (int32_t)(command->ClipRect.z - pos.x),
+ (int32_t)(command->ClipRect.w - pos.y)
};
renderEncoder->setScissorRects(1, &rect);