use crate::error::{SemanticsErrorKind, ShaderReflectError};
pub struct UboData {
pub binding: u32,
pub size: u32,
}
pub struct TextureData<'a> {
pub name: &'a str,
pub binding: u32,
}
#[derive(Copy, Clone)]
pub enum SemanticErrorBlame {
Vertex,
Fragment,
}
impl SemanticErrorBlame {
pub fn error(self, kind: SemanticsErrorKind) -> ShaderReflectError {
match self {
SemanticErrorBlame::Vertex => ShaderReflectError::VertexSemanticError(kind),
SemanticErrorBlame::Fragment => ShaderReflectError::FragmentSemanticError(kind),
}
}
}