1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use easygpu::wgpu::BufferAsyncError;
use easygpu_lyon::lyon_tessellation::TessellationError;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("error reading image: {0}")]
Image(#[from] image::ImageError),
#[error("error parsing json: {0}")]
Json(#[from] json::Error),
#[error("error tessellating shape")]
Tessellation(TessellationError),
#[error("error parsing sprite data: {0}")]
SpriteParse(String),
#[error("no frames could be found for the current tag")]
InvalidSpriteTag,
#[error("error acquiring offscreen buffer: {0}")]
Offscreen(#[from] BufferAsyncError),
}