mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-29 08:41:20 +00:00
graphics: emit PS5 register object and primitive IDs to RT7
This commit is contained in:
1 parent
d172ab75ca
commit
f7226ca7dc
15 files changed
+291
-101
No files matched your search
@@ -245,6 +245,7 @@ enum class StageOutputKind {
|
||||
Position,
|
||||
Parameter,
|
||||
Mrt,
|
||||
ObjectPrimitiveId,
|
||||
Depth,
|
||||
SampleMask,
|
||||
PointSize,
|
||||
@@ -350,6 +351,10 @@ struct PushData {
|
||||
static constexpr uint32_t NoStart = UINT32_MAX;
|
||||
std::array<uint32_t, DwordCount> dwords {};
|
||||
|
||||
[[nodiscard]] static constexpr uint32_t GraphicsDrawDwords(bool mesh, bool object_id) {
|
||||
return mesh ? MeshDrawDwordCount : static_cast<uint32_t>(object_id);
|
||||
}
|
||||
|
||||
[[nodiscard]] static constexpr bool CanFit(uint32_t start, uint32_t size) {
|
||||
return size != 0 && start <= DwordCount && size <= DwordCount - start;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user