| 134 | } |
| 135 | |
| 136 | void HLSLGenerator::Error(const char* format, ...) |
| 137 | { |
| 138 | // It's not always convenient to stop executing when an error occurs, |
| 139 | // so just track once we've hit an error and stop reporting them until |
| 140 | // we successfully bail out of execution. |
| 141 | if (m_error) { |
| 142 | return; |
| 143 | } |
| 144 | m_error = true; |
| 145 | |
| 146 | va_list arg; |
| 147 | va_start(arg, format); |
| 148 | Log_ErrorArgList(format, arg); |
| 149 | va_end(arg); |
| 150 | } |
| 151 | |
| 152 | bool HLSLGenerator::Generate(HLSLTree* tree, HLSLTarget target, const char* entryName, const HLSLOptions& options) |
| 153 | { |
nothing calls this directly
no test coverage detected