49 using namespace skgpu;
51 auto dContext = ctxInfo.directContext();
53 Protected isProtected =
Protected(dContext->priv().caps()->supportsProtectedContent());
64 uint32_t initQueue =
info.fCurrentQueueFamily;
147 dContext->setBackendTextureState(backendTex, newState, &previousState);
161 dContext->setBackendTextureState(backendTex, noopState, &previousState);
178 dContext->setBackendTextureState(backendTex, externalState, &previousState);
196 dContext->setBackendTextureState(backendTex, externalState2, &previousState);
211 dContext->deleteBackendTexture(backendTex);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kTopLeft_GrSurfaceOrigin
skgpu::Protected Protected
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static bool ok(int result)
#define DEF_GANESH_TEST_FOR_VULKAN_CONTEXT(name, reporter, context_info, ctsEnforcement)
#define REPORTER_ASSERT(r, cond,...)
void setMutableState(const skgpu::MutableTextureState &)
GrTexture * peekTexture() const
bool isInstantiated() const
bool supportsExternalMemory() const
uint32_t queueIndex() const
const GrVkCaps & vkCaps() const
void setQueueFamilyIndex(uint32_t queueFamilyIndex)
VkImageLayout currentLayout() const
void updateImageLayout(VkImageLayout newLayout)
uint32_t currentQueueFamilyIndex() const
BackendApi backend() const
uint32_t uint32_t * format
SK_API bool GetVkImageInfo(const GrBackendTexture &, GrVkImageInfo *)
SK_API bool GetBackendTextureFromImage(const SkImage *img, GrBackendTexture *outTexture, bool flushPendingGrContextIO, GrSurfaceOrigin *origin=nullptr)
SK_API sk_sp< SkImage > BorrowTextureFrom(GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState &state)
SK_API MutableTextureState MakeVulkan(VkImageLayout layout, uint32_t queueFamilyIndex)
SK_API VkImageLayout GetVkImageLayout(const MutableTextureState &state)
@ VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
@ VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
@ VK_IMAGE_LAYOUT_UNDEFINED
@ VK_IMAGE_LAYOUT_GENERAL
#define VK_QUEUE_FAMILY_EXTERNAL
@ VK_FORMAT_R8G8B8A8_UNORM
#define VK_QUEUE_FAMILY_IGNORED