pub enum ResourceUpdateDescriptor {
Mesh {
id: MeshId,
vertex_data: Vec<u8>,
vertex_layout: VertexBufferLayout,
index_data: Vec<u8>,
index_format: IndexFormat,
index_count: u32,
},
Texture {
id: TextureId,
data: Vec<u8>,
},
Material {
id: MaterialId,
enable_depth: Option<bool>,
texture: Option<Option<TextureId>>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ResourceUpdateDescriptor
impl Clone for ResourceUpdateDescriptor
Source§fn clone(&self) -> ResourceUpdateDescriptor
fn clone(&self) -> ResourceUpdateDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourceUpdateDescriptor
impl RefUnwindSafe for ResourceUpdateDescriptor
impl Send for ResourceUpdateDescriptor
impl Sync for ResourceUpdateDescriptor
impl Unpin for ResourceUpdateDescriptor
impl UnsafeUnpin for ResourceUpdateDescriptor
impl UnwindSafe for ResourceUpdateDescriptor
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