mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 04:24:11 +01:00
[dxvk] Reduce CPU overhead of indirect draw calls
This commit is contained in:
parent
87f1cd2385
commit
417b6cb6dc
@ -931,11 +931,11 @@ namespace dxvk {
|
||||
this->commitGraphicsState();
|
||||
|
||||
if (this->validateGraphicsState()) {
|
||||
auto physicalSlice = buffer.physicalSlice();
|
||||
auto descriptor = buffer.getDescriptor();
|
||||
|
||||
m_cmd->cmdDrawIndirect(
|
||||
physicalSlice.handle(),
|
||||
physicalSlice.offset(),
|
||||
descriptor.buffer.buffer,
|
||||
descriptor.buffer.offset,
|
||||
count, stride);
|
||||
}
|
||||
|
||||
@ -969,11 +969,11 @@ namespace dxvk {
|
||||
this->commitGraphicsState();
|
||||
|
||||
if (this->validateGraphicsState()) {
|
||||
auto physicalSlice = buffer.physicalSlice();
|
||||
auto descriptor = buffer.getDescriptor();
|
||||
|
||||
m_cmd->cmdDrawIndexedIndirect(
|
||||
physicalSlice.handle(),
|
||||
physicalSlice.offset(),
|
||||
descriptor.buffer.buffer,
|
||||
descriptor.buffer.offset,
|
||||
count, stride);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user