Merge pull request #547 from OFFTKP/hashing

Fix hashing for FragmentConfig
This commit is contained in:
wheremyfoodat
2024-07-21 14:27:30 +00:00
committed by GitHub

View File

@@ -12,11 +12,11 @@
namespace PICA { namespace PICA {
struct OutputConfig { struct OutputConfig {
union { union {
u32 raw; u32 raw{};
// Merge the enable + compare function into 1 field to avoid duplicate shaders // Merge the enable + compare function into 1 field to avoid duplicate shaders
// enable == off means a CompareFunction of Always // enable == off means a CompareFunction of Always
BitField<0, 3, CompareFunction> alphaTestFunction; BitField<0, 3, CompareFunction> alphaTestFunction;
BitField<4, 1, u32> depthMapEnable; BitField<3, 1, u32> depthMapEnable;
}; };
}; };