refuseResource method
The refusal for a request this device has the feature for and still
cannot honour, for a backend to throw from operation:
throw refuseResource('createTextureFromPixels', 'the pixels are …').
Implementation
@protected
DeviceResourceException refuseResource(
String operation,
String reason, {
Object? cause,
}) => DeviceResourceException(
operation: operation,
backend: backendName,
reason: reason,
cause: cause,
);