Class D3D11DeviceChild
A device-child interface accesses data used by a device.
Inheritance
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11DeviceChild : DXComObject, IDisposable
Constructors
| Edit this page View SourceD3D11DeviceChild(nint)
Initializes a new instance of the D3D11DeviceChild class.
Declaration
public D3D11DeviceChild(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11DeviceChildGuid
The interface GUID.
Declaration
public static readonly Guid D3D11DeviceChildGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceGetDebugName()
Gets a unique name to objects in order to assist the developer during debugging.
Declaration
public string GetDebugName()
Returns
| Type | Description |
|---|---|
| string | The friendly name. |
GetDebugNameCharCount()
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetDebugNameCharCount()
Returns
| Type | Description |
|---|---|
| int | The count. |
GetDebugNameChars(Span<char>)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetDebugNameChars(Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
GetDevice()
Get the device that created this interface.
Declaration
public D3D11Device GetDevice()
Returns
| Type | Description |
|---|---|
| D3D11Device | A device. |
GetPrivateDataText(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public string GetPrivateDataText(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| string | The object's text. |
GetPrivateDataTextCharCount(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextCharCount(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| int | The count. |
GetPrivateDataTextChars(in Guid, Span<char>)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextChars(in Guid name, Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
SetDebugName(ReadOnlySpan<char>)
Sets a unique name to objects in order to assist the developer during debugging.
Declaration
public void SetDebugName(ReadOnlySpan<char> name)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | name | The friendly name. |
SetDebugName(string?)
Sets a unique name to objects in order to assist the developer during debugging.
Declaration
public void SetDebugName(string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The friendly name. |
SetPrivateDataText(in Guid, ReadOnlySpan<char>)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, ReadOnlySpan<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| ReadOnlySpan<char> | text | The object's text. |
SetPrivateDataText(in Guid, string?)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, string? text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| string | text | The object's text. |