| 638 | } |
| 639 | |
| 640 | D3D12_INDEX_BUFFER_VIEW FormattedBuffer::IBView() const |
| 641 | { |
| 642 | Assert_(Format == DXGI_FORMAT_R16_UINT || Format == DXGI_FORMAT_R32_UINT); |
| 643 | D3D12_INDEX_BUFFER_VIEW ibView = { }; |
| 644 | ibView.BufferLocation = GPUAddress; |
| 645 | ibView.Format = Format; |
| 646 | ibView.SizeInBytes = uint32(InternalBuffer.Size); |
| 647 | return ibView; |
| 648 | } |
| 649 | |
| 650 | void* FormattedBuffer::Map() |
| 651 | { |
nothing calls this directly
no outgoing calls
no test coverage detected