pub struct Info {
pub kind: Kind,
pub levels: u8,
pub format: SurfaceType,
pub bind: Bind,
pub usage: Usage,
}
Expand description
Texture storage descriptor.
Fields§
§kind: Kind
§levels: u8
§format: SurfaceType
§bind: Bind
§usage: Usage
Implementations§
source§impl Info
impl Info
sourcepub fn to_image_info(&self, mip: u8) -> ImageInfoCommon<()>
pub fn to_image_info(&self, mip: u8) -> ImageInfoCommon<()>
Get image info for a given mip.
sourcepub fn to_raw_image_info(
&self,
cty: ChannelType,
mip: u8
) -> ImageInfoCommon<Format>
pub fn to_raw_image_info( &self, cty: ChannelType, mip: u8 ) -> ImageInfoCommon<Format>
Get the raw image info for a given mip and a channel type.
Trait Implementations§
source§impl Ord for Info
impl Ord for Info
source§impl PartialEq<Info> for Info
impl PartialEq<Info> for Info
source§impl PartialOrd<Info> for Info
impl PartialOrd<Info> for Info
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more