Click or drag to resize
Ab4d.SharpEngine logo

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.Effects
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void AddShaderBytecode(
	string resourceName,
	byte[] bytecode
)

Parameters

resourceName  String
shader name
bytecode  Byte
byte array with compiled shader bytes
See Also