Fixing swizzle shader expression
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user