pub unsafe trait UniformField {
// Required method
unsafe fn apply_array(
&self,
gl: &GlContext,
count: usize,
location: UniformLocation,
);
// Provided method
fn apply(&self, gl: &GlContext, location: UniformLocation) { ... }
}
Expand description
§Safety
This trait returns pointers and size information to OpenGL, if it is wrong it will read out of bounds