Struct vulkano::pipeline::graphics::tessellation::TessellationState
source · pub struct TessellationState {
pub patch_control_points: u32,
pub domain_origin: TessellationDomainOrigin,
pub _ne: NonExhaustive,
}
Expand description
The state in a graphics pipeline describing the tessellation shader execution of a graphics pipeline.
Fields§
§patch_control_points: u32
The number of patch control points to use.
The default value is 3.
domain_origin: TessellationDomainOrigin
The origin to use for the tessellation domain.
If this is not TessellationDomainOrigin::UpperLeft
, the device API version must be at
least 1.1, or the khr_maintenance2
extension must be enabled on the device.
The default value is TessellationDomainOrigin::UpperLeft
.
_ne: NonExhaustive
Implementations§
source§impl TessellationState
impl TessellationState
sourcepub fn new() -> Self
👎Deprecated since 0.34.0: use TessellationState::default
instead
pub fn new() -> Self
TessellationState::default
insteadCreates a new TessellationState
with 3 patch control points.
sourcepub fn patch_control_points(self, num: u32) -> Self
👎Deprecated since 0.34.0
pub fn patch_control_points(self, num: u32) -> Self
Sets the number of patch control points.
Trait Implementations§
source§impl Clone for TessellationState
impl Clone for TessellationState
source§fn clone(&self) -> TessellationState
fn clone(&self) -> TessellationState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TessellationState
impl Debug for TessellationState
source§impl Default for TessellationState
impl Default for TessellationState
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more