Click or drag to resize
AB4D logo

DictionaryShaderBytecodeProvider Class

DictionaryShaderBytecodeProvider class provides access to shaders stored in a simple dictionary with shader name as key and its bytecode (byte array of compiled shader) as values. The class can be registered by EffectsManager with calling its RegisterShaderResource(String, Byte) or RegisterShaderResourceStatic(ShaderBytecodeProvider) methods. This way the EffectsManager will be able to get shader resources (bytecode) from the resources provided by this class.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXShaderBytecodeProvider
    Ab3d.DirectXDictionaryShaderBytecodeProvider

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class DictionaryShaderBytecodeProvider : ShaderBytecodeProvider

The DictionaryShaderBytecodeProvider type exposes the following members.

Constructors
 NameDescription
Public methodDictionaryShaderBytecodeProvider Constructor
Top
Methods
 NameDescription
Public methodAddShaderBytecode 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.
Public methodGetAllResourceNames Returns an array of strings that represents the resource names available in this ShaderBytecodeProvider.
(Overrides ShaderBytecodeProviderGetAllResourceNames)
Public methodGetShaderBytecode Gets bytes array of the compiled shader with resourceName or null if this class instance does not have this resource.
(Overrides ShaderBytecodeProviderGetShaderBytecode(String))
Top
See Also