pub struct Capabilities {
pub version: u32,
pub features: Vec<Feature>,
pub primaries: Vec<NamedPrimaries>,
pub transfers: Vec<NamedTransfer>,
pub intents: Vec<u32>,
}Expand description
What the compositor’s wp_color_manager_v1 announces to a version 1
client (what a Vulkan driver binding version 1 sees too).
Fields§
§version: u32The interface’s version the compositor offers.
features: Vec<Feature>§primaries: Vec<NamedPrimaries>§transfers: Vec<NamedTransfer>§intents: Vec<u32>Rendering intents, by protocol code (intent_name).
Implementations§
Source§impl Capabilities
impl Capabilities
pub fn has_feature(&self, feature: Feature) -> bool
pub fn has_primaries(&self, primaries: NamedPrimaries) -> bool
pub fn has_transfer(&self, transfer: NamedTransfer) -> bool
Sourcepub fn can_tag(
&self,
primaries: NamedPrimaries,
transfer: NamedTransfer,
) -> bool
pub fn can_tag( &self, primaries: NamedPrimaries, transfer: NamedTransfer, ) -> bool
Whether a surface can be tagged with these primaries and this transfer: a parametric description of announced names (extended linear only with values outside the primaries allowed).
Sourcepub fn wsi_claims_srgb_surfaces(&self) -> bool
pub fn wsi_claims_srgb_surfaces(&self) -> bool
Whether a Vulkan driver presenting to a surface may already hold
its colour-management object, even for plain sRGB: Mesa’s Wayland
window system integration (25.1 and later) makes one on every
swapchain’s surface when the compositor announces the srgb
primaries with the srgb transfer function to a version 1
client. A second one on the same surface is a fatal protocol
error, so such a surface must not be tagged by the application.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
Source§fn default() -> Capabilities
fn default() -> Capabilities
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
impl Eq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.