Function addRootConstants

Synopsis

#include <Source/Falcor/Core/API/RootSignature.h>

Desc & addRootConstants(uint32_t regIndex, uint32_t spaceIndex, uint32_t count)

Description

No description yet.

Source

Lines 56-65 in Source/Falcor/Core/API/RootSignature.cpp. Line 80 in Source/Falcor/Core/API/RootSignature.h.

RootSignature::Desc& RootSignature::Desc::addRootConstants(uint32_t regIndex, uint32_t spaceIndex, uint32_t count)
{
    assert(mSets.empty()); // For now we disallow both root-constants and descriptor-sets
    RootConstantsDesc desc;
    desc.count = count;
    desc.regIndex = regIndex;
    desc.spaceIndex = spaceIndex;
    mRootConstants.push_back(desc);
    return *this;
}





Add Discussion as Guest

Log in to DocsForge