Skip to content

Commit

Permalink
Merge pull request #1236 from ablev-dwa/renderBufferResolve
Browse files Browse the repository at this point in the history
Allow RenderBuffer::Resolve() to change the size of the image

(Internal change: 2076509)
  • Loading branch information
pixar-oss committed Jun 17, 2020
2 parents 238812c + e0857cb commit 3ac64b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pxr/imaging/hdx/colorizeTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ HdxColorizeTask::Execute(HdTaskContext* ctx)
return;
}

// Resolve the buffers before we read them.
_aovBuffer->Resolve();
if (_depthBuffer) {
_depthBuffer->Resolve();
}

// Allocate the scratch space, if needed.
size_t size = _aovBuffer->GetWidth() * _aovBuffer->GetHeight();
if (!_applyColorQuantization && _aovName == HdAovTokens->color) {
Expand All @@ -537,12 +543,6 @@ HdxColorizeTask::Execute(HdTaskContext* ctx)
_converged = _converged && _depthBuffer->IsConverged();
}

// Resolve the buffers before we read them.
_aovBuffer->Resolve();
if (_depthBuffer) {
_depthBuffer->Resolve();
}

// XXX: Right now, we colorize on the CPU, before uploading data to the
// fullscreen pass. It would be much better if the colorizer callbacks
// were done in fragment shaders. This is particularly important for
Expand Down

0 comments on commit 3ac64b8

Please sign in to comment.