pub struct Patch {
pub control_points: Vec<Vertex>,
pub factors: Factors,
pub vertices: Vec<Vertex>,
pub locations: Vec<[f32; 2]>,
pub topology: TessTopology,
pub indices: Vec<u32>,
}Expand description
What the tessellator made of a patch, with the programs’ results.
Fields§
§control_points: Vec<Vertex>The hull program’s output control points: one register per output varying (TessellationShader::control_outputs).
factors: FactorsThe tessellation factors the hull program wrote.
vertices: Vec<Vertex>The domain program’s result for each point the tessellator made: one register per output varying of the domain
program (TessellationShader::outputs).
locations: Vec<[f32; 2]>The domain locations of the points (u, v; a triangle’s third coordinate is 1 - u - v).
topology: TessTopologyWhat indices make: points, lines or triangles (clockwise or counter-clockwise in the domain, as the hull
program says).
indices: Vec<u32>Point numbers, one per point of a point list, two per line, three per triangle.
Trait Implementations§
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnsafeUnpin for Patch
impl UnwindSafe for Patch
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