|
| DirectX12Backend (const App &app, const bool &advancedSoftwareRasterizer=false) |
|
| DirectX12Backend (const DirectX12Backend &) noexcept=delete |
|
| DirectX12Backend (DirectX12Backend &&) noexcept=delete |
|
virtual | ~DirectX12Backend () |
|
virtual BackendType | type () const noexcept override |
| Gets the type of the backend. More...
|
|
virtual String | name () const noexcept override |
| Gets the name of the backend. More...
|
|
virtual Array< const DirectX12GraphicsAdapter * > | listAdapters () const override |
|
virtual const DirectX12GraphicsAdapter * | findAdapter (const Optional< UInt64 > &adapterId=std::nullopt) const override |
| Finds an adapter using its unique ID. More...
|
|
virtual void | registerDevice (String name, UniquePtr< DirectX12Device > &&device) override |
|
virtual void | releaseDevice (const String &name) override |
| Destroys and removes a device from the backend. More...
|
|
virtual DirectX12Device * | device (const String &name) noexcept override |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual const DirectX12Device * | device (const String &name) const noexcept override |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
UniquePtr< DirectX12Surface > | createSurface (const HWND &hwnd) const |
| Creates a surface on a window handle. More...
|
|
virtual void | enableAdvancedSoftwareRasterizer (const bool &enable=false) |
| Enables Windows Advanced Software Rasterization (WARP). More...
|
|
virtual | ~RenderBackend () noexcept=default |
|
virtual Array< const adapter_type * > | listAdapters () const=0 |
|
virtual const adapter_type * | findAdapter (const Optional< UInt64 > &adapterId=std::nullopt) const=0 |
| Finds an adapter using its unique ID. More...
|
|
virtual void | registerDevice (String name, UniquePtr< device_type > &&device)=0 |
|
device_type * | createDevice (String name, const adapter_type &adapter, UniquePtr< surface_type > &&surface, TArgs &&... _args) |
| Creates a new graphics device. More...
|
|
virtual void | releaseDevice (const String &name)=0 |
| Destroys and removes a device from the backend. More...
|
|
virtual device_type * | device (const String &name) noexcept=0 |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual const device_type * | device (const String &name) const noexcept=0 |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual const device_type * | operator[] (const String &name) const noexcept |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual device_type * | operator[] (const String &name) noexcept |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual | ~IRenderBackend () noexcept=default |
|
Array< const IGraphicsAdapter * > | listAdapters () const |
| Lists all available graphics adapters. More...
|
|
virtual const IGraphicsAdapter * | findAdapter (const Optional< UInt64 > &adapterId=std::nullopt) const =0 |
| Finds an adapter using its unique ID. More...
|
|
virtual IGraphicsDevice * | device (const String &name) noexcept=0 |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual const IGraphicsDevice * | device (const String &name) const noexcept=0 |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual const IGraphicsDevice * | operator[] (const String &name) const noexcept |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual IGraphicsDevice * | operator[] (const String &name) noexcept |
| Looks up a device and returns a pointer to it, or nullptr , if no device with the provided name could be found. More...
|
|
virtual | ~IBackend () noexcept=default |
|
virtual BackendType | type () const noexcept=0 |
| Gets the type of the backend. More...
|
|
const BackendState & | state () const noexcept |
| Returns the state of the backend. More...
|
|
virtual String | name () const noexcept=0 |
| Gets the name of the backend. More...
|
|
| Resource (const Resource &)=delete |
|
| Resource (Resource &&)=delete |
|
virtual | ~Resource () noexcept=default |
|
const THandle & | handle () const noexcept override |
| Returns the resource managed by the class. More...
|
|
virtual | ~IResource () noexcept=default |
|
virtual const THandle & | handle () const noexcept=0 |
| Returns the resource managed by the class. More...
|
|
Implements the DirectX 12 RenderBackend.