pub struct LayerTexture {
pub texture: Texture,
pub view: TextureView,
pub size: (u32, u32),
pub has_depth: bool,
pub depth_view: Option<TextureView>,
/* private fields */
}Expand description
A texture used for offscreen layer rendering
Layer textures are used for rendering layers to offscreen targets, enabling layer composition with blend modes and effects.
Fields§
§texture: TextureThe GPU texture for color data
view: TextureViewView into the texture for rendering
size: (u32, u32)Size of the texture in pixels (width, height)
has_depth: boolWhether this texture has an associated depth buffer
depth_view: Option<TextureView>Optional depth texture view (for 3D content)
Implementations§
Source§impl LayerTexture
impl LayerTexture
Auto Trait Implementations§
impl Freeze for LayerTexture
impl !RefUnwindSafe for LayerTexture
impl Send for LayerTexture
impl Sync for LayerTexture
impl Unpin for LayerTexture
impl UnsafeUnpin for LayerTexture
impl !UnwindSafe for LayerTexture
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