| 563 | } |
| 564 | |
| 565 | void* StagingBuffer::Map(ID3D11DeviceContext* context) |
| 566 | { |
| 567 | D3D11_MAPPED_SUBRESOURCE mapped; |
| 568 | DXCall(context->Map(Buffer, 0, D3D11_MAP_READ, 0, &mapped)); |
| 569 | |
| 570 | return mapped.pData; |
| 571 | } |
| 572 | |
| 573 | void StagingBuffer::Unmap(ID3D11DeviceContext* context) |
| 574 | { |
no test coverage detected