[−][src]Struct rgx_lyon::Shape
Shape is a loaded, prepared ShapeBuilder that is ready to be drawn
Fields
index_count: u32
Number of indices contained in indices
vertices: VertexBuffer
The vertices stored in a vertex buffer
indices: IndexBuffer
An index buffer representing a TriangleList of indices within vertices
Implementations
impl Shape
[src]
pub fn draw(&self, pass: &mut Pass<'_>)
[src]
Draws the shape to the Pass.
You should use Pass::set_pipeline
before calling this method.
Arguments
pass
- The render pass to draw to.
Auto Trait Implementations
impl !RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,