D3D11TextureImporter
Imports Direct3D 11 textures of one ID3D11Device as color buffers that share the memory of the texture, without copying it.
Importers are created by drivers that implement D3D11TextureImporterFactory. All functions must be called on the thread that draws.
Since
openrndr 0.5.1
Functions
Link copied to clipboard
abstract fun import(texture: Long, width: Int, height: Int, format: ColorFormat, type: ColorType): ColorBuffer?
Link copied to clipboard
Makes colorBuffer available to draw with, waiting for the Direct3D commands that write it
Link copied to clipboard
Stops sharing the texture of colorBuffer and destroys colorBuffer
Link copied to clipboard
Returns colorBuffer to Direct3D