Class MTLHelpers
A set of Metal Helpers.
Inherited Members
Namespace: Evergine.Metal
Assembly: Evergine.Metal.dll
Syntax
public static class MTLHelpers
  Methods
AllocInit<T>(string)
Alloc a generic metal object.
Declaration
public static T AllocInit<T>(string typeName) where T : struct
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | typeName | The type name.  | 
      
Returns
| Type | Description | 
|---|---|
| T | The new instance.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The generic type.  | 
      
IsStencilFormat(PixelFormat)
Whether a format support stencil or not.
Declaration
public static bool IsStencilFormat(PixelFormat format)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PixelFormat | format | The format to evaluate.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | True if the format support stencil.  |