mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Shader Gen to produce ShaderData
Shader gen now produces a shaderdata class - this should reduce full recompilation of shaders when a macro switch happens. FileStream can now also be setup to be async write, so it will write out the file on a separate thread hopefully freeing up the main thread to continue working.
This commit is contained in:
parent
8adf692da5
commit
4cf780e7b8
11 changed files with 337 additions and 126 deletions
|
|
@ -237,6 +237,8 @@ public:
|
|||
/// Allows the feature to add macros to vertex shader compiles.
|
||||
virtual void processVertMacros( Vector<GFXShaderMacro> ¯os, const MaterialFeatureData &fd ) {};
|
||||
|
||||
virtual U32 getShaderStages() { return (GFXShaderStage::VERTEX_SHADER | GFXShaderStage::PIXEL_SHADER); }
|
||||
|
||||
/// Identifies what type of blending a feature uses. This is used to
|
||||
/// group features with the same blend operation together in a multipass
|
||||
/// situation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue