Function arc_util::ui::texture::create_texture2d_from_mem
source · pub fn create_texture2d_from_mem(
device: &ID3D11Device,
data: &[u8],
width: u32,
height: u32,
pitch: u32,
format: DXGI_FORMAT,
usage: D3D11_USAGE
) -> Result<ID3D11Texture2D>
Expand description
Creates a 2-dimensional texture from in-memory data.