mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +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();
|
this->commitGraphicsState();
|
||||||
|
|
||||||
if (this->validateGraphicsState()) {
|
if (this->validateGraphicsState()) {
|
||||||
auto physicalSlice = buffer.physicalSlice();
|
auto descriptor = buffer.getDescriptor();
|
||||||
|
|
||||||
m_cmd->cmdDrawIndirect(
|
m_cmd->cmdDrawIndirect(
|
||||||
physicalSlice.handle(),
|
descriptor.buffer.buffer,
|
||||||
physicalSlice.offset(),
|
descriptor.buffer.offset,
|
||||||
count, stride);
|
count, stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -969,11 +969,11 @@ namespace dxvk {
|
|||||||
this->commitGraphicsState();
|
this->commitGraphicsState();
|
||||||
|
|
||||||
if (this->validateGraphicsState()) {
|
if (this->validateGraphicsState()) {
|
||||||
auto physicalSlice = buffer.physicalSlice();
|
auto descriptor = buffer.getDescriptor();
|
||||||
|
|
||||||
m_cmd->cmdDrawIndexedIndirect(
|
m_cmd->cmdDrawIndexedIndirect(
|
||||||
physicalSlice.handle(),
|
descriptor.buffer.buffer,
|
||||||
physicalSlice.offset(),
|
descriptor.buffer.offset,
|
||||||
count, stride);
|
count, stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user