Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrD3DUtil.cpp
Go to the documentation of this file.
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
9
14
16 switch (format) {
17 case DXGI_FORMAT_BC1_UNORM:
18 return true;
19 default:
20 return false;
21 }
23}
24
25std::wstring GrD3DMultiByteToWide(const std::string& str) {
26 int size_needed = MultiByteToWideChar(CP_UTF8, 0, &str[0], (int)str.size(), nullptr, 0);
27 std::wstring wstr(size_needed, 0);
28 MultiByteToWideChar(CP_UTF8, 0, &str[0], (int)str.size(), &wstr[0], size_needed);
29 return wstr;
30}
std::wstring GrD3DMultiByteToWide(const std::string &str)
Definition GrD3DUtil.cpp:25
bool GrDxgiFormatIsCompressed(DXGI_FORMAT format)
Definition GrD3DUtil.cpp:15
#define SkUNREACHABLE
Definition SkAssert.h:135
uint32_t uint32_t * format