mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
shader_recompiler: Implement shader export formats. (#2226)
This commit is contained in:
@@ -266,6 +266,10 @@ struct Liverpool {
|
||||
BitField<20, 4, ShaderExportFormat> col5;
|
||||
BitField<24, 4, ShaderExportFormat> col6;
|
||||
BitField<28, 4, ShaderExportFormat> col7;
|
||||
|
||||
[[nodiscard]] ShaderExportFormat GetFormat(const u32 buf_idx) const {
|
||||
return static_cast<ShaderExportFormat>((raw >> (buf_idx * 4)) & 0xfu);
|
||||
}
|
||||
};
|
||||
|
||||
union VsOutputControl {
|
||||
|
||||
Reference in New Issue
Block a user