Fix SurfaceFormat Format4_4_4_4 (#2193)

* Fix SurfaceFormat Format4_4_4_4

Pac-Man 256

* add_extension
This commit is contained in:
DanielSvoboda 2025-01-19 20:09:10 -03:00 committed by GitHub
parent 201f2817ca
commit 80092b6367
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -618,7 +618,7 @@ std::span<const SurfaceFormatInfo> SurfaceFormats() {
vk::Format::eR5G5B5A1UnormPack16),
// 4_4_4_4
CreateSurfaceFormatInfo(AmdGpu::DataFormat::Format4_4_4_4, AmdGpu::NumberFormat::Unorm,
vk::Format::eR4G4B4A4UnormPack16),
vk::Format::eA4B4G4R4UnormPack16),
// 8_24
// 24_8
// X24_8_32

View file

@ -283,6 +283,7 @@ bool Instance::CreateDevice() {
add_extension(VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME);
add_extension(VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME);
add_extension(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
add_extension(VK_EXT_4444_FORMATS_EXTENSION_NAME);
#ifdef __APPLE__
// Required by Vulkan spec if supported.