Struct easygpu_lyon::Shape [−][src]
Shape is a loaded, prepared ShapeBuilder that is ready to be drawn
Fields
index_count: u32
Number of indices contained in indices
vertices: Arc<VertexBuffer>
The vertices stored in a vertex buffer
indices: Arc<IndexBuffer>
An index buffer representing a TriangleList of indices within vertices
Implementations
impl Shape
[src]
pub fn draw<'a, 'b>(&'a self, pass: &'b mut RenderPass<'a>)
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.