Skip to content

LiteFX::Rendering::IGraphicsDevice

The interface for a graphics device that.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Base Classes

NameDescription
SharedObjectBase class for an object that can be shared.

Type Aliases

Name
_Esft_type

Member Functions

NameDescription
~IGraphicsDevice [destructor] [virtual]Destructor
adapter [virtual]Returns the graphics adapter, the device uses for drawing.
allocateGlobalDescriptors Allocates a range of descriptors in the global descriptor heaps for the provided descriptorSet.
bindDescriptorSet Binds the descriptors of the descriptor set to the global descriptor heaps.
bindGlobalDescriptorHeaps Binds the global descriptor heap.
computeAccelerationStructureSizes computeAccelerationStructureSizes overloads
createQueue Attempts to create a new queue that supports the combination of queue types specified by the type parameter.
defaultQueue Returns the instance of the default ICommandQueue that supports the combination of queue types specified by the type parameter.
factory [virtual]Returns the factory instance, used to create instances from the device.
makeBarrier Creates a memory barrier instance.
makeFrameBuffer Creates a new frame buffer instance.
maximumMultiSamplingLevel [virtual]Queries the device for the maximum supported number of multi-sampling levels.
releaseGlobalDescriptors Releases a range of descriptors from the global descriptor heaps.
shared_from_this Returns a shared pointer to the current object instance.
state [virtual]Returns the device state that can be used to manage resources.
surface [virtual]Returns the surface, the device draws to.
swapChain Returns the swap chain, that contains the back and front buffers used for presentation.
ticksPerMillisecond [virtual]Returns the number of GPU ticks per milliseconds.
updateGlobalDescriptors Updates a range of descriptors in the global buffer descriptor heap with the descriptors from descriptorSet.
wait [virtual]Waits until all queues allocated from the device have finished the work issued prior to this point.
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
IGraphicsDevice [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
GraphicsDevice Represents the graphics device that a rendering back-end is doing work on.