#include <previewimageprovider.h>
Defines a result image. Instances that have been returned (c.f. TakeOutput) are expected to be immutable to allow safe shared ownership of the pixel data.
Public Attributes | |
IntVector2d | _imageSize |
SamplesFloat32ConstRef | _samplesFloat32Linear |
Bool | _isFinal |
IntVector2d _imageSize |
The image size in width and height. Its product has to match the size of @_samplesFloat32Linear, i.e. _imageSize.x * _imageSize.y = _samplesFloat32Linear->GetCount().
SamplesFloat32ConstRef _samplesFloat32Linear |
The pixel data of the result preview image in linear color space. Pixels are defined as (r, g, b, a) values in row-major order. It is expected to give away ownership to the underlying data, avoiding any read or write access to it after return.
Bool _isFinal |
Defines whether this preview result is final for the current state of the subject within the the node graph. A final state can then be used for cache revival later on and may be waited for by blocking preview request calls, e.g. coming from the HW Renderer or from viewport with an enabled "Animate Preview" setting for the respective node material.