Skip to content

LiteFX::Rendering::Backends::VulkanGraphicsFactory::createVertexBuffer

Creates a vertex buffer, based on the layout.

Synopses

Declared in <litefx/backends/vulkan.hpp>

Creates a vertex buffer, based on the layout.

[[dllimport, dllexport]] virtual SharedPtr<IVulkanVertexBuffer> createVertexBuffer(
    VulkanVertexBufferLayout const& layout,
    ResourceHeap heap,
    UInt32 elements = 1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const override;

» more...

Creates a vertex buffer, based on the layout.

[[dllimport]] virtual SharedPtr<IVulkanVertexBuffer> createVertexBuffer(
    vertex_buffer_layout_type const& layout,
    ResourceHeap heap,
    UInt32 elements = 1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const = 0;

» more...

Creates a vertex buffer, based on the layout.

[[dllimport, dllexport]] virtual SharedPtr<IVulkanVertexBuffer> createVertexBuffer(
    String const& name,
    VulkanVertexBufferLayout const& layout,
    ResourceHeap heap,
    UInt32 elements = 1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const override;

» more...

Creates a vertex buffer, based on the layout.

[[dllimport]] virtual SharedPtr<IVulkanVertexBuffer> createVertexBuffer(
    String const& name,
    vertex_buffer_layout_type const& layout,
    ResourceHeap heap,
    UInt32 elements = 1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const = 0;

» more...

Return Value

The instance of the vertex buffer.

Parameters

NameDescription
layoutThe layout of the vertex buffer.
heapThe heap to allocate the buffer on.
elementsThe number of elements within the vertex buffer (i.e. the number of vertices).
usageThe intended usage for the buffer.
allocationBehaviorThe behavior controlling what happens if currently there is not enough memory available for the resource.
nameThe name of the buffer.