| DRTextureFormat Enumeration |
Defines the texture format.
Namespace: DigitalRune.Graphics.Content.PipelineAssembly: DigitalRune.Graphics.Content.Pipeline (in DigitalRune.Graphics.Content.Pipeline.dll) Version: 1.2.0.0 (1.2.0.14454)
Syntax public enum DRTextureFormat
Public Enumeration DRTextureFormat
public enum class DRTextureFormat
Members
| Member name | Value | Description |
---|
| NoChange | 0 |
The texture format of the input texture is not changed by the content processor.
|
| Color | 1 |
The texture format of the input texture is converted to SurfaceFormat.Color
(32-bit ARGB format with alpha, 8 bits per channel) by the content processor.
|
| Dxt | 2 |
The texture format of the input texture is converted to an appropriate DXT compression by
the content processor. (If the input texture contains fractional alpha values, it is
converted to DXT5 format; otherwise it is converted to DXT1.)
|
| Normal | 3 |
The texture format of the input texture is converted to DXT5nm by the content processor.
(This format reduces compression artifacts when storing normal maps. The x-component of the
normal is stored in the Alpha channel and the y-component is stored in the Green channel.
The z-component needs to be reconstructed in the pixel shader.)
|
| NormalInvertY | 4 |
The texture format of the input texture is converted to DXT5nm by the content processor.
(This format reduces compression artifacts when storing normal maps. The x-component of the
normal is stored in the Alpha channel and the inverted y-component is
stored in the Green channel. The z-component needs to be reconstructed in the pixel shader.)
|
See Also