vulkan: Add pixel-formats to query format properties

This commit is contained in:
columbarius 2023-09-24 00:09:14 +02:00
parent 439758f681
commit 80fa9ee516
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/* Spa */
/* SPDX-FileCopyrightText: Copyright © 2023 columbarius */
/* SPDX-License-Identifier: MIT */
#include <stdint.h>
#include <stdbool.h>
struct pixel_format_info {
uint32_t bpp; // bytes per pixel
};
bool get_pixel_format_info(uint32_t format, struct pixel_format_info *info);