Container for shader compiler definitions. 更多...
#include <ShaderCore.h>
Public 成员函数 | |
| void | SetDefine (const TCHAR *Name, const TCHAR *Value) |
| Works for TCHAR e.g. 更多... | |
| void | SetDefine (const TCHAR *Name, uint32 Value) |
| Works for uint32 and bool e.g. 更多... | |
| void | SetFloatDefine (const TCHAR *Name, float Value) |
| Works for float | |
Container for shader compiler definitions.
|
inline |
Works for TCHAR e.g.
SetDefine(TEXT("NUM_SAMPLES"), TEXT("1"));
|
inline |
Works for uint32 and bool e.g.
OutEnvironment.SetDefine(TEXT("REALLY"), bReally); e.g. OutEnvironment.SetDefine(TEXT("NUM_SAMPLES"), NumSamples);