Skip to content

LiteFX::Rendering::Backends::DirectX12GraphicsAdapter

Implements a DirectX12 IGraphicsAdapter.

Synopsis

Declared in <litefx/backends/dx12_api.hpp>

class [[dllimport, dllexport]] DirectX12GraphicsAdapter final
    : public IGraphicsAdapter
    , public ComResource<IDXGIAdapter4>

Base Classes

NameDescription
IGraphicsAdapterRepresents a physical graphics adapter.
ComResource<IDXGIAdapter4>A resource that is hold by a ComPtr.

Type Aliases

Member Functions

NameDescription
~DirectX12GraphicsAdapter [destructor] [virtual]Destructor
apiVersion [virtual]Returns the graphics API version.
dedicatedMemory [virtual]Returns the amount of dedicated graphics memory (in bytes), this adapter can use.
deviceId [virtual]Returns a unique identifier, that identifies the product.
driverVersion [virtual]Returns the graphics driver version.
handle [virtual]Returns the resource managed by the class.
name [virtual]Retrieves the name of the graphics adapter.
shared_from_this
shared_from_this
shared_from_this Returns a shared pointer to the current object instance.
type [virtual]Returns the type of the graphics adapter.
uniqueId [virtual]Returns a unique identifier, that identifies the device in the system.
vendorId [virtual]Returns a unique identifier, that identifies the vendor of the graphics adapter.
weak_from_this
weak_from_this
weak_from_this Returns a weak pointer to the current object instance.

Static Member Functions

NameDescription
create Creates a new DirectX12 graphics adapter.

Protected Types

NameDescription
Allocator An allocator used to allocate the shared object.

Protected Member Functions

NameDescription
operator= Copy assignment operator
operator= Copy assignment operator
operator= Move assignment operator
operator= Move assignment operator
operator= [deleted]Assignment operator
operator=
operator= Assignment operator
handle [virtual]Returns the resource managed by the class.

Protected Static Member Functions

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

Friends

NameDescription
LiteFX::SharedObject::AllocatorAn allocator used to allocate the shared object.
LiteFX::Rendering::Backends::DirectX12GraphicsAdapter::DirectX12GraphicsAdapterImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.