output: implement Default for requirements
This commit is contained in:
parent
d8d73ba8e1
commit
fbd4e85c51
1 changed files with 24 additions and 6 deletions
|
|
@ -1920,14 +1920,24 @@ pub enum VrrMode {
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
|
||||||
pub struct VrrSurfaceRequirements {
|
pub struct VrrSurfaceRequirements {
|
||||||
content_type: Option<VrrContentTypeRequirements>,
|
pub content_type: Option<VrrContentTypeRequirements>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct VrrContentTypeRequirements {
|
pub struct VrrContentTypeRequirements {
|
||||||
photo: bool,
|
pub photo: bool,
|
||||||
video: bool,
|
pub video: bool,
|
||||||
game: bool,
|
pub game: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Default for VrrContentTypeRequirements {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
photo: true,
|
||||||
|
video: true,
|
||||||
|
game: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl VrrMode {
|
impl VrrMode {
|
||||||
|
|
@ -1986,7 +1996,15 @@ pub enum TearingMode {
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct TearingSurfaceRequirements {
|
pub struct TearingSurfaceRequirements {
|
||||||
tearing_requested: bool,
|
pub tearing_requested: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Default for TearingSurfaceRequirements {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
tearing_requested: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TearingMode {
|
impl TearingMode {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue