Click or drag to resize
Ab4d.SharpEngine logo

DirectoryShaderBytecodeProvider Class

DirectoryShaderBytecodeProvider class provides access to shaders stored as files in the specified directory on disk. Resources registered by this DirectoryShaderBytecodeProvider are available by file name with extension but without directory path. The class can be registered by EffectsManager with calling its [!:EffectsManager.RegisterShaderResource(string,byte[])] or [!:EffectsManager.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
  Ab4d.SharpEngine.EffectsShaderBytecodeProvider
    Ab4d.SharpEngine.EffectsDirectoryShaderBytecodeProvider

Namespace: Ab4d.SharpEngine.Effects
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class DirectoryShaderBytecodeProvider : ShaderBytecodeProvider

The DirectoryShaderBytecodeProvider type exposes the following members.

Constructors
 NameDescription
Public methodDirectoryShaderBytecodeProvider Constructor
Top
Methods
 NameDescription
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))
Public methodRefreshFiles Refreshes the list of files in the directory. This method is thread safe.
Top
See Also