Class Desc

Synopsis

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

class dlldecl Desc

Description

No description yet.

Methods

setDescCount
setShaderVisible

Source

Lines 69-87 in Source/Falcor/Core/API/DescriptorPool.h.

class dlldecl Desc
{
public:
    Desc& setDescCount(Type type, uint32_t count)
    {
        uint32_t t = (uint32_t)type;
        mTotalDescCount -= mDescCount[t];
        mTotalDescCount += count;
        mDescCount[t] = count;
        return *this;
    }
    Desc& setShaderVisible(bool visible) { mShaderVisible = visible; return *this; }
private:
    friend DescriptorPool;
    uint32_t mDescCount[kTypeCount] = { 0 };
    uint32_t mTotalDescCount = 0;
    bool mShaderVisible = false;
};





Add Discussion as Guest

Log in