dusk: rewrite AstGen.zig and IR.zig

This commit is contained in:
Ali Chraghi 2023-03-20 01:41:07 +03:30 committed by Stephen Gutekanst
parent 46c5ca1dd0
commit 624ab118db
5 changed files with 1043 additions and 479 deletions

View file

@ -171,7 +171,7 @@ pub const Node = struct {
/// RHS : block
fn_decl,
/// TOK : ident
/// LHS : ? Attributes
/// LHS : ?span(Attribute)
/// RHS : type
fn_param,
@ -367,7 +367,7 @@ pub const Node = struct {
/// RHS : --
user_type,
// ####### Attr #######
// ####### Attribute #######
// TOK : attr
attr,
@ -650,6 +650,7 @@ pub const InterpolationSample = enum {
};
pub const AddressSpace = enum {
none, // TODO
function,
private,
workgroup,
@ -658,6 +659,7 @@ pub const AddressSpace = enum {
};
pub const AccessMode = enum {
none, // TODO
read,
write,
read_write,