Class ShaderResourceView

Synopsis

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

class dlldecl ShaderResourceView : public ResourceView<SrvHandle>

Description

No description yet.

Mentioned in

  • Tutorials / 02 Implementing A Render Pass / execute()

Inheritance

Ancestors: ResourceView

Methods

create overload
createViewForAccelerationStructure
getNullView

Source

Lines 120-140 in Source/Falcor/Core/API/ResourceViews.h.

class dlldecl ShaderResourceView : public ResourceView<SrvHandle>
{
public:
    using SharedPtr = std::shared_ptr<ShaderResourceView>;
    using SharedConstPtr = std::shared_ptr<const ShaderResourceView>;
    static SharedPtr create(ConstTextureSharedPtrRef pTexture, uint32_t mostDetailedMip, uint32_t mipCount, uint32_t firstArraySlice, uint32_t arraySize);
    static SharedPtr create(ConstBufferSharedPtrRef pBuffer, uint32_t firstElement, uint32_t elementCount);
    static SharedPtr create(Dimension dimension);
    static SharedPtr createViewForAccelerationStructure(ConstBufferSharedPtrRef pBuffer);
    static SharedPtr getNullView(Dimension dimension);
private:
    ShaderResourceView(ResourceWeakPtr pResource, ApiHandle handle, uint32_t mostDetailedMip, uint32_t mipCount, uint32_t firstArraySlice, uint32_t arraySize)
        : ResourceView(pResource, handle, mostDetailedMip, mipCount, firstArraySlice, arraySize) {}
    ShaderResourceView(ResourceWeakPtr pResource, ApiHandle handle, uint32_t firstElement, uint32_t elementCount)
        : ResourceView(pResource, handle, firstElement, elementCount) {}
    ShaderResourceView(ResourceWeakPtr pResource, ApiHandle handle)
        : ResourceView(pResource, handle) {}
};





Add Discussion as Guest

Log in