pub struct WireFrameInstance { /* private fields */ }Expand description
Wire frame rendering
Implementations§
Source§impl WireFrameInstance
impl WireFrameInstance
Sourcepub fn clone_instance(&self) -> Self
pub fn clone_instance(&self) -> Self
Clone the instance as another drawn element.
Sourcepub const fn instance_state(&self) -> &WireFrameState
pub const fn instance_state(&self) -> &WireFrameState
Returns the wireframe state
Sourcepub fn instance_state_mut(&mut self) -> &mut WireFrameState
pub fn instance_state_mut(&mut self) -> &mut WireFrameState
Returns the mutable reference to wireframe state
Sourcepub fn swap_vertex(&mut self, other: &mut WireFrameInstance)
pub fn swap_vertex(&mut self, other: &mut WireFrameInstance)
swap vertex buffers and index buffers
Trait Implementations§
Source§impl Debug for WireFrameInstance
impl Debug for WireFrameInstance
Source§impl Rendered for WireFrameInstance
impl Rendered for WireFrameInstance
Source§fn vertex_buffer(
&self,
_: &DeviceHandler,
) -> (Arc<BufferHandler>, Option<Arc<BufferHandler>>)
fn vertex_buffer( &self, _: &DeviceHandler, ) -> (Arc<BufferHandler>, Option<Arc<BufferHandler>>)
Creates the pair (vertex buffer, index buffer).
Source§fn bind_group_layout(&self, handler: &DeviceHandler) -> Arc<BindGroupLayout>
fn bind_group_layout(&self, handler: &DeviceHandler) -> Arc<BindGroupLayout>
Creates the bind group layout.
Source§fn bind_group(
&self,
handler: &DeviceHandler,
layout: &BindGroupLayout,
) -> Arc<BindGroup>
fn bind_group( &self, handler: &DeviceHandler, layout: &BindGroupLayout, ) -> Arc<BindGroup>
Creates the bind group in
set = 1.Source§fn pipeline(
&self,
handler: &DeviceHandler,
layout: &PipelineLayout,
scene_desc: &SceneDescriptor,
) -> Arc<RenderPipeline>
fn pipeline( &self, handler: &DeviceHandler, layout: &PipelineLayout, scene_desc: &SceneDescriptor, ) -> Arc<RenderPipeline>
Creates the render pipeline.
Source§impl ToInstance<WireFrameInstance> for PolygonMesh
impl ToInstance<WireFrameInstance> for PolygonMesh
Source§type State = WireFrameState
type State = WireFrameState
Configuration descriptor for instance.
Source§fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &WireShaders,
state: &WireFrameState,
) -> WireFrameInstance
fn to_instance( &self, handler: &DeviceHandler, shaders: &WireShaders, state: &WireFrameState, ) -> WireFrameInstance
Creates
Instance from self.Source§impl ToInstance<WireFrameInstance> for PolylineCurve<Point3>
impl ToInstance<WireFrameInstance> for PolylineCurve<Point3>
Source§type State = WireFrameState
type State = WireFrameState
Configuration descriptor for instance.
Source§fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &WireShaders,
state: &WireFrameState,
) -> WireFrameInstance
fn to_instance( &self, handler: &DeviceHandler, shaders: &WireShaders, state: &WireFrameState, ) -> WireFrameInstance
Creates
Instance from self.Source§impl ToInstance<WireFrameInstance> for StructuredMesh
impl ToInstance<WireFrameInstance> for StructuredMesh
Source§type State = WireFrameState
type State = WireFrameState
Configuration descriptor for instance.
Source§fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &WireShaders,
state: &WireFrameState,
) -> WireFrameInstance
fn to_instance( &self, handler: &DeviceHandler, shaders: &WireShaders, state: &WireFrameState, ) -> WireFrameInstance
Creates
Instance from self.Source§impl ToInstance<WireFrameInstance> for Vec<(Point3, Point3)>
impl ToInstance<WireFrameInstance> for Vec<(Point3, Point3)>
Source§type State = WireFrameState
type State = WireFrameState
Configuration descriptor for instance.
Source§fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &WireShaders,
state: &WireFrameState,
) -> WireFrameInstance
fn to_instance( &self, handler: &DeviceHandler, shaders: &WireShaders, state: &WireFrameState, ) -> WireFrameInstance
Creates
Instance from self.Source§impl ToInstance<WireFrameInstance> for Vec<PolylineCurve<Point3>>
impl ToInstance<WireFrameInstance> for Vec<PolylineCurve<Point3>>
Source§type State = WireFrameState
type State = WireFrameState
Configuration descriptor for instance.
Source§fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &WireShaders,
state: &WireFrameState,
) -> WireFrameInstance
fn to_instance( &self, handler: &DeviceHandler, shaders: &WireShaders, state: &WireFrameState, ) -> WireFrameInstance
Creates
Instance from self.impl Instance for WireFrameInstance
Auto Trait Implementations§
impl Freeze for WireFrameInstance
impl !RefUnwindSafe for WireFrameInstance
impl Send for WireFrameInstance
impl Sync for WireFrameInstance
impl Unpin for WireFrameInstance
impl !UnwindSafe for WireFrameInstance
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more