| 1641 | } |
| 1642 | |
| 1643 | void EI_CommandContext::UpdateBuffer(EI_Resource* res, void* data) |
| 1644 | { |
| 1645 | D3D12_SUBRESOURCE_DATA subResData = {}; |
| 1646 | subResData.pData = data; |
| 1647 | subResData.RowPitch = res->m_pBuffer->m_totalMemSize; |
| 1648 | subResData.SlicePitch = res->m_pBuffer->m_totalMemSize; |
| 1649 | UpdateSubresources<1>(commandBuffer.Get(), res->m_pBuffer->gpuBuffer, res->m_pBuffer->cpuBuffer, 0, 0, 1, &subResData); |
| 1650 | } |
| 1651 | |
| 1652 | void EI_CommandContext::ClearUint32Image(EI_Resource* res, uint32_t value) |
| 1653 | { |