Skip to content

LiteFX::Rendering::Backends::VulkanVertexBufferLayout::create

create overloads

Synopses

Declared in <litefx/backends/vulkan.hpp>

Creates a copy of a vertex buffer layout.

[[dllimport, dllexport]] static auto create(VulkanVertexBufferLayout const& other);

» more...

Creates a new vertex buffer layout.

[[dllimport, dllexport]] static auto create(
    size_t vertexSize,
    UInt32 binding = 0,
    VertexBufferInputRate inputRate = VertexBufferInputRate::Vertex);

» more...

Creates a new vertex buffer layout.

[[dllimport, dllexport]] static auto create(
    size_t vertexSize,
    Enumerable<BufferAttribute> const& attributes,
    UInt32 binding = 0,
    VertexBufferInputRate inputRate = VertexBufferInputRate::Vertex);

» more...

Return Value

A shared pointer to the newly created vertex buffer layout.

Parameters

NameDescription
otherThe vertex buffer layout to copy.
vertexSizeThe overall size of a single vertex.
bindingThe binding point of the vertex buffers using this layout.
inputRateThe rate at which the vertex buffer is made available to the vertex shader.
attributesThe vertex attributes.