pub struct SceneConfig {
pub color_format: TextureFormat,
pub stencil_format: Option<TextureFormat>,
pub mask: MaskBackend,
}Expand description
Construction config for SSScene, matched to the host’s render target.
Fields§
§color_format: TextureFormatTarget color format. Pipelines are baked against this.
stencil_format: Option<TextureFormat>Depth/stencil format of the host’s render target, or None when it
attaches neither. When Some, the host must attach a matching
depth/stencil buffer to every render pass.
Independent of SceneConfig::mask: this describes the attachment,
which a host may have for its own reasons whatever it masks with. The one
combination that cannot work is MaskBackend::Stencil without a format:
a debug build asserts, and a release build falls back to
MaskBackend::None and draws every mask target unclipped.
mask: MaskBackendHow this scene draws masks.
Trait Implementations§
Source§impl Clone for SceneConfig
impl Clone for SceneConfig
impl Copy for SceneConfig
Auto Trait Implementations§
impl Freeze for SceneConfig
impl RefUnwindSafe for SceneConfig
impl Send for SceneConfig
impl Sync for SceneConfig
impl Unpin for SceneConfig
impl UnsafeUnpin for SceneConfig
impl UnwindSafe for SceneConfig
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