nodes: further optimized merge node to passthrough RGB blend textures

This commit is contained in:
itsmattkc
2021-04-23 11:01:08 +10:00
parent 5e3d42e52a
commit 445d276cd0
18 changed files with 227 additions and 82 deletions
+10 -4
View File
@@ -27,23 +27,29 @@ namespace olive {
class GenerateJob : public AcceleratedJob {
public:
enum AlphaChannelSetting {
kAlphaAuto,
kAlphaForceOn,
kAlphaForceOff
};
GenerateJob()
{
alpha_channel_required_ = false;
alpha_channel_required_ = kAlphaAuto;
}
bool GetAlphaChannelRequired() const
AlphaChannelSetting GetAlphaChannelRequired() const
{
return alpha_channel_required_;
}
void SetAlphaChannelRequired(bool e)
void SetAlphaChannelRequired(AlphaChannelSetting e)
{
alpha_channel_required_ = e;
}
private:
bool alpha_channel_required_;
AlphaChannelSetting alpha_channel_required_;
};