Skip to content

LiteFX::Rendering::GlobalDescriptorHeaps::create

Creates a new descriptor heaps instance.

Synopsis

Declared in <litefx/rendering_api.hpp>

template<typename TBackend>
[[nodiscard]] static UniquePtr<GlobalDescriptorHeaps> create(
    UInt32 resourceDescriptors,
    UInt32 samplerDescriptors);

Return Value

A pointer to the newly created descriptor heaps instance.

Note

The return value should not be discarded.

Template Parameters

NameDescription
TBackendThe type of the backend from which the global descriptor heaps are allocated.

Parameters

NameDescription
resourceDescriptorsThe number of available resource descriptors.
samplerDescriptorsThe number of available sampler descriptors.