Struct D3D11StreamOutputDeclarationEntry
Description of a vertex element in a vertex buffer in an output slot.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11StreamOutputDeclarationEntry : IEquatable<D3D11StreamOutputDeclarationEntry>
Constructors
| Edit this page View SourceD3D11StreamOutputDeclarationEntry(uint, ReadOnlySpan<byte>, uint, byte, byte, byte)
Initializes a new instance of the D3D11StreamOutputDeclarationEntry struct.
Declaration
public D3D11StreamOutputDeclarationEntry(uint stream, ReadOnlySpan<byte> semanticName, uint semanticIndex, byte startComponent, byte componentCount, byte outputSlot)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | stream | The stream number. |
| ReadOnlySpan<byte> | semanticName | The type of output element. |
| uint | semanticIndex | The output element's index. |
| byte | startComponent | Which component of the entry to begin writing out to. Valid values are 0 to 3. |
| byte | componentCount | The number of components of the entry to write out to. Valid values are 1 to 4. |
| byte | outputSlot | The associated stream output buffer that is bound to the pipeline. |
D3D11StreamOutputDeclarationEntry(uint, ReadOnlySpan<char>, uint, byte, byte, byte)
Initializes a new instance of the D3D11StreamOutputDeclarationEntry struct.
Declaration
public D3D11StreamOutputDeclarationEntry(uint stream, ReadOnlySpan<char> semanticName, uint semanticIndex, byte startComponent, byte componentCount, byte outputSlot)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | stream | The stream number. |
| ReadOnlySpan<char> | semanticName | The type of output element. |
| uint | semanticIndex | The output element's index. |
| byte | startComponent | Which component of the entry to begin writing out to. Valid values are 0 to 3. |
| byte | componentCount | The number of components of the entry to write out to. Valid values are 1 to 4. |
| byte | outputSlot | The associated stream output buffer that is bound to the pipeline. |
D3D11StreamOutputDeclarationEntry(uint, string, uint, byte, byte, byte)
Initializes a new instance of the D3D11StreamOutputDeclarationEntry struct.
Declaration
public D3D11StreamOutputDeclarationEntry(uint stream, string semanticName, uint semanticIndex, byte startComponent, byte componentCount, byte outputSlot)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | stream | The stream number. |
| string | semanticName | The type of output element. |
| uint | semanticIndex | The output element's index. |
| byte | startComponent | Which component of the entry to begin writing out to. Valid values are 0 to 3. |
| byte | componentCount | The number of components of the entry to write out to. Valid values are 1 to 4. |
| byte | outputSlot | The associated stream output buffer that is bound to the pipeline. |
Fields
| Edit this page View SourceSemanticNameMaxLength
Gets the maximum char count of the string that contains the semantic name.
Declaration
public const int SemanticNameMaxLength = 64
Field Value
| Type | Description |
|---|---|
| int |
Properties
| Edit this page View SourceComponentCount
Gets or sets the number of components of the entry to write out to. Valid values are 1 to 4.
Declaration
public byte ComponentCount { get; set; }
Property Value
| Type | Description |
|---|---|
| byte |
OutputSlot
Gets or sets the associated stream output buffer that is bound to the pipeline.
Declaration
public byte OutputSlot { get; set; }
Property Value
| Type | Description |
|---|---|
| byte |
SemanticIndex
Gets or sets the output element's index.
Declaration
public uint SemanticIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
SemanticName
Gets or sets the type of output element.
Declaration
public string SemanticName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StartComponent
Gets or sets a value indicating which component of the entry to begin writing out to. Valid values are 0 to 3.
Declaration
public byte StartComponent { get; set; }
Property Value
| Type | Description |
|---|---|
| byte |
Stream
Gets or sets the stream number.
Declaration
public uint Stream { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceEquals(D3D11StreamOutputDeclarationEntry)
Declaration
public readonly bool Equals(D3D11StreamOutputDeclarationEntry other)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11StreamOutputDeclarationEntry | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
| Edit this page View SourceGetSemanticNameAsSpan()
Gets the type of output element.
Declaration
public ReadOnlySpan<byte> GetSemanticNameAsSpan()
Returns
| Type | Description |
|---|---|
| ReadOnlySpan<byte> |
GetSemanticNameCharCount()
Gets the type of output element.
Declaration
public int GetSemanticNameCharCount()
Returns
| Type | Description |
|---|---|
| int | The count. |
GetSemanticNameChars(Span<char>)
Gets the type of output element.
Declaration
public int GetSemanticNameChars(Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<char> | text |
Returns
| Type | Description |
|---|---|
| int |
NativeReadFrom(nint)
Declaration
public static D3D11StreamOutputDeclarationEntry NativeReadFrom(nint buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | buffer |
Returns
| Type | Description |
|---|---|
| D3D11StreamOutputDeclarationEntry |
NativeReadFrom(nint, Span<D3D11StreamOutputDeclarationEntry>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11StreamOutputDeclarationEntry> objects)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | buffer | |
| Span<D3D11StreamOutputDeclarationEntry> | objects |
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
| Type | Description |
|---|---|
| int |
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type | Name | Description |
|---|---|---|
| int | count |
Returns
| Type | Description |
|---|---|
| int |
NativeWriteTo(nint, in D3D11StreamOutputDeclarationEntry)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11StreamOutputDeclarationEntry obj)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | buffer | |
| D3D11StreamOutputDeclarationEntry | obj |
NativeWriteTo(nint, ReadOnlySpan<D3D11StreamOutputDeclarationEntry>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11StreamOutputDeclarationEntry> objects)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | buffer | |
| ReadOnlySpan<D3D11StreamOutputDeclarationEntry> | objects |
SetSemanticName(ReadOnlySpan<byte>)
Sets the type of output element.
Declaration
public void SetSemanticName(ReadOnlySpan<byte> value)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | value |
SetSemanticName(ReadOnlySpan<char>)
Sets the type of output element.
Declaration
public void SetSemanticName(ReadOnlySpan<char> value)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | value |
SetSemanticName(string)
Sets the type of output element.
Declaration
public void SetSemanticName(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value |
Operators
| Edit this page View Sourceoperator ==(D3D11StreamOutputDeclarationEntry, D3D11StreamOutputDeclarationEntry)
Declaration
public static bool operator ==(D3D11StreamOutputDeclarationEntry left, D3D11StreamOutputDeclarationEntry right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11StreamOutputDeclarationEntry | left | |
| D3D11StreamOutputDeclarationEntry | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(D3D11StreamOutputDeclarationEntry, D3D11StreamOutputDeclarationEntry)
Declaration
public static bool operator !=(D3D11StreamOutputDeclarationEntry left, D3D11StreamOutputDeclarationEntry right)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11StreamOutputDeclarationEntry | left | |
| D3D11StreamOutputDeclarationEntry | right |
Returns
| Type | Description |
|---|---|
| bool |