Function add

Summary

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

(1) DefineList & add(const std::string &name, const std::string &val="")

(2) DefineList & add(const DefineList &dl)

Function overload

Synopsis

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

DefineList & add(const std::string &name, const std::string &val="")

Description

Adds a macro definition. If the macro already exists, it will be replaced.

Parameters

[ in ] name - The name of macro.

[ in ] value - Optional. The value of the macro.

Return
The updated list of macro definitions.

Source

Lines 162-162 in Source/Falcor/Core/API/Shader.h.

DefineList& add(const std::string& name, const std::string& val = "") { (*this)[name] = val; return *this; }

Synopsis

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

DefineList & add(const DefineList &dl)

Description

Add a define list to the current list

Source

Lines 172-172 in Source/Falcor/Core/API/Shader.h.

DefineList& add(const DefineList& dl) { for (const auto& p : dl) add(p.first, p.second); return *this; }





Add Discussion as Guest

Log in