Function setColorTarget

Synopsis

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

Desc & setColorTarget(uint32_t rtIndex, ResourceFormat format, bool allowUav=false)

Description

Set a render target to be a color target.

Parameters

[ in ] rtIndex - Index of render target

[ in ] format - Texture resource format

[ in ] allowUav - Whether the resource can be a UAV

Source

Lines 54-54 in Source/Falcor/Core/API/FBO.h.

Desc& setColorTarget(uint32_t rtIndex, ResourceFormat format, bool allowUav = false) { mColorTargets[rtIndex] = TargetDesc(format, allowUav); return *this; }





Add Discussion as Guest

Log in