mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-16 07:33:14 +00:00
shader_recompiler: Implement shader export formats. (#2226)
This commit is contained in:
parent
b3c573f798
commit
56f4b8a2b8
14 changed files with 286 additions and 57 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue