使用此格式从脚本创建纹理或 RenderTextures。
using UnityEngine; using UnityEngine.Experimental.Rendering;
public class ExampleScript : MonoBehaviour { TextureCreationFlags flags; void Start() { // Create a new texture and assign it to the material of the renderer. var texture = new Texture2D(128, 128, GraphicsFormat.R8G8B8A8_SRGB, flags); GetComponent<Renderer>().material.mainTexture = texture; } }
每个图形卡可能并不支持跨格式的所有用法。使用 SystemInfo.IsFormatSupported 可以检查图形卡支持的用法。
Each "format" is represented by a single enum value. The name of a format is based on the following criteria:
For color formats, the component-format specifies the size of the R, G, B, and A components (if present).
For depth/stencil formats, the component-format specifies the size of the depth (D) and stencil (S) components (if present).
UNorm: The components are unsigned normalized values in the range [0,1].
SNorm: The components are signed normalized values in the range [-1,1].
UInt: The components are unsigned integer values in the range [0, 2^(n-1)].
SInt: The components are signed integer values in the range [-2^(n-1),2^(n-1)-1].
UFloat: The components are unsigned floating-point numbers (used by packed, shared exponent, and some compressed formats).
SFloat: The components are signed floating-point numbers.
SRGB: The R, G, and B components are unsigned normalized values that represent values using sRGB nonlinear encoding, while the A component (if one exists) is a regular unsigned normalized value.
PACKnn: The format is packed into an underlying type with nn bits.
另请参阅:Texture2D、texture assets。
None | 未指定格式。 |
R8_SRGB | 一种单分量、8 位无符号归一化格式,具有以 sRGB 非线性编码存储的单个 8 位 R 分量。 |
R8G8_SRGB | 一种双分量、16 位无符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量。 |
R8G8B8_SRGB | 一种三分量、24 位无符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量,在字节 2 中具有以 sRGB 非线性编码存储的 8 位 B 分量。 |
R8G8B8A8_SRGB | 一种四分量、32 位无符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量,在字节 2 中具有以 sRGB 非线性编码存储的 8 位 B 分量,在字节 3 中具有 8 位 A 分量。 |
R8_UNorm | 一种单分量、8 位无符号归一化格式,具有单个 8 位 R 分量。 |
R8G8_UNorm | 一种双分量、16 位无符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量。 |
R8G8B8_UNorm | 一种三分量、24 位无符号归一化格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量。 |
R8G8B8A8_UNorm | 一种四分量、32 位无符号归一化格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量,在字节 3 中具有 8 位 A 分量。 |
R8_SNorm | 一种单分量、8 位有符号归一化格式,具有单个 8 位 R 分量。 |
R8G8_SNorm | 一种双分量、16 位有符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量。 |
R8G8B8_SNorm | 一种三分量、24 位有符号归一化格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量。 |
R8G8B8A8_SNorm | 一种四分量、32 位有符号归一化格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量,在字节 3 中具有 8 位 A 分量。 |
R8_UInt | 一种单分量、8 位无符号整数格式,具有单个 8 位 R 分量。 |
R8G8_UInt | 一种双分量、16 位无符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量。 |
R8G8B8_UInt | 一种三分量、24 位无符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量。 |
R8G8B8A8_UInt | 一种四分量、32 位无符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量,在字节 3 中具有 8 位 A 分量。 |
R8_SInt | 一种单分量、8 位有符号整数格式,具有单个 8 位 R 分量。 |
R8G8_SInt | 一种双分量、16 位有符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量。 |
R8G8B8_SInt | 一种三分量、24 位有符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量。 |
R8G8B8A8_SInt | 一种四分量、32 位有符号整数格式,在字节 0 中具有 8 位 R 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 B 分量,在字节 3 中具有 8 位 B 分量。 |
R16_UNorm | 一种单分量、16 位无符号归一化格式,具有单个 16 位 R 分量。 |
R16G16_UNorm | 一种双分量、32 位无符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量。 |
R16G16B16_UNorm | 一种三分量、48 位无符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量。 |
R16G16B16A16_UNorm | 一种四分量、64 位无符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量,在字节 6..7 中具有 16 位 A 分量。 |
R16_SNorm | 一种单分量、16 位有符号归一化格式,具有单个 16 位 R 分量。 |
R16G16_SNorm | 一种双分量、32 位有符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量。 |
R16G16B16_SNorm | 一种三分量、48 位有符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量。 |
R16G16B16A16_SNorm | 一种四分量、64 位有符号归一化格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量,在字节 6..7 中具有 16 位 A 分量。 |
R16_UInt | 一种单分量、16 位无符号整数格式,具有单个 16 位 R 分量。 |
R16G16_UInt | 一种双分量、32 位无符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量。 |
R16G16B16_UInt | 一种三分量、48 位无符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量。 |
R16G16B16A16_UInt | 一种四分量、64 位无符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量,在字节 6..7 中具有 16 位 A 分量。 |
R16_SInt | 一种单分量、16 位有符号整数格式,具有单个 16 位 R 分量。 |
R16G16_SInt | 一种双分量、32 位有符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量。 |
R16G16B16_SInt | 一种三分量、48 位有符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量。 |
R16G16B16A16_SInt | 一种四分量、64 位有符号整数格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量,在字节 6..7 中具有 16 位 A 分量。 |
R32_UInt | 一种单分量、32 位无符号整数格式,具有单个 32 位 R 分量。 |
R32G32_UInt | 一种双分量、64 位无符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量。 |
R32G32B32_UInt | 一种三分量、96 位无符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量。 |
R32G32B32A32_UInt | 一种四分量、128 位无符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量,在字节 12..15 中具有 32 位 A 分量。 |
R32_SInt | 一种单分量、32 位有符号整数格式,具有单个 32 位 R 分量。 |
R32G32_SInt | 一种双分量、64 位有符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量。 |
R32G32B32_SInt | 一种三分量、96 位有符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量。 |
R32G32B32A32_SInt | 一种四分量、128 位有符号整数格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量,在字节 12..15 中具有 32 位 A 分量。 |
R16_SFloat | 一种单分量、16 位有符号浮点格式,具有单个 16 位 R 分量。 |
R16G16_SFloat | 一种双分量、32 位有符号浮点格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量。 |
R16G16B16_SFloat | 一种三分量、48 位有符号浮点格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量。 |
R16G16B16A16_SFloat | 一种四分量、64 位有符号浮点格式,在字节 0..1 中具有 16 位 R 分量,在字节 2..3 中具有 16 位 G 分量,在字节 4..5 中具有 16 位 B 分量,在字节 6..7 中具有 16 位 A 分量。 |
R32_SFloat | 一种单分量、32 位有符号浮点格式,具有单个 32 位 R 分量。 |
R32G32_SFloat | 一种双分量、64 位有符号浮点格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量。 |
R32G32B32_SFloat | 一种三分量、96 位有符号浮点格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量。 |
R32G32B32A32_SFloat | 一种四分量、128 位有符号浮点格式,在字节 0..3 中具有 32 位 R 分量,在字节 4..7 中具有 32 位 G 分量,在字节 8..11 中具有 32 位 B 分量,在字节 12..15 中具有 32 位 A 分量。 |
B8G8R8_SRGB | A three-component, 24-bit unsigned normalized format that has an 8-bit B component stored with sRGB nonlinear encoding in byte 0, an 8-bit G component stored with sRGB nonlinear encoding in byte 1, and an 8-bit R component stored with sRGB nonlinear encoding in byte 2. |
B8G8R8A8_SRGB | 一种四分量、32 位无符号归一化格式,在字节 0 中具有以 sRGB 非线性编码存储的 8 位 B 分量,在字节 1 中具有以 sRGB 非线性编码存储的 8 位 G 分量,在字节 2 中具有以 sRGB 非线性编码存储的 8 位 R 分量,在字节 3 中具有 8 位 A 分量。 |
B8G8R8_UNorm | 一种三分量、24 位无符号归一化格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量。 |
B8G8R8A8_UNorm | 一种四分量、32 位无符号归一化格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量,在字节 3 中具有 8 位 A 分量。 |
B8G8R8_SNorm | 一种三分量、24 位有符号归一化格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量。 |
B8G8R8A8_SNorm | 一种四分量、32 位有符号归一化格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量,在字节 3 中具有 8 位 A 分量。 |
B8G8R8_UInt | 一种三分量、24 位无符号整数格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量 |
B8G8R8A8_UInt | 一种四分量、32 位无符号整数格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量,在字节 3 中具有 8 位 A 分量。 |
B8G8R8_SInt | 一种三分量、24 位有符号整数格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量。 |
B8G8R8A8_SInt | 一种四分量、32 位有符号整数格式,在字节 0 中具有 8 位 B 分量,在字节 1 中具有 8 位 G 分量,在字节 2 中具有 8 位 R 分量,在字节 3 中具有 8 位 A 分量。 |
R4G4B4A4_UNormPack16 | 一种四分量、16 位打包无符号归一化格式,在位 12..15 中具有 4 位 R 分量,在位 8..11 中具有 4 位 G 分量,在位 4..7 中具有 4 位 B 分量,在位 0..3 中具有 4 位 A 分量。 |
B4G4R4A4_UNormPack16 | 一种四分量、16 位打包无符号归一化格式,在位 12..15 中具有 4 位 B 分量,在位 8..11 中具有 4 位 G 分量,在位 4..7 中具有 4 位 R 分量,在位 0..3 中具有 4 位 A 分量。 |
R5G6B5_UNormPack16 | 一种三分量、16 位打包无符号归一化格式,在位 11..15 中具有 5 位 R 分量,在位 5..10 中具有 6 位 G 分量,在位 0..4 中具有 5 位 B 分量。 |
B5G6R5_UNormPack16 | 一种三分量、16 位打包无符号归一化格式,在位 11..15 中具有 5 位 B 分量,在位 5..10 中具有 6 位 G 分量,在位 0..4 中具有 5 位 R 分量。 |
R5G5B5A1_UNormPack16 | 一种四分量、16 位打包无符号归一化格式,在位 11..15 中具有 5 位 R 分量,在位 6..10 中具有 5 位 G 分量,在位 1..5 中具有 5 位 B 分量,在位 0 中具有 1 位 A 分量。 |
B5G5R5A1_UNormPack16 | 一种四分量、16 位打包无符号归一化格式,在位 11..15 中具有 5 位 B 分量,在位 6..10 中具有 5 位 G 分量,在位 1..5 中具有 5 位 R 分量,在位 0 中具有 1 位 A 分量。 |
A1R5G5B5_UNormPack16 | 一种四分量、16 位打包无符号归一化格式,在位 15 中具有 1 位 A 分量,在位 10..14 中具有 5 位 R 分量,在位 5..9 中具有 5 位 G 分量,在位 0..4 中具有 5 位 B 分量。 |
E5B9G9R9_UFloatPack32 | 一种三分量、32 位打包无符号浮点格式,在位 27..31 中具有 5 位共享指数,在位 18..26 中具有 9 位 B 分量尾数,在位 9..17 中具有 9 位 G 分量尾数,在位 0..8 中具有 9 位 R 分量尾数。 |
B10G11R11_UFloatPack32 | 一种三分量、32 位打包无符号浮点格式,在位 22..31 中具有 10 位 B 分量,在位 11..21 中具有 11 位 G 分量,在位 0..10 中具有 11 位 R 分量。 |
A2B10G10R10_UNormPack32 | 一种四分量、32 位打包无符号归一化格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 B 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 R 分量。 |
A2B10G10R10_UIntPack32 | 一种四分量、32 位打包无符号整数格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 B 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 R 分量。 |
A2B10G10R10_SIntPack32 | 一种四分量、32 位打包有符号整数格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 B 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 R 分量。 |
A2R10G10B10_UNormPack32 | 一种四分量、32 位打包无符号归一化格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。 |
A2R10G10B10_UIntPack32 | 一种四分量、32 位打包无符号整数格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。 |
A2R10G10B10_SIntPack32 | 一种四分量、32 位打包有符号整数格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。 |
A2R10G10B10_XRSRGBPack32 | 一种四分量、32 位打包无符号归一化格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用伽马编码,它们的值范围从 -0.5271 到 1.66894。在采样、渲染和写入操作中,Alpha 分量被钳制为 0.0 或 1.0。 |
A2R10G10B10_XRUNormPack32 | 一种四分量、32 位打包无符号归一化格式,在位 30..31 中具有 2 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用线性编码,它们的值范围从 -0.752941 到 1.25098(扩展前)。在采样、渲染和写入操作中,Alpha 分量被钳制为 0.0 或 1.0。 |
R10G10B10_XRSRGBPack32 | 一种四分量、32 位打包无符号归一化格式,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用伽马编码,它们的值范围从 -0.5271 到 1.66894。在采样、渲染和写入操作中,Alpha 分量被钳制为 0.0 或 1.0。 |
R10G10B10_XRUNormPack32 | 一种四分量、32 位打包无符号归一化格式,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用线性编码,它们的值范围从 -0.752941 到 1.25098(扩展前)。 |
A10R10G10B10_XRSRGBPack32 | 一种四分量、64 位打包无符号归一化格式,在位 30..39 中具有 10 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用伽马编码,它们的值范围从 -0.5271 到 1.66894。在采样、渲染和写入操作中,Alpha 分量被钳制为 0.0 或 1.0。 |
A10R10G10B10_XRUNormPack32 | 一种四分量、64 位打包无符号归一化格式,在位 30..39 中具有 10 位 A 分量,在位 20..29 中具有 10 位 R 分量,在位 10..19 中具有 10 位 G 分量,在位 0..9 中具有 10 位 B 分量。这些分量采用线性编码,它们的值范围从 -0.752941 到 1.25098(扩展前)。在采样、渲染和写入操作中,Alpha 分量被钳制为 0.0 或 1.0。 |
D16_UNorm | 一种单分量、16 位无符号归一化格式,具有单个 16 位深度分量。 |
D24_UNorm | 一种双分量、32 位格式,在深度分量中具有 24 个无符号归一化位,以及可选的 8 个未使用的位。 |
D24_UNorm_S8_UInt | 一种双分量、32 位打包格式,在模板分量中具有 8 个无符号整数位,在深度分量中具有 24 个无符号归一化位。 |
D32_SFloat | 一种单分量、32 位有符号浮点格式,在深度分量中具有 32 个位。 |
D32_SFloat_S8_UInt | 一种双分量格式,在深度分量中具有 32 个有符号浮点位,在模板分量中具有 8 个无符号整数位。还有可选的 24 个未使用的位。 |
S8_UInt | 一种单分量、8 位无符号整数格式,在模板分量中具有 8 个位。 |
RGBA_DXT1_SRGB | A three-component, block-compressed format (also known as BC1). Each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGB texel data with sRGB nonlinear encoding. This format has a 1 bit alpha channel. |
RGBA_DXT1_UNorm | A three-component, block-compressed format (also known as BC1). Each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGB texel data. This format has a 1 bit alpha channel. |
RGBA_DXT3_SRGB | A four-component, block-compressed format (also known as BC2) where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB values with sRGB nonlinear encoding. |
RGBA_DXT3_UNorm | A four-component, block-compressed format (also known as BC2) where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB values. |
RGBA_DXT5_SRGB | A four-component, block-compressed format (also known as BC3) where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB values with sRGB nonlinear encoding. |
RGBA_DXT5_UNorm | A four-component, block-compressed format (also known as BC3) where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB values. |
R_BC4_UNorm | 一种单分量、块压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化红色纹素数据进行编码。 |
R_BC4_SNorm | 一种单分量、块压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的有符号归一化红色纹素数据进行编码。 |
RG_BC5_UNorm | 一种双分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RG 纹素数据进行编码:前 64 位编码红色值,后 64 位编码绿色值。 |
RG_BC5_SNorm | 一种双分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的有符号归一化 RG 纹素数据进行编码:前 64 位编码红色值,后 64 位编码绿色值。 |
RGB_BC6H_UFloat | 一种三分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号浮点 RGB 纹素数据进行编码。 |
RGB_BC6H_SFloat | 一种三分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的有符号浮点 RGB 纹素数据进行编码。 |
RGBA_BC7_SRGB | 一种四分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_BC7_UNorm | 一种四分量、块压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGB_PVRTC_2Bpp_SRGB | 一种三分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 8×4 矩形的无符号归一化 RGB 纹素数据进行 sRGB 非线性编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_PVRTC_2Bpp_UNorm | 一种三分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 8×4 矩形的无符号归一化 RGB 纹素数据进行编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_PVRTC_4Bpp_SRGB | 一种三分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行 sRGB 非线性编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_PVRTC_4Bpp_UNorm | 一种三分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行编码。此格式没有 Alpha,因此被视为不透明。 |
RGBA_PVRTC_2Bpp_SRGB | 一种四分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 8×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 32 位对 Alpha 值进行编码,后 32 位对 RGB 值应用 sRGB 非线性编码。 |
RGBA_PVRTC_2Bpp_UNorm | 一种四分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 8×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 32 位编码 Alpha 值,后 32 位编码 RGB 值。 |
RGBA_PVRTC_4Bpp_SRGB | 一种四分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 32 位对 Alpha 值进行编码,后 32 位对 RGB 值应用 sRGB 非线性编码。 |
RGBA_PVRTC_4Bpp_UNorm | 一种四分量、PVRTC 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 32 位编码 Alpha 值,后 32 位编码 RGB 值。 |
RGB_ETC_UNorm | 一种三分量、ETC 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_ETC2_SRGB | 一种三分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行 sRGB 非线性编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_ETC2_UNorm | 一种三分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行编码。此格式没有 Alpha,因此被视为不透明。 |
RGB_A1_ETC2_SRGB | 一种四分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行 sRGB 非线性编码,并提供 1 个 Alpha 位。 |
RGB_A1_ETC2_UNorm | 一种四分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGB 纹素数据进行编码,并提供 1 个 Alpha 位。 |
RGBA_ETC2_SRGB | 一种四分量、ETC2 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 64 位对 Alpha 值进行编码,后 64 位对 RGB 值应用 sRGB 非线性编码。 |
RGBA_ETC2_UNorm | 一种四分量、ETC2 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:前 64 位编码 Alpha 值,后 64 位编码 RGB 值。 |
R_EAC_UNorm | 一种单分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的无符号归一化红色纹素数据进行编码。 |
R_EAC_SNorm | 一种单分量、ETC2 压缩格式,其中每个 64 位压缩纹素块对一个 4×4 矩形的有符号归一化红色纹素数据进行编码。 |
RG_EAC_UNorm | 一种双分量、ETC2 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RG 纹素数据进行编码:前 64 位编码红色值,后 64 位编码绿色值。 |
RG_EAC_SNorm | 一种双分量、ETC2 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的有符号归一化 RG 纹素数据进行编码:前 64 位编码红色值,后 64 位编码绿色值。 |
RGBA_ASTC4X4_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC4X4_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 4×4 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGBA_ASTC5X5_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 5×5 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC5X5_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 5×5 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGBA_ASTC6X6_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 6×6 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC6X6_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 6×6 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGBA_ASTC8X8_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 8×8 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC8X8_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 8×8 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGBA_ASTC10X10_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 10×10 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC10X10_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 10×10 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
RGBA_ASTC12X12_SRGB | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 12×12 矩形的无符号归一化 RGBA 纹素数据进行编码:对 RGB 分量应用 sRGB 非线性编码。 |
RGBA_ASTC12X12_UNorm | 一种四分量、ASTC 压缩格式,其中每个 128 位压缩纹素块对一个 12×12 矩形的无符号归一化 RGBA 纹素数据进行编码。 |
YUV2 | YUV 4:2:2 Video resource format. |
RGBA_ASTC4X4_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of float RGBA texel data. |
RGBA_ASTC5X5_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 5×5 rectangle of float RGBA texel data. |
RGBA_ASTC6X6_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 6×6 rectangle of float RGBA texel data. |
RGBA_ASTC8X8_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes an 8×8 rectangle of float RGBA texel data. |
RGBA_ASTC10X10_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 10×10 rectangle of float RGBA texel data. |
RGBA_ASTC12X12_UFloat | A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 12×12 rectangle of float RGBA texel data. |
D16_UNorm_S8_UInt | A two-component, 24-bit format that has 16 unsigned normalized bits in the depth component and 8 unsigned integer bits in the stencil component. Most platforms do not support this format. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.