[]
ID3D11Device1
[Guid("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")]
public class Device1 : Device, IDisposable, IUnknown
Initializes a new instance of the Device1 class.
public Device1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetImmediateContext1
public DeviceContext1 ImmediateContext1 { get; }
HRESULT ID3D11Device1::CreateBlendState1([In] const D3D11_BLEND_DESC1* pBlendStateDesc,[Out, Fast] ID3D11BlendState1** ppBlendState)
public BlendState1 CreateBlendState1(ref BlendStateDescription1 blendStateDescRef)
blendStateDescRef
BlendStateDescription1HRESULT ID3D11Device1::CreateDeferredContext1([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext1** ppDeferredContext)
public DeviceContext1 CreateDeferredContext1(int contextFlags)
contextFlags
intHRESULT ID3D11Device1::CreateDeviceContextState([In] D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG Flags,[In, Buffer] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[In] const GUID& EmulatedInterface,[Out, Optional] D3D_FEATURE_LEVEL* pChosenFeatureLevel,[Out, Fast] ID3DDeviceContextState** ppContextState)
public DeviceContextState CreateDeviceContextState(CreateDeviceContextStateFlags flags, FeatureLevel[] featureLevelsRef, int featureLevels, int sDKVersion, Guid emulatedInterface, out FeatureLevel chosenFeatureLevelRef)
flags
CreateDeviceContextStateFlagsfeatureLevelsRef
FeatureLevel[]featureLevels
intsDKVersion
intemulatedInterface
System.GuidchosenFeatureLevelRef
FeatureLevelCreates a context state object that holds all Microsoft Direct3D state and some Direct3D behavior.
public DeviceContextState CreateDeviceContextState<T>(CreateDeviceContextStateFlags flags, FeatureLevel[] featureLevelsRef, out FeatureLevel chosenFeatureLevelRef) where T : ComObject
flags
CreateDeviceContextStateFlagsfeatureLevelsRef
FeatureLevel[]chosenFeatureLevelRef
FeatureLevelT
HRESULT ID3D11Device1::CreateRasterizerState1([In] const D3D11_RASTERIZER_DESC1* pRasterizerDesc,[Out, Fast] ID3D11RasterizerState1** ppRasterizerState)
public RasterizerState1 CreateRasterizerState1(ref RasterizerStateDescription1 rasterizerDescRef)
rasterizerDescRef
RasterizerStateDescription1Clean up any resources being used.
protected override void Dispose(bool disposing)
disposing
boolvoid ID3D11Device1::GetImmediateContext1([Out] ID3D11DeviceContext1** ppImmediateContext)
public void GetImmediateContext1(out DeviceContext1 immediateContextOut)
immediateContextOut
DeviceContext1HRESULT ID3D11Device1::OpenSharedResource1([In] void* hResource,[In] const GUID& returnedInterface,[Out] void** ppResource)
public IntPtr OpenSharedResource1(IntPtr hResource, Guid returnedInterface)
hResource
System.IntPtrreturnedInterface
System.GuidGives a device access to a shared resource that is referenced by name and that was created on a different device. You must have previously created the resource as shared and specified that it uses NT handles (that is, you set the SharedNthandle flag).
public T OpenSharedResource1<T>(IntPtr resourceHandle) where T : ComObject
resourceHandle
System.IntPtrT
Gives a device access to a shared resource that is referenced by name and that was created on a different device. You must have previously created the resource as shared and specified that it uses NT handles (that is, you set the SharedNthandle flag).
public T OpenSharedResource1<T>(string name, SharedResourceFlags desiredAccess) where T : ComObject
name
stringdesiredAccess
SharedResourceFlagsT
HRESULT ID3D11Device1::OpenSharedResourceByName([In] const wchar_t* lpName,[In] DXGI_SHARED_RESOURCE_FLAGS dwDesiredAccess,[In] const GUID& returnedInterface,[Out] void** ppResource)
public IntPtr OpenSharedResourceByName(string lpName, SharedResourceFlags dwDesiredAccess, Guid returnedInterface)
lpName
stringdwDesiredAccess
SharedResourceFlagsreturnedInterface
System.GuidPerforms an explicit conversion from System.IntPtr to Device1.
public static explicit operator Device1(IntPtr nativePointer)
nativePointer
System.IntPtr