Shader: Add function parameters and return handling
This commit is contained in:
@@ -18,6 +18,7 @@ namespace Nz
|
||||
|
||||
template<class... Ts> overloaded(Ts...)->overloaded<Ts...>;
|
||||
}
|
||||
|
||||
struct SpirvConstantCache::Eq
|
||||
{
|
||||
bool Compare(const ConstantBool& lhs, const ConstantBool& rhs) const
|
||||
@@ -353,6 +354,12 @@ namespace Nz
|
||||
}, v);
|
||||
}
|
||||
|
||||
void Register(const std::vector<TypePtr>& lhs)
|
||||
{
|
||||
for (std::size_t i = 0; i < lhs.size(); ++i)
|
||||
cache.Register(*lhs[i]);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void Register(const std::vector<T>& lhs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user