[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.Device2

Class Device2

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

ID3D11Device2

[Guid("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")]
public class Device2 : Device1, IDisposable, IUnknown
Inheritance
object
Device2
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Device2(IntPtr)

Initializes a new instance of the Device2 class.

public Device2(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

ImmediateContext2

GetImmediateContext2

public DeviceContext2 ImmediateContext2 { get; }

Property Value

DeviceContext2

Methods

CheckMultisampleQualityLevels1(Format, int, CheckMultisampleQualityLevelsFlags)

HRESULT ID3D11Device2::CheckMultisampleQualityLevels1([In] DXGI_FORMAT Format,[In] unsigned int SampleCount,[In] D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG Flags,[Out] unsigned int* pNumQualityLevels)

public int CheckMultisampleQualityLevels1(Format format, int sampleCount, CheckMultisampleQualityLevelsFlags flags)

Parameters

format Format
sampleCount int
flags CheckMultisampleQualityLevelsFlags

Returns

int

CreateDeferredContext2(int)

HRESULT ID3D11Device2::CreateDeferredContext2([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext2** ppDeferredContext)

public DeviceContext2 CreateDeferredContext2(int contextFlags)

Parameters

contextFlags int

Returns

DeviceContext2

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

GetImmediateContext2(out DeviceContext2)

void ID3D11Device2::GetImmediateContext2([Out] ID3D11DeviceContext2** ppImmediateContext)

public void GetImmediateContext2(out DeviceContext2 immediateContextOut)

Parameters

immediateContextOut DeviceContext2

GetResourceTiling(Resource, out int, out PackedMipDescription, out TileShape, ref int, int, SubResourceTiling[])

void ID3D11Device2::GetResourceTiling([In] ID3D11Resource* pTiledResource,[Out, Optional] unsigned int* pNumTilesForEntireResource,[Out, Optional] D3D11_PACKED_MIP_DESC* pPackedMipDesc,[Out, Optional] D3D11_TILE_SHAPE* pStandardTileShapeForNonPackedMips,[InOut] unsigned int* pNumSubresourceTilings,[In] unsigned int FirstSubresourceTilingToGet,[Out, Buffer] D3D11_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips)

public void GetResourceTiling(Resource tiledResourceRef, out int numTilesForEntireResourceRef, out PackedMipDescription packedMipDescRef, out TileShape standardTileShapeForNonPackedMipsRef, ref int numSubresourceTilingsRef, int firstSubresourceTilingToGet, SubResourceTiling[] subresourceTilingsForNonPackedMipsRef)

Parameters

tiledResourceRef Resource
numTilesForEntireResourceRef int
packedMipDescRef PackedMipDescription
standardTileShapeForNonPackedMipsRef TileShape
numSubresourceTilingsRef int
firstSubresourceTilingToGet int
subresourceTilingsForNonPackedMipsRef SubResourceTiling[]

Operators

explicit operator Device2(IntPtr)

Performs an explicit conversion from System.IntPtr to Device2.

public static explicit operator Device2(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Device2