Skip to content

Commit 15635da

Browse files
committed
Add missing comment for target attrib
1 parent 8ea777c commit 15635da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/NZSL/Ast/Enums.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace nzsl::Ast
4747
Tag = 16, //< Tag (external block and external var only) - has argument string
4848
Unroll = 11, //< Unroll (for/for each only) - has argument mode
4949
Workgroup = 18, //< Work group size (function only) - has arguments X, Y, Z
50-
Target = 20, //<
50+
Target = 20, //< Mark a scope as target specific - has arguments target string, version (optional)
5151
};
5252

5353
enum class BinaryType

src/NZSL/Parser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,8 @@ namespace nzsl
13211321

13221322
Ast::StatementPtr Parser::ParseStatement(std::vector<Attribute> attributes)
13231323
{
1324+
NAZARA_USE_ANONYMOUS_NAMESPACE
1325+
13241326
if (Peek().type == TokenType::OpenCurlyBracket)
13251327
{
13261328
auto multiStatement = ShaderBuilder::MultiStatement();

0 commit comments

Comments
 (0)