MCPcopy Create free account
hub / github.com/GPUOpen-Effects/TressFX / UpdateBuffer

Method UpdateBuffer

src/DX12/DX12EngineInterfaceImpl.cpp:1643–1650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1641}
1642
1643void 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
1652void EI_CommandContext::ClearUint32Image(EI_Resource* res, uint32_t value)
1653{

Callers 1

OnCreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected