mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-26 00:34:19 +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,
|
SAMPLE_64, Sample64 = TYPE_64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<SampleCount> for u32 {
|
||||||
|
#[inline]
|
||||||
|
fn from(value: SampleCount) -> Self {
|
||||||
|
value as u32
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl TryFrom<u32> for SampleCount {
|
impl TryFrom<u32> for SampleCount {
|
||||||
type Error = ();
|
type Error = ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user