MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / VkSyntax

Function VkSyntax

source/MaterialXGenGlsl/WgslSyntax.cpp:8–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <MaterialXGenGlsl/WgslSyntax.h>
7
8MATERIALX_NAMESPACE_BEGIN
9
10WgslSyntax::WgslSyntax(TypeSystemPtr typeSystem) : VkSyntax(typeSystem)
11{
12 // Add in WGSL specific keywords
13 registerReservedWords( {
14 // Keywords (https://www.w3.org/TR/WGSL/#keyword-summary)
15 "alias",
16 "break",
17 "case",
18 "const",
19 "const_assert",
20 "continue",
21 "continuing",
22 "default",
23 "diagnostic",
24 "discard",
25 "else",
26 "enable",
27 "false",
28 "fn",
29 "for",
30 "if",
31 "let",
32 "loop",
33 "override",
34 "requires",
35 "return",
36 "struct",
37 "switch",
38 "true",
39 "var",
40 "while",
41 // Reserved Words (https://www.w3.org/TR/WGSL/#reserved-words)
42 "NULL",
43 "Self",
44 "abstract",
45 "active",
46 "alignas",
47 "alignof",
48 "as",
49 "asm",
50 "asm_fragment",
51 "async",
52 "attribute",
53 "auto",
54 "await",
55 "become",
56 "cast",
57 "catch",
58 "class",
59 "co_await",
60 "co_return",
61 "co_yield",
62 "coherent",
63 "column_major",
64 "common",
65 "compile",

Callers 1

VkSyntax.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected