Cocos2d-x  4.0.0
List of all members
DeviceInfoMTL Class Reference

Used to query features and implementation limits. More...

Inherits DeviceInfo.

Public Member Functions

Constructor, Destructor and Initializers
 DeviceInfoMTL (id< MTLDevice > device)
 
virtual ~DeviceInfoMTL ()=default
 
virtual bool init () override
 Gather features and implementation limits.
 
- Public Member Functions inherited from DeviceInfo
int getMaxTextureSize () const
 Get maximum texture size.
 
int getMaxAttributes () const
 Get maximum attribute counts.
 
int getMaxTextureUnits () const
 Get maximum texture unit.
 
int getMaxSamplesAllowed () const
 Get maximum sampler count.
 

Setters & Getters

virtual const char * getVendor () const override
 Get vendor device name.
 
virtual const char * getRenderer () const override
 Get the full name of the vendor device.
 
virtual const char * getVersion () const override
 Get featureSet name.
 
virtual const char * getExtension () const override
 Get metal extensions.
 
virtual bool checkForFeatureSupported (FeatureType feature) override
 Check if feature supported by Metal.
 

Detailed Description

Used to query features and implementation limits.

Constructor & Destructor Documentation

DeviceInfoMTL ( id< MTLDevice >  device)
Parameters
deviceTo query MTLDevice features and implementation limits in Metal.

Member Function Documentation

virtual const char* getVendor ( ) const
overridevirtual

Get vendor device name.

Returns
Vendor device name.

Implements DeviceInfo.

virtual const char* getRenderer ( ) const
overridevirtual

Get the full name of the vendor device.

Returns
The full name of the vendor device.

Implements DeviceInfo.

virtual const char* getVersion ( ) const
overridevirtual

Get featureSet name.

Returns
FeatureSet name.

Implements DeviceInfo.

virtual const char* getExtension ( ) const
overridevirtual

Get metal extensions.

Returns
Extension supported by Metal.

Implements DeviceInfo.

virtual bool checkForFeatureSupported ( FeatureType  feature)
overridevirtual

Check if feature supported by Metal.

Parameters
featureSpecify feature to be query.
Returns
true if the feature is supported, false otherwise.

Implements DeviceInfo.


The documentation for this class was generated from the following file: