Cocos2d-x
4.0.0
|
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. | |
![]() | |
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. | |
Used to query features and implementation limits.
DeviceInfoMTL | ( | id< MTLDevice > | device | ) |
device | To query MTLDevice features and implementation limits in Metal. |
|
overridevirtual |
|
overridevirtual |
Get the full name of the vendor device.
Implements DeviceInfo.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Check if feature supported by Metal.
feature | Specify feature to be query. |
Implements DeviceInfo.