Class Desc

Synopsis

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

class dlldecl Desc

Description

No description yet.

Methods

getBlendState
getDepthStencilState
getFboDesc
getPrimitiveType
getProgramKernels
getProgramVersion
getRasterizerState
getRootSignature
getSampleMask
getVertexLayout
operator==
setBlendState
setDepthStencilState
setFboFormats
setPrimitiveType
setProgramKernels
setRasterizerState
setRootSignature
setSampleMask
setVertexLayout

Source

Lines 60-108 in Source/Falcor/Core/API/GraphicsStateObject.h.

class dlldecl Desc
{
public:
    Desc& setRootSignature(RootSignature::SharedPtr pSignature) { mpRootSignature = pSignature; return *this; }
    Desc& setVertexLayout(VertexLayout::SharedConstPtr pLayout) { mpLayout = pLayout; return *this; }
    Desc& setFboFormats(const Fbo::Desc& fboFormats) { mFboDesc = fboFormats; return *this; }
    Desc& setProgramKernels(ProgramKernels::SharedConstPtr pProgram) { mpProgram = pProgram; return *this; }
    Desc& setBlendState(BlendState::SharedPtr pBlendState) { mpBlendState = pBlendState; return *this; }
    Desc& setRasterizerState(RasterizerState::SharedPtr pRasterizerState) { mpRasterizerState = pRasterizerState; return *this; }
    Desc& setDepthStencilState(DepthStencilState::SharedPtr pDepthStencilState) { mpDepthStencilState = pDepthStencilState; return *this; }
    Desc& setSampleMask(uint32_t sampleMask) { mSampleMask = sampleMask; return *this; }
    Desc& setPrimitiveType(PrimitiveType type) { mPrimType = type; return *this; }
    BlendState::SharedPtr getBlendState() const { return mpBlendState; }
    RasterizerState::SharedPtr getRasterizerState() const { return mpRasterizerState; }
    DepthStencilState::SharedPtr getDepthStencilState() const { return mpDepthStencilState; }
    ProgramKernels::SharedConstPtr getProgramKernels() const { return mpProgram; }
    ProgramVersion::SharedConstPtr getProgramVersion() const { return mpProgram->getProgramVersion(); }
    RootSignature::SharedPtr getRootSignature() const { return mpRootSignature; }
    uint32_t getSampleMask() const { return mSampleMask; }
    VertexLayout::SharedConstPtr getVertexLayout() const { return mpLayout; }
    PrimitiveType getPrimitiveType() const { return mPrimType; }
    Fbo::Desc getFboDesc() const { return mFboDesc; }
    bool operator==(const Desc& other) const;
private:
    friend class GraphicsStateObject;
    Fbo::Desc mFboDesc;
    VertexLayout::SharedConstPtr mpLayout;
    ProgramKernels::SharedConstPtr mpProgram;
    RasterizerState::SharedPtr mpRasterizerState;
    DepthStencilState::SharedPtr mpDepthStencilState;
    BlendState::SharedPtr mpBlendState;
    uint32_t mSampleMask = kSampleMaskAll;
    RootSignature::SharedPtr mpRootSignature;
    PrimitiveType mPrimType = PrimitiveType::Undefined;
ALCOR_VK
public:
    Desc& setVao(const Vao::SharedConstPtr& pVao) { mpVao = pVao; return *this; }
    Desc& setRenderPass(VkRenderPass renderPass) { mRenderPass = renderPass; return *this; }
    const Vao::SharedConstPtr& getVao() const { return mpVao; }
    VkRenderPass getRenderPass() const {return mRenderPass;}
private:
    Vao::SharedConstPtr mpVao;
    VkRenderPass mRenderPass;
};





Add Discussion as Guest

Log in to DocsForge