Commit Graph

233 Commits

Author SHA1 Message Date
Luke Street 555a5bc9f5 Use immediates for buffer offsets 2026-04-22 21:36:30 -06:00
Phillip Stephens dedf11fdeb Cleanly shutdown aurora::input by telling all registered controllers to stop their rumble motors (#132) 2026-04-21 19:22:28 -07:00
Luke Street 26da4c6bb0 Better fix for zeroed texture dimensions 2026-04-21 17:39:40 -06:00
Luke Street b524038d75 Fix returning width/height of 1 for empty tex objs 2026-04-21 17:12:13 -06:00
Luke Street ccb9dc1ad7 Add depth copy support 2026-04-21 14:14:02 -06:00
Luke Street c4c5b3f4af Fix texture cache leak with immediate GXDestroyTexObj 2026-04-21 14:13:13 -06:00
Luke Street 63cc5da669 Reduce bind group cache retention & clear on resize 2026-04-21 01:06:16 -06:00
Luke Street 5d420c9f73 Arbitrary mipmap detection & texture cleanup (#131) 2026-04-20 20:33:14 -06:00
Phillip Stephens b1957f10cf Speed up writing empty blocks to memory card image. (#130)
Previously we'd write each block individually, this is extremely slow,
instead let's allocate the entirety of the dummy data and write that all at once.
This gives a considerably speed boost and prevents games from stalling at launch
2026-04-18 21:48:57 -07:00
Phillip Stephens 20a23c7d22 Fix corrupted card on init if card image didn't exist (#129) 2026-04-18 21:27:09 -07:00
Luke Street 4f8b63bba5 Check the right lightState for alpha channels 2026-04-18 15:57:08 -06:00
Luke Street c05e7aace1 Viewport scaling rework & IR configuration (#127)
This is a breaking change: `GXSetViewport`, `GXSetScissor`, `GXSetTexCopySrc`, `GXSetTexCopyDst` now accept logical coords relative to the `VIConfigure` EFB size.

`GXSetViewportRender` and `GXSetScissorRender` are used to override the scaled viewport/scissor from the logical coords.
2026-04-18 14:10:32 -06:00
Phillip Stephens c21a7f75ab Add experimental mouse API (#126)
* Add experimental mouse API

* Add aurora::core library for aurora::ms

* Add absl::flat_hash_map library for aurora::ms

* Add comment clarifying MS is an aurora extension

* Clear MSStatus::buttons to prevent spurious values

* Minor cleanup for MSRead and MS_BUTTON_* bits

* Switch to Poll -> Read paradigm

* Clear mouse scroll state before polling for events
2026-04-16 12:57:10 -07:00
Luke Street aa83f6d915 Fix viewport handling with offscreen renders 2026-04-15 22:35:48 -06:00
Phillip Stephens 5d78cd28eb Fix PADHasSensor (#125) 2026-04-15 11:33:07 -07:00
Phillip Stephens c17903d53d Add support for Gyros and controller LED colors (#124)
* Add PADGet/SetColor

* PAD Gyro API

* Fix sensor enum
2026-04-15 10:33:42 -07:00
Pieter-Jan Briers 4d7ff2ac11 PADGetButtonMappings ensures mappings are loaded (#123)
Fixes https://github.com/TwilitRealm/dusk/issues/378
2026-04-15 08:42:12 -06:00
Howard Luck 23a64946c6 Fix OSGetTime overflow on iOS (#122) 2026-04-14 23:24:44 -06:00
CraftyBoss ee8f51c895 change bswap16 to allow adreno gpus to compile shaders (#118) 2026-04-12 21:27:19 -06:00
qwertyquerty 5fee2ac628 better bp caching, xf cache, optimize fifo with realloc and remove double lookups (#110)
* optimize fifo with realloc and remove double lookups

* bp cache, xf cache, and last pipeline ref cache

* remove double lookup from find/try_emplace

* change name

* Move xfRegCache

* Update gx_test_stubs.cpp

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-12 19:40:21 -06:00
Luke Street eb17aab5e1 Delete some commented code 2026-04-12 18:56:26 -06:00
Luke Street bf46df6ba7 Simplify bind groups & improve caching 2026-04-12 18:55:35 -06:00
Luke Street ac3611e518 Improve resolve_sampled_textures performance considerably & add more traces 2026-04-12 15:35:28 -06:00
Luke Street 3a268fffa3 Fix _PC texture types 2026-04-11 13:37:32 -06:00
Luke Street aae772abfe Disable texture upload buffer 2026-04-10 18:18:29 -06:00