Class D3D11ClassInstance
This interface encapsulates an HLSL class.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11ClassInstance : D3D11DeviceChild, IDisposable
Constructors
| Edit this page View SourceD3D11ClassInstance(nint)
Initializes a new instance of the D3D11ClassInstance class.
Declaration
public D3D11ClassInstance(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11ClassInstanceGuid
The interface GUID.
Declaration
public static readonly Guid D3D11ClassInstanceGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceDescription
Gets a description of the current HLSL class.
Declaration
public D3D11ClassInstanceDesc Description { get; }
Property Value
| Type | Description |
|---|---|
| D3D11ClassInstanceDesc |
InstanceName
Gets the instance name of the current HLSL class.
Declaration
public string InstanceName { get; }
Property Value
| Type | Description |
|---|---|
| string |
TypeName
Gets the type of the current HLSL class.
Declaration
public string TypeName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetClassLinkage()
Gets the D3D11ClassLinkage object associated with the current HLSL class.
Declaration
public D3D11ClassLinkage GetClassLinkage()
Returns
| Type | Description |
|---|---|
| D3D11ClassLinkage | A class linkage object. |
GetInstanceNameCharCount()
Gets the instance name of the current HLSL class.
Declaration
public int GetInstanceNameCharCount()
Returns
| Type | Description |
|---|---|
| int | The count. |
GetInstanceNameChars(Span<char>)
Gets the instance name of the current HLSL class.
Declaration
public int GetInstanceNameChars(Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
GetTypeNameCharCount()
Gets the type of the current HLSL class.
Declaration
public int GetTypeNameCharCount()
Returns
| Type | Description |
|---|---|
| int | The count. |
GetTypeNameChars(Span<char>)
Gets the type of the current HLSL class.
Declaration
public int GetTypeNameChars(Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |