Trait kiss3d::resource::GLPrimitive
source · [−]pub unsafe trait GLPrimitive: Copy {
type Element;
const GLTYPE: u32;
fn size() -> u32 { ... }
fn flatten(array: &[Self]) -> &[Self::Element] { ... }
fn upload(&self, _: &UniformLocation) { ... }
}
Expand description
Trait implemented by structures that can be uploaded to a uniform or contained by a gpu array.
Required Associated Types
Required Associated Constants
Provided Methods
Converts an array of Self
into an array of f32 or i32 primitives.
fn upload(&self, _: &UniformLocation)
fn upload(&self, _: &UniformLocation)
Uploads the element to a gpu location.