Struct truck_rendimpl::WireFrameInstance
source · 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
§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>
§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
§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)>
§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>>
§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
.