Esempio n. 1
0
HdRenderPass::HdRenderPass(HdRenderIndex *index,
                           const HdRprimCollection &collection)
    : _renderIndex(index)
    , _collectionVersion(0)
    , _collectionChanged(false)
    , _lastCullingDisabledState(false)
{
    // initialize
    SetRprimCollection(collection);
}
void
HdxDrawTargetRenderPass::Sync()
{
    // Update the collection object if necessary.
    unsigned int newCollectionVersion =
        _drawTargetRenderPassState->GetRprimCollectionVersion();

    if (_collectionObjectVersion != newCollectionVersion) {
        SetRprimCollection(_drawTargetRenderPassState->GetRprimCollection());

        _collectionObjectVersion = newCollectionVersion;
    }

    _renderPass.Sync();
}