LiteFX::Rendering::GraphicsFactory::createIndexBuffer¶
Creates an index buffer, based on the layout.
Synopses¶
Declared in <litefx/rendering.hpp>
Creates an index buffer, based on the layout.
[[dllimport, dllexport]] SharedPtr<IIndexBuffer> createIndexBuffer(
IIndexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const;
Creates an index buffer, based on the layout.
virtual SharedPtr<TIndexBuffer> 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]] SharedPtr<IIndexBuffer> createIndexBuffer(
String const& name,
IIndexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const;
Creates an index buffer, based on the layout.
virtual SharedPtr<TIndexBuffer> 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. |