mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 22:54:16 +01:00
[d3d11] Use clearBuffer to initialize UAV counters
This commit is contained in:
parent
7fa26f1c87
commit
a148233b13
@ -2814,14 +2814,13 @@ namespace dxvk {
|
||||
const DxvkBufferSlice counterSlice = uav->GetCounterSlice();
|
||||
const D3D11UavCounter counterValue = { pUAVInitialCounts[i] };
|
||||
|
||||
if (counterSlice.defined()
|
||||
&& counterValue.atomicCtr != 0xFFFFFFFFu) {
|
||||
if (counterSlice.defined() && counterValue.atomicCtr != 0xFFFFFFFFu) {
|
||||
EmitCs([counterSlice, counterValue] (DxvkContext* ctx) {
|
||||
ctx->updateBuffer(
|
||||
ctx->clearBuffer(
|
||||
counterSlice.buffer(),
|
||||
counterSlice.offset(),
|
||||
counterSlice.length(),
|
||||
&counterValue);
|
||||
counterValue.atomicCtr);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user