Class DxgiUtils
Utility methods.
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public static class DxgiUtils
Methods
| Edit this page View SourceDisposeAndNull<T>(ref T)
Immediately releases the unmanaged resources.
Declaration
public static void DisposeAndNull<T>(ref T o) where T : class, IDxgiReleasable
Parameters
Type | Name | Description |
---|---|---|
T | o | The object. |
Type Parameters
Name | Description |
---|---|
T | A releasable type. |
ReleaseAndNull<T>(ref T)
Releases the managed reference to the COM interface.
Declaration
public static void ReleaseAndNull<T>(ref T o) where T : class, IDxgiReleasable
Parameters
Type | Name | Description |
---|---|---|
T | o | The COM interface. |
Type Parameters
Name | Description |
---|---|
T | A releasable type. |