mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d11] Check if uav's counter slice is defined in CopyStructureCount
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
This commit is contained in:
parent
261d31cac6
commit
4dd68987d6
@ -670,9 +670,13 @@ namespace dxvk {
|
||||
if (!buf || !uav)
|
||||
return;
|
||||
|
||||
auto counterSlice = uav->GetCounterSlice();
|
||||
if (!counterSlice.defined())
|
||||
return;
|
||||
|
||||
EmitCs([
|
||||
cDstSlice = buf->GetBufferSlice(DstAlignedByteOffset),
|
||||
cSrcSlice = uav->GetCounterSlice()
|
||||
cSrcSlice = std::move(counterSlice)
|
||||
] (DxvkContext* ctx) {
|
||||
ctx->copyBuffer(
|
||||
cDstSlice.buffer(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user