pub trait UniformType:
Sized
+ Copy
+ 'static {
// Required method
fn apply_uniform(
self,
context: &WebGlRenderingContext,
location: &WebGlUniformLocation,
);
}Expand description
Types that can be used as a uniform argument type.
Required Methods§
Sourcefn apply_uniform(
self,
context: &WebGlRenderingContext,
location: &WebGlUniformLocation,
)
fn apply_uniform( self, context: &WebGlRenderingContext, location: &WebGlUniformLocation, )
Applies the uniform value to the specified location.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.