Skip to content

Commit

Permalink
Add CompositorWorkspace::setExecutionMask
Browse files Browse the repository at this point in the history
In OgreNext <= 2.2, mExecutionMask had to be immutable after creating
the Workspace instance.

However after >= 2.3 there was no such hard requirement anymore, as GPU
barriers are analyzed dynamically.
Thus expose the setter.
  • Loading branch information
darksylinc committed Jan 18, 2023
1 parent 4245256 commit 9e996b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OgreMain/include/Compositor/OgreCompositorWorkspace.h
Expand Up @@ -334,6 +334,8 @@ namespace Ogre
const Vector4 &getViewportModifier() const { return mViewportModifier; }
void setViewportModifier( const Vector4 &modifier ) { mViewportModifier = modifier; }

uint8 setExecutionMask( uint8 executionMask ) { mExecutionMask = executionMask; }

uint8 getExecutionMask() const { return mExecutionMask; }

void _notifyBarriersDirty();
Expand Down

0 comments on commit 9e996b2

Please sign in to comment.