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);
Adds a new frame buffer to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<IFrameBuffer>&& frameBuffer);
Adds a new image to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<IImage>&& image);
Adds a new index buffer to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<IIndexBuffer>&& indexBuffer);
Adds a new render pass to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<IRenderPass>&& renderPass);
Adds a new sampler to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<ISampler>&& sampler);
Adds a new vertex buffer to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(SharedPtr<IVertexBuffer>&& vertexBuffer);
Adds a new acceleration structure to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(UniquePtr<IAccelerationStructure>&& accelerationStructure);
Adds a new pipeline to the device state and uses its name as identifier.
[[dllimport, dllexport]] void add(UniquePtr<IPipeline>&& pipeline);
Adds a new buffer to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IBuffer>&& buffer);
Adds a new frame buffer to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IFrameBuffer>&& frameBuffer);
Adds a new image to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IImage>&& image);
Adds a new index buffer to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IIndexBuffer>&& indexBuffer);
Adds a new render pass to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IRenderPass>&& renderPass);
Adds a new sampler to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<ISampler>&& sampler);
Adds a new vertex buffer to the device state.
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IVertexBuffer>&& vertexBuffer);
Adds a new acceleration structure to the device state.
[[dllimport, dllexport]] void add(
String const& id,
UniquePtr<IAccelerationStructure>&& accelerationStructure);
Adds a new descriptor set to the device state.
[[dllimport, dllexport]] void add(
String const& id,
UniquePtr<IDescriptorSet>&& descriptorSet);
Adds a new pipeline to the device state.
[[dllimport, dllexport]] void add(
String const& id,
UniquePtr<IPipeline>&& pipeline);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another buffer with the same identifier has already been added. |
Parameters¶
| Name | Description |
|---|---|
| buffer | The buffer to add to the device state. |
| frameBuffer | The render pass to add to the device state. |
| image | The image to add to the device state. |
| indexBuffer | The index buffer to add to the device state. |
| renderPass | The render pass to add to the device state. |
| sampler | The sampler to add to the device state. |
| vertexBuffer | The vertex buffer to add to the device state. |
| accelerationStructure | The acceleration structure to add to the device state. |
| pipeline | The pipeline to add to the device state. |
| id | The identifier for the buffer. |
| descriptorSet | The descriptor set to add to the device state. |