Commit Graph
63 Commits
Author SHA1 Message Date
louist103andGitHub 62f9df4f74 Update RCP and RSP (#833)
* Update RCP and RSP

* Format
2025-03-21 21:43:03 -04:00
LywxandGitHub 7e0f42e952 Implemented osSetTime to fix osGetTime not using boot time (#829)
* Implemented osSetTime to fix osGetTime not using boot time

* Fixed tidy
2025-03-21 20:45:45 -04:00
LywxandGitHub 5040e9d743 Moved shaders to prism lang (#821)
* Implemented shader load and prism

* Bump prism

* Moved shaders to prism

* Fixed some compilation issues

* Fixed windows compilation errors

* Fully ported directx to prism

* Ported metal shader to prism

* Bump prism and fixed metal

* Removed log on metal

* Bump prism and fixed some compilation errors

* Fixed tidy

* Fixed tidy again

* Bump prism

* Bump to fix linux

* Bump prism

* Fixed missing semantics on texClamp

* Bump prism to add include support

* Bump prism to fix missing include

* Fixed tidy
2025-03-13 21:56:05 -04:00
LywxandGitHub 4a4a54c842 Added simple gfx trace system (#559)
* Rebased

* Fixed tidy

* Fixed tidy again

* Added trace on F3DGwords

* Fixed static_assert to count for Trace

* Wrapped gbi trace into an ifdef

* Fixed tidy
2024-12-01 14:52:57 -05:00
coco875andGitHub 9144f538ad remove some warning (#654)
* remove some warning

* normally work on alll os

* Update CMakeLists.txt

* fix format and windows hopefully

* fix windows

* remove some error

* fix format
2024-10-19 09:33:40 -04:00
ArchezandGitHub 4160fa0aa0 Add opcode for (un)registering blended textures as a gfx instruction (#673) 2024-09-15 13:33:11 -04:00
ArchezandGitHub d64dd46ae2 Fix up mtx and vtx otr opcodes (#674) 2024-09-15 11:52:19 -04:00
ArchezandGitHub b59bf87a62 Various warning fixes (#663)
* various warning fixes

* extra log statement for invalid ucode

* Update gfx_pc.cpp

* revert config change
2024-08-26 13:08:57 -04:00
LywxandGitHub 9babd56c2a Implemented light factory and otr light support (#659)
* Implemented light factory and otr light support

* Fixed wrong include

* Removed ghost submodule

* Renamed structs to make them verbose

* Fixed passing private variable

* Added documetation on pads

* Fixed tidy
2024-08-20 17:53:58 -04:00
Garrett CoxandGitHub 3e4b6c81c6 Add geometry mode for forcing branch execution (#605) 2024-05-27 11:50:00 -04:00
MegaMechandGitHub 0c9472eb5a Implement G_QUAD for f3dex (#599)
* Update gfx_pc.cpp

* Update gfx_pc.cpp

* Update gbi.h

* Update f3dex.h
2024-05-27 11:25:56 -04:00
LywxandGitHub c3103a357a Fixed render and compile issues on f3dex (#598)
* Fixed culling issues on f3dex and added Fast3DWindow

* Fixed wrong includes

* Fixed missing macro on not f3dex2 gbi

* Fixed wrong macro name

* Fixed dumb missing cast

* Fixed Tidy
2024-05-27 11:13:54 -04:00
ArchezandGitHub ff9e2f7494 only include relevant headers for gu (#572) 2024-05-08 21:55:55 -04:00
LywxandGitHub 6dc4bd1786 Libultra implementations (#493)
* Rebased towards latest main

* Fixed tidy

* Implemented rumble on multiple controllers

(cherry picked from commit 6064d7b9727d7870629105ad5750be3e88202a05)

* Implemented first version of osContGetStatus

* Fixed dumb mistake

(cherry picked from commit ee95529f15d0dc775373b103600055092d5ce8be)

* Added channel copy on osMotorInit

* Implemented eeprom support and fixed rumble

* Fixed tidy on rcp.h

* Fixed tidy on gu.h

* Implemented eeprom support and fixed rumble

(cherry picked from commit 0c3e1aca29d0c77ededad745ccbdb9ec21283828)

* Fixed libultraship include

* Moved os.h header to libultra

* Fixed includes on os.h

* Removed LUS::Controller changes

* Removed whitespace

* Removed added newline

* Renamed to Ship::Context

* Removed WiiU Defines

* Fixed osAiSetNextBuffer definitions

* Fixed linking issues
2024-05-06 21:11:20 -04:00
louist103andGitHub 7b8e5215de Remove math related to macros (#560) 2024-05-06 21:05:54 -04:00
LywxandGitHub 17ee2dbc36 Splitted opcodes into f3d/ex and f3dex2 (#557)
* Splitted opcodes into f3dex and f3dex2

* Fixed tidy

* Fixed ucode_attr_handlers for f3d

* Added f3dHandlers and fixed headers

* Removed duplicated gbi commands

* Removed wrong cases on switch

* Fixed wrong type on G_SETGEOMETRYMODE

* Fixed mtx_push
2024-05-06 18:11:31 -04:00
louist103andGitHub 5b7164ea38 GFX Refactor Stage 2 (#495)
* Create lus_gbi and build gfx_pc with it

* MM builds and runs

* All opcodes changed to use constexpr

* Fix signed compare

* Add names to opcodes for the debugger

* cleanup DL factory

* Cleanup warnings

* changes for s2dex

* oops forgot some opcodes

* re add gbi.h to the DL factory

* re add gbi.h to the VTX factory

* Format
2024-05-05 18:42:03 -04:00
MegaMechandGitHub 068ee3fb22 Fix spelling boo boo in internal.h (#550) 2024-05-04 00:09:46 -04:00
briaguyaandGitHub 3d2e6bc128 Remove Switch (#531) 2024-04-29 19:19:19 -04:00
briaguyaandGitHub 04066deb10 Remove Wii U (#528) 2024-04-29 18:54:51 -04:00
LywxandGitHub a245aaf975 Added ios support (#491) 2024-04-28 00:15:13 -04:00
ArchezandGitHub dedff4fd92 add byteswap support to read framebuffer (#512) 2024-04-25 18:00:27 -04:00
briaguyaandGitHub e6626f520c replace hardcoded uint16_t with CONTROLLERBUTTONS_T (#504)
* replace hardcoded `uint16_t` with `CONTROLLERBUTTONS_T`

* clang format

* update `OSContPad`
2024-04-22 20:48:07 -04:00
ArchezandGitHub 96684915df Add opcode for reading a framebuffer texture to a cpu buffer (#480)
* Add resize flag for framebuffer scaling

* add readfb gbi command

* stub wiiu

* implement readfb for opengl

* implement readfb for metal

* implement readfb for directx

* rename and comments
2024-04-13 01:42:50 -04:00
c3a6994037 GFX Refactor | Stage 1 (#461)
* All opcodes in the map

* dynamic switching

* Bring over Jack's work from from THE PROJECT

Co-authored-by: Nicholas Estelami <NEstelami@users.noreply.github.com>

* -Split RDP and RSP commands.
-Split custom commands and original commands.
-Rework how commands are processed so custom commands, and RDP commands are always run regardless of which ucode is loaded

* Remove extern C from internal function

* Remove G_SETPRIMDEPTH from f3dex2 handlers

* Bria's fixes
-Cleanup comments
-Remove all GBI related ifdefs from functions and move them to the map

---------

Co-authored-by: Nicholas Estelami <NEstelami@users.noreply.github.com>
2024-04-03 18:47:49 -04:00