mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 00:50:43 +00:00
Flat DrawInstanced ignored InstanceCount, StartInstanceLocation and StartVertexLocation, so a zero-instance draw still drew and a changed start vertex drew the first triangle. Zero instances or fewer than three vertices now draw nothing; other unsupported parameters fail with GraphicsError::Unsupported. Vertex reads use the range-checked read_resource, so a view past its buffer or an overflowing guest address fails with IndexOutOfRange. Add tests/repeated_frames.rs: repeated reset, record, close and execute frames with hand-derived pixels on the software reference backend. Signed-off-by: Swastickc <28708247+Swastickc@users.noreply.github.com>