GraphicsFormatUsage
Use this format usages to figure out the capabilities of specific GraphicsFormat
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
[Flags]public enum GraphicsFormatUsage
Remarks
Each graphics card may not support all usages across formats. Use SystemInfo.IsFormatSupported to check which usages the graphics card supports.
Additional Resources: Texture2D, texture assets.
Fields
Value | Description |
|---|---|
| Blend | Use this to blend on a rendertexture. |
| GetPixels | Use this to get pixel data from a texture. |
| Linear | Use this to sample textures with a linear filter. This is for regular texture sampling (non-shadow compare). Rentertextures created using ShadowSamplingMode.CompareDepths always support linear filtering on the comparison result. |
| LoadStore | Use this to perform resource load and store on a texture |
| MSAA2x | Use this to create and render to a MSAA 2X rendertexture. |
| MSAA4x | Use this to create and render to a MSAA 4X rendertexture. |
| MSAA8x | Use this to create and render to a MSAA 8X rendertexture. |
| None | No flags are set. |
| ReadPixels | Use this to read back pixels data from a rendertexture. |
| Render | Use this to create and render to a rendertexture. |
| Sample | Use this to create and sample textures. |
| SetPixels | Use this to set pixel data to a texture. |
| SetPixels32 | Use this to set pixel data to a texture using |
| Sparse | Use this to create sparse textures |
| StencilSampling | Use this to create and render to the Stencil sub element of a RenderTexture. |