pub struct OpenGl3(/* private fields */);Implementations§
Trait Implementations§
Source§impl RenderTest for OpenGl3
impl RenderTest for OpenGl3
Source§fn new(path: &Path) -> Result<Self>where
Self: Sized,
fn new(path: &Path) -> Result<Self>where
Self: Sized,
Create a new instance of the test harness.
Source§fn image_size(&self) -> Size<u32>
fn image_size(&self) -> Size<u32>
Get the size of the image loaded.
Source§fn render_with_preset_and_params(
&mut self,
preset: ShaderPreset,
frame_count: usize,
output_size: Option<Size<u32>>,
param_setter: Option<&dyn Fn(&RuntimeParameters)>,
frame_options: Option<CommonFrameOptions>,
) -> Result<RgbaImage>
fn render_with_preset_and_params( &mut self, preset: ShaderPreset, frame_count: usize, output_size: Option<Size<u32>>, param_setter: Option<&dyn Fn(&RuntimeParameters)>, frame_options: Option<CommonFrameOptions>, ) -> Result<RgbaImage>
Render a shader onto an image buffer, applying the provided shader. Read more
Auto Trait Implementations§
impl Freeze for OpenGl3
impl RefUnwindSafe for OpenGl3
impl !Send for OpenGl3
impl !Sync for OpenGl3
impl Unpin for OpenGl3
impl UnwindSafe for OpenGl3
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more