From fd46034bf2de59b8ad51743e62b26359678432f7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 22 Nov 2021 11:24:25 -0800 Subject: 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 --- tools/platform/gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/platform/gui.cpp') 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); -- cgit v1.2.3