Function setShaderData

Synopsis

#include <Source/Falcor/Utils/Sampling/AliasTable.h>

void setShaderData(const ShaderVar &var) const

Description

Bind the alias table data to a given shader var.

Parameters

[ in ] var - The shader variable to set the data into.

Source

Lines 38-44 in Source/Falcor/Utils/Sampling/AliasTable.cpp. Line 51 in Source/Falcor/Utils/Sampling/AliasTable.h.

void AliasTable::setShaderData(const ShaderVar& var) const
{
    var["items"] = mpItems;
    var["weights"] = mpWeights;
    var["count"] = mCount;
    var["weightSum"] = (float)mWeightSum;
}





Add Discussion as Guest

Log in