pub enum RenderResolution {
Native,
Fixed {
w: u32,
h: u32,
},
Scale(f32),
}Expand description
RP.0 — logical render resolution policy for the scene marcher, decoupled
from the swapchain size. Mirror of roxlap_render::RenderResolution (kept
here so roxlap-gpu has no upward dependency). See GpuRenderer::render_dims.
Variants§
Native
Logical == swapchain. Default; byte-identical to pre-RP rendering.
Fixed
Fixed logical grid, nearest-upscaled to the swapchain.
Fields
Scale(f32)
Logical = round(swapchain * factor), clamped to >= 1px.
Trait Implementations§
Source§impl Clone for RenderResolution
impl Clone for RenderResolution
Source§fn clone(&self) -> RenderResolution
fn clone(&self) -> RenderResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderResolution
Source§impl Debug for RenderResolution
impl Debug for RenderResolution
Source§impl Default for RenderResolution
impl Default for RenderResolution
Source§fn default() -> RenderResolution
fn default() -> RenderResolution
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderResolution
impl PartialEq for RenderResolution
impl StructuralPartialEq for RenderResolution
Auto Trait Implementations§
impl Freeze for RenderResolution
impl RefUnwindSafe for RenderResolution
impl Send for RenderResolution
impl Sync for RenderResolution
impl Unpin for RenderResolution
impl UnsafeUnpin for RenderResolution
impl UnwindSafe for RenderResolution
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