dataformat used by DMC4

This commit is contained in:
georgemoralis 2024-07-11 19:31:39 +03:00
parent ecad6cd1a7
commit 4de9d9cf0d
1 changed files with 4 additions and 0 deletions

View File

@ -441,6 +441,10 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eR16G16B16A16Unorm;
}
if (data_format == AmdGpu::DataFormat::Format16_16 &&
num_format == AmdGpu::NumberFormat::Uint) {
return vk::Format::eR16G16Uint;
}
UNREACHABLE_MSG("Unknown data_format={} and num_format={}", u32(data_format), u32(num_format));
}