Add initial support for shader binding sets (WIP)
This commit is contained in:
@@ -29,6 +29,7 @@ namespace Nz
|
||||
Layout, //< Struct layout (struct only) - has argument style
|
||||
Location, //< Location (struct member only) - has argument index
|
||||
Option, //< Conditional compilation option - has argument expr
|
||||
Set, //< Binding set (external var only) - has argument index
|
||||
};
|
||||
|
||||
enum class BinaryType
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Nz::ShaderAst
|
||||
struct StructMember
|
||||
{
|
||||
std::optional<BuiltinEntry> builtin;
|
||||
std::optional<unsigned int> locationIndex;
|
||||
std::optional<UInt32> locationIndex;
|
||||
std::string name;
|
||||
ExpressionType type;
|
||||
};
|
||||
|
||||
@@ -252,7 +252,8 @@ namespace Nz::ShaderAst
|
||||
|
||||
struct ExternalVar
|
||||
{
|
||||
std::optional<unsigned int> bindingIndex;
|
||||
std::optional<UInt32> bindingIndex;
|
||||
std::optional<UInt32> bindingSet;
|
||||
std::string name;
|
||||
ExpressionType type;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user