pub struct Options {
pub in_flight_frames: usize,
pub enable_depth_test: bool,
pub enable_depth_write: bool,
pub srgb_framebuffer: bool,
}Expand description
Optional parameters of the renderer.
Fields§
§in_flight_frames: usizeThe number of in flight frames of the application.
enable_depth_test: boolIf true enables depth test when rendering.
enable_depth_write: boolIf true enables depth writes when rendering.
Note that depth writes are always disabled when enable_depth_test is false. See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineDepthStencilStateCreateInfo.html
srgb_framebuffer: boolIs the target framebuffer sRGB.
If not, the fragment shader converts colors to sRGB, otherwise it outputs color in linear space.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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