|
DictionaryShaderBytecodeProviderAddShaderBytecode Method |
AddShaderBytecode add the shader name (specified as resourceName) with its bytecode to the shaders dictionary defined in this DictionaryShaderBytecodeProvider.
If you add resourceName that was already added before, the old resourceName bytecode is overwritten by the new bytecode.
This method is thread safe and can be called from any thread.
Namespace: Ab4d.SharpEngine.EffectsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public void AddShaderBytecode(
string resourceName,
byte[] bytecode
)
Parameters
- resourceName String
- shader name
- bytecode Byte
- byte array with compiled shader bytes
See Also