LiteFX::Rendering::IGraphicsFactory::createVertexBuffer¶
Creates a vertex buffer, based on the layout.
Synopses¶
Declared in <litefx/rendering_api.hpp>
Creates a vertex buffer, based on the layout.
[[dllimport, dllexport]] SharedPtr<IVertexBuffer> createVertexBuffer(
IVertexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements = 1,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const;
Creates a vertex buffer, based on the layout.
[[dllimport, dllexport]] SharedPtr<IVertexBuffer> createVertexBuffer(
String const& name,
IVertexBufferLayout const& layout,
ResourceHeap heap,
UInt32 elements = 1,
ResourceUsage usage = ResourceUsage::Default,
AllocationBehavior allocationBehavior = AllocationBehavior::Default) const;
Return Value¶
The instance of the vertex buffer.
Parameters¶
| Name | Description |
|---|---|
| layout | The layout of the vertex buffer. |
| heap | The heap to allocate the buffer on. |
| elements | The number of elements within the vertex buffer (i.e. the number of vertices). |
| 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. |