35#include <initializer_list>
46 using namespace skgpu;
52 auto mbet = sk_gpu_test::ManagedBackendTexture::MakeWithoutData(
112 using namespace skgpu;
119 for (
int sampleCnt : {1, 4}) {
126 gpu->createTestingOnlyBackendRenderTarget({
kW,
kH}, ct, sampleCnt, isProtected);
127 if (!origBackendRT.
isValid()) {
157 gpu->deleteTestingOnlyBackendRenderTarget(origBackendRT);
162 using namespace skgpu;
168 auto mbet = sk_gpu_test::ManagedBackendTexture::MakeWithoutData(
214 bool shouldSucceed = maxSamples > 1;
234 auto dContext = ctxInfo.directContext();
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
@ kBorrow_GrWrapOwnership
static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct)
skgpu::Protected Protected
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static constexpr bool SkToBool(const T &x)
#define DEF_GANESH_TEST_FOR_VULKAN_CONTEXT(name, reporter, context_info, ctsEnforcement)
#define REPORTER_ASSERT(r, cond,...)
static constexpr auto kColorType
GrBackendFormat getBackendFormat() const
const GrCaps * caps() const
virtual int maxRenderTargetSampleCount(const GrBackendFormat &) const =0
bool supportsProtectedContent() const
GrBackendFormat getDefaultBackendFormat(GrColorType, GrRenderable) const
GrDirectContextPriv priv()
const GrCaps * caps() const
sk_sp< GrTexture > wrapBackendTexture(const GrBackendTexture &, GrWrapOwnership, GrWrapCacheable, GrIOType)
sk_sp< GrRenderTarget > wrapBackendRenderTarget(const GrBackendRenderTarget &)
sk_sp< GrTexture > wrapRenderableBackendTexture(const GrBackendTexture &, int sampleCnt, GrWrapOwnership, GrWrapCacheable)
uint32_t uint32_t * format
SK_API bool GetVkImageInfo(const GrBackendRenderTarget &, GrVkImageInfo *)
SK_API GrBackendRenderTarget MakeVk(int width, int height, const GrVkImageInfo &)
SK_API GrBackendTexture MakeVk(int width, int height, const GrVkImageInfo &, std::string_view label={})
SK_API bool GetVkImageInfo(const GrBackendTexture &, GrVkImageInfo *)
skgpu::VulkanAlloc fAlloc