Interface IGorgonTexture1DInfo
Information used to create a 1D texture object.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonTexture1DInfo : IGorgonNamedObject
Remarks
This provides an immutable view of the texture information so that it cannot be modified after the texture is created.
Properties
| Edit this page View SourceArrayCount
Property to return the number of array levels for a texture.
Declaration
int ArrayCount { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
When this value is greater than 0, the texture will be used as a texture array. If the texture is supposed to be a cube map, then this value should be a multiple of 6 (1 for each face in the cube).
For video adapters with a feature set of Level_12_0, there can only be a single cube map and thus this value must be set to 6 when creating a cube map texture.
This value is defaulted to 1.
Binding
Property to return the flags to determine how the texture will be bound with the pipeline when rendering.
Declaration
TextureBinding Binding { get; }
Property Value
Type | Description |
---|---|
TextureBinding |
Remarks
If the Usage property is set to Staging, then the texture must be created with a value of None as staging textures do not support bindings of any kind. If this value is set to anything other than None, an exception will be thrown.
This value is defaulted to ShaderResource.
Format
Property to return the format of the texture.
Declaration
BufferFormat Format { get; }
Property Value
Type | Description |
---|---|
BufferFormat |
MipLevels
Property to return the number of mip-map levels for the texture.
Declaration
int MipLevels { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
If the texture is multisampled, this value must be set to 1.
This value is defaulted to 1.
Usage
Property to return the intended usage flags for this texture.
Declaration
ResourceUsage Usage { get; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Remarks
This value is defaulted to Default.
Width
Property to return the width of the texture, in pixels.
Declaration
int Width { get; }
Property Value
Type | Description |
---|---|
int |