Struct wgpu_tilemap::TilemapDrawData
source · pub struct TilemapDrawData<'a> {
pub transform: Mat4<f32>,
pub tilemap: Cow<'a, TilemapRef<'a>>,
pub tileset: u32,
pub noise: TilemapNoise,
}
Expand description
An instruction to draw a tilemap.
Fields§
§transform: Mat4<f32>
A matrix that maps from [0, 1]x[0, 1] to world coordinates for this tilemap.
tilemap: Cow<'a, TilemapRef<'a>>
The data to be used for this tilemap.
tileset: u32
The index into the array of tilesets last provided to the most recent TilemapPipeline::upload_tilesets
call that this tilemap should be drawn with.
noise: TilemapNoise
How much noise this tilemap should be drawn with.
Trait Implementations§
source§impl<'a> Clone for TilemapDrawData<'a>
impl<'a> Clone for TilemapDrawData<'a>
source§fn clone(&self) -> TilemapDrawData<'a>
fn clone(&self) -> TilemapDrawData<'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 TilemapDrawData<'a>
impl<'a> Send for TilemapDrawData<'a>
impl<'a> Sync for TilemapDrawData<'a>
impl<'a> Unpin for TilemapDrawData<'a>
impl<'a> UnwindSafe for TilemapDrawData<'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