Class GorgonTexture3DInfo
Information used to create a texture object.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonTexture3DInfo : IGorgonTexture3DInfo, IGorgonNamedObject, IGorgonImageInfo
Constructors
| Edit this page View SourceGorgonTexture3DInfo(IGorgonTexture3DInfo, string)
Initializes a new instance of the GorgonTexture3DInfo class.
Declaration
public GorgonTexture3DInfo(IGorgonTexture3DInfo info, string newName = null)
Parameters
Type | Name | Description |
---|---|---|
IGorgonTexture3DInfo | info | A IGorgonTexture3DInfo to copy settings from. |
string | newName | [Optional] The new name for the texture. |
GorgonTexture3DInfo(int, int, int, BufferFormat)
Initializes a new instance of the GorgonTexture3DInfo class.
Declaration
public GorgonTexture3DInfo(int width, int height, int depth, BufferFormat format)
Parameters
Type | Name | Description |
---|---|---|
int | width | |
int | height | |
int | depth | |
BufferFormat | format |
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
public TextureBinding Binding { get; set; }
Property Value
Type | Description |
---|---|
TextureBinding |
Depth
Property to return the depth of the texture, in slices.
Declaration
public int Depth { get; set; }
Property Value
Type | Description |
---|---|
int |
Format
Property to return the format of the texture.
Declaration
public BufferFormat Format { get; set; }
Property Value
Type | Description |
---|---|
BufferFormat |
Height
Property to return the height of the texture, in pixels.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
MipLevels
Property to return the number of mip-map levels for the texture.
Declaration
public int MipLevels { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Property to return the name of the texture.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Usage
Property to return the intended usage flags for this texture.
Declaration
public ResourceUsage Usage { get; set; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Width
Property to return the width of the texture, in pixels.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |