Cogs.Core
|
Provides capability query functionality. More...
#include <ICapabilities.h>
Public Member Functions | |
virtual Vendors::EVendors | getVendor () const |
Gets the known vendor of the initialized graphics device. | |
virtual Series::ESeries | getSeries () const |
Gets the series of GPUs the currently initialized graphics device belongs to. | |
virtual int | getModel () const |
Gets the model number of the initialized graphics device. | |
virtual bool | supportsInstancing () const |
Check if the graphics device supports instancing. | |
virtual int | getMaxTextureSlots () const |
Gets maximum number of supported texture slots. | |
virtual const GraphicsDeviceCapabilities & | getDeviceCapabilities () const |
Gets the device capabilities in a structure. | |
Private Attributes | |
GraphicsDeviceCapabilities | none |
Provides capability query functionality.
This can for example be used to select shader implementations or rendering paths based on GPU capabilities.
Definition at line 140 of file ICapabilities.h.
|
inlinevirtual |
Gets the device capabilities in a structure.
Reimplemented in Cogs::CapabilitiesGL20, Cogs::CapabilitiesD3D11, Cogs::CapabilitiesD3D12, Cogs::CapabilitiesNull, Cogs::CapabilitiesGLES30, and Cogs::CapabilitiesWebGPU.
Definition at line 182 of file ICapabilities.h.
Referenced by Cogs::Core::Renderer::getClearDepth(), Cogs::Core::Renderer::getNearDepth(), Cogs::Core::Renderer::getProjectionMatrix(), Cogs::Core::Renderer::getViewFromViewportMatrix(), Cogs::Core::Image360System::update(), and Cogs::Core::Renderer::updatePermutation().
|
inlinevirtual |
Gets maximum number of supported texture slots.
Reimplemented in Cogs::CapabilitiesGL20.
Definition at line 175 of file ICapabilities.h.
|
inlinevirtual |
Gets the model number of the initialized graphics device.
Reimplemented in Cogs::CapabilitiesGL20, and Cogs::CapabilitiesWebGPU.
Definition at line 161 of file ICapabilities.h.
|
inlinevirtual |
Gets the series of GPUs the currently initialized graphics device belongs to.
Reimplemented in Cogs::CapabilitiesGL20, Cogs::CapabilitiesD3D11, Cogs::CapabilitiesNull, and Cogs::CapabilitiesWebGPU.
Definition at line 154 of file ICapabilities.h.
References Cogs::Series::Unknown.
|
inlinevirtual |
Gets the known vendor of the initialized graphics device.
Reimplemented in Cogs::CapabilitiesGL20, Cogs::CapabilitiesD3D11, Cogs::CapabilitiesNull, and Cogs::CapabilitiesWebGPU.
Definition at line 147 of file ICapabilities.h.
References Cogs::Vendors::Unknown.
|
inlinevirtual |
Check if the graphics device supports instancing.
Reimplemented in Cogs::CapabilitiesD3D11, Cogs::CapabilitiesD3D12, Cogs::CapabilitiesNull, Cogs::CapabilitiesGLES30, and Cogs::CapabilitiesWebGPU.
Definition at line 168 of file ICapabilities.h.
Referenced by Cogs::Core::ShapeSystem::initialize().
|
private |
Definition at line 185 of file ICapabilities.h.