mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
impl From<SampleCount> for u32
(#2125)
This commit is contained in:
parent
ccc50a6f9c
commit
fcb46e6f89
@ -287,6 +287,13 @@ vulkan_bitflags_enum! {
|
||||
SAMPLE_64, Sample64 = TYPE_64,
|
||||
}
|
||||
|
||||
impl From<SampleCount> for u32 {
|
||||
#[inline]
|
||||
fn from(value: SampleCount) -> Self {
|
||||
value as u32
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<u32> for SampleCount {
|
||||
type Error = ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user