Skip to content

LiteFX::Rendering::DeviceState::add

add overloads

Synopses

Declared in <litefx/rendering_api.hpp>

Adds a new buffer to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IBuffer>&& buffer);

» more...

Adds a new frame buffer to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IFrameBuffer>&& frameBuffer);

» more...

Adds a new image to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IImage>&& image);

» more...

Adds a new index buffer to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IIndexBuffer>&& indexBuffer);

» more...

Adds a new render pass to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IRenderPass>&& renderPass);

» more...

Adds a new sampler to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<ISampler>&& sampler);

» more...

Adds a new vertex buffer to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(SharedPtr<IVertexBuffer>&& vertexBuffer);

» more...

Adds a new acceleration structure to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(UniquePtr<IAccelerationStructure>&& accelerationStructure);

» more...

Adds a new pipeline to the device state and uses its name as identifier.

[[dllimport, dllexport]] void add(UniquePtr<IPipeline>&& pipeline);

» more...

Adds a new buffer to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IBuffer>&& buffer);

» more...

Adds a new frame buffer to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IFrameBuffer>&& frameBuffer);

» more...

Adds a new image to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IImage>&& image);

» more...

Adds a new index buffer to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IIndexBuffer>&& indexBuffer);

» more...

Adds a new render pass to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IRenderPass>&& renderPass);

» more...

Adds a new sampler to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<ISampler>&& sampler);

» more...

Adds a new vertex buffer to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IVertexBuffer>&& vertexBuffer);

» more...

Adds a new acceleration structure to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    UniquePtr<IAccelerationStructure>&& accelerationStructure);

» more...

Adds a new descriptor set to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    UniquePtr<IDescriptorSet>&& descriptorSet);

» more...

Adds a new pipeline to the device state.

[[dllimport, dllexport]] void add(
    String const& id,
    UniquePtr<IPipeline>&& pipeline);

» more...

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another buffer with the same identifier has already been added.

Parameters

NameDescription
bufferThe buffer to add to the device state.
frameBufferThe render pass to add to the device state.
imageThe image to add to the device state.
indexBufferThe index buffer to add to the device state.
renderPassThe render pass to add to the device state.
samplerThe sampler to add to the device state.
vertexBufferThe vertex buffer to add to the device state.
accelerationStructureThe acceleration structure to add to the device state.
pipelineThe pipeline to add to the device state.
idThe identifier for the buffer.
descriptorSetThe descriptor set to add to the device state.