Function create

Synopsis

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

static SharedPtr create(const Desc &desc)

Description

Create a new depth-stencil state object.

Parameters:

desc - Depth-stencil descriptor.

Return
New object, or throws an exception if an error occurred.

Source

Lines 33-36 in Source/Falcor/Core/API/DepthStencilState.cpp. Line 144 in Source/Falcor/Core/API/DepthStencilState.h.

DepthStencilState::SharedPtr DepthStencilState::create(const Desc& desc)
{
    return SharedPtr(new DepthStencilState(desc));
}





Add Discussion as Guest

Log in to DocsForge