Class DxgiObject
An IDXGIObject
interface is a base interface for all DXGI objects. IDXGIObject
supports associating caller-defined (private data) with an object and retrieval of an interface to the parent object.
Inheritance
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public abstract class DxgiObject : IDisposable, IDxgiReleasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the DXGI object interface.
Declaration
public abstract object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Methods
| Edit this page View SourceDispose()
Immediately releases the unmanaged resources used by the DxgiObject object.
Declaration
public void Dispose()
GetPrivateDataText(Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public string GetPrivateDataText(Guid name)
Parameters
Type | Name | Description |
---|---|---|
Guid | name | A GUID identifying the data. |
Returns
Type | Description |
---|---|
string | The object's text. |
Release()
Releases the managed reference to the COM DXGI interface.
Declaration
public void Release()
SetPrivateDataText(Guid, string)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(Guid name, string text)
Parameters
Type | Name | Description |
---|---|---|
Guid | name | A GUID that identifies the data. |
string | text | The object's text. |
ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
Returns
Type | Description |
---|---|
bool | A boolean |
Operators
| Edit this page View Sourceimplicit operator bool(DxgiObject)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(DxgiObject value)
Parameters
Type | Name | Description |
---|---|---|
DxgiObject | value | A DXGI object. |
Returns
Type | Description |
---|---|
bool | A boolean |