[−][src]Trait rgx::core::Canvas
Canvas
Associated Types
type Color
Required methods
fn clear(
&self,
color: Self::Color,
device: &mut Device,
encoder: &mut CommandEncoder
)
&self,
color: Self::Color,
device: &mut Device,
encoder: &mut CommandEncoder
)
fn fill(
&self,
buf: &[Self::Color],
device: &mut Device,
encoder: &mut CommandEncoder
)
&self,
buf: &[Self::Color],
device: &mut Device,
encoder: &mut CommandEncoder
)
fn transfer(
&self,
buf: &[Self::Color],
w: u32,
h: u32,
r: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)
&self,
buf: &[Self::Color],
w: u32,
h: u32,
r: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)
fn blit(&self, from: Rect<f32>, dst: Rect<f32>, encoder: &mut CommandEncoder)
Implementors
impl Canvas for Framebuffer
[src]
type Color = Bgra8
fn clear(&self, color: Bgra8, device: &mut Device, encoder: &mut CommandEncoder)
[src]
fn fill(&self, buf: &[Bgra8], device: &mut Device, encoder: &mut CommandEncoder)
[src]
fn transfer(
&self,
buf: &[Bgra8],
w: u32,
h: u32,
rect: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)
[src]
&self,
buf: &[Bgra8],
w: u32,
h: u32,
rect: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)
fn blit(&self, from: Rect<f32>, dst: Rect<f32>, encoder: &mut CommandEncoder)
[src]
impl Canvas for Texture
[src]
type Color = Rgba8
fn fill(&self, buf: &[Rgba8], device: &mut Device, encoder: &mut CommandEncoder)
[src]
fn clear(&self, color: Rgba8, device: &mut Device, encoder: &mut CommandEncoder)
[src]
fn transfer(
&self,
buf: &[Rgba8],
w: u32,
h: u32,
rect: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)
[src]
&self,
buf: &[Rgba8],
w: u32,
h: u32,
rect: Rect<i32>,
device: &mut Device,
encoder: &mut CommandEncoder
)