19 void* pNext =
nullptr;
28 if (!ycbcrConversion) {
33 conversionInfo.
pNext =
nullptr;
35 pNext = &conversionInfo;
66void GrVkImageView::freeGPUData()
const {
69 if (fYcbcrConversion) {
70 fYcbcrConversion->
unref();
#define GR_VK_CALL(IFACE, X)
#define GR_VK_CALL_RESULT(GPU, RESULT, X)
bool supportsYcbcrConversion() const
const GrVkCaps & vkCaps() const
const skgpu::VulkanInterface * vkInterface() const
GrVkResourceProvider & resourceProvider()
VkImageView imageView() const
static sk_sp< const GrVkImageView > Make(GrVkGpu *gpu, VkImage image, VkFormat format, Type viewType, uint32_t miplevels, const skgpu::VulkanYcbcrConversionInfo &ycbcrInfo)
GrVkSamplerYcbcrConversion * findOrCreateCompatibleSamplerYcbcrConversion(const skgpu::VulkanYcbcrConversionInfo &ycbcrInfo)
VkSamplerYcbcrConversion ycbcrConversion() const
uint32_t uint32_t * format
sk_sp< const SkImage > image
VkImageAspectFlags aspectMask
VkImageSubresourceRange subresourceRange
VkSamplerYcbcrConversion conversion
@ VK_IMAGE_ASPECT_COLOR_BIT
@ VK_IMAGE_ASPECT_STENCIL_BIT
@ VK_COMPONENT_SWIZZLE_IDENTITY
@ VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO
@ VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO