import

abstract fun import(texture: Long, width: Int, height: Int, format: ColorFormat, type: ColorType): ColorBuffer?(source)

Returns a color buffer that shares texture, an ID3D11Texture2D of width x height pixels that was created on the device of the importer with D3D11_BIND_RENDER_TARGET and D3D11_BIND_SHADER_RESOURCE.

The color buffer reports format and type. It can only be sampled between lock and unlock, Direct3D can only write texture while it is unlocked.

Return

the color buffer, or null when the texture can not be imported