Tex.GetNativeSurface

IntPtr GetNativeSurface()

This will return the texture’s native resource for use with external libraries. For D3D, this will be an ID3D11Texture2D*, and for GL, this will be a uint32_t from a glGenTexture call, coerced into the IntPtr. This call will block execution until the texture is loaded, if it is not already.

   
RETURNS: IntPtr For D3D, this will be an ID3D11Texture2D*, and for GL, this will be a uint32_t from a glGenTexture call, coerced into the IntPtr.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!