[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.Device1

Class Device1

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

ID3D11Device1

[Guid("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")]
public class Device1 : Device, IDisposable, IUnknown
Inheritance
object
Device1
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

Device1(IntPtr)

Initializes a new instance of the Device1 class.

public Device1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

ImmediateContext1

GetImmediateContext1

public DeviceContext1 ImmediateContext1 { get; }

Property Value

DeviceContext1

Methods

CreateBlendState1(ref BlendStateDescription1)

HRESULT ID3D11Device1::CreateBlendState1([In] const D3D11_BLEND_DESC1* pBlendStateDesc,[Out, Fast] ID3D11BlendState1** ppBlendState)

public BlendState1 CreateBlendState1(ref BlendStateDescription1 blendStateDescRef)

Parameters

blendStateDescRef BlendStateDescription1

Returns

BlendState1

CreateDeferredContext1(int)

HRESULT ID3D11Device1::CreateDeferredContext1([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext1** ppDeferredContext)

public DeviceContext1 CreateDeferredContext1(int contextFlags)

Parameters

contextFlags int

Returns

DeviceContext1

CreateDeviceContextState(CreateDeviceContextStateFlags, FeatureLevel[], int, int, Guid, out FeatureLevel)

HRESULT 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)

Parameters

flags CreateDeviceContextStateFlags
featureLevelsRef FeatureLevel[]
featureLevels int
sDKVersion int
emulatedInterface System.Guid
chosenFeatureLevelRef FeatureLevel

Returns

DeviceContextState

CreateDeviceContextState<T>(CreateDeviceContextStateFlags, FeatureLevel[], out FeatureLevel)

Creates 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

Parameters

flags CreateDeviceContextStateFlags
featureLevelsRef FeatureLevel[]
chosenFeatureLevelRef FeatureLevel

Returns

DeviceContextState

Type Parameters

T

CreateRasterizerState1(ref RasterizerStateDescription1)

HRESULT ID3D11Device1::CreateRasterizerState1([In] const D3D11_RASTERIZER_DESC1* pRasterizerDesc,[Out, Fast] ID3D11RasterizerState1** ppRasterizerState)

public RasterizerState1 CreateRasterizerState1(ref RasterizerStateDescription1 rasterizerDescRef)

Parameters

rasterizerDescRef RasterizerStateDescription1

Returns

RasterizerState1

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

GetImmediateContext1(out DeviceContext1)

void ID3D11Device1::GetImmediateContext1([Out] ID3D11DeviceContext1** ppImmediateContext)

public void GetImmediateContext1(out DeviceContext1 immediateContextOut)

Parameters

immediateContextOut DeviceContext1

OpenSharedResource1(IntPtr, Guid)

HRESULT ID3D11Device1::OpenSharedResource1([In] void* hResource,[In] const GUID& returnedInterface,[Out] void** ppResource)

public IntPtr OpenSharedResource1(IntPtr hResource, Guid returnedInterface)

Parameters

hResource System.IntPtr
returnedInterface System.Guid

Returns

System.IntPtr

OpenSharedResource1<T>(IntPtr)

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>(IntPtr resourceHandle) where T : ComObject

Parameters

resourceHandle System.IntPtr

Returns

T

Type Parameters

T

OpenSharedResource1<T>(string, SharedResourceFlags)

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

Parameters

name string
desiredAccess SharedResourceFlags

Returns

T

Type Parameters

T

OpenSharedResourceByName(string, SharedResourceFlags, Guid)

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)

Parameters

lpName string
dwDesiredAccess SharedResourceFlags
returnedInterface System.Guid

Returns

System.IntPtr

Operators

explicit operator Device1(IntPtr)

Performs an explicit conversion from System.IntPtr to Device1.

public static explicit operator Device1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Device1