Isaac Marovitz
009f791879
Format
2024-09-28 19:03:01 -04:00
Isaac Marovitz
c0bb55cf5e
Fix some crashes
2024-09-28 19:03:01 -04:00
Isaac Marovitz
54c8dabadc
Fix Cubemap & Array Texture Creation
2024-09-28 19:03:01 -04:00
Isaac Marovitz
04ca284e14
Properly check for 3D
2024-09-28 19:03:01 -04:00
Isaac Marovitz
d58f79ae0f
Fix swizzle for certain formats
2024-09-28 19:03:01 -04:00
Isaac Marovitz
cd7d62542a
Blit at the end of the render
2024-09-28 19:03:01 -04:00
Isaac Marovitz
72209ba2a6
Load attachments
2024-09-28 19:03:01 -04:00
Isaac Marovitz
70ba3506b0
Cleanup Shader I/O
2024-09-28 19:03:01 -04:00
Isaac Marovitz
35cc208435
Fix fragment shader bindings
2024-09-28 19:03:01 -04:00
Isaac Marovitz
8dca53685a
Fix VertexBuffers
...
Naive non-managed approach
2024-09-28 19:03:01 -04:00
Isaac Marovitz
e517cfeb8f
Fix some shader gen problems…
2024-09-28 19:03:01 -04:00
Isaac Marovitz
4a30b58e0b
Formatting
2024-09-28 19:03:01 -04:00
Isaac Marovitz
bdd9ede4fd
Make TypeConversion failure an error
2024-09-28 19:03:01 -04:00
Isaac Marovitz
84a8edf675
Fix MSL Reinterpret Casts
2024-09-28 19:03:01 -04:00
Isaac Marovitz
e8a2637d46
Dont set Vertex Attributes for now
2024-09-28 19:03:01 -04:00
Isaac Marovitz
e4a14dd23a
Remove capture code
2024-09-28 19:03:01 -04:00
Isaac Marovitz
ffb7423260
Bind Textures & Samplers
2024-09-28 19:03:01 -04:00
Isaac Marovitz
80340c98d3
Revise ISampler
2024-09-28 19:03:01 -04:00
Isaac Marovitz
b8c60e993a
Try again
2024-09-28 19:03:01 -04:00
Isaac Marovitz
d88314424b
Resolve warning
2024-09-28 19:03:01 -04:00
Isaac Marovitz
df8fca012f
Formatting
2024-09-28 19:03:01 -04:00
Isaac Marovitz
3d897c4f9a
FIx build
2024-09-28 19:03:01 -04:00
Isaac Marovitz
62bf395970
Fix some rebase errors
2024-09-28 19:03:01 -04:00
Isaac Marovitz
bb742f64c6
End Pass on Dispose
2024-09-28 19:03:01 -04:00
Isaac Marovitz
a669592651
Don’t change Render State if Vertex Function is Invalid
2024-09-28 19:03:01 -04:00
Isaac Marovitz
eb5fa2b546
“Report” Driver
2024-09-28 19:03:01 -04:00
Isaac Marovitz
8e99199e19
Adjust function signature
2024-09-28 19:03:01 -04:00
Isaac Marovitz
b439a52ac7
Get it building again
2024-09-28 19:03:01 -04:00
Isaac Marovitz
b9c4a23f22
Render Targets
2024-09-28 19:03:01 -04:00
Isaac Marovitz
64c95bd8d8
format
2024-09-28 19:03:01 -04:00
Isaac Marovitz
264742f085
Formatting
2024-09-28 19:03:01 -04:00
Isaac Marovitz
64d12e8d23
smh
2024-09-28 19:03:01 -04:00
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
Isaac Marovitz
118d10bc32
Texture usage
2024-09-28 19:03:01 -04:00
Isaac Marovitz
33a986317b
CopyBuffer to Buffer
2024-09-28 19:03:01 -04:00
Isaac Marovitz
7a2ab77b4d
CopyTo Buffer
2024-09-28 19:03:01 -04:00
Isaac Marovitz
08126b26b1
SetData without region
2024-09-28 19:03:01 -04:00
Isaac Marovitz
abcd2b2754
Rewrite SetData for GPU
2024-09-28 19:03:01 -04:00
Isaac Marovitz
d076a70816
Clear Buffer
2024-09-28 19:03:01 -04:00
Isaac Marovitz
28da4248ae
Use Ryujinx Logger
2024-09-28 19:03:01 -04:00
Isaac Marovitz
f4aea9b7ec
One encoder at a time
2024-09-28 19:03:01 -04:00
Isaac Marovitz
e269d1605d
Fix byte alignment
2024-09-28 19:03:01 -04:00
Isaac Marovitz
8b21447018
Finish SetData /w region
2024-09-28 19:03:01 -04:00
Isaac Marovitz
66d575965c
Spoof Counters
2024-09-28 19:03:01 -04:00
Isaac Marovitz
4104af65a3
BufferAccess
2024-09-28 19:03:01 -04:00
Isaac Marovitz
8da7c42cf8
Delete and Get Data from Buffer
2024-09-28 19:03:01 -04:00
Isaac Marovitz
5dd444f605
Start Texture region-based CopyTo
2024-09-28 19:03:01 -04:00
Isaac Marovitz
0f3358b931
IoMap
2024-09-28 19:03:01 -04:00
Isaac Marovitz
177303d223
Fix error
2024-09-28 19:03:01 -04:00
Isaac Marovitz
0eaee442c7
Renderer cleanup
2024-09-28 19:03:01 -04:00
Isaac Marovitz
70f54f23c9
Texture Copys
2024-09-28 19:03:01 -04:00