[]
ID3D11Device2
[Guid("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")]
public class Device2 : Device1, IDisposable, IUnknown
Initializes a new instance of the Device2 class.
public Device2(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetImmediateContext2
public DeviceContext2 ImmediateContext2 { get; }
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)
format
FormatsampleCount
intflags
CheckMultisampleQualityLevelsFlagsHRESULT ID3D11Device2::CreateDeferredContext2([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext2** ppDeferredContext)
public DeviceContext2 CreateDeferredContext2(int contextFlags)
contextFlags
intClean up any resources being used.
protected override void Dispose(bool disposing)
disposing
boolvoid ID3D11Device2::GetImmediateContext2([Out] ID3D11DeviceContext2** ppImmediateContext)
public void GetImmediateContext2(out DeviceContext2 immediateContextOut)
immediateContextOut
DeviceContext2void 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)
tiledResourceRef
ResourcenumTilesForEntireResourceRef
intpackedMipDescRef
PackedMipDescriptionstandardTileShapeForNonPackedMipsRef
TileShapenumSubresourceTilingsRef
intfirstSubresourceTilingToGet
intsubresourceTilingsForNonPackedMipsRef
SubResourceTiling[]Performs an explicit conversion from System.IntPtr to Device2.
public static explicit operator Device2(IntPtr nativePointer)
nativePointer
System.IntPtr