mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Inline pushConstants method
No reason not to.
This commit is contained in:
parent
94ca65d587
commit
2782afaf8a
@ -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<DxvkImage>& dstImage,
|
||||
const Rc<DxvkImage>& srcImage,
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user