Click or drag to resize
Ab4d.SharpEngine logo

AssemblyShaderBytecodeProvider Class

AssemblyShaderBytecodeProvider class provides access to compiled shaders stored as embedded resources in an assembly. 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
System.Object
  Ab4d.SharpEngine.Effects.ShaderBytecodeProvider
    Ab4d.SharpEngine.Effects.AssemblyShaderBytecodeProvider

Namespace: Ab4d.SharpEngine.Effects
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public class AssemblyShaderBytecodeProvider : ShaderBytecodeProvider

The AssemblyShaderBytecodeProvider type exposes the following members.

Constructors
 NameDescription
Public methodAssemblyShaderBytecodeProvider Constructor
Top
Properties
 NameDescription
Public propertyResourceAssembly Gets an assembly that was used to create this AssemblyShaderResources
Public propertyResourceRootName Gets string that specifies the root name of the shaders
Top
Methods
 NameDescription
Public methodEquals Overridden Equals compares this instance with obj by reference and also by uses the same assembly and root name
(Overrides Object.Equals(Object))
Public methodGetAllResourceNames Returns an array of strings that represents the resource names available in this ShaderBytecodeProvider.
(Overrides ShaderBytecodeProvider.GetAllResourceNames())
Public methodGetHashCode Serves as a hash function for a particular type.
(Overrides Object.GetHashCode())
Public methodGetShaderBytecode Gets bytes array of the compiled shader with resourceName or null if this class instance does not have this resource.
(Overrides ShaderBytecodeProvider.GetShaderBytecode(String))
Top
See Also