Function create

Synopsis

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

static SharedPtr create(const Desc &desc)

Description

Create a compute state object.

Parameters

[ in ] desc - State object description.

Return
New object, or throws an exception if creation failed.

Source

Lines 53-56 in Source/Falcor/Core/API/ComputeStateObject.cpp. Line 61 in Source/Falcor/Core/API/ComputeStateObject.h.

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





Add Discussion as Guest

Log in