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 …]
650 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in importHardwareBuffer() local651 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in importHardwareBuffer()652 hwbFormatProps.pNext = nullptr; in importHardwareBuffer()656 hwbProps.pNext = &hwbFormatProps; in importHardwareBuffer()664 REPORTER_ASSERT(reporter, VK_FORMAT_R8G8B8A8_UNORM == hwbFormatProps.format); in importHardwareBuffer()666 SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()667 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()668 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()671 SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()675 bool useExternalFormat = VK_FORMAT_UNDEFINED == hwbFormatProps.format; in importHardwareBuffer()[all …]
644 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in importHardwareBuffer() local645 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in importHardwareBuffer()646 hwbFormatProps.pNext = nullptr; in importHardwareBuffer()650 hwbProps.pNext = &hwbFormatProps; in importHardwareBuffer()658 REPORTER_ASSERT(reporter, VK_FORMAT_R8G8B8A8_UNORM == hwbFormatProps.format); in importHardwareBuffer()660 SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()661 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in importHardwareBuffer()662 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()665 SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & hwbFormatProps.formatFeatures)); in importHardwareBuffer()669 bool useExternalFormat = VK_FORMAT_UNDEFINED == hwbFormatProps.format; in importHardwareBuffer()[all …]