Temp fix for NZSL update
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Nz
|
||||
inline FaceFilling GetFaceFilling() const;
|
||||
inline MaterialPassFlags GetFlags() const;
|
||||
inline float GetLineWidth() const;
|
||||
inline const nzsl::Ast::ConstantValue& GetOptionValue(std::size_t optionIndex) const;
|
||||
inline const nzsl::Ast::ConstantSingleValue& GetOptionValue(std::size_t optionIndex) const;
|
||||
inline const std::shared_ptr<MaterialPipeline>& GetPipeline() const;
|
||||
inline const MaterialPipelineInfo& GetPipelineInfo() const;
|
||||
inline float GetPointSize() const;
|
||||
@@ -98,7 +98,7 @@ namespace Nz
|
||||
inline void SetFaceCulling(FaceSide faceSide);
|
||||
inline void SetFaceFilling(FaceFilling filling);
|
||||
inline void SetLineWidth(float lineWidth);
|
||||
inline void SetOptionValue(std::size_t optionIndex, nzsl::Ast::ConstantValue value);
|
||||
inline void SetOptionValue(std::size_t optionIndex, nzsl::Ast::ConstantSingleValue value);
|
||||
inline void SetPointSize(float pointSize);
|
||||
inline void SetPrimitiveMode(PrimitiveMode mode);
|
||||
inline void SetTexture(std::size_t textureIndex, std::shared_ptr<Texture> texture);
|
||||
@@ -142,7 +142,7 @@ namespace Nz
|
||||
bool dataInvalidated = true;
|
||||
};
|
||||
|
||||
std::array<nzsl::Ast::ConstantValue, 64> m_optionValues;
|
||||
std::array<nzsl::Ast::ConstantSingleValue, 64> m_optionValues;
|
||||
std::shared_ptr<const MaterialSettings> m_settings;
|
||||
std::vector<MaterialTexture> m_textures;
|
||||
std::vector<ShaderEntry> m_shaders;
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace Nz
|
||||
return m_pipelineInfo.lineWidth;
|
||||
}
|
||||
|
||||
inline const nzsl::Ast::ConstantValue& MaterialPass::GetOptionValue(std::size_t optionIndex) const
|
||||
inline const nzsl::Ast::ConstantSingleValue& MaterialPass::GetOptionValue(std::size_t optionIndex) const
|
||||
{
|
||||
assert(optionIndex < m_optionValues.size());
|
||||
return m_optionValues[optionIndex];
|
||||
@@ -566,7 +566,7 @@ namespace Nz
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
inline void MaterialPass::SetOptionValue(std::size_t optionIndex, nzsl::Ast::ConstantValue value)
|
||||
inline void MaterialPass::SetOptionValue(std::size_t optionIndex, nzsl::Ast::ConstantSingleValue value)
|
||||
{
|
||||
assert(optionIndex < m_optionValues.size());
|
||||
if (m_optionValues[optionIndex] != value)
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Nz
|
||||
struct Option
|
||||
{
|
||||
UInt32 hash;
|
||||
nzsl::Ast::ConstantValue value;
|
||||
nzsl::Ast::ConstantSingleValue value;
|
||||
};
|
||||
|
||||
struct Shader
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Nz
|
||||
|
||||
struct Config
|
||||
{
|
||||
std::unordered_map<UInt32, nzsl::Ast::ConstantValue> optionValues;
|
||||
std::unordered_map<UInt32, nzsl::Ast::ConstantSingleValue> optionValues;
|
||||
};
|
||||
|
||||
struct ConfigEqual
|
||||
|
||||
Reference in New Issue
Block a user