Function create

Synopsis

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

static SharedPtr create(CommandQueueHandle queue)

Description

Create a new compute context.

Parameters

[ in ] queue - Command queue handle.

Return
A new object, or throws an exception if creation failed.

Source

Lines 33-38 in Source/Falcor/Core/API/ComputeContext.cpp. Line 47 in Source/Falcor/Core/API/ComputeContext.h.

ComputeContext::SharedPtr ComputeContext::create(CommandQueueHandle queue)
{
    auto pCtx = SharedPtr(new ComputeContext(LowLevelContextData::CommandQueueType::Compute, queue));
    pCtx->bindDescriptorHeaps(); // TODO: Should this be done here?
    return pCtx;
}





Add Discussion as Guest

Log in