Struct D3D11SubResourceData
Specifies data for initializing a subresource.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11SubResourceData : IEquatable<D3D11SubResourceData>
Constructors
| Edit this page View SourceD3D11SubResourceData(Array, uint)
Initializes a new instance of the D3D11SubResourceData struct.
Declaration
public D3D11SubResourceData(Array data, uint pitch)
Parameters
Type | Name | Description |
---|---|---|
Array | data | The initialization data. |
uint | pitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
D3D11SubResourceData(Array, uint, uint)
Initializes a new instance of the D3D11SubResourceData struct.
Declaration
public D3D11SubResourceData(Array data, uint pitch, uint slicePitch)
Parameters
Type | Name | Description |
---|---|---|
Array | data | The initialization data. |
uint | pitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
uint | slicePitch | The distance (in bytes) from the beginning of one depth level to the next. |
Properties
| Edit this page View SourceData
Gets the initialization data.
Declaration
public Array Data { get; }
Property Value
Type | Description |
---|---|
Array |
Pitch
Gets the distance (in bytes) from the beginning of one line of a texture to the next line.
Declaration
public uint Pitch { get; }
Property Value
Type | Description |
---|---|
uint |
SlicePitch
Gets the distance (in bytes) from the beginning of one depth level to the next.
Declaration
public uint SlicePitch { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D3D11SubResourceData)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11SubResourceData other)
Parameters
Type | Name | Description |
---|---|---|
D3D11SubResourceData | 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 ==(D3D11SubResourceData, D3D11SubResourceData)
Compares two D3D11SubResourceData objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11SubResourceData left, D3D11SubResourceData right)
Parameters
Type | Name | Description |
---|---|---|
D3D11SubResourceData | left | The left D3D11SubResourceData to compare. |
D3D11SubResourceData | right | The right D3D11SubResourceData to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11SubResourceData, D3D11SubResourceData)
Compares two D3D11SubResourceData objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11SubResourceData left, D3D11SubResourceData right)
Parameters
Type | Name | Description |
---|---|---|
D3D11SubResourceData | left | The left D3D11SubResourceData to compare. |
D3D11SubResourceData | right | The right D3D11SubResourceData to compare. |
Returns
Type | Description |
---|---|
bool |