Fixed issue where quads of different types were not ordered.

This commit is contained in:
Bingus 2023-05-25 10:27:27 -07:00
parent 75110b9c0e
commit 3f141459a6
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
4 changed files with 87 additions and 13 deletions

View file

@ -49,3 +49,12 @@ unsafe impl Pod for Gradient {}
#[allow(unsafe_code)]
unsafe impl Zeroable for Gradient {}
#[derive(Debug, Copy, Clone)]
/// The identifier of a quad, used for ordering.
pub enum Order {
/// A solid quad
Solid,
/// A gradient quad
Gradient,
}