GrDawnUtil.h 450 B

1234567891011121314151617
  1. /*
  2. * Copyright 2019 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef GrDawnUtil_DEFINED
  8. #define GrDawnUtil_DEFINED
  9. #include "include/private/GrTypesPriv.h"
  10. #include "dawn/dawncpp.h"
  11. GrPixelConfig GrDawnFormatToPixelConfig(dawn::TextureFormat format);
  12. bool GrPixelConfigToDawnFormat(GrPixelConfig config, dawn::TextureFormat* format);
  13. #endif // GrDawnUtil_DEFINED