resetForTesting static method

  1. @visibleForTesting
void resetForTesting()

Resets static shader state for testing.

Implementation

@visibleForTesting
static void resetForTesting() {
  _cachedProgram = null;
  _isPreparing = false;
  _dummyImage?.dispose();
  _dummyImage = null;
}