This reference page is linked to from the following overview topics: Extension for Autodesk Maya 2013, Rendering Overrides, Transition Guide, Devkit Samples, 3.6 Render Loop Overrides.
Class which defines a rendering operation.
#include <MViewport2Renderer.h>
Public Types | |
enum | MRenderOperationType { kClear, kSceneRender, kQuadRender, kUserDefined, kHUDRender, kPresentTarget } |
Supported render operation types. More... | |
Public Member Functions | |
virtual MRenderTarget ** | targetOverrideList (unsigned int &listSize) |
Return a list of pointers to render target which will be used as the target overrides for the operation. | |
virtual bool | enableSRGBWrite () |
Return whether to enable GPU based gamma correction during pixel writes. | |
virtual const MFloatPoint * | viewportRectangleOverride () |
Query for a viewport rectangle override. | |
virtual const MString & | name () const |
Query the name of a render operator. | |
MRenderOperationType | operationType () const |
Query the type (MRenderOperationType) of a render operator. |
enum MRenderOperationType |
Supported render operation types.
MRenderTarget ** targetOverrideList | ( | unsigned int & | listSize | ) | [virtual] |
Return a list of pointers to render target which will be used as the target overrides for the operation.
[out] | listSize | Number of targets returned. By default a value of 0 is returned. |
bool enableSRGBWrite | ( | ) | [virtual] |
Return whether to enable GPU based gamma correction during pixel writes.
Hardware support assumes a gamma value of 2.2 which is equivalent to converting to sRGB space. This method thus indicates whether to enable the ability of a render target to perform an "sRGB write".
All render targets returned from the MRenderOperation::targetOverrideList() method which support this capability will have the appropriate gamma correction performed.
Gamma correction is never performed for the MPresentTarget render operation.
The method MRenderTargetManager::formatSupportsSRGBWrite() can be used to query whether a a given format for a render target can support this capability.
The default implementation of this method will return false.
const MFloatPoint * viewportRectangleOverride | ( | ) | [virtual] |
Query for a viewport rectangle override.
An override is specified using 4 float values. All values are are represented as relative percentages of the output target dimensions.
Examples :
const MString & name | ( | ) | const [virtual] |
MRenderOperation::MRenderOperationType operationType | ( | ) | const |
Query the type (MRenderOperationType) of a render operator.