Class MTLFeatures
This class contains a set of supported features of Metal device.
Inherited Members
Namespace: Evergine.Metal
Assembly: Evergine.Metal.dll
Syntax
public class MTLFeatures
Constructors
MTLFeatures(IMTLDevice)
Initializes a new instance of the MTLFeatures class.
Declaration
public MTLFeatures(IMTLDevice device)
Parameters
Type | Name | Description |
---|---|---|
IMTLDevice | device | The native metal device. |
Properties
IsMacOS
Gets a value indicating whether the current platform is MacOS.
Declaration
public bool IsMacOS { get; }
Property Value
Type | Description |
---|---|
bool |
MaxFeatureSet
Gets the set of supported features.
Declaration
public MTLGpuFamily MaxFeatureSet { get; }
Property Value
Type | Description |
---|---|
MTLGpuFamily |
Methods
IsSupported(MTLGpuFamily)
Whether a feature set is supported.
Declaration
public bool IsSupported(MTLGpuFamily gpuFamily)
Parameters
Type | Name | Description |
---|---|---|
MTLGpuFamily | gpuFamily | The gpu family. |
Returns
Type | Description |
---|---|
bool | True if the gpu family is supported. |