MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / create

Method create

Source/Falcor/Core/API/Shared/D3D12ConstantBufferView.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47ref<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
59ref<D3D12ConstantBufferView> D3D12ConstantBufferView::create(ref<Device> pDevice, ref<Buffer> pBuffer)
60{

Callers

nothing calls this directly

Calls 4

createCbvDescriptorFunction · 0.85
requireD3D12Method · 0.80
getGpuAddressMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected