ShaderLang: Add support for length intrinsic
This commit is contained in:
@@ -54,9 +54,10 @@ namespace Nz::ShaderAst
|
||||
|
||||
enum class IntrinsicType
|
||||
{
|
||||
CrossProduct,
|
||||
DotProduct,
|
||||
SampleTexture
|
||||
CrossProduct = 0,
|
||||
DotProduct = 1,
|
||||
Length = 3,
|
||||
SampleTexture = 2,
|
||||
};
|
||||
|
||||
enum class MemoryLayout
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace Nz
|
||||
SpirvConstantCache::TypePtr BuildFunctionType(const ShaderAst::DeclareFunctionStatement& functionNode);
|
||||
|
||||
UInt32 GetConstantId(const ShaderAst::ConstantValue& value) const;
|
||||
UInt32 GetExtendedInstructionSet(const std::string& instructionSetName) const;
|
||||
UInt32 GetExtVarPointerId(std::size_t varIndex) const;
|
||||
UInt32 GetFunctionTypeId(const ShaderAst::DeclareFunctionStatement& functionNode);
|
||||
UInt32 GetPointerTypeId(const ShaderAst::ExpressionType& type, SpirvStorageClass storageClass) const;
|
||||
|
||||
Reference in New Issue
Block a user