shader_recompiler: Proper support for inst-typed buffer format operations. (#2469)

This commit is contained in:
squidbus
2025-02-21 03:01:18 -08:00
committed by GitHub
parent 6860bb7349
commit 9424047214
6 changed files with 167 additions and 207 deletions

View File

@@ -262,6 +262,13 @@ private:
}
};
static constexpr CompMapping IdentityMapping = {
.r = CompSwizzle::Red,
.g = CompSwizzle::Green,
.b = CompSwizzle::Blue,
.a = CompSwizzle::Alpha,
};
inline DataFormat RemapDataFormat(const DataFormat format) {
switch (format) {
case DataFormat::Format11_11_10: