Home -> ITextureBuffer

Declaration

class ITextureBuffer;

Description

The ITextureBuffer type is a convenience base interface for all texture buffers. For specific functionality provided by texture buffers, please refer to the documentation for the specific texture buffer types which extend this interface.

Extended interface types

Name Description
Public Interface ITextureBuffer1D
A one dimensional texture resource
Public Interface ITextureBuffer2D
A two dimensional texture resource
Public Interface ITextureBuffer3D
A three dimensional texture resource
Public Interface ITextureBufferCube
A cubemap texture resource
Public Interface ITextureBuffer1DArray
An array of one dimensional texture resources
Public Interface ITextureBuffer2DArray
An array of two dimensional texture resources
Public Interface ITextureBufferCubeArray
An array of cubemap texture resources

Enumerations

Name Description
Public Enum ImageFormat
Defines the component layout and broad interpretation of allocated texture pixels.
Public Enum DataFormat
Defines the physical data encoding used for allocated texture components or compressed cells.
Public Enum SourceImageFormat
Defines the component layout of image data supplied from CPU memory.
Public Enum SourceDataFormat
Defines the data encoding of image data supplied from CPU memory.
Public Enum CubeMapFace
Identifies an individual cubemap face for cubemap texture data operations.
Public Enum SampleCount
Defines sample counts for multisample anti-aliasing texture allocations.
Public Enum UsageFlags
Flags to declare how a texture buffer will be used after allocation.
Public Enum PerformanceHint
Flags to provide hints about how a texture buffer will be read and written by the CPU and GPU.
Public Enum DataPersistenceFlags
Flags to describe how long existing texture data must remain valid.

Members

Usage methods

Name Description
Public member SetUsageFlags
Informs the renderer on how this texture buffer will be used.
Public member SetPerformanceHints
Provides hints to the renderer about how this texture buffer will be read and written.
Public member SetDataPersistenceFlags
Provides hints to the renderer about the required lifetime of existing texture data.

Size methods

Name Description
Public member ElementCountPerPixelFromFormat
Returns the number of elements in each image pixel for the specified image format.
Public member ByteSizePerElementFromFormat
Returns the byte size of each image element for the specified data format.
Public member IsCompressedTextureFormat
Returns true if the supplied data format stores image data in compressed texture cells.
Public member CellDimensionsInPixelsFromFormat
Returns the pixel dimensions of each encoded cell for the specified data format.
Public member CellSizeInBytesFromFormat
Returns the byte size of each encoded cell for the specified image and data format combination.

Format methods

Name Description
Public member ImageFormatsAreBinaryEquivalent
Returns true if the supplied source and allocated image formats use binary compatible image channel layouts.
Public member DataFormatsAreBinaryEquivalent
Returns true if the supplied source and allocated data formats use binary compatible data encodings.

See also