Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrD3DUtil.cpp File Reference
#include "src/gpu/ganesh/d3d/GrD3DUtil.h"
#include "src/gpu/ganesh/GrDataUtils.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/d3d/GrD3DGpu.h"
#include "src/sksl/SkSLCompiler.h"

Go to the source code of this file.

Functions

bool GrDxgiFormatIsCompressed (DXGI_FORMAT format)
 
std::wstring GrD3DMultiByteToWide (const std::string &str)
 

Function Documentation

◆ GrD3DMultiByteToWide()

std::wstring GrD3DMultiByteToWide ( const std::string &  str)

Definition at line 25 of file GrD3DUtil.cpp.

25 {
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}

◆ GrDxgiFormatIsCompressed()

bool GrDxgiFormatIsCompressed ( DXGI_FORMAT  format)

Returns true if the format is compressed.

Definition at line 15 of file GrD3DUtil.cpp.

15 {
16 switch (format) {
17 case DXGI_FORMAT_BC1_UNORM:
18 return true;
19 default:
20 return false;
21 }
23}
#define SkUNREACHABLE
Definition SkAssert.h:135
uint32_t uint32_t * format