Struct DescriptorSetInfo

Synopsis

#include <Source/Falcor/Core/Program/ProgramReflection.h>

struct DescriptorSetInfo

Description

Information on how a particular descriptor set should be filled in.

A single ParameterBlock may map to zero or more distinct descriptor sets, depending on what members it contains, and how those members are mapped to API registers/spaces.

Structures

SubObjectInfoInformation about a sub-object that should have some of its resource ranges bound into this descriptor set.

Source

Lines 1247-1281 in Source/Falcor/Core/Program/ProgramReflection.h.

struct DescriptorSetInfo
{
    /// The layout of the API descriptor set to allocate.
    DescriptorSet::Layout   layout;
    /// The indices of resource ranges within the parameter block
    /// to bind to the descriptor ranges of the above set.
    ///
    /// The order of entries in the `resourceRangeIndices`
    /// array will correspond to the order of the corresponding
    /// descriptor ranges in the `layout`.
    ///
    std::vector<uint32_t>   resourceRangeIndices;
    /// Information about a sub-object that should have some
    /// of its resource ranges bound into this descriptor set.
    ///
    struct SubObjectInfo
    {
        /// The index of the resource range that defines the
        /// sub-object.
        ///
        uint32_t resourceRangeIndexOfSubObject;
        /// The set index within the sub-object for which
        /// data should be written into this set.
        ///
        uint32_t setIndexInSubObject;
    };
    /// All of the sub-objects of this parameter block that should
    /// have data written into this descriptor sets.
    ///
    std::vector<SubObjectInfo> subObjects;
};





Add Discussion as Guest

Log in