We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230c6a7 commit 8c1495aCopy full SHA for 8c1495a
sparse_strips/vello_api/src/paint.rs
@@ -112,6 +112,11 @@ impl From<Gradient> for PaintType {
112
113
impl From<Image> for PaintType {
114
fn from(value: Image) -> Self {
115
+ assert!(
116
+ value.width < u16::MAX as u32 && value.height < u16::MAX as u32,
117
+ "the image is too big, the width and height can be no larger than {}px",
118
+ u16::MAX,
119
+ );
120
Self::Image(value)
121
}
122
0 commit comments