Lines Matching refs:GrMtlCaps
8 #include "src/gpu/mtl/GrMtlCaps.h"
31 GrMtlCaps::GrMtlCaps(const GrContextOptions& contextOptions, const id<MTLDevice> device, function
49 void GrMtlCaps::initFeatureSet(MTLFeatureSet featureSet) {
155 bool GrMtlCaps::canCopyAsBlit(GrSurface* dst,
177 bool GrMtlCaps::canCopyAsBlit(MTLPixelFormat dstFormat, int dstSampleCount,
197 bool GrMtlCaps::canCopyAsResolve(GrSurface* dst,
213 bool GrMtlCaps::canCopyAsResolve(MTLPixelFormat dstFormat, int dstSampleCount,
240 bool GrMtlCaps::onCanCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src,
268 void GrMtlCaps::initGrCaps(id<MTLDevice> device) {
370 bool GrMtlCaps::isFormatSRGB(const GrBackendFormat& format) const {
374 bool GrMtlCaps::isFormatTexturable(const GrBackendFormat& format) const {
379 bool GrMtlCaps::isFormatTexturable(MTLPixelFormat format) const {
384 bool GrMtlCaps::isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format,
398 bool GrMtlCaps::isFormatRenderable(const GrBackendFormat& format, int sampleCount) const {
402 bool GrMtlCaps::isFormatRenderable(MTLPixelFormat format, int sampleCount) const {
406 int GrMtlCaps::maxRenderTargetSampleCount(const GrBackendFormat& format) const {
410 int GrMtlCaps::maxRenderTargetSampleCount(MTLPixelFormat format) const {
420 int GrMtlCaps::getRenderTargetSampleCount(int requestedCount,
427 int GrMtlCaps::getRenderTargetSampleCount(int requestedCount, MTLPixelFormat format) const {
444 void GrMtlCaps::initShaderCaps() {
487 void GrMtlCaps::applyDriverCorrectnessWorkarounds(const GrContextOptions&,
533 void GrMtlCaps::setColorType(GrColorType colorType, std::initializer_list<MTLPixelFormat> formats) {
563 size_t GrMtlCaps::GetFormatIndex(MTLPixelFormat pixelFormat) {
564 static_assert(SK_ARRAY_COUNT(kMtlFormats) == GrMtlCaps::kNumMtlFormats,
566 for (size_t i = 0; i < GrMtlCaps::kNumMtlFormats; ++i) {
574 void GrMtlCaps::initFormatTable() {
917 void GrMtlCaps::initStencilFormat(id<MTLDevice> physDev) {
921 bool GrMtlCaps::onSurfaceSupportsWritePixels(const GrSurface* surface) const {
928 GrCaps::SurfaceReadPixelsSupport GrMtlCaps::surfaceSupportsReadPixels(
938 GrCaps::DstCopyRestrictions GrMtlCaps::getDstCopyRestrictions(const GrRenderTargetProxy* src,
953 bool GrMtlCaps::onAreColorTypeAndFormatCompatible(GrColorType ct,
966 GrBackendFormat GrMtlCaps::onGetDefaultBackendFormat(GrColorType ct) const {
974 GrBackendFormat GrMtlCaps::getBackendFormatFromCompressionType(
999 GrSwizzle GrMtlCaps::onGetReadSwizzle(const GrBackendFormat& format, GrColorType colorType) const {
1014 GrSwizzle GrMtlCaps::getWriteSwizzle(const GrBackendFormat& format, GrColorType colorType) const {
1029 uint64_t GrMtlCaps::computeFormatKey(const GrBackendFormat& format) const {
1039 GrCaps::SupportedWrite GrMtlCaps::supportedWritePixelsColorType(
1056 GrCaps::SupportedRead GrMtlCaps::onSupportedReadPixelsColorType(
1096 GrProgramDesc GrMtlCaps::makeDesc(GrRenderTarget* rt,
1129 MTLPixelFormat GrMtlCaps::getStencilPixelFormat(const GrProgramDesc& desc) {
1142 std::vector<GrCaps::TestFormatColorTypeCombination> GrMtlCaps::getTestingCombinations() const {
1180 void GrMtlCaps::onDumpJSON(SkJSONWriter* writer) const {
1215 void GrMtlCaps::onDumpJSON(SkJSONWriter* writer) const { }