Struct D3D11Texture1DDesc
Describes a 1D texture.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11Texture1DDesc : IEquatable<D3D11Texture1DDesc>
Constructors
| Edit this page View SourceD3D11Texture1DDesc(DxgiFormat, uint)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
D3D11Texture1DDesc(DxgiFormat, uint, uint)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
D3D11Texture1DDesc(DxgiFormat, uint, uint, uint)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize, uint mipLevels)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
uint | mipLevels | The maximum number of mipmap levels in the texture. |
D3D11Texture1DDesc(DxgiFormat, uint, uint, uint, D3D11BindOptions)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize, uint mipLevels, D3D11BindOptions bindOptions)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
uint | mipLevels | The maximum number of mipmap levels in the texture. |
D3D11BindOptions | bindOptions | Options for binding to pipeline stages. |
D3D11Texture1DDesc(DxgiFormat, uint, uint, uint, D3D11BindOptions, D3D11Usage)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize, uint mipLevels, D3D11BindOptions bindOptions, D3D11Usage usage)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
uint | mipLevels | The maximum number of mipmap levels in the texture. |
D3D11BindOptions | bindOptions | Options for binding to pipeline stages. |
D3D11Usage | usage | Identifies how the texture is to be read from and written to. |
D3D11Texture1DDesc(DxgiFormat, uint, uint, uint, D3D11BindOptions, D3D11Usage, D3D11CpuAccessOptions)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize, uint mipLevels, D3D11BindOptions bindOptions, D3D11Usage usage, D3D11CpuAccessOptions cpuAccessOptions)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
uint | mipLevels | The maximum number of mipmap levels in the texture. |
D3D11BindOptions | bindOptions | Options for binding to pipeline stages. |
D3D11Usage | usage | Identifies how the texture is to be read from and written to. |
D3D11CpuAccessOptions | cpuAccessOptions | Options to specify the types of CPU access allowed. |
D3D11Texture1DDesc(DxgiFormat, uint, uint, uint, D3D11BindOptions, D3D11Usage, D3D11CpuAccessOptions, D3D11ResourceMiscOptions)
Initializes a new instance of the D3D11Texture1DDesc struct.
Declaration
public D3D11Texture1DDesc(DxgiFormat format, uint width, uint arraySize, uint mipLevels, D3D11BindOptions bindOptions, D3D11Usage usage, D3D11CpuAccessOptions cpuAccessOptions, D3D11ResourceMiscOptions miscOptions)
Parameters
Type | Name | Description |
---|---|---|
DxgiFormat | format | The texture format. |
uint | width | The texture width (in texels). |
uint | arraySize | The number of textures in the array. |
uint | mipLevels | The maximum number of mipmap levels in the texture. |
D3D11BindOptions | bindOptions | Options for binding to pipeline stages. |
D3D11Usage | usage | Identifies how the texture is to be read from and written to. |
D3D11CpuAccessOptions | cpuAccessOptions | Options to specify the types of CPU access allowed. |
D3D11ResourceMiscOptions | miscOptions | Options that identify other, less common resource options. |
Properties
| Edit this page View SourceArraySize
Gets or sets the number of textures in the array.
Declaration
public uint ArraySize { get; set; }
Property Value
Type | Description |
---|---|
uint |
BindOptions
Gets or sets options for binding to pipeline stages.
Declaration
public D3D11BindOptions BindOptions { get; set; }
Property Value
Type | Description |
---|---|
D3D11BindOptions |
CpuAccessOptions
Gets or sets options to specify the types of CPU access allowed.
Declaration
public D3D11CpuAccessOptions CpuAccessOptions { get; set; }
Property Value
Type | Description |
---|---|
D3D11CpuAccessOptions |
Format
Gets or sets the texture format.
Declaration
public DxgiFormat Format { get; set; }
Property Value
Type | Description |
---|---|
DxgiFormat |
MipLevels
Gets or sets the maximum number of mipmap levels in the texture.
Declaration
public uint MipLevels { get; set; }
Property Value
Type | Description |
---|---|
uint |
MiscOptions
Gets or sets options that identify other, less common resource options.
Declaration
public D3D11ResourceMiscOptions MiscOptions { get; set; }
Property Value
Type | Description |
---|---|
D3D11ResourceMiscOptions |
Usage
Gets or sets a value indicating how the texture is to be read from and written to.
Declaration
public D3D11Usage Usage { get; set; }
Property Value
Type | Description |
---|---|
D3D11Usage |
Width
Gets or sets the texture width (in texels).
Declaration
public uint Width { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D3D11Texture1DDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11Texture1DDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11Texture1DDesc | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11Texture1DDesc, D3D11Texture1DDesc)
Compares two D3D11Texture1DDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11Texture1DDesc left, D3D11Texture1DDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Texture1DDesc | left | The left D3D11Texture1DDesc to compare. |
D3D11Texture1DDesc | right | The right D3D11Texture1DDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11Texture1DDesc, D3D11Texture1DDesc)
Compares two D3D11Texture1DDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11Texture1DDesc left, D3D11Texture1DDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Texture1DDesc | left | The left D3D11Texture1DDesc to compare. |
D3D11Texture1DDesc | right | The right D3D11Texture1DDesc to compare. |
Returns
Type | Description |
---|---|
bool |