Skip to content

LiteFX::Rendering::PushConstantsLayoutBuilder

Builds a PushConstantsLayout for a PipelineLayout.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<
    typename TPushConstantsLayout,
    typename TParent>
requires meta::implements<TPushConstantsLayout, PushConstantsLayout<typename TPushConstantsLayout::push_constants_range_type>>
class PushConstantsLayoutBuilder
    : public Builder<TPushConstantsLayout, TParent>

Base Classes

NameDescription
Builder<TPushConstantsLayout, TParent>Describes an generic builder type.

Type Aliases

Member Functions

NameDescription
operator= Assignment operators
add First, calls build, then use on the parent builder using the current object instance and finally returns the parent builder.
instance Returns a pointer to the current instance of the object that is built by the builder.
parent Returns a reference of the parent builder.
use [deleted]Called by child builders to pass a constructed object back to the parent builder.
withRange Adds a new push constants range.

Using Declarations

Protected Member Functions

NameDescription
build [virtual]Can be overwritten to perform any pre-construction work before the builder returns the final object instance.
instance Returns a pointer to the current instance of the object that is built by the builder.
makeRange [virtual]Creates a new push constants range.
state Returns the current push constants layout state.

Template Parameters

NameDescription
TPushConstantsLayoutThe type of the push constants layout. Must implement PushConstantsLayout.

Derived Classes

NameDescription
DirectX12PushConstantsLayoutBuilder Builds a DirectX 12 PushConstantsLayout for a pipeline layout.
VulkanPushConstantsLayoutBuilder Builds a Vulkan PushConstantsLayout for a VulkanPipelineLayout.

See Also

PushConstantsLayout