Function arc_util::ui::texture::create_texture2d
source · pub fn create_texture2d(
device: &ID3D11Device,
desc: &D3D11_TEXTURE2D_DESC,
data: &D3D11_SUBRESOURCE_DATA
) -> Result<ID3D11Texture2D>
Expand description
Creates a 2-dimensional texture with the given description and subresource data.