pub struct Texture {
pub inner: TextureInner,
pub drop_guard: Option<DropGuard>,
pub mip_level_count: u32,
pub array_layer_count: u32,
pub format: TextureFormat,
pub format_desc: TextureFormatDesc,
pub copy_size: CopyExtent,
}
Fields§
§inner: TextureInner
§drop_guard: Option<DropGuard>
§mip_level_count: u32
§array_layer_count: u32
§format: TextureFormat
§format_desc: TextureFormatDesc
§copy_size: CopyExtent
Implementations§
source§impl Texture
impl Texture
pub fn default_framebuffer(format: TextureFormat) -> Self
sourcefn get_info_from_desc(desc: &TextureDescriptor<'_>) -> u32
fn get_info_from_desc(desc: &TextureDescriptor<'_>) -> u32
Returns the target
, whether the image is 3d and whether the image is a cubemap.
sourcefn log_failing_target_heuristics(
view_dimension: TextureViewDimension,
target: u32,
)
fn log_failing_target_heuristics( view_dimension: TextureViewDimension, target: u32, )
More information can be found in issues #1614 and #1574
Trait Implementations§
source§impl Borrow<dyn DynTexture> for Texture
impl Borrow<dyn DynTexture> for Texture
source§fn borrow(&self) -> &dyn DynTexture
fn borrow(&self) -> &dyn DynTexture
Immutably borrows from an owned value. Read more
source§impl DynResource for Texture
impl DynResource for Texture
impl DynSurfaceTexture for Texture
impl DynTexture for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more