| 45 | } |
| 46 | |
| 47 | ref<D3D12ConstantBufferView> D3D12ConstantBufferView::create(ref<Device> pDevice, uint64_t gpuAddress, uint32_t byteSize) |
| 48 | { |
| 49 | FALCOR_ASSERT(pDevice); |
| 50 | pDevice->requireD3D12(); |
| 51 | |
| 52 | D3D12_CONSTANT_BUFFER_VIEW_DESC desc = {}; |
| 53 | desc.BufferLocation = gpuAddress; |
| 54 | desc.SizeInBytes = byteSize; |
| 55 | |
| 56 | return ref<D3D12ConstantBufferView>(new D3D12ConstantBufferView(nullptr, createCbvDescriptor(pDevice, desc))); |
| 57 | } |
| 58 | |
| 59 | ref<D3D12ConstantBufferView> D3D12ConstantBufferView::create(ref<Device> pDevice, ref<Buffer> pBuffer) |
| 60 | { |
nothing calls this directly
no test coverage detected