Interface IGorgonTexture3DInfo
Information used to create a 3D texture object.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonTexture3DInfo : 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 SourceBinding
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.
Depth
Property to return the depth of the texture, in slices.
Declaration
int Depth { get; }
Property Value
Type | Description |
---|---|
int |
Format
Property to return the format of the texture.
Declaration
BufferFormat Format { get; }
Property Value
Type | Description |
---|---|
BufferFormat |
Height
Property to return the height of the texture, in pixels.
Declaration
int Height { get; }
Property Value
Type | Description |
---|---|
int |
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 |