vulkan: Add pixel-formats to query format properties

We need a database of pixel format properties to remove hardcoded magic
numbers. This commit creates a simple function to query the bytes per
pixel for common RGBA formats.

This should be promoted to or superseeded by a common spa namespaced
version.
This commit is contained in:
columbarius 2023-09-24 00:09:14 +02:00 committed by Wim Taymans
parent 49b67742c6
commit c3327742cc
6 changed files with 57 additions and 3 deletions

View file

@ -1,5 +1,6 @@
spa_vulkan_sources = [
'plugin.c',
'pixel-formats.c',
'vulkan-compute-filter.c',
'vulkan-compute-source.c',
'vulkan-compute-utils.c',