Commit Graph

24074 Commits

Author SHA1 Message Date
Samuliak c24e3c23ff
bind vertex buffers 2024-10-05 15:40:10 +02:00
Samuliak 89ff6909a9
bind stage buffers 2024-10-05 15:25:11 +02:00
Samuliak a66708e362
rework the binding system 2024-10-05 15:06:58 +02:00
Samuliak 08dbc9bd8d
prevent buffer view from crashing 2024-10-05 14:11:58 +02:00
Samuliak 1b690aab26
fix: texture coords for texture arrays 2024-10-05 13:51:32 +02:00
Samuliak c921e32d48
Merge branch 'dev' into metal-dev 2024-10-05 13:20:03 +02:00
Samuliak 40def7017c
include fmt/ranges.h 2024-10-05 09:10:15 +02:00
Samuliak c52427b676
mark format functions as const 2024-10-05 08:04:46 +02:00
Samuliak 4844961618 merge 'dev' into 'metal-dev' 2024-10-05 07:56:18 +02:00
CrimsonHawk 509b880eec
Revert all the trash commits that were breaking build, back to e5c47e911b
This reverts commit 592f93b26c.
2024-10-05 13:50:31 +08:00
Samuliak 8824486af6 merge 'dev' into 'metal-dev' 2024-10-04 17:33:13 +02:00
Samuliak 909a4290d1 save compiled functions 2024-10-04 16:30:28 +02:00
Crunch (Chaz9) 3aca4a3490 Updated 2024-09-29 21:31:09 +01:00
Crunch (Chaz9) 76f6f8de80 ok 2024-09-29 21:28:35 +01:00
Crunch (Chaz9) 592f93b26c Update Core Timing .h file 2024-09-29 21:23:11 +01:00
Exverge 66993e2603 Comment out unimplemented check
In my testing on macOS, MK8 sometimes crashed at this function, giving a void type instead of u32.
I've temporarily commented this out until (if) this is implemented and added a check for if it is implemented
2024-09-15 21:37:12 +02:00
chaphidoesstuff 6be886d0ff audio_core: increment current revision, Courtesy of Sudachi Dev
Originally from 39effa1011/src/audio_core/common/feature_support.h# and my mirror
2024-09-15 17:50:09 +02:00
Herman Semenov e886f27816 Using reserve() for optimization inserts, marked unused pair items and minor code refactor 2024-09-15 17:30:44 +02:00
Samuliak 3a51a8de2e rework the binding system 2024-05-05 11:43:27 +02:00
Samuliak 49f60adeb2 fix: more msl errors 2024-05-04 21:09:30 +02:00
Samuliak 055112b739 fix: some errors in msl backend 2024-05-04 15:31:54 +02:00
Samuliak 7920249ed1 move input generation to context 2024-05-04 14:49:33 +02:00
Samuliak 377a03fe5f support shader inputs 2024-05-04 14:31:30 +02:00
Samuliak 042788cd71 generate shader output in msl 2024-05-04 12:13:52 +02:00
Samuliak 16986bf42f attempt to compile msl shaders 2024-05-04 12:00:51 +02:00
Samuliak 5a2c073ebe use msl recompiler 2024-05-04 11:25:23 +02:00
Samuliak 61dfe608da add: msl shader recompiler 2024-05-04 11:19:34 +02:00
mctaylors 53f628c8cc found it 2024-04-19 03:43:42 +02:00
mctaylors 0ec2014350 update links 2024-04-19 03:43:42 +02:00
BoomMicrophone 1f517bbe1e
remove comment
gotta coooooommit :D
2024-04-18 11:46:09 +08:00
BoomMicrophone dca166ca9c
remove comment
gpg timeout so i gotta coooooommit :D
2024-04-18 11:46:09 +08:00
BoomMicrophone 6f26709e42
fix epic fail
(I am relying on actions to do the compiling for me until i get nix)
2024-04-18 11:46:08 +08:00
BoomMicrophone f44fafdd88
Woah guys this is so compliant!
Signed-off-by: BoomMicrophone <boommicrophone@noreply.localhost>
2024-04-18 11:46:08 +08:00
BoomMicrophone e1b77dd898
nullglob globstar gobble up those nuts
shoutout to gpg for not working

Signed-off-by: BoomMicrophone <boommicrophone@noreply.localhost>
2024-04-18 11:46:08 +08:00
Hustler One 02fc046031
All relevant changes in commit 51862e862d have been 2024-04-18 11:46:08 +08:00
Exverge 138d67b307
Refactor android to dev.suyu.suyu_emu 2024-04-18 11:46:07 +08:00
flodavid 323ea0cdfd
WIP: fix macOS style when OS dark mode is active 2024-04-18 11:46:07 +08:00
flodavid b28acaf7c9
Fix qdarkstyle and midnight blue sliders being cropped
- Allow Threshold sliders in control configuration to be up to 40px tall, instead of 15
2024-04-18 11:46:07 +08:00
flodavid c00c425b48
Add dark mode configuration setting in UI tab
- Allows to choose "Auto", "Always On" or "Always Off"
  - Dark mode options are only shown if the style does not support theme
- If Auto is chosen, value is retrieved from OS
  - On Windows, the application needs a restart to apply the settings
- Use the default dark palette for Windows, like on Linux
2024-04-18 11:46:07 +08:00
flodavid 104e6c3ff7
Rework themes to easily use light/dark palette, using only different icons
- Renamed themes:
  - "colorful" to "default" and "colorful_dark" to "default_dark"
  - "default" to "monochrome" and "default_dark" to "monochrome_dark"
  - "colorful_midnight_blue" to "qdarkstyle_midnight_blue"
  - "qdarkstyle_midnight_blue" to "qdarkstyle_midnight_blue_monochrome"
  - qdarkstyle is renamed from "Dark" to "Mine Shaft" in the UI
- default and monochrome themes all use the same qss stylesheet
- Remove the ability to select "default_dark" directly
    - Default has better support for light and dark
    - Controller and Keyboard applets icons and style adapt to dark mode
- Add "qdarkstyle_monochrome" theme
- Remove duplicated icon files
2024-04-18 11:46:06 +08:00
flodavid f01d7305c0
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
  - Linux:
    - Listen for OS color schemes changes on D-Bus
    - Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
      First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
  - Windows (dark mode detection was not implemented before):
    - Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
    - This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
  - Linux uses custom palette when dark mode is detected.
    By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
  - Allow themes to have stylesheet variants, dark.qss and light.qss
  - If current mode is dark, use dark icons for controller and keyboard applets
  - Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
    Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
  - Enable all themes to have dark icon alternatives, not just "default" and "colorful"
    - If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
  - If current mode is dark, use dark icons for controller and keyboard applets
  - Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
    colorful_midnight_blue used elements specific to dark themes
2024-04-18 11:46:06 +08:00
flodavid 97814d3e59
Load custom Qt themes from yuzu data directory
- Directory is qt_themes, each theme must be in one folder
    - It should contain a file "style.qss"
    - It may contain an "icons" sub-directory, to override included icons
      (with files like mytheme/icons/colorful/48x48/star.png for example)
    - Directories ending by "_dark" are reserved for dark variant icons.
      They are not listed as themes in the UI.
- If theme directory contains "dark" or "midnight", theme will be considered dark
2024-04-18 11:46:06 +08:00
Samuliak 8ff1ce68c3
metal: flip y texture coordinate 2024-04-10 19:55:56 +02:00
Samuliak e3ab4c6349
metal: minimalize texture hardcoding 2024-04-10 17:41:45 +02:00
Samuliak 98c4ff461f
metal: don't bind resources that are already bound 2024-04-10 17:20:24 +02:00
Samuliak 4771cd1602
fix(metal): fix incorrect size in buffer to image copy 2024-04-10 17:03:55 +02:00
Samuliak 2f9fd5d69c
metal: set texture usage flags 2024-04-09 19:59:27 +02:00
Samuliak f5830983be
metal: bind sampler to shader 2024-04-09 18:52:25 +02:00
lol 70c52a1914 fix qlaunch on firmware 18 2024-04-09 18:05:24 +02:00
Samuliak 1a284e4bb7
metal: translate pixel formats 2024-04-09 17:30:55 +02:00