Function bgfx_rs::static_lib::create_texture
source · [−]pub fn create_texture(
mem: &Memory,
flags: u64,
skip: u8,
info: &mut TextureInfo
) -> Texture
Expand description
mem
: DDS, KTX or PVR texture binary data.flags
: Texture creation (see TextureFlags.), and sampler (see SamplerFlags) flags. Default texture sampling mode is linear, and wrap mode is repeat.
- [SamplerFlags::[U/V/W]_[MIRROR/CLAMP]] - Mirror or clamp to edge wrap mode.
- [SamplerFlags::[MIN/MAG/MIP]_[POINT/ANISOTROPIC]] - Point or anisotropic sampling.
skip
: Skip top level mips when parsing texture.info
: When non-NULL
is specified it returns parsed texture information.