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 | |
|---|---|---|
| ITextureBuffer1D |
A one dimensional texture resource
|
|
| ITextureBuffer2D |
A two dimensional texture resource
|
|
| ITextureBuffer3D |
A three dimensional texture resource
|
|
| ITextureBufferCube |
A cubemap texture resource
|
|
| ITextureBuffer1DArray |
An array of one dimensional texture resources
|
|
| ITextureBuffer2DArray |
An array of two dimensional texture resources
|
|
| ITextureBufferCubeArray |
An array of cubemap texture resources
|
Enumerations
| Name | Description | |
|---|---|---|
| ImageFormat |
Defines the component layout and broad interpretation of allocated texture pixels.
|
|
| DataFormat |
Defines the physical data encoding used for allocated texture components or compressed cells.
|
|
| SourceImageFormat |
Defines the component layout of image data supplied from CPU memory.
|
|
| SourceDataFormat |
Defines the data encoding of image data supplied from CPU memory.
|
|
| CubeMapFace |
Identifies an individual cubemap face for cubemap texture data operations.
|
|
| SampleCount |
Defines sample counts for multisample anti-aliasing texture allocations.
|
|
| UsageFlags |
Flags to declare how a texture buffer will be used after allocation.
|
|
| PerformanceHint |
Flags to provide hints about how a texture buffer will be read and written by the CPU and GPU.
|
|
| DataPersistenceFlags |
Flags to describe how long existing texture data must remain valid.
|
Members
Usage methods
| Name | Description | |
|---|---|---|
| SetUsageFlags |
Informs the renderer on how this texture buffer will be used.
|
|
| SetPerformanceHints |
Provides hints to the renderer about how this texture buffer will be read and written.
|
|
| SetDataPersistenceFlags |
Provides hints to the renderer about the required lifetime of existing texture data.
|
Size methods
| Name | Description | |
|---|---|---|
| ElementCountPerPixelFromFormat |
Returns the number of elements in each image pixel for the specified image format.
|
|
| ByteSizePerElementFromFormat |
Returns the byte size of each image element for the specified data format.
|
|
| IsCompressedTextureFormat |
Returns true if the supplied data format stores image data in compressed texture cells.
|
|
| CellDimensionsInPixelsFromFormat |
Returns the pixel dimensions of each encoded cell for the specified data format.
|
|
| CellSizeInBytesFromFormat |
Returns the byte size of each encoded cell for the specified image and data format combination.
|
Format methods
| Name | Description | |
|---|---|---|
| ImageFormatsAreBinaryEquivalent |
Returns true if the supplied source and allocated image formats use binary compatible image channel layouts.
|
|
| DataFormatsAreBinaryEquivalent |
Returns true if the supplied source and allocated data formats use binary compatible data encodings.
|