60 {
62
63 bool useExternalFormat = static_cast<bool>(
66
68 ycbcrCreateInfo.
pNext =
nullptr;
71
103
104#ifdef SK_BUILD_FOR_ANDROID
106 if (useExternalFormat) {
108 externalFormat.
pNext =
nullptr;
111 ycbcrCreateInfo.
pNext = &externalFormat;
112 }
113#endif
114
115 VkSamplerYcbcrConversion conversion;
119 CreateSamplerYcbcrConversion(
120 context->device(), &ycbcrCreateInfo, nullptr, &conversion));
122 return nullptr;
123 }
125}
uint32_t uint32_t * format
static constexpr uint32_t kYChromaOffsetMask
static constexpr uint32_t kComponentAMask
static constexpr uint32_t kYcbcrRangeMask
static constexpr int kComponentBShift
static constexpr int kChromaFilterShift
static constexpr uint32_t kComponentGMask
static constexpr uint32_t kXChromaOffsetMask
static constexpr int kYChromaOffsetShift
static constexpr int kComponentAShift
static constexpr uint32_t kUseExternalFormatMask
static constexpr uint32_t kYcbcrModelMask
static constexpr int kYcbcrRangeShift
static constexpr int kUsesExternalFormatShift
static constexpr int kComponentRShift
static constexpr int kComponentGShift
static constexpr int kForceExplicitReconShift
static constexpr uint32_t kChromaFilterMask
static constexpr int kXChromaOffsetShift
static constexpr uint32_t kForceExplicitReconMask
static constexpr uint32_t kComponentRMask
static constexpr uint32_t kComponentBMask
static constexpr int kYcbcrModelShift
VkChromaLocation xChromaOffset
VkComponentMapping components
VkSamplerYcbcrRange ycbcrRange
VkBool32 forceExplicitReconstruction
VkSamplerYcbcrModelConversion ycbcrModel
VkChromaLocation yChromaOffset
VkSamplerYcbcrModelConversion
@ VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO