Click or drag to resize
AB4D 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
  Ab3d.DirectXShaderBytecodeProvider
    Ab3d.DirectXFileShaderBytecodeProvider

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
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 extention). 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