Class Desc

Synopsis

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

class dlldecl Desc

Description

No description yet.

Methods

addDescriptorSet
addRootConstants
addRootDescriptor
getRootConstantCount
getRootConstantDesc
getRootDescriptorCount
getRootDescriptorDesc
getSet
getSetsCount

Source

Lines 75-105 in Source/Falcor/Core/API/RootSignature.h.

class dlldecl Desc
{
public:
    Desc& addDescriptorSet(const DescriptorSetLayout& setLayout);
    Desc& addRootDescriptor(DescType type, uint32_t regIndex, uint32_t spaceIndex, ShaderVisibility visibility = ShaderVisibility::All);
    Desc& addRootConstants(uint32_t regIndex, uint32_t spaceIndex, uint32_t count); // #SHADER_VAR Make sure this works with the reflectors
ALCOR_D3D12
    Desc& setLocal(bool isLocal) { mIsLocal = isLocal; return *this; }
    size_t getSetsCount() const { return mSets.size(); }
    const DescriptorSetLayout& getSet(size_t index) const { return mSets[index]; }
    size_t getRootDescriptorCount() const { return mRootDescriptors.size(); }
    const RootDescriptorDesc& getRootDescriptorDesc(size_t index) const { return mRootDescriptors[index]; }
    size_t getRootConstantCount() const { return mRootConstants.size(); }
    const RootConstantsDesc& getRootConstantDesc(size_t index) const { return mRootConstants[index]; }
private:
    friend class RootSignature;
    std::vector<DescriptorSetLayout> mSets;
    std::vector<RootDescriptorDesc> mRootDescriptors;
    std::vector<RootConstantsDesc> mRootConstants;
ALCOR_D3D12
    bool mIsLocal = false;
};





Add Discussion as Guest

Log in