mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Add DepthState::reverse
helper method (#2483)
This commit is contained in:
parent
1d2dbd27a2
commit
eac4faea71
@ -216,6 +216,15 @@ impl DepthState {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a `DepthState` with a `Greater` depth test and depth writes enabled.
|
||||
#[inline]
|
||||
pub fn reverse() -> Self {
|
||||
Self {
|
||||
compare_op: CompareOp::Greater,
|
||||
write_enable: true,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn validate(self, device: &Device) -> Result<(), Box<ValidationError>> {
|
||||
let Self {
|
||||
write_enable: _,
|
||||
|
Loading…
Reference in New Issue
Block a user