SimpleRawCompositor

Example Compositor implementation; this just copies the diffuse map into and is useful for flat plugins.

Constructors

this
this(CompositorCreationContext* context)
Undocumented in source.

Members

Classes

CopyDiffuseToFramebuffer
class CopyDiffuseToFramebuffer
Undocumented in source.

Inherited Members

From MultipassCompositor

addPass
void addPass(CompositorPass pass)

Enqueue a pass in the compositor pipeline. This is meant to be used in a MultipassCompositor derivative constructor. Passes are called in their order of addition. That pass is now owned by the MultipassCompositor.

resizeBuffers
void resizeBuffers(int width, int height, int areaMaxWidth, int areaMaxHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
compositeTile
void compositeTile(ImageRef!RGBA wfb, const(box2i)[] areas, Mipmap!RGBA diffuseMap, Mipmap!RGBA materialMap, Mipmap!L16 depthMap, IProfiler profiler)

Note: the exact algorithm for compositing pass is entirely up to you. You could imagine intermediate mipmappingsteps in the middle. compositeTile needs complete power over the parallelization strategy.

~this
~this()
Undocumented in source.
numThreads
int numThreads()
Undocumented in source. Be warned that the author may not have intended to support it.
getPass
inout(CompositorPass) getPass(int nth)
Undocumented in source. Be warned that the author may not have intended to support it.
passes
inout(CompositorPass)[] passes()
Undocumented in source. Be warned that the author may not have intended to support it.
threadPool
ThreadPool threadPool()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta