Struct vulkano::pipeline::input_assembly::InputAssembly
source · pub struct InputAssembly {
pub topology: PrimitiveTopology,
pub primitive_restart_enable: bool,
}
👎Deprecated
Expand description
How the input assembly stage should behave.
Fields
topology: PrimitiveTopology
👎Deprecated
The type of primitives.
Note that some topologies don’t support primitive restart.
primitive_restart_enable: bool
👎Deprecated
If true, then the special index value 0xffff
or 0xffffffff
will tell the GPU that it is
the end of the current primitive. A new primitive will restart at the next index.
Note that some topologies don’t support primitive restart.
Implementations
sourceimpl InputAssembly
impl InputAssembly
sourcepub fn triangle_list() -> InputAssembly
pub fn triangle_list() -> InputAssembly
Builds an InputAssembly
struct with the TriangleList
topology.
Trait Implementations
sourceimpl Clone for InputAssembly
impl Clone for InputAssembly
sourcefn clone(&self) -> InputAssembly
fn clone(&self) -> InputAssembly
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputAssembly
impl Debug for InputAssembly
impl Copy for InputAssembly
Auto Trait Implementations
impl RefUnwindSafe for InputAssembly
impl Send for InputAssembly
impl Sync for InputAssembly
impl Unpin for InputAssembly
impl UnwindSafe for InputAssembly
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.