Struct D3D11SubResourceDataPtr
Specifies a pointer to data for initializing a subresource.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11SubResourceDataPtr : IEquatable<D3D11SubResourceDataPtr>
Constructors
| Edit this page View SourceD3D11SubResourceDataPtr(nint, uint)
Initializes a new instance of the D3D11SubResourceData struct.
Declaration
public D3D11SubResourceDataPtr(nint data, uint pitch)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | data | The initialization data. |
| uint | pitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
D3D11SubResourceDataPtr(nint, uint, uint)
Initializes a new instance of the D3D11SubResourceData struct.
Declaration
public D3D11SubResourceDataPtr(nint data, uint pitch, uint slicePitch)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | 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 SourceSysMem
Gets or sets a pointer to the initialization data.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Reviewed")]
public nint SysMem { get; set; }
Property Value
| Type | Description |
|---|---|
| nint |
SysMemPitch
Gets or sets the distance (in bytes) from the beginning of one line of a texture to the next line.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Reviewed")]
public uint SysMemPitch { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
SysMemSlicePitch
Gets or sets the distance (in bytes) from the beginning of one depth level to the next.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Reviewed")]
public uint SysMemSlicePitch { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceEquals(D3D11SubResourceDataPtr)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11SubResourceDataPtr other)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceDataPtr | 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 ==(D3D11SubResourceDataPtr, D3D11SubResourceDataPtr)
Compares two D3D11SubResourceDataPtr objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11SubResourceDataPtr left, D3D11SubResourceDataPtr right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceDataPtr | left | The left D3D11SubResourceDataPtr to compare. |
| D3D11SubResourceDataPtr | right | The right D3D11SubResourceDataPtr to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(D3D11SubResourceDataPtr, D3D11SubResourceDataPtr)
Compares two D3D11SubResourceDataPtr objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11SubResourceDataPtr left, D3D11SubResourceDataPtr right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SubResourceDataPtr | left | The left D3D11SubResourceDataPtr to compare. |
| D3D11SubResourceDataPtr | right | The right D3D11SubResourceDataPtr to compare. |
Returns
| Type | Description |
|---|---|
| bool |