mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[dxvk] Use DxvkStagingBuffer in DxvkContext
This commit is contained in:
parent
1b88bc624a
commit
8518572d13
@ -17,7 +17,7 @@ namespace dxvk {
|
||||
m_execBarriers(DxvkCmdBuffer::ExecBuffer),
|
||||
m_gfxBarriers (DxvkCmdBuffer::ExecBuffer),
|
||||
m_queryManager(m_common->queryPool()),
|
||||
m_staging (device) {
|
||||
m_staging (device, StagingBufferSize) {
|
||||
if (m_device->features().extRobustness2.nullDescriptor)
|
||||
m_features.set(DxvkContextFeature::NullDescriptors);
|
||||
if (m_device->features().extExtendedDynamicState.extendedDynamicState)
|
||||
@ -2599,7 +2599,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
void DxvkContext::trimStagingBuffers() {
|
||||
m_staging.trim();
|
||||
m_staging.reset();
|
||||
}
|
||||
|
||||
void DxvkContext::beginDebugLabel(VkDebugUtilsLabelEXT *label) {
|
||||
|
@ -19,7 +19,7 @@ namespace dxvk {
|
||||
* recorded.
|
||||
*/
|
||||
class DxvkContext : public RcObject {
|
||||
|
||||
constexpr static VkDeviceSize StagingBufferSize = 32ull << 20;
|
||||
public:
|
||||
|
||||
DxvkContext(const Rc<DxvkDevice>& device);
|
||||
@ -1082,7 +1082,7 @@ namespace dxvk {
|
||||
DxvkBarrierControlFlags m_barrierControl;
|
||||
|
||||
DxvkGpuQueryManager m_queryManager;
|
||||
DxvkStagingDataAlloc m_staging;
|
||||
DxvkStagingBuffer m_staging;
|
||||
|
||||
DxvkRenderTargetLayouts m_rtLayouts = { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user