Interface to abstract all types of pass definitions (.
More...
#include <OgreCompositorPassDef.h>
|
| CompositorPassDef (CompositorPassType passType, CompositorTargetDef *parentTargetDef) |
|
virtual | ~CompositorPassDef () |
|
const CompositorTargetDef * | getParentTargetDef (void) const |
|
uint32 | getRtIndex (void) const |
|
CompositorPassType | getType () const |
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
void | setAllClearColours (const ColourValue &clearValue) |
|
void | setAllLoadActions (LoadAction::LoadAction loadAction) |
|
void | setAllStoreActions (StoreAction::StoreAction storeAction) |
|
Interface to abstract all types of pass definitions (.
- See also
- CompositorPassType): PASS_SCENE ( CompositorPassSceneDef) PASS_QUAD ( CompositorPassQuadDef) PASS_CLEAR ( CompositorPassClearDef) PASS_STENCIL ( CompositorPassStencilDef) PASS_DEPTHCOPY ( CompositorPassDepthCopy) PASS_UAV ( CompositorPassUavDef) PASS_COMPUTE ( CompositorPassComputeDef) PASS_MIPMAP ( CompositorPassMipmapDef) This class doesn't do much on its own. See the derived types for more information A definition is shared by all pass instantiations (i.e. Five CompositorPassScene can share the same CompositorPassSceneDef) and are assumed to remain const throughout their lifetime.
- Modifying a definition while there are active instantiations is undefined. Some implementations may see the change (eg. changing CompositorPassSceneDef::mFirstRQ) immediately while not see others (eg. changing CompositorPassSceneDef::mCameraName) Also crashes could happen depending on the changes being made.
◆ UavDependencyVec
◆ CompositorPassDef()
◆ ~CompositorPassDef()
virtual Ogre::CompositorPassDef::~CompositorPassDef |
( |
| ) |
|
|
virtual |
◆ getParentTargetDef()
◆ getRtIndex()
uint32 Ogre::CompositorPassDef::getRtIndex |
( |
void |
| ) |
const |
◆ getType()
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
operator new, with debug line info
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
array operator new, with debug line info
◆ operator new[]() [2/2]
◆ setAllClearColours()
void Ogre::CompositorPassDef::setAllClearColours |
( |
const ColourValue & |
clearValue | ) |
|
◆ setAllLoadActions()
◆ setAllStoreActions()
◆ mClearColour
◆ mClearDepth
float Ogre::CompositorPassDef::mClearDepth |
◆ mClearStencil
uint32 Ogre::CompositorPassDef::mClearStencil |
◆ mColourWrite
bool Ogre::CompositorPassDef::mColourWrite |
When false will not really bind the RenderTarget for rendering and use a null colour buffer instead.
Useful for depth prepass, or if the RTT is actually an UAV. Some passes may ignore this setting (e.g. Clear passes)
◆ mExecutionMask
uint8 Ogre::CompositorPassDef::mExecutionMask |
◆ mExposedTextures
◆ mFlushCommandBuffers
bool Ogre::CompositorPassDef::mFlushCommandBuffers |
Whether to flush the command buffer at the end of the pass.
This can incur in a performance overhead (see OpenGL's glFlush and D3D11' ID3D11DeviceContext::Flush) for info. Usually you want to leave this off. However for VR applications that must meet VSync, profiling may show your workload benefits from submitting earlier so the GPU can start right away executing rendering commands.
The main reason to use this is in CPU-bound scenarios where the GPU starts too late after sitting idle.
◆ mIdentifier
uint32 Ogre::CompositorPassDef::mIdentifier |
Custom value in case there's a listener attached (to identify the pass)
◆ mIncludeOverlays
bool Ogre::CompositorPassDef::mIncludeOverlays |
TODO: Refactor OgreOverlay to remove this design atrocity.
A custom overlay pass is a better alternative (or just use their own RQ)
◆ mLoadActionColour
◆ mLoadActionDepth
◆ mLoadActionStencil
◆ mNumInitialPasses
uint32 Ogre::CompositorPassDef::mNumInitialPasses |
Number of times to perform the pass before stopping. -1 to never stop.
◆ mNumViewports
uint32 Ogre::CompositorPassDef::mNumViewports |
◆ mProfilingId
String Ogre::CompositorPassDef::mProfilingId |
◆ mReadOnlyDepth
bool Ogre::CompositorPassDef::mReadOnlyDepth |
◆ mReadOnlyStencil
bool Ogre::CompositorPassDef::mReadOnlyStencil |
◆ mShadowMapFullViewport
bool Ogre::CompositorPassDef::mShadowMapFullViewport |
Only used if mShadowMapIdx is valid (if pass is owned by Shadow Nodes).
If true, we won't force the viewport to fit the region of the UV atlas on the texture, and respect mVp* settings instead.
◆ mShadowMapIdx
uint32 Ogre::CompositorPassDef::mShadowMapIdx |
Shadow map index it belongs to (only filled in passes owned by Shadow Nodes)
◆ mStoreActionColour
◆ mStoreActionDepth
◆ mStoreActionStencil
◆ mUavDependencies
◆ mViewportModifierMask
uint8 Ogre::CompositorPassDef::mViewportModifierMask |
◆ mVpRect
◆ mWarnIfRtvWasFlushed
bool Ogre::CompositorPassDef::mWarnIfRtvWasFlushed |
Will issue a warning (by raising an exception) if Ogre is forced to flush the RenderTarget, which is very bad for performance on mobile, and can cause serious performance problems in Desktop if using MSAA, and also cause correctness problems (i.e.
bad rendering) if store action is StoreAction::Resolve.
- No warning will be issued if the RenderTargets getting flushed have their LoadAction set to LoadAction::Clear (or LoadAction::ClearOnTilers on tilers).
The documentation for this class was generated from the following file: