Click or drag to resize
Ab4d.SharpEngine logo

FileShaderBytecodeProvider Class

FileShaderBytecodeProvider class provides access to shaders stored as files in file system. The class can be registered by EffectsManager and can be used to generate shaders from the files registered by this class. Before the files can be accessed, the files must be registered by AddResourceFile(String, String), AddResourceFile(String) or AddResourceFiles(IEnumerableString).
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.EffectsShaderBytecodeProvider
    Ab4d.SharpEngine.EffectsFileShaderBytecodeProvider

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

The FileShaderBytecodeProvider type exposes the following members.

Constructors
 NameDescription
Public methodFileShaderBytecodeProvider Constructor
Top
Methods
 NameDescription
Public methodAddResourceFile(String) AddResourceFile registers the file specified with fullFileNameWithPath with resource name that is generated from the file name (with extension). This method is thread safe.
Public methodAddResourceFile(String, String) AddResourceFile registers the resourceName and associates it with the specified fullFileNameWithPath. This method is thread safe.
Public methodAddResourceFiles AddResourceFiles registers files specified in fileNames enumerable collection. This method is thread safe.
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