class
ShaderImportOptions
Inherits:
ImportOptions
Contains import options you may use to control how is a shader imported.
Public
Methods
SetDefine
void SetDefine(const String &define, const String &value)
Sets a define and its value.
Replaces an existing define if one already exists with the provided name.
- define
- Name of the define.
- value
- Value to assign to the define.
GetDefine
bool GetDefine(const String &define, String &outValue) const
Checks if the define exists and returns its value if it does.
- define
- Name of the define to get the value for.
- outValue
- Value of the define. Only defined if the method returns true.
Returns: True if the define was found, false otherwise.
HasDefine
bool HasDefine(const String &define) const
Checks if the provided define exists.
- define
- Name of the define to check.
Returns: True if the define was found, false otherwise.
RemoveDefine
void RemoveDefine(const String &define)
Unregisters a previously set define.
- define
- Name of the define to unregister.
GetDefines
const UnorderedMap<String, String> &GetDefines() const
Returns all the set defines and their values.
staticCreate
static SPtr<ShaderImportOptions> Create()
Creates a new import options object that allows you to customize how are meshes imported.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Fields
Languages
ShadingLanguageFlags Languages
Flags that control which shading languages should the BSL shader be converted into.
This ultimately controls on which render backends it will be able to run on.
Private
Fields
mDefines
UnorderedMap<String, String> mDefines