Fixing swizzle shader expression

This commit is contained in:
Dynamitos
2025-04-11 00:52:32 +02:00
parent 0f4b4d5d0a
commit dd07aa25fa
+2 -2
View File
@@ -183,7 +183,7 @@ struct SwizzleExpression : public ShaderExpression {
StaticArray<int32, 4> comp = {-1, -1, -1, -1};
SwizzleExpression() {}
SwizzleExpression(StaticArray<int32, 4> comp) : comp(std::move(comp)) {}
SwizzleExpression(std::string key, std::string target, StaticArray<int32, 4> comp) : ShaderExpression(key) {
SwizzleExpression(std::string key, std::string target, StaticArray<int32, 4> comp) : ShaderExpression(key), comp(std::move(comp)) {
inputs["target"].source = target;
}
virtual ~SwizzleExpression() {}
@@ -199,7 +199,7 @@ struct SampleExpression : public ShaderExpression {
SampleExpression(std::string key, std::string texture, std::string sampler, std::string texCoords) : ShaderExpression(key) {
inputs["texture"].source = texture;
inputs["sampler"].source = sampler;
inputs["texCoords"].source = texCoords;
inputs["coords"].source = texCoords;
}
virtual ~SampleExpression() {}
virtual uint64 getIdentifier() const override { return IDENTIFIER; }