pub enum GeometryShaderExecutionMode {
Points,
Lines,
LinesWithAdjacency,
Triangles,
TrianglesWithAdjacency,
}
Expand description
Declares which type of primitives are expected by the geometry shader.
Variants
Implementations
sourceimpl GeometryShaderExecutionMode
impl GeometryShaderExecutionMode
sourcepub fn matches(&self, input: PrimitiveTopology) -> bool
pub fn matches(&self, input: PrimitiveTopology) -> bool
Returns true if the given primitive topology can be used with this execution mode.
Trait Implementations
sourceimpl Clone for GeometryShaderExecutionMode
impl Clone for GeometryShaderExecutionMode
sourcefn clone(&self) -> GeometryShaderExecutionMode
fn clone(&self) -> GeometryShaderExecutionMode
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 GeometryShaderExecutionMode
impl Debug for GeometryShaderExecutionMode
sourceimpl PartialEq<GeometryShaderExecutionMode> for GeometryShaderExecutionMode
impl PartialEq<GeometryShaderExecutionMode> for GeometryShaderExecutionMode
sourcefn eq(&self, other: &GeometryShaderExecutionMode) -> bool
fn eq(&self, other: &GeometryShaderExecutionMode) -> bool
impl Copy for GeometryShaderExecutionMode
impl Eq for GeometryShaderExecutionMode
impl StructuralEq for GeometryShaderExecutionMode
impl StructuralPartialEq for GeometryShaderExecutionMode
Auto Trait Implementations
impl RefUnwindSafe for GeometryShaderExecutionMode
impl Send for GeometryShaderExecutionMode
impl Sync for GeometryShaderExecutionMode
impl Unpin for GeometryShaderExecutionMode
impl UnwindSafe for GeometryShaderExecutionMode
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.