pub struct GeometryFacts {
pub input: GsInput,
pub output: GsOutput,
pub max_vertices: u32,
pub instances: u32,
}Expand description
What a geometry program states: the primitive it reads, what its emitted vertices make, the most vertices an invocation emits and how many invocations run for a primitive.
Fields§
§input: GsInputThe primitive the program reads.
output: GsOutputWhat the emitted vertices make.
max_vertices: u32The most vertices one invocation emits (maxvertexcount; Interface::verify accepts 1 to 1024).
instances: u32How many invocations run for each input primitive (instance; Interface::verify accepts 1 to 32).
Trait Implementations§
Source§impl Clone for GeometryFacts
impl Clone for GeometryFacts
impl Copy for GeometryFacts
Source§impl Debug for GeometryFacts
impl Debug for GeometryFacts
impl Eq for GeometryFacts
Source§impl Hash for GeometryFacts
impl Hash for GeometryFacts
Source§impl PartialEq for GeometryFacts
impl PartialEq for GeometryFacts
Source§impl Serialize for GeometryFacts
impl Serialize for GeometryFacts
impl StructuralPartialEq for GeometryFacts
Auto Trait Implementations§
impl Freeze for GeometryFacts
impl RefUnwindSafe for GeometryFacts
impl Send for GeometryFacts
impl Sync for GeometryFacts
impl Unpin for GeometryFacts
impl UnsafeUnpin for GeometryFacts
impl UnwindSafe for GeometryFacts
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