[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DXGI.Resource1

Class Resource1

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

IDXGIResource1

[Guid("30961379-4609-4a41-998e-54fe567ee0c1")]
public class Resource1 : Resource, IDisposable, IUnknown
Inheritance
object
Resource1
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

Resource1(IntPtr)

Initializes a new instance of the Resource1 class.

public Resource1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

CreateSharedHandle(SecurityAttributes?, SharedResourceFlags, string)

HRESULT IDXGIResource1::CreateSharedHandle([In, Optional] const SECURITY_ATTRIBUTES* pAttributes,[In] DXGI_SHARED_RESOURCE_FLAGS dwAccess,[In, Optional] const wchar_t* lpName,[Out] void** pHandle)

public IntPtr CreateSharedHandle(SecurityAttributes? attributesRef, SharedResourceFlags dwAccess, string lpName)

Parameters

attributesRef SecurityAttributes?
dwAccess SharedResourceFlags
lpName string

Returns

System.IntPtr

CreateSharedHandle(string, SharedResourceFlags, SecurityAttributes?)

Creates a handle to a shared resource. You can then use the returned handle with multiple Direct3D devices.

public IntPtr CreateSharedHandle(string name, SharedResourceFlags dwAccess, SecurityAttributes? attributesRef = null)

Parameters

name string
dwAccess SharedResourceFlags
attributesRef SecurityAttributes?

Returns

System.IntPtr

CreateSubresourceSurface2(int)

HRESULT IDXGIResource1::CreateSubresourceSurface([In] unsigned int index,[Out, Fast] IDXGISurface2** ppSurface)

public Surface2 CreateSubresourceSurface2(int index)

Parameters

index int

Returns

Surface2

Operators

explicit operator Resource1(IntPtr)

Performs an explicit conversion from System.IntPtr to Resource1.

public static explicit operator Resource1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Resource1