• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
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 
8 #include "src/gpu/d3d/GrD3DUtil.h"
9 
10 #include "src/gpu/GrDataUtils.h"
11 #include "src/gpu/GrDirectContextPriv.h"
12 #include "src/gpu/d3d/GrD3DGpu.h"
13 #include "src/sksl/SkSLCompiler.h"
14 
GrDxgiFormatIsCompressed(DXGI_FORMAT format)15 bool GrDxgiFormatIsCompressed(DXGI_FORMAT format) {
16     switch (format) {
17         case DXGI_FORMAT_BC1_UNORM:
18             return true;
19         default:
20             return false;
21     }
22     SkUNREACHABLE;
23 }
24