Shader: Remove the need of layout(std140) in external block
This commit is contained in:
@@ -95,6 +95,7 @@ namespace Nz::ShaderAst
|
||||
inline bool IsNoType(const ExpressionType& type);
|
||||
inline bool IsPrimitiveType(const ExpressionType& type);
|
||||
inline bool IsSamplerType(const ExpressionType& type);
|
||||
inline bool IsStructType(const ExpressionType& type);
|
||||
inline bool IsUniformType(const ExpressionType& type);
|
||||
inline bool IsVectorType(const ExpressionType& type);
|
||||
}
|
||||
|
||||
@@ -109,6 +109,11 @@ namespace Nz::ShaderAst
|
||||
return std::holds_alternative<SamplerType>(type);
|
||||
}
|
||||
|
||||
bool IsStructType(const ExpressionType& type)
|
||||
{
|
||||
return std::holds_alternative<StructType>(type);
|
||||
}
|
||||
|
||||
bool IsUniformType(const ExpressionType& type)
|
||||
{
|
||||
return std::holds_alternative<UniformType>(type);
|
||||
|
||||
Reference in New Issue
Block a user