Lines Matching refs:hwbFormatProps
114 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in GetBackendFormat() local
115 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()
141 ycbcrConversion.fExternalFormatFeatures = hwbFormatProps.formatFeatures; in GetBackendFormat()
143 hwbFormatProps.formatFeatures) { in GetBackendFormat()
295 VkAndroidHardwareBufferFormatPropertiesANDROID hwbFormatProps; in make_vk_backend_texture() local
296 hwbFormatProps.sType = VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; in make_vk_backend_texture()
297 hwbFormatProps.pNext = nullptr; in make_vk_backend_texture()
301 hwbProps.pNext = &hwbFormatProps; in make_vk_backend_texture()
318 if (hwbFormatProps.format != VK_FORMAT_UNDEFINED) { in make_vk_backend_texture()
321 SkASSERT(SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures) && in make_vk_backend_texture()
322 SkToBool(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT & hwbFormatProps.formatFeatures) && in make_vk_backend_texture()
323 SkToBool(VK_FORMAT_FEATURE_TRANSFER_DST_BIT & hwbFormatProps.formatFeatures)); in make_vk_backend_texture()
328 SkASSERT(SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & hwbFormatProps.formatFeatures)); in make_vk_backend_texture()
330 SkASSERT(hwbFormatProps.externalFormat == ycbcrConversion->fExternalFormat); in make_vk_backend_texture()
331 externalFormat.externalFormat = hwbFormatProps.externalFormat; in make_vk_backend_texture()
333 SkASSERT(format == hwbFormatProps.format); in make_vk_backend_texture()