Skip to content

Commit 0b3f86b

Browse files
committed
We don't need StateMask anymore
1 parent 60776b2 commit 0b3f86b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ BufferD3D12Impl::BufferD3D12Impl(IReferenceCounters* pRefCounters,
150150
ClassPtrCast<DeviceContextD3D12Impl>(pBuffData->pContext)->GetCommandQueueId() :
151151
SoftwareQueueIndex{PlatformMisc::GetLSB(m_Desc.ImmediateContextMask)};
152152

153-
const D3D12_RESOURCE_STATES StateMask = InitialDataSize > 0 ?
154-
GetSupportedD3D12ResourceStatesForCommandList(pRenderDeviceD3D12->GetCommandQueueType(CmdQueueInd)) :
155-
static_cast<D3D12_RESOURCE_STATES>(~0u);
156-
157153
// By default, committed resources and heaps are almost always zeroed upon creation.
158154
// CREATE_NOT_ZEROED flag allows this to be elided in some scenarios to lower the overhead
159155
// of creating the heap. No need to zero the resource if we initialize it.

0 commit comments

Comments
 (0)