Fix static array. Add constant buffers. Beginning of textures.

This commit is contained in:
2024-06-26 13:42:13 +02:00
parent 3bbbc1d556
commit 1bf829d42f
8 changed files with 217 additions and 59 deletions

View File

@@ -313,6 +313,7 @@ advance :: (parse_state : *Parse_State) {
err := tprint("unknown token \x1b[1;37m'%'\x1b[0m", parse_state.current.string_value);
unexpected_token(parse_state, parse_state.current, err);
return;
}
}
@@ -340,7 +341,9 @@ consume :: (parse_state : *Parse_State, kind : Token_Kind, message : string) {
return;
}
advance(parse_state);
unexpected_token(parse_state, parse_state.current, message);
consume(parse_state, kind, message);
}
////////////////////////////
@@ -866,7 +869,7 @@ property_block :: (parse_state : *Parse_State, identifier_token : *Token = null)
node : *AST_Node;
source_location : Source_Range;
source_location.begin = parse_state.current;
consume(parse_state, .TOKEN_LEFTBRACE, "Expect '{' after 'property' keyword");
properties := field_list(parse_state, .Semicolon);