Cogs.Core
Public Member Functions | Public Attributes | Private Attributes | List of all members
Cogs::CapabilitiesGL20 Struct Reference
Inheritance diagram for Cogs::CapabilitiesGL20:
Cogs::ICapabilities

Public Member Functions

void initialize (bool useClipControl)
 
Vendors::EVendors getVendor () const
 Gets the known vendor of the initialized graphics device.
 
Series::ESeries getSeries () const
 Gets the series of GPUs the currently initialized graphics device belongs to.
 
int getModel () const
 Gets the model number of the initialized graphics device.
 
bool isNvidia () const
 
bool isAmd () const
 
bool isIntel () const
 
bool isApple () const
 
bool isQuadro () const
 
int getMaxTextureSlots () const
 Gets maximum number of supported texture slots.
 
const GraphicsDeviceCapabilitiesgetDeviceCapabilities () const
 Gets the device capabilities in a structure.
 
bool isSupported (const StringView &extension) const
 
- Public Member Functions inherited from Cogs::ICapabilities
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 GraphicsDeviceCapabilitiesgetDeviceCapabilities () const
 Gets the device capabilities in a structure.
 

Public Attributes

bool ARB_instanced_arrays
 
bool ARB_sampler_objects
 
bool ARB_base_instance
 
bool ARB_shader_image_load_store
 
bool ARB_pixel_buffer_object
 
bool ARB_texture_storage
 
bool ARB_texture_storage_multisample
 
bool ARB_compute_shader
 
bool KHR_debug
 
bool ARB_debug_output
 
bool EXT_texture_filter_anisotropic
 

Private Attributes

bool logStrings
 
bool logExtensions
 
Vendors::EVendors vendor
 
Series::ESeries series
 
int model
 
GraphicsDeviceCapabilities deviceCapabilities
 
std::unordered_set< std::string > extensions
 

Detailed Description

Definition at line 11 of file CapabilitiesGL20.h.

Constructor & Destructor Documentation

◆ CapabilitiesGL20()

Cogs::CapabilitiesGL20::CapabilitiesGL20 ( )

Definition at line 20 of file CapabilitiesGL20.cpp.

Member Function Documentation

◆ getDeviceCapabilities()

const GraphicsDeviceCapabilities & Cogs::CapabilitiesGL20::getDeviceCapabilities ( ) const
inlinevirtual

Gets the device capabilities in a structure.

Returns
A reference to a device capabilities struct.

Reimplemented from Cogs::ICapabilities.

Definition at line 31 of file CapabilitiesGL20.h.

Referenced by Cogs::EffectsGL20::loadComputeEffect().

◆ getMaxTextureSlots()

int Cogs::CapabilitiesGL20::getMaxTextureSlots ( ) const
inlinevirtual

Gets maximum number of supported texture slots.

Returns
An integer containing the maximum supported texture image units that can be used to access texture maps from the fragment shader.

Reimplemented from Cogs::ICapabilities.

Definition at line 29 of file CapabilitiesGL20.h.

◆ getModel()

int Cogs::CapabilitiesGL20::getModel ( ) const
inlinevirtual

Gets the model number of the initialized graphics device.

Returns
An integer containing the model number of the graphics device. E.g 5870 for an "AMD Radeon 5870" card.

Reimplemented from Cogs::ICapabilities.

Definition at line 20 of file CapabilitiesGL20.h.

◆ getSeries()

Series::ESeries Cogs::CapabilitiesGL20::getSeries ( ) const
inlinevirtual

Gets the series of GPUs the currently initialized graphics device belongs to.

Returns
A Series from the list of known Series.

Reimplemented from Cogs::ICapabilities.

Definition at line 19 of file CapabilitiesGL20.h.

◆ getVendor()

Vendors::EVendors Cogs::CapabilitiesGL20::getVendor ( ) const
inlinevirtual

Gets the known vendor of the initialized graphics device.

Returns
A vendor from the list of known Vendors.

Reimplemented from Cogs::ICapabilities.

Definition at line 18 of file CapabilitiesGL20.h.

◆ initialize()

void Cogs::CapabilitiesGL20::initialize ( bool  useClipControl)

Definition at line 29 of file CapabilitiesGL20.cpp.

◆ isAmd()

bool Cogs::CapabilitiesGL20::isAmd ( ) const
inline

Definition at line 23 of file CapabilitiesGL20.h.

◆ isApple()

bool Cogs::CapabilitiesGL20::isApple ( ) const
inline

Definition at line 25 of file CapabilitiesGL20.h.

◆ isIntel()

bool Cogs::CapabilitiesGL20::isIntel ( ) const
inline

Definition at line 24 of file CapabilitiesGL20.h.

◆ isNvidia()

bool Cogs::CapabilitiesGL20::isNvidia ( ) const
inline

Definition at line 22 of file CapabilitiesGL20.h.

◆ isQuadro()

bool Cogs::CapabilitiesGL20::isQuadro ( ) const
inline

Definition at line 27 of file CapabilitiesGL20.h.

◆ isSupported()

bool Cogs::CapabilitiesGL20::isSupported ( const StringView extension) const

Definition at line 164 of file CapabilitiesGL20.cpp.

Member Data Documentation

◆ ARB_base_instance

bool Cogs::CapabilitiesGL20::ARB_base_instance

Definition at line 52 of file CapabilitiesGL20.h.

◆ ARB_compute_shader

bool Cogs::CapabilitiesGL20::ARB_compute_shader

Definition at line 57 of file CapabilitiesGL20.h.

◆ ARB_debug_output

bool Cogs::CapabilitiesGL20::ARB_debug_output

Definition at line 59 of file CapabilitiesGL20.h.

◆ ARB_instanced_arrays

bool Cogs::CapabilitiesGL20::ARB_instanced_arrays

Definition at line 49 of file CapabilitiesGL20.h.

◆ ARB_pixel_buffer_object

bool Cogs::CapabilitiesGL20::ARB_pixel_buffer_object

Definition at line 54 of file CapabilitiesGL20.h.

◆ ARB_sampler_objects

bool Cogs::CapabilitiesGL20::ARB_sampler_objects

Definition at line 50 of file CapabilitiesGL20.h.

◆ ARB_shader_image_load_store

bool Cogs::CapabilitiesGL20::ARB_shader_image_load_store

Definition at line 53 of file CapabilitiesGL20.h.

◆ ARB_texture_storage

bool Cogs::CapabilitiesGL20::ARB_texture_storage

Definition at line 55 of file CapabilitiesGL20.h.

◆ ARB_texture_storage_multisample

bool Cogs::CapabilitiesGL20::ARB_texture_storage_multisample

Definition at line 56 of file CapabilitiesGL20.h.

◆ deviceCapabilities

GraphicsDeviceCapabilities Cogs::CapabilitiesGL20::deviceCapabilities
private

Definition at line 44 of file CapabilitiesGL20.h.

◆ EXT_texture_filter_anisotropic

bool Cogs::CapabilitiesGL20::EXT_texture_filter_anisotropic

Definition at line 60 of file CapabilitiesGL20.h.

◆ extensions

std::unordered_set<std::string> Cogs::CapabilitiesGL20::extensions
private

Definition at line 46 of file CapabilitiesGL20.h.

◆ KHR_debug

bool Cogs::CapabilitiesGL20::KHR_debug

Definition at line 58 of file CapabilitiesGL20.h.

◆ logExtensions

bool Cogs::CapabilitiesGL20::logExtensions
private

Definition at line 37 of file CapabilitiesGL20.h.

◆ logStrings

bool Cogs::CapabilitiesGL20::logStrings
private

Definition at line 36 of file CapabilitiesGL20.h.

◆ model

int Cogs::CapabilitiesGL20::model
private

Definition at line 42 of file CapabilitiesGL20.h.

◆ series

Series::ESeries Cogs::CapabilitiesGL20::series
private

Definition at line 40 of file CapabilitiesGL20.h.

◆ vendor

Vendors::EVendors Cogs::CapabilitiesGL20::vendor
private

Definition at line 39 of file CapabilitiesGL20.h.


The documentation for this struct was generated from the following files: