Struct gfx_phase::Object
[−]
[src]
pub struct Object<S, K, P: ShaderParam> { pub batch: Core<P>, pub params: P, pub slice: Slice<P::Resources>, pub instances: Option<InstanceCount>, pub depth: S, pub kernel: K, pub state: DrawState, }
A rendering object, encapsulating the batch and additional info needed for sorting. It is only exposed for this matter and accessed by immutable references by the user.
Fields
batch: Core<P>
params: P
slice: Slice<P::Resources>
instances: Option<InstanceCount>
depth: S
kernel: K
state: DrawState
Methods
impl<S: PartialOrd, K, P: ShaderParam> Object<S, K, P>
[src]
fn cmp_depth(&self, other: &Object<S, K, P>) -> Ordering
A helper method to compare the depth, which is only partially ordered.
Trait Implementations
impl<S: Copy, K: Copy, P: ShaderParam + Clone> Clone for Object<S, K, P> where
P::Link: Clone,
[src]
P::Link: Clone,
fn clone(&self) -> Object<S, K, P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more