Struct D3D11SubResourceData
Specifies data for initializing a subresource.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public readonly struct D3D11SubResourceData : IEquatable<D3D11SubResourceData>
Constructors
| Edit this page View SourceD3D11SubResourceData(Array, int, uint, uint)
Initializes a new instance of the D3D11SubResourceData struct.
Declaration
public D3D11SubResourceData(Array data, int index, uint pitch, uint slicePitch)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | data | The initialization data. |
| int | index | The initialization index. |
| 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. |
D3D11SubResourceData(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
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Reviewed")]
public Array Data { get; }
Property Value
| Type | Description |
|---|---|
| Array |
Index
Gets the initialization index.
Declaration
public int Index { get; }
Property Value
| Type | Description |
|---|---|
| int |
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)
Declaration
public bool Equals(D3D11SubResourceData other)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceData | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceGetDataAsPointer()
Declaration
public nint GetDataAsPointer()
Returns
| Type | Description |
|---|---|
| nint |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11SubResourceData, D3D11SubResourceData)
Declaration
public static bool operator ==(D3D11SubResourceData left, D3D11SubResourceData right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceData | left | |
| D3D11SubResourceData | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(D3D11SubResourceData, D3D11SubResourceData)
Declaration
public static bool operator !=(D3D11SubResourceData left, D3D11SubResourceData right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceData | left | |
| D3D11SubResourceData | right |
Returns
| Type | Description |
|---|---|
| bool |