ShaderGen Class Reference#include <shaderGen.h>
Detailed DescriptionThe ShaderGen class takes shader feature data (usually created by MatInstance) and creates a vertex/pixel shader pair in text files to be later compiled by a shader manager.It accomplishes this task by creating a group of shader "components" and "features" that output bits of high level shader code. Shader components translate to structures in HLSL that indicate incoming vertex data, data that is output from the vertex shader to the pixel shader, and data such as constants and textures that are passed directly to the shader from the app. Shader features are separable shader functions that can be turned on or off. Examples would be bumpmapping and specular highlights. See GFXMaterialFeatureData for the current list of features supported. ShaderGen processes all of the features that are present for a desired shader, and then prints them out to the respective vertex or pixel shader file. For more information on shader features and components see the ShaderFeature and ShaderComponent classes.
Member Typedef Documentation
Parameter 1 is the ShaderGen instance to initialize.
Map of features -> shaders.
Constructor & Destructor Documentation
Member Function Documentation
Singleton get.
Register an initialization delegate for adapterType. This should setPrinter/ComponentFactory/etc, and register shader features.
vertFile and pixFile are filled in by this function. They point to the vertex and pixel shader files. pixVersion is also filled in by this function.
Causes the init delegate to be called.
Creates all the various shader components that will be filled in when the shader features are processed.
print out the processed features to the file stream
Member Data Documentation
Init.
|