pub struct SubImage {
pub color_texture: u32,
pub depth_stencil_texture: Option<u32>,
pub texture_array_index: Option<u32>,
pub viewport: Rect<i32, Viewport>,
}
Expand description
https://immersive-web.github.io/layers/#xrsubimagetype
Fields§
§color_texture: u32
§depth_stencil_texture: Option<u32>
§texture_array_index: Option<u32>
§viewport: Rect<i32, Viewport>
Trait Implementations§
source§impl<'de> Deserialize<'de> for SubImage
impl<'de> Deserialize<'de> for SubImage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubImage
impl RefUnwindSafe for SubImage
impl Send for SubImage
impl Sync for SubImage
impl Unpin for SubImage
impl UnwindSafe for SubImage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)