pub struct Vulkan { /* private fields */ }Implementations§
Trait Implementations§
Source§impl RenderTest for Vulkan
impl RenderTest for Vulkan
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 Vulkan
impl !RefUnwindSafe for Vulkan
impl Send for Vulkan
impl Sync for Vulkan
impl Unpin for Vulkan
impl !UnwindSafe for Vulkan
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