| TerrainHelperGetTextureLevelVector4 Method |
Gets the texture data of the specified mipmap level as a
Vector4 array.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static Vector4[] GetTextureLevelVector4(
Texture2D texture,
int level
)
Public Shared Function GetTextureLevelVector4 (
texture As Texture2D,
level As Integer
) As Vector4()
public:
static array<Vector4>^ GetTextureLevelVector4(
Texture2D^ texture,
int level
)
static member GetTextureLevelVector4 :
texture : Texture2D *
level : int -> Vector4[]
Parameters
- texture
- Type: Texture2D
The texture. - level
- Type: SystemInt32
The mipmap level to read. Currently only 0 is supported!
Return Value
Type:
Vector4
The array containing the data of the specified mipmap level.
(One
Vector4 element per pixel.)
Exceptions Remarks
This method can be used with following texture surface formats:
Alpha8, Color,
Rg32, Rgba64,
Single, Vector2,
Vector4, HalfSingle,
HalfVector2, HalfVector4
See Also