Struct D3D11BufferSrv
Specifies the elements in a buffer resource to use in a shader resource view.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11BufferSrv : IEquatable<D3D11BufferSrv>
Constructors
|
Edit this page
View Source
D3D11BufferSrv(uint, uint)
Declaration
public D3D11BufferSrv(uint firstElement, uint numElements)
Parameters
| Type |
Name |
Description |
| uint |
firstElement |
|
| uint |
numElements |
|
Properties
|
Edit this page
View Source
ElementOffset
Gets or sets the offset of the first element in the view to access, relative to element 0.
Declaration
public uint ElementOffset { get; set; }
Property Value
|
Edit this page
View Source
ElementWidth
Gets or sets the width of each element (in bytes). This can be determined from the format stored in the shader resource-view description.
Declaration
public uint ElementWidth { get; set; }
Property Value
|
Edit this page
View Source
FirstElement
Gets or sets the number of bytes between the beginning of the buffer and the first element to access.
Declaration
public uint FirstElement { get; set; }
Property Value
|
Edit this page
View Source
NumElements
Gets or sets the total number of elements in the view.
Declaration
public uint NumElements { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D3D11BufferSrv)
Declaration
public readonly bool Equals(D3D11BufferSrv 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 D3D11BufferSrv NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11BufferSrv>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11BufferSrv> 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 D3D11BufferSrv)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11BufferSrv obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11BufferSrv>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11BufferSrv> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D3D11BufferSrv, D3D11BufferSrv)
Declaration
public static bool operator ==(D3D11BufferSrv left, D3D11BufferSrv right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11BufferSrv, D3D11BufferSrv)
Declaration
public static bool operator !=(D3D11BufferSrv left, D3D11BufferSrv right)
Parameters
Returns
Implements