ITexture

Description

interface Tinman.Terrain.Rendering.ITexture

Derived from

INativeHandle
IResource

Extended by

ITexture2D
ITextureCube

Base interface for texture resources for rendering.

Textures with the resource access patterns ResourceAccessPattern.Static and ResourceAccessPattern.Dynamic may be used for rendering.
Textures with the resource access pattern ResourceAccessPattern.Mappable may be used for updating other textures.
An implementation may choose to support other combinations, but is not required to do so.

Public / Attributes

Format


[Constant]
public attribute Format → (get)

value : TextureFormat

[not-null]
The texture format.

The texture format.

Is​Srgb


[Constant]
public attribute IsSrgb → (get)

value : bool

The sRGB behaviour flag.

The sRGB behaviour of this texture.

When true, the GPU is supposed to do on-the-fly sRGB decompression for the texture object (e.g. in Direct3D 10+ by using DXGI_FORMAT_B8G8R8X8_UNORM_SRGB), so that the GPU shader receives linear color values.

Mipmaps


[Constant]
public attribute Mipmaps → (get)

value : int32

[>=1]
The number of mipmap levels.

The number of mipmap levels.