Commit Graph

3583 Commits

Author SHA1 Message Date
Isaac Marovitz 518f6f7a49 Dont specify [[stage_in]] on fragment 2024-09-15 08:42:19 -04:00
Isaac Marovitz d3ef8c9c52 If one shader fails, whole program fails 2024-09-15 08:42:19 -04:00
Isaac Marovitz d5cc90af9d Fix fragment shaders (and fuck everything up) 2024-09-15 08:42:19 -04:00
Isaac Marovitz cc5ac6017f Vertex buffer data 2024-09-15 08:42:19 -04:00
Isaac Marovitz dd2306b16e Dont be stupid 2024-09-15 08:42:19 -04:00
Isaac Marovitz 07e77ecb64 Dont set 0 attributes 2024-09-15 08:42:19 -04:00
Isaac Marovitz 6a511b7acc Reset Descriptor instead of making a new object 2024-09-15 08:42:19 -04:00
Isaac Marovitz c0708208eb Set Vertex Descriptor properly 2024-09-15 08:42:19 -04:00
Isaac Marovitz dcb638b573 Start vertex descriptor work 2024-09-15 08:42:19 -04:00
Isaac Marovitz a3b64b794a Implement CreateProgram 2024-09-15 08:42:19 -04:00
Isaac Marovitz c8a74fcccc Fix fragment output color 2024-09-15 08:42:19 -04:00
Isaac Marovitz 80688f28b9 Set TargetLanguage for Metal to MSL 2024-09-15 08:42:19 -04:00
Isaac Marovitz 91651897ec 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-15 08:42:19 -04:00
Isaac Marovitz 3ab4b0a8b1 Fix ETC2 PTA formats
Format
2024-09-15 08:42:19 -04:00
Isaac Marovitz 198566ce5c Partial TextureQuerySamples 2024-09-15 08:42:19 -04:00
Isaac Marovitz 9a50e13375 Fix instructions 2024-09-15 08:42:19 -04:00
Isaac Marovitz 74e2e37502 LDR ASTC 2024-09-15 08:42:19 -04:00
Isaac Marovitz a7294f9b34 Get build working again (values likely wrong) 2024-09-15 08:42:19 -04:00
Isaac Marovitz 87bf31d425 dotnet format 2024-09-15 08:42:19 -04:00
Isaac Marovitz 7d7d32e9bc 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-15 08:42:19 -04:00
Isaac Marovitz 6a1a72b328 Boot TOTK 2024-09-15 08:42:19 -04:00
Isaac Marovitz 2285fe90bb Boot Sonic Mania 2024-09-15 08:42:19 -04:00
Isaac Marovitz 7bdff7895d Update for new Shader IR format 2024-09-15 08:42:19 -04:00
Isaac Marovitz 6193271fb6 Update src/Ryujinx.Graphics.Metal/Pipeline.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-09-15 08:42:19 -04:00
Isaac Marovitz 39c190c4e1 Vertex Input Attributes 2024-09-15 08:42:19 -04:00
Isaac Marovitz 9c3b053679 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-15 08:42:19 -04:00
Isaac Marovitz 10adb54f0c Fix Metal Validation Error 2024-09-15 08:42:19 -04:00
Isaac Marovitz 5ef4aa171e SDL2 Headless Metal Backend support 2024-09-15 08:42:19 -04:00
Isaac Marovitz 04758f8753 Easier capture stuff 2024-09-15 08:42:19 -04:00
Isaac Marovitz 228508acad Define MaxFramesPerCapture 2024-09-15 08:42:19 -04:00
Isaac Marovitz daa00aa019 Cleanup encoder getting + Fix capture overflow 2024-09-15 08:42:19 -04:00
Isaac Marovitz 3e6d7231cf Formatting 2024-09-15 08:42:19 -04:00
Isaac Marovitz 686582c291 Start of MSL instructions
Remaining functions
2024-09-15 08:42:19 -04:00
Isaac Marovitz bbc286400c Warn when generating unsupported shader 2024-09-15 08:42:19 -04:00
Isaac Marovitz bf36461cd4 Pass sampler to Blit shader 2024-09-15 08:42:19 -04:00
Isaac Marovitz a6dd6d7fe2 Shader comments 2024-09-15 08:42:19 -04:00
Isaac Marovitz 45782ac377 HelperShaders class 2024-09-15 08:42:19 -04:00
Isaac Marovitz 2f9d68dfad Undertale boots 2024-09-15 08:42:19 -04:00
Isaac Marovitz 92b5f25fe1 Check if packed depth is supported 2024-09-15 08:42:19 -04:00
Isaac Marovitz e7ea69290c Fix RGB Seizure 2024-09-15 08:42:19 -04:00
Isaac Marovitz d30806faa2 Barry is here mashallah 2024-09-15 08:42:19 -04:00
Isaac Marovitz 9ed9d54b8e Seizure my beloved is working 2024-09-15 08:42:19 -04:00
Isaac Marovitz f42a0d4199 SetData 2024-09-15 08:42:19 -04:00
Isaac Marovitz 08990ab56c Look ma no crash 2024-09-15 08:42:19 -04:00
Isaac Marovitz 67f66cca17 Whitespace 2024-09-15 08:42:19 -04:00
Isaac Marovitz 956425943f TODO 2024-09-15 08:42:19 -04:00
Isaac Marovitz 7202bd070a BeginComputePass 2024-09-15 08:42:19 -04:00
Isaac Marovitz 2477326df7 SetDepthTest 2024-09-15 08:42:19 -04:00
Isaac Marovitz 023670cfee SetStencilTest 2024-09-15 08:42:19 -04:00
Isaac Marovitz f09ab42731 Forgot depth 2024-09-15 08:42:19 -04:00