Struct truck_rendimpl::WireFrameInstance
source · [−]pub struct WireFrameInstance { /* private fields */ }Expand description
Wire frame rendering
Implementations
sourceimpl WireFrameInstance
impl WireFrameInstance
sourcepub fn clone_instance(&self) -> Self
pub fn clone_instance(&self) -> Self
Clone the instance as another drawn element.
sourcepub fn instance_state(&self) -> &WireFrameState
pub 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
sourceimpl Debug for WireFrameInstance
impl Debug for WireFrameInstance
sourceimpl Rendered for WireFrameInstance
impl Rendered for WireFrameInstance
sourcefn 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).
sourcefn bind_group_layout(&self, handler: &DeviceHandler) -> Arc<BindGroupLayout>
fn bind_group_layout(&self, handler: &DeviceHandler) -> Arc<BindGroupLayout>
Creates the bind group layout.
sourcefn 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.
sourcefn 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.
sourceimpl ToInstance<WireFrameInstance> for PolygonMesh
impl ToInstance<WireFrameInstance> for PolygonMesh
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
sourcefn 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.
sourceimpl ToInstance<WireFrameInstance> for StructuredMesh
impl ToInstance<WireFrameInstance> for StructuredMesh
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
sourcefn 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.
sourceimpl ToInstance<WireFrameInstance> for PolylineCurve<Point3>
impl ToInstance<WireFrameInstance> for PolylineCurve<Point3>
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
sourcefn 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.
sourceimpl ToInstance<WireFrameInstance> for Vec<PolylineCurve<Point3>>
impl ToInstance<WireFrameInstance> for Vec<PolylineCurve<Point3>>
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
sourcefn 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.
sourceimpl ToInstance<WireFrameInstance> for Vec<(Point3, Point3)>
impl ToInstance<WireFrameInstance> for Vec<(Point3, Point3)>
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
sourcefn 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 !RefUnwindSafe for WireFrameInstance
impl Send for WireFrameInstance
impl Sync for WireFrameInstance
impl Unpin for WireFrameInstance
impl !UnwindSafe for WireFrameInstance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more