[−][src]Trait web_glitz::pipeline::graphics::TransformFeedback
Trait implemented for types that can be recorded as feedback from the vertex transformation stage(s) of a graphics pipeline.
Buffers that contain an array of a type that implements that trait can be safely attached to a graphics pipeline without additional runtime checks, see also [GraphicsPipeline::record_transform_feedback] and [TypedTransformFeedbackBuffers].
Unsafe
This trait may only be implemented for a type if each of the [ATTRIBUTE_DESCRIPTORS] are memory compatible with that type in order.
Deriving
This type may be safely automatically derived for a struct if each of the struct's fields implements TransformFeedbackAttribute.
Example
#[derive(web_glitz::derive::TransformFeedback)] struct TransformFeedback { position: [f32; 3], normal: [f32; 3] }