Struct wgpu_tilemap::TilesetRef
source · pub struct TilesetRef<'a> {
pub pixel_size: Vec2<u32>,
pub size_of_tile: Vec2<u32>,
pub data: Cow<'a, [u32]>,
}
Expand description
A reference to tileset data to be uploaded as a texture. This is the image data drawn for each tile of the corresponding tilemap.
Fields§
§pixel_size: Vec2<u32>
Size of this tileset, in pixels.
size_of_tile: Vec2<u32>
Size of each tile in this tileset.
data: Cow<'a, [u32]>
Interpreted as wgpu::TextureFormat::Rgba8UnormSrgb
Trait Implementations§
source§impl<'a> Clone for TilesetRef<'a>
impl<'a> Clone for TilesetRef<'a>
source§fn clone(&self) -> TilesetRef<'a>
fn clone(&self) -> TilesetRef<'a>
Returns a copy of the value. Read more
1.0.0 · 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<'a> RefUnwindSafe for TilesetRef<'a>
impl<'a> Send for TilesetRef<'a>
impl<'a> Sync for TilesetRef<'a>
impl<'a> Unpin for TilesetRef<'a>
impl<'a> UnwindSafe for TilesetRef<'a>
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