| 191 | } |
| 192 | |
| 193 | void CustomShaderFeatureData::writeLine(String format, S32 argc, ConsoleValue* argv) |
| 194 | { |
| 195 | #ifdef TORQUE_D3D11 |
| 196 | if (GFX->getAdapterType() == GFXAdapterType::Direct3D11) |
| 197 | mFeatureHLSL->writeLine(format, argc, argv); |
| 198 | #endif |
| 199 | #ifdef TORQUE_OPENGL |
| 200 | if (GFX->getAdapterType() == GFXAdapterType::OpenGL) |
| 201 | mFeatureGLSL->writeLine(format, argc, argv); |
| 202 | #endif |
| 203 | } |
| 204 | |
| 205 | DefineEngineMethod(CustomShaderFeatureData, addVariable, void, (String name, String type, String defaultValue), ("", "", ""), "") |
| 206 | { |
no test coverage detected