pub type DdsNewD3dParams = NewD3dParams;Expand description
Constructor parameter set for D3D-style DDS creation.
Aliased Type§
pub struct DdsNewD3dParams {
pub height: u32,
pub width: u32,
pub depth: Option<u32>,
pub format: D3DFormat,
pub mipmap_levels: Option<u32>,
pub caps2: Option<Caps2>,
}Fields§
§height: u32Texture height in pixels.
width: u32Texture width in pixels.
depth: Option<u32>Depth for volume textures. None for 2D textures.
format: D3DFormatThe D3D pixel format.
mipmap_levels: Option<u32>Number of mipmap levels. None or Some(1) for no mipmaps.
caps2: Option<Caps2>Additional surface flags (e.g. [Caps2::CUBEMAP], [Caps2::VOLUME]).
None for a simple 2D texture.