SPARK
0.1.0
A general purpose game engine written in C++.
|
Represents the graphics device that a rendering back-end is doing work on. More...
#include <GraphicsDevice.h>
Public Member Functions | |
DeviceState & | state () noexcept override=0 |
Gets the device state used to manage the device resources. | |
const surface_type & | surface () const noexcept override=0 |
Gets the surface the device is rendering to. | |
const adapter_type & | graphicsAdapter () const noexcept override=0 |
Gets the graphics adapter the device uses for drawing. | |
const swap_chain_type & | swapChain () const noexcept override=0 |
Gets the graphics adapter that contains the front and back buffers used for presentation. | |
swap_chain_type & | swapChain () noexcept override=0 |
Gets the graphics adapter that contains the front and back buffers used for presentation. | |
const factory_type & | factory () const noexcept override=0 |
Gets the graphics factory used to create buffers, textures, samplers from the device. | |
const command_queue_type & | graphicsQueue () const noexcept override=0 |
Gets the queue instance used to process draw calls. | |
const command_queue_type & | transferQueue () const noexcept override=0 |
Gets the queue instance used for device-device transfers (e.g. between render-passes). | |
const command_queue_type & | bufferQueue () const noexcept override=0 |
Gets the queue instance used for buffer transfers (e.g. between CPU and GPU). | |
const command_queue_type & | computeQueue () const noexcept override=0 |
Gets the queue instance used for compute operations. | |
![]() | |
virtual MultiSamplingLevel | maximumMultiSamplingLevel (Format format) const noexcept=0 |
Gets the maximum number of multi-sampling levels supported for the given format. | |
virtual double | ticksPerMillisecond () const noexcept=0 |
Gets the number of GPU ticks per millisecond. | |
virtual void | wait () const =0 |
Waits until the device is idle. | |
Represents the graphics device that a rendering back-end is doing work on.
SurfaceType | The type of the surface the device is rendering to. (Implements ISurface) |
GraphicsAdapterType | The type of the graphics adapter the device uses for drawing. (Implements IGraphicsAdapter) |
SwapChainType | The type of the swap chain the device uses for presentation. (Implements ISwapChain) |
CommandQueueType | The type of the command queue the device uses for draw calls. (Implements ICommandQueue) |
RenderPassType | The type of the render pass the device uses for draw calls. (Implements IRenderPass) |
The graphics device is the central instance of a renderer. It owns the device state, which contains objects required for communication between your application and the graphics driver. Most notably, those objects contain the ISwapChain instance and the ICommandQueue instances used for data and command transfer.
|
nodiscardoverridepure virtualnoexcept |
Gets the queue instance used for buffer transfers (e.g. between CPU and GPU).
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the queue instance used for compute operations.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the graphics factory used to create buffers, textures, samplers from the device.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the graphics adapter the device uses for drawing.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the queue instance used to process draw calls.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the device state used to manage the device resources.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the surface the device is rendering to.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the graphics adapter that contains the front and back buffers used for presentation.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the graphics adapter that contains the front and back buffers used for presentation.
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.
|
nodiscardoverridepure virtualnoexcept |
Gets the queue instance used for device-device transfers (e.g. between render-passes).
Implements spark::render::IGraphicsDevice.
Implemented in spark::render::vk::VulkanDevice.