use thiserror::Error;
#[derive(Debug, Clone, Error)]
pub enum Error {
#[error("Mesh associated to cloth doesn't have `{0}` attribute set")]
MissingMeshAttribute(String),
#[error("Mesh associated to cloth has invalid `{attribute}` attribute set: {message}")]
InvalidMeshAttribute {
attribute: String,
message: String,
},
#[error("Unsupported vertex position attribute, only `Float32x3` is supported")]
UnsupportedVertexPositionAttribute,
#[error("Cloth requires meshes with indexed geometry")]
MissingIndices,
}