Searched refs:hwbFormatProps (Results 1 – 4 of 4) sorted by relevance
114 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in GetBackendFormat() local115 hwbFormatProps.sType = in GetBackendFormat()117 hwbFormatProps.pNext = nullptr; in GetBackendFormat()121 hwbProps.pNext = &hwbFormatProps; in GetBackendFormat()130 if (hwbFormatProps.format != VK_FORMAT_UNDEFINED) { in GetBackendFormat()135 ycbcrConversion.fYcbcrModel = hwbFormatProps.suggestedYcbcrModel; in GetBackendFormat()136 ycbcrConversion.fYcbcrRange = hwbFormatProps.suggestedYcbcrRange; in GetBackendFormat()137 ycbcrConversion.fXChromaOffset = hwbFormatProps.suggestedXChromaOffset; in GetBackendFormat()138 ycbcrConversion.fYChromaOffset = hwbFormatProps.suggestedYChromaOffset; in GetBackendFormat()140 ycbcrConversion.fExternalFormat = hwbFormatProps.externalFormat; in GetBackendFormat()[all …]
178 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in make_vk_backend_texture() local179 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in make_vk_backend_texture()180 hwbFormatProps.pNext = nullptr; in make_vk_backend_texture()184 hwbProps.pNext = &hwbFormatProps; in make_vk_backend_texture()201 if (hwbFormatProps.format != VK_FORMAT_UNDEFINED) { in make_vk_backend_texture()204 SkASSERT(SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in make_vk_backend_texture()205 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in make_vk_backend_texture()206 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in make_vk_backend_texture()211 SkASSERT(SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures)); in make_vk_backend_texture()213 SkASSERT(hwbFormatProps.externalFormat == ycbcrConversion->fExternalFormat); in make_vk_backend_texture()[all …]
655 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in importHardwareBuffer() local656 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in importHardwareBuffer()657 hwbFormatProps.pNext = nullptr; in importHardwareBuffer()661 hwbProps.pNext = &hwbFormatProps; in importHardwareBuffer()669 REPORTER_ASSERT(reporter, VK_FORMAT_R8G8B8A8_UNORM == hwbFormatProps.format); in importHardwareBuffer()671 SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()672 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()673 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()676 SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()680 bool useExternalFormat = VK_FORMAT_UNDEFINED == hwbFormatProps.format; in importHardwareBuffer()[all …]
645 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in importHardwareBuffer() local646 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in importHardwareBuffer()647 hwbFormatProps.pNext = nullptr; in importHardwareBuffer()651 hwbProps.pNext = &hwbFormatProps; in importHardwareBuffer()659 REPORTER_ASSERT(reporter, VK_FORMAT_R8G8B8A8_UNORM == hwbFormatProps.format); in importHardwareBuffer()661 SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()662 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()663 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()666 SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()670 bool useExternalFormat = VK_FORMAT_UNDEFINED == hwbFormatProps.format; in importHardwareBuffer()[all …]