Polygon offset (depth bias) is not mapped to Metal #18
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@LakshanSivakumar on GitHub · 2026-11-26 09:20 UTC · original
The depth bias fields of the rasterizer state are not passed to Metal (setDepthBias:slopeScale:clamp:). Decals and shadow maps will z-fight once the 3D world renders. Read the bias from the register image along with cull, depth and stencil.
@LakshanSivakumar on GitHub · 2026-11-26 10:53 UTC · original
Partial progress: #25 merged to
main, sovictory-metalnow callssetDepthBias:slopeScale:clamp:on every draw (zero bias resets prior bias in the same pass).Remaining work for this issue: decode the depth bias fields from the 0x1c8 register image into
Graphics::guess_fromfor guessed pipelines.