mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-30 22:14:56 +00:00
more formats
This commit is contained in:
parent
533d744e0e
commit
4d9aa4b933
@ -339,6 +339,8 @@ std::span<const vk::Format> GetAllFormats() {
|
|||||||
vk::Format::eR32Uint,
|
vk::Format::eR32Uint,
|
||||||
vk::Format::eBc6HUfloatBlock,
|
vk::Format::eBc6HUfloatBlock,
|
||||||
vk::Format::eR16G16Unorm,
|
vk::Format::eR16G16Unorm,
|
||||||
|
vk::Format::eR16G16B16A16Sscaled,
|
||||||
|
vk::Format::eR16G16Sscaled,
|
||||||
};
|
};
|
||||||
return formats;
|
return formats;
|
||||||
}
|
}
|
||||||
@ -395,6 +397,10 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
|
|||||||
num_format == AmdGpu::NumberFormat::Sint) {
|
num_format == AmdGpu::NumberFormat::Sint) {
|
||||||
return vk::Format::eR16G16B16A16Sint;
|
return vk::Format::eR16G16B16A16Sint;
|
||||||
}
|
}
|
||||||
|
if (data_format == AmdGpu::DataFormat::Format16_16_16_16 &&
|
||||||
|
num_format == AmdGpu::NumberFormat::Sscaled) {
|
||||||
|
return vk::Format::eR16G16B16A16Sscaled;
|
||||||
|
}
|
||||||
if (data_format == AmdGpu::DataFormat::Format16_16 &&
|
if (data_format == AmdGpu::DataFormat::Format16_16 &&
|
||||||
num_format == AmdGpu::NumberFormat::Float) {
|
num_format == AmdGpu::NumberFormat::Float) {
|
||||||
return vk::Format::eR16G16Sfloat;
|
return vk::Format::eR16G16Sfloat;
|
||||||
@ -503,6 +509,10 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
|
|||||||
num_format == AmdGpu::NumberFormat::Sint) {
|
num_format == AmdGpu::NumberFormat::Sint) {
|
||||||
return vk::Format::eR16G16Sint;
|
return vk::Format::eR16G16Sint;
|
||||||
}
|
}
|
||||||
|
if (data_format == AmdGpu::DataFormat::Format16_16 &&
|
||||||
|
num_format == AmdGpu::NumberFormat::Sscaled) {
|
||||||
|
return vk::Format::eR16G16Sscaled;
|
||||||
|
}
|
||||||
if (data_format == AmdGpu::DataFormat::Format8_8_8_8 &&
|
if (data_format == AmdGpu::DataFormat::Format8_8_8_8 &&
|
||||||
num_format == AmdGpu::NumberFormat::Uscaled) {
|
num_format == AmdGpu::NumberFormat::Uscaled) {
|
||||||
return vk::Format::eR8G8B8A8Uscaled;
|
return vk::Format::eR8G8B8A8Uscaled;
|
||||||
|
Loading…
Reference in New Issue
Block a user