public void SendTranslationError(ShaderTranslationError error) { foreach (var handler in ErrorHandlers) { handler.Invoke(error); } }
void OnTranslationError(ShaderTranslationError error) { foreach (var errorHandler in ErrorHandlers) { errorHandler(error); } }
public void SendTranslationError(ShaderCodeLocation location, string message) { var error = new ShaderTranslationError { Location = location, Message = message }; SendTranslationError(error); }