| 547 | } |
| 548 | |
| 549 | void* StagingBuffer::Map(ID3D11DeviceContext* context) |
| 550 | { |
| 551 | D3D11_MAPPED_SUBRESOURCE mapped; |
| 552 | DXCall(context->Map(Buffer, 0, D3D11_MAP_READ, 0, &mapped)); |
| 553 | |
| 554 | return mapped.pData; |
| 555 | } |
| 556 | |
| 557 | void StagingBuffer::Unmap(ID3D11DeviceContext* context) |
| 558 | { |
no test coverage detected