Struct D3D11SubResourceDataPtr
Specifies a pointer to data for initializing a subresource.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11SubResourceDataPtr : IEquatable<D3D11SubResourceDataPtr>
Constructors
|
Edit this page
View Source
D3D11SubResourceDataPtr(nint, uint)
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.
|
|
Edit this page
View Source
D3D11SubResourceDataPtr(nint, uint, uint)
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 Source
SysMem
Gets or sets a pointer to the initialization data.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Reviewed")]
public nint SysMem { get; set; }
Property Value
|
Edit this page
View Source
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
|
Edit this page
View Source
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
Methods
|
Edit this page
View Source
Equals(D3D11SubResourceDataPtr)
Declaration
public readonly bool Equals(D3D11SubResourceDataPtr other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D3D11SubResourceDataPtr NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11SubResourceDataPtr>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11SubResourceDataPtr> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D3D11SubResourceDataPtr)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11SubResourceDataPtr obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11SubResourceDataPtr>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11SubResourceDataPtr> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D3D11SubResourceDataPtr, D3D11SubResourceDataPtr)
Declaration
public static bool operator ==(D3D11SubResourceDataPtr left, D3D11SubResourceDataPtr right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11SubResourceDataPtr, D3D11SubResourceDataPtr)
Declaration
public static bool operator !=(D3D11SubResourceDataPtr left, D3D11SubResourceDataPtr right)
Parameters
Returns
Implements