Commit Graph

3599 Commits (8feee9c005b9144fd6f58ee9ca72b63f95af176c)

Author SHA1 Message Date
Isaac Marovitz a9e9819b33 Dont specify [[stage_in]] on fragment 2024-09-28 19:03:01 -04:00
Isaac Marovitz a58d1cffe4 If one shader fails, whole program fails 2024-09-28 19:03:01 -04:00
Isaac Marovitz 511db833db Fix fragment shaders (and fuck everything up) 2024-09-28 19:03:01 -04:00
Isaac Marovitz 2890fc1069 Vertex buffer data 2024-09-28 19:03:01 -04:00
Isaac Marovitz 7f41e7dbd4 Dont be stupid 2024-09-28 19:03:01 -04:00
Isaac Marovitz c58cc76b39 Dont set 0 attributes 2024-09-28 19:03:01 -04:00
Isaac Marovitz 8232ce7d72 Reset Descriptor instead of making a new object 2024-09-28 19:03:01 -04:00
Isaac Marovitz db9de66437 Set Vertex Descriptor properly 2024-09-28 19:03:01 -04:00
Isaac Marovitz 5c9d1bd0da Start vertex descriptor work 2024-09-28 19:03:01 -04:00
Isaac Marovitz fb5402ce81 Implement CreateProgram 2024-09-28 19:03:01 -04:00
Isaac Marovitz ed11cdda8d Fix fragment output color 2024-09-28 19:03:01 -04:00
Isaac Marovitz 6017c225b2 Set TargetLanguage for Metal to MSL 2024-09-28 19:03:01 -04:00
Isaac Marovitz 98e2ab5a49 Fix IoMap variable names
Output struct

Lazy Vertex IO

Output fixes

Fix output struct definition

MSL Binding Model description

Might need tweaks/adjustments

Cleanup

Typo + Format
2024-09-28 19:03:01 -04:00
Isaac Marovitz d5758cb310 Fix ETC2 PTA formats
Format
2024-09-28 19:03:01 -04:00
Isaac Marovitz 81b1ae4bcf Partial TextureQuerySamples 2024-09-28 19:03:01 -04:00
Isaac Marovitz ce5f383f5d Fix instructions 2024-09-28 19:03:01 -04:00
Isaac Marovitz d2ec22a01b LDR ASTC 2024-09-28 19:03:01 -04:00
Isaac Marovitz 53b886d893 Get build working again (values likely wrong) 2024-09-28 19:03:01 -04:00
Isaac Marovitz 29ef76f153 dotnet format 2024-09-28 19:03:01 -04:00
Isaac Marovitz a1b314acd2 Back to where we were
First special instruction

Start Load/Store implementation

Start TextureSample

Sample progress

I/O Load/Store Progress

Rest of load/store

TODO: Currently, the generator still assumes the GLSL style of I/O attributres. On MSL, the vertex function should output a struct which contains a float4 with the required position attribute.

TextureSize and VectorExtract

Fix UserDefined IO Vars

Fix stage input struct names
2024-09-28 19:03:01 -04:00
Isaac Marovitz 5198fcb881 Boot TOTK 2024-09-28 19:03:01 -04:00
Isaac Marovitz b37c109673 Boot Sonic Mania 2024-09-28 19:03:01 -04:00
Isaac Marovitz 163be0a159 Update for new Shader IR format 2024-09-28 19:03:01 -04:00
Isaac Marovitz 1f8ae7e5b1 Update src/Ryujinx.Graphics.Metal/Pipeline.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-09-28 19:03:01 -04:00
Isaac Marovitz bbc2ac2e9b Vertex Input Attributes 2024-09-28 19:03:01 -04:00
Isaac Marovitz f07327166c More Shader Gen Stuff
Mostly copied from GLSL since in terms of syntax within blocks they’re pretty similar. Likely the result will need tweaking…

Isn’t that conveniant?

“Do the simd_shuffle”

atomics

Remaining instructions

Remove removed special instructions

Getting somewhere…
2024-09-28 19:03:01 -04:00
Isaac Marovitz 1790050a14 Fix Metal Validation Error 2024-09-28 19:03:01 -04:00
Isaac Marovitz f2c090fe55 SDL2 Headless Metal Backend support 2024-09-28 19:03:01 -04:00
Isaac Marovitz fd0eaaafc1 Easier capture stuff 2024-09-28 19:03:01 -04:00
Isaac Marovitz 0233a0d35a Define MaxFramesPerCapture 2024-09-28 19:03:01 -04:00
Isaac Marovitz 61910fe342 Cleanup encoder getting + Fix capture overflow 2024-09-28 19:03:01 -04:00
Isaac Marovitz 1cb2ec7ebc Formatting 2024-09-28 19:03:01 -04:00
Isaac Marovitz 4ec37d1798 Start of MSL instructions
Remaining functions
2024-09-28 19:03:01 -04:00
Isaac Marovitz 27effab989 Warn when generating unsupported shader 2024-09-28 19:03:01 -04:00
Isaac Marovitz d0d5c76f06 Pass sampler to Blit shader 2024-09-28 19:03:01 -04:00
Isaac Marovitz a03471a8ab Shader comments 2024-09-28 19:03:01 -04:00
Isaac Marovitz 93c71110e1 HelperShaders class 2024-09-28 19:03:01 -04:00
Isaac Marovitz 00fce5a51d Undertale boots 2024-09-28 19:03:01 -04:00
Isaac Marovitz ce5f5a6442 Check if packed depth is supported 2024-09-28 19:03:01 -04:00
Isaac Marovitz 541cdfebb7 Fix RGB Seizure 2024-09-28 19:03:01 -04:00
Isaac Marovitz 07be20c369 Barry is here mashallah 2024-09-28 19:03:01 -04:00
Isaac Marovitz aaa140e510 Seizure my beloved is working 2024-09-28 19:03:01 -04:00
Isaac Marovitz 6d722d83ba SetData 2024-09-28 19:03:01 -04:00
Isaac Marovitz 6c3435aaac Look ma no crash 2024-09-28 19:03:01 -04:00
Isaac Marovitz 425177a876 Whitespace 2024-09-28 19:03:01 -04:00
Isaac Marovitz e3da359acf TODO 2024-09-28 19:03:01 -04:00
Isaac Marovitz 96bbc86331 BeginComputePass 2024-09-28 19:03:01 -04:00
Isaac Marovitz 3d42543f03 SetDepthTest 2024-09-28 19:03:01 -04:00
Isaac Marovitz 0f52165e86 SetStencilTest 2024-09-28 19:03:01 -04:00
Isaac Marovitz 628772f685 Forgot depth 2024-09-28 19:03:01 -04:00