Skip to content

LiteFX::Rendering::IGraphicsFactory

The interface for a graphics factory.

Synopsis

Declared in <litefx/rendering_api.hpp>

class [[dllimport, dllexport]] IGraphicsFactory
    : public SharedObject

Base Classes

NameDescription
SharedObjectBase class for an object that can be shared.

Type Aliases

Name
_Esft_type

Member Functions

NameDescription
~IGraphicsFactory [destructor] [virtual]Destructor
allocate allocate overloads
beginDefragmentation [virtual]Starts a defragmentation process for the resources allocated from the factory.
beginDefragmentationPass [virtual]Starts a new defragmentation pass.
canAlias [virtual]Checks if the resources described by allocationInfos can be overlapped.
createAllocator [virtual]Creates a virtual allocator that can be used to manage allocation from a custom block of memory.
createBottomLevelAccelerationStructure Creates a bottom-level acceleration structure.
createBuffer createBuffer overloads
createIndexBuffer Creates an index buffer, based on the layout.
createSampler Creates a texture sampler.
createSamplers Creates a series of texture samplers.
createTexture Creates a texture.
createTextures Creates a series of textures.
createTopLevelAccelerationStructure Creates a top-level acceleration structure.
createVertexBuffer Creates a vertex buffer, based on the layout.
detailedMemoryStatistics [virtual]Returns detailed memory statistics.
endDefragmentationPass [virtual]Ends a defragmentation pass.
memoryStatistics [virtual]Returns an array of objects, that contain information about the current memory usage and available memory for a memory heap.
shared_from_this Returns a shared pointer to the current object instance.
supportsResizableBaseAddressRegister [virtual]Returns true, if the GPU supports resizable base address register (ReBAR) and false otherwise.
tryCreateBuffer tryCreateBuffer overloads
tryCreateIndexBuffer Tries to create an index buffer, based on the layout.
tryCreateTexture Tries to create a texture.
tryCreateVertexBuffer Tries to create a vertex buffer, based on the layout.
weak_from_this Returns a weak pointer to the current object instance.

Protected Types

NameDescription
Allocator An allocator used to allocate the shared object.

Protected Member Functions

NameDescription
IGraphicsFactory [constructor]Constructors
operator= Assignment operators

Protected Static Member Functions

NameDescription
create Generic factory method used to create instances of the shared object.

Derived Classes

NameDescription
GraphicsFactory Describes a factory that creates objects for a GraphicsDevice.