Class SharpDXInterop
public static class SharpDXInterop
- Inheritance
-
objectSharpDXInterop
Methods
AsSharpDX(ref DataBox)
public static ref DataBox AsSharpDX(this ref DataBox @this)
Parameters
thisDataBox
Returns
- DataBox
AsSharpDX(ref ResourceRegion)
public static ref ResourceRegion AsSharpDX(this ref ResourceRegion @this)
Parameters
thisResourceRegion
Returns
- ResourceRegion
AsStride(ref DataBox)
public static ref DataBox AsStride(this ref DataBox @this)
Parameters
thisDataBox
Returns
AsStride(ref ResourceRegion)
public static ref ResourceRegion AsStride(this ref ResourceRegion @this)
Parameters
thisResourceRegion
Returns
CreateTextureFromNative(GraphicsDevice, object, bool, bool)
Creates a Texture from a DirectX11 native texture This method internally will call AddReference on the dxTexture2D texture.
public static Texture CreateTextureFromNative(GraphicsDevice device, object dxTexture2D, bool takeOwnership, bool isSRgb = false)
Parameters
deviceGraphicsDeviceThe GraphicsDevice in use
dxTexture2DobjectThe DX11 texture
takeOwnershipboolIf false AddRef will be called on the texture, if true will not, effectively taking ownership
isSRgbboolSet the format to SRgb
Returns
GetNativeCommandQueue(GraphicsDevice)
Gets the native command queue (DX12 only)
public static object GetNativeCommandQueue(GraphicsDevice device)
Parameters
deviceGraphicsDeviceThe Stride GraphicsDevice
Returns
- object
GetNativeDevice(GraphicsDevice)
Gets the native device (DX11/DX12)
public static object GetNativeDevice(GraphicsDevice device)
Parameters
deviceGraphicsDeviceThe Stride GraphicsDevice
Returns
- object
GetNativeDeviceContext(GraphicsDevice)
Gets the native device context (DX11)
public static object GetNativeDeviceContext(GraphicsDevice device)
Parameters
deviceGraphicsDeviceThe Stride GraphicsDevice
Returns
- object
GetNativeRenderTargetView(Texture)
public static object GetNativeRenderTargetView(Texture texture)
Parameters
textureTexture
Returns
- object
GetNativeResource(GraphicsResource)
Gets the DX11 native resource handle
public static object GetNativeResource(GraphicsResource resource)
Parameters
resourceGraphicsResourceThe Stride GraphicsResourceBase
Returns
- object
GetNativeShaderResourceView(GraphicsResource)
public static object GetNativeShaderResourceView(GraphicsResource resource)
Parameters
resourceGraphicsResource
Returns
- object