From 2782afaf8acef100af766a6a14455dd132124ed7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 30 Jul 2022 17:52:55 +0200 Subject: [PATCH] [dxvk] Inline pushConstants method No reason not to. --- src/dxvk/dxvk_context.cpp | 10 ---------- src/dxvk/dxvk_context.h | 8 ++++++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index f568987e5..b2c3bb837 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1790,16 +1790,6 @@ namespace dxvk { } - void DxvkContext::pushConstants( - uint32_t offset, - uint32_t size, - const void* data) { - std::memcpy(&m_state.pc.data[offset], data, size); - - m_flags.set(DxvkContextFlag::DirtyPushConstants); - } - - void DxvkContext::resolveImage( const Rc& dstImage, const Rc& srcImage, diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index 46b0dd9ba..c738dd5ec 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -793,8 +793,12 @@ namespace dxvk { void pushConstants( uint32_t offset, uint32_t size, - const void* data); - + const void* data) { + std::memcpy(&m_state.pc.data[offset], data, size); + + m_flags.set(DxvkContextFlag::DirtyPushConstants); + } + /** * \brief Resolves a multisampled image resource *