Struct vulkano::pipeline::graphics::tessellation::TessellationState
source · [−]Expand description
The state in a graphics pipeline describing the tessellation shader execution of a graphics pipeline.
Fields
patch_control_points: StateMode<u32>
The number of patch control points to use.
If set to Dynamic
, the
extended_dynamic_state2_patch_control_points
feature must be enabled on the device.
Implementations
sourceimpl TessellationState
impl TessellationState
sourcepub fn patch_control_points(self, num: u32) -> Self
pub fn patch_control_points(self, num: u32) -> Self
Sets the number of patch control points.
sourcepub fn patch_control_points_dynamic(self) -> Self
pub fn patch_control_points_dynamic(self) -> Self
Sets the number of patch control points to dynamic.
Trait Implementations
sourceimpl Clone for TessellationState
impl Clone for TessellationState
sourcefn clone(&self) -> TessellationState
fn clone(&self) -> TessellationState
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 more
sourceimpl Debug for TessellationState
impl Debug for TessellationState
sourceimpl Default for TessellationState
impl Default for TessellationState
sourcefn default() -> Self
fn default() -> Self
Returns TessellationState::new()
.
impl Copy for TessellationState
Auto Trait Implementations
impl RefUnwindSafe for TessellationState
impl Send for TessellationState
impl Sync for TessellationState
impl Unpin for TessellationState
impl UnwindSafe for TessellationState
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more