|
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 141 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 183 of file ICapabilities.h.
Referenced by 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 176 of file ICapabilities.h.
|
inlinevirtual |
Gets the model number of the initialized graphics device.
Reimplemented in Cogs::CapabilitiesGL20, and Cogs::CapabilitiesWebGPU.
Definition at line 162 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 155 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 148 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 169 of file ICapabilities.h.
Referenced by Cogs::Core::ShapeSystem::initialize().
|
private |
Definition at line 186 of file ICapabilities.h.