Class GraphicsFormatExtensions
Inheritance
System.Object
GraphicsFormatExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AssetRipper.SourceGenerated.Extensions
Assembly: AssetRipper.SourceGenerated.Extensions.dll
Syntax
public static class GraphicsFormatExtensions
Methods
| Improve this Doc View SourceToTextureFormat(GraphicsFormat)
Converts AssetRipper.SourceGenerated.Enums.GraphicsFormat to AssetRipper.SourceGenerated.Enums.TextureFormat.
Declaration
public static TextureFormat ToTextureFormat(this GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Enums.GraphicsFormat | format | The AssetRipper.SourceGenerated.Enums.GraphicsFormat to convert. |
Returns
Type | Description |
---|---|
AssetRipper.SourceGenerated.Enums.TextureFormat | The AssetRipper.SourceGenerated.Enums.TextureFormat equivalent to the |
Remarks
Note: Some conversions are not entirely accurate. For example, SRGB and UNorm are treated as the same.