Flutter Engine
The Flutter Engine
|
#include <GrD3DCaps.h>
Static Public Member Functions | |
static int | GetStencilFormatTotalBitCount (DXGI_FORMAT format) |
Static Public Member Functions inherited from SkCapabilities | |
static sk_sp< const SkCapabilities > | RasterBackend () |
Stores some capabilities of a D3D backend.
Definition at line 23 of file GrD3DCaps.h.
GrD3DCaps::GrD3DCaps | ( | const GrContextOptions & | contextOptions, |
IDXGIAdapter1 * | adapter, | ||
ID3D12Device * | device | ||
) |
Creates a GrD3DCaps that is set such that nothing is supported. The init function should be called to fill out the caps.
Definition at line 28 of file GrD3DCaps.cpp.
|
overridevirtual |
Adds fields to the key to represent the sampler that will be created for the passed in parameters. Currently this extra keying is only needed when building a vulkan pipeline with immutable samplers.
Reimplemented from GrCaps.
Definition at line 1058 of file GrD3DCaps.cpp.
bool GrD3DCaps::canCopyAsResolve | ( | DXGI_FORMAT | dstFormat, |
int | dstSampleCnt, | ||
DXGI_FORMAT | srcFormat, | ||
int | srcSamplecnt | ||
) | const |
Definition at line 83 of file GrD3DCaps.cpp.
bool GrD3DCaps::canCopyTexture | ( | DXGI_FORMAT | dstFormat, |
int | dstSampleCnt, | ||
DXGI_FORMAT | srcFormat, | ||
int | srcSamplecnt | ||
) | const |
Helpers used by canCopySurface. In all cases if the SampleCnt parameter is zero that means the surface is not a render target, otherwise it is the number of samples in the render target.
Definition at line 72 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 1024 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 977 of file GrD3DCaps.cpp.
GrColorType GrD3DCaps::getFormatColorType | ( | DXGI_FORMAT | format | ) | const |
Definition at line 899 of file GrD3DCaps.cpp.
|
inline |
Definition at line 91 of file GrD3DCaps.h.
|
overridevirtual |
Implements GrCaps.
Definition at line 847 of file GrD3DCaps.cpp.
Definition at line 857 of file GrD3DCaps.cpp.
|
inlinestatic |
Definition at line 65 of file GrD3DCaps.h.
|
overridevirtual |
Returns the skgpu::Swizzle to use when writing colors to a surface with the passed in GrBackendFormat and GrColorType.
Implements GrCaps.
Definition at line 1008 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 814 of file GrD3DCaps.cpp.
|
inlineoverridevirtual |
|
overridevirtual |
Implements GrCaps.
Definition at line 830 of file GrD3DCaps.cpp.
bool GrD3DCaps::isFormatRenderable | ( | DXGI_FORMAT | format, |
int | sampleCount | ||
) | const |
Definition at line 838 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 786 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 800 of file GrD3DCaps.cpp.
bool GrD3DCaps::isFormatTexturable | ( | DXGI_FORMAT | format | ) | const |
bool GrD3DCaps::isFormatUnorderedAccessible | ( | DXGI_FORMAT | format | ) | const |
|
overridevirtual |
TODO: Determine what goes in the ProgramDesc
Implements GrCaps.
Definition at line 1067 of file GrD3DCaps.cpp.
|
overridevirtual |
Implements GrCaps.
Definition at line 881 of file GrD3DCaps.cpp.
int GrD3DCaps::maxRenderTargetSampleCount | ( | DXGI_FORMAT | format | ) | const |
Definition at line 889 of file GrD3DCaps.cpp.
|
inline |
Returns both a supported and most preferred stencil format to use in draws.
Definition at line 62 of file GrD3DCaps.h.
|
inline |
Definition at line 108 of file GrD3DCaps.h.
|
inline |
Definition at line 109 of file GrD3DCaps.h.
|
overridevirtual |
Given a dst pixel config and a src color type what color type must the caller coax the the data into in order to use GrGpu::writePixels().
Implements GrCaps.
Definition at line 904 of file GrD3DCaps.cpp.
|
overridevirtual |
Backends may have restrictions on what types of surfaces support GrGpu::readPixels(). We may either be able to read directly from the surface, read from a copy of the surface, or not read at all.
Implements GrCaps.
Definition at line 926 of file GrD3DCaps.cpp.