Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

glsl-in: support for storage image types #1723

Merged
merged 3 commits into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/front/glsl/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ pub struct Overload {
pub kind: FunctionKind,
/// Wheter this function was already defined or is just a prototype
pub defined: bool,
/// Wheter this overload is the one provided by the language or has
/// been redeclared by the user (builtins only)
pub internal: bool,
/// Wheter or not this function returns void (nothing)
pub void: bool,
}
Expand Down Expand Up @@ -139,13 +142,16 @@ pub enum QualifierKey<'a> {
String(Cow<'a, str>),
/// Used for `std140` and `std430` layout qualifiers
Layout,
/// Used for image formats
Format,
}

#[derive(Debug)]
pub enum QualifierValue {
None,
Uint(u32),
Layout(StructLayout),
Format(crate::StorageFormat),
}

#[derive(Debug, Default)]
Expand Down
Loading