mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 12:17:06 +02:00
Revert "[vulkan] simplify numeric type determination"
This commit is contained in:
parent
1845d5b222
commit
3f1f20185c
1 changed files with 4 additions and 5 deletions
|
|
@ -39,7 +39,9 @@ NumericType GetNumericType(TexturePixelFormat format) {
|
||||||
if (!VideoCore::Surface::IsPixelFormatInteger(pixel_format)) {
|
if (!VideoCore::Surface::IsPixelFormatInteger(pixel_format)) {
|
||||||
return NumericType::Float;
|
return NumericType::Float;
|
||||||
}
|
}
|
||||||
return NumericType::UnsignedInt;
|
return VideoCore::Surface::IsPixelFormatSignedInteger(pixel_format)
|
||||||
|
? NumericType::SignedInt
|
||||||
|
: NumericType::UnsignedInt;
|
||||||
}
|
}
|
||||||
|
|
||||||
IR::Opcode IndexedInstruction(const IR::Inst& inst) {
|
IR::Opcode IndexedInstruction(const IR::Inst& inst) {
|
||||||
|
|
@ -448,9 +450,7 @@ public:
|
||||||
|
|
||||||
u32 Add(const ImageBufferDescriptor& desc) {
|
u32 Add(const ImageBufferDescriptor& desc) {
|
||||||
const u32 index{Add(image_buffer_descriptors, desc, [&desc](const auto& existing) {
|
const u32 index{Add(image_buffer_descriptors, desc, [&desc](const auto& existing) {
|
||||||
return desc.format == existing.format &&
|
return desc.format == existing.format && desc.cbuf_index == existing.cbuf_index &&
|
||||||
desc.numeric_type == existing.numeric_type &&
|
|
||||||
desc.cbuf_index == existing.cbuf_index &&
|
|
||||||
desc.cbuf_offset == existing.cbuf_offset && desc.count == existing.count &&
|
desc.cbuf_offset == existing.cbuf_offset && desc.count == existing.count &&
|
||||||
desc.size_shift == existing.size_shift;
|
desc.size_shift == existing.size_shift;
|
||||||
})};
|
})};
|
||||||
|
|
@ -480,7 +480,6 @@ public:
|
||||||
u32 Add(const ImageDescriptor& desc) {
|
u32 Add(const ImageDescriptor& desc) {
|
||||||
const u32 index{Add(image_descriptors, desc, [&desc](const auto& existing) {
|
const u32 index{Add(image_descriptors, desc, [&desc](const auto& existing) {
|
||||||
return desc.type == existing.type && desc.format == existing.format &&
|
return desc.type == existing.type && desc.format == existing.format &&
|
||||||
desc.numeric_type == existing.numeric_type &&
|
|
||||||
desc.cbuf_index == existing.cbuf_index &&
|
desc.cbuf_index == existing.cbuf_index &&
|
||||||
desc.cbuf_offset == existing.cbuf_offset && desc.count == existing.count &&
|
desc.cbuf_offset == existing.cbuf_offset && desc.count == existing.count &&
|
||||||
desc.size_shift == existing.size_shift;
|
desc.size_shift == existing.size_shift;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue