Class GraphicsFormatUtility
Inherited Members
Namespace: UnityEngine.Experimental.Rendering
Assembly: UnityEngine.dll
Syntax
public class GraphicsFormatUtility
Methods
| Improve this Doc View SourceComputeMipmapSize(Int32, Int32, Int32, GraphicsFormat)
Declaration
public static uint ComputeMipmapSize(int width, int height, int depth, GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | |
Int32 | height | |
Int32 | depth | |
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
ComputeMipmapSize(Int32, Int32, GraphicsFormat)
Declaration
public static uint ComputeMipmapSize(int width, int height, GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | |
Int32 | height | |
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
ConvertToAlphaFormat(GraphicsFormat)
Declaration
public static GraphicsFormat ConvertToAlphaFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
GraphicsFormat |
GetAlphaComponentCount(GraphicsFormat)
Declaration
public static uint GetAlphaComponentCount(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetBlockHeight(GraphicsFormat)
Declaration
public static uint GetBlockHeight(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetBlockSize(GraphicsFormat)
Declaration
public static uint GetBlockSize(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetBlockWidth(GraphicsFormat)
Declaration
public static uint GetBlockWidth(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetColorComponentCount(GraphicsFormat)
Declaration
public static uint GetColorComponentCount(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetComponentCount(GraphicsFormat)
Declaration
public static uint GetComponentCount(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
UInt32 |
GetGraphicsFormat(RenderTextureFormat, Boolean)
Declaration
public static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, bool isSRGB)
Parameters
Type | Name | Description |
---|---|---|
RenderTextureFormat | format | |
Boolean | isSRGB |
Returns
Type | Description |
---|---|
GraphicsFormat |
GetGraphicsFormat(TextureFormat, Boolean)
Declaration
public static GraphicsFormat GetGraphicsFormat(TextureFormat format, bool isSRGB)
Parameters
Type | Name | Description |
---|---|---|
TextureFormat | format | |
Boolean | isSRGB |
Returns
Type | Description |
---|---|
GraphicsFormat |
GetRenderTextureFormat(GraphicsFormat)
Declaration
public static RenderTextureFormat GetRenderTextureFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
RenderTextureFormat |
GetTextureFormat(GraphicsFormat)
Declaration
public static TextureFormat GetTextureFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
TextureFormat |
HasAlphaChannel(GraphicsFormat)
Declaration
public static bool HasAlphaChannel(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
Is16BitPackedFormat(GraphicsFormat)
Declaration
public static bool Is16BitPackedFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsAlphaOnlyFormat(GraphicsFormat)
Declaration
public static bool IsAlphaOnlyFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsASTCFormat(GraphicsFormat)
Declaration
public static bool IsASTCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsBCFormat(GraphicsFormat)
Declaration
public static bool IsBCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsBPTCFormat(GraphicsFormat)
Declaration
public static bool IsBPTCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsCompressedFormat(GraphicsFormat)
Declaration
public static bool IsCompressedFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsCrunchFormat(TextureFormat)
Declaration
public static bool IsCrunchFormat(TextureFormat format)
Parameters
Type | Name | Description |
---|---|---|
TextureFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsDepthFormat(GraphicsFormat)
Declaration
public static bool IsDepthFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsDXTCFormat(GraphicsFormat)
Declaration
public static bool IsDXTCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsETCFormat(GraphicsFormat)
Declaration
public static bool IsETCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsFloatFormat(GraphicsFormat)
Declaration
public static bool IsFloatFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsHalfFormat(GraphicsFormat)
Declaration
public static bool IsHalfFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsIEEE754Format(GraphicsFormat)
Declaration
public static bool IsIEEE754Format(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsIntegerFormat(GraphicsFormat)
Declaration
public static bool IsIntegerFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsNormFormat(GraphicsFormat)
Declaration
public static bool IsNormFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsPackedFormat(GraphicsFormat)
Declaration
public static bool IsPackedFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsPVRTCFormat(GraphicsFormat)
Declaration
public static bool IsPVRTCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsRGTCFormat(GraphicsFormat)
Declaration
public static bool IsRGTCFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsSignedFormat(GraphicsFormat)
Declaration
public static bool IsSignedFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsSIntFormat(GraphicsFormat)
Declaration
public static bool IsSIntFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsSNormFormat(GraphicsFormat)
Declaration
public static bool IsSNormFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsSRGBFormat(GraphicsFormat)
Declaration
public static bool IsSRGBFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsStencilFormat(GraphicsFormat)
Declaration
public static bool IsStencilFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsUIntFormat(GraphicsFormat)
Declaration
public static bool IsUIntFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsUNormFormat(GraphicsFormat)
Declaration
public static bool IsUNormFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |
IsUnsignedFormat(GraphicsFormat)
Declaration
public static bool IsUnsignedFormat(GraphicsFormat format)
Parameters
Type | Name | Description |
---|---|---|
GraphicsFormat | format |
Returns
Type | Description |
---|---|
Boolean |