LiteFX::Rendering::Backends::DirectX12GraphicsFactory::createIndexBuffer¶
Creates an index buffer, based on the layout.
Synopses¶
Declared in <litefx/backends/dx12.hpp>
Creates an index buffer, based on the layout.
[[dllimport, dllexport]] virtual SharedPtr<IDirectX12IndexBuffer> createIndexBuffer(
DirectX12IndexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const override;
Creates an index buffer, based on the layout.
[[dllimport]] virtual SharedPtr<IDirectX12IndexBuffer> createIndexBuffer(
index_buffer_layout_type const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const = 0;
Creates an index buffer, based on the layout.
[[dllimport, dllexport]] virtual SharedPtr<IDirectX12IndexBuffer> createIndexBuffer(
String const& name,
DirectX12IndexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const override;
Creates an index buffer, based on the layout.
[[dllimport]] virtual SharedPtr<IDirectX12IndexBuffer> createIndexBuffer(
String const& name,
index_buffer_layout_type const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const = 0;
Return Value¶
The instance of the index buffer.
Parameters¶
| Name | Description |
|---|---|
| layout | The layout of the index buffer. |
| heap | The heap to allocate the buffer on. |
| elements | The number of elements within the vertex buffer (i.e. the number of indices). |
| usage | The intended usage for the buffer. |
| allocationBehavior | The behavior controlling what happens if currently there is not enough memory available for the resource. |
| name | The name of the buffer. |