Isaac Marovitz
d2f965885a
Fix blend state optimisation breaking attachments
...
Fixes SM3DW
2024-12-23 21:39:07 -06:00
riperiperi
29b6e8ac53
Fix warnings
2024-12-23 21:39:05 -06:00
riperiperi
26da57cccd
Maintain identity swizzle view of textures for rendering
2024-12-23 21:39:03 -06:00
riperiperi
82b5f8e681
Fix a bunch of issues with texture copy and flush ( #32 )
...
* Fix a bunch of issues with texture copy and flush
* TextureCopy helper class, fix clear bug
2024-12-23 21:38:59 -06:00
Isaac Marovitz
58527e02ee
Cleanup + Format
2024-12-23 21:38:54 -06:00
Isaac Marovitz
4d5b128a81
Fix trying to reserve size 0 in staging buffer
2024-12-23 21:38:46 -06:00
Isaac Marovitz
49a814a400
Fix zero buff not being reset
2024-12-23 21:38:42 -06:00
Isaac Marovitz
09546205b5
Dirty Arg Buffers on Program Change
2024-12-23 21:38:39 -06:00
Isaac Marovitz
d2a4a9e9a7
Least allocations in the west
2024-12-23 21:38:37 -06:00
Isaac Marovitz
d3f273cad1
Don’t use Enum.HasFlag
2024-12-23 21:38:35 -06:00
Isaac Marovitz
60722a1837
Metal: Better Bindings ( #29 )
...
* Tell GAL to use Vk model (and break everything)
* ResourceBindingSegments
* Set information on backend caps
* Get ready to break everything
* Refactor EncoderStateManager
* Remove padding from helper shaders
* Fix ref array sizes
* Seperate vert & frag buffers
* Shader-side changes
* Fixes
* Fix some helper shader resource layouts
* Sort by binding id
* Fix helper shader layouts
* Don’t do inline vertex buffer updates
* Check for null storage
2024-12-23 21:38:32 -06:00
Isaac Marovitz
549938e2b1
Update comment for Metal
2024-12-23 21:38:20 -06:00
Isaac Marovitz
144397c3da
Don’t do inline vertex buffer updates
...
Somehow broke zero buff MTLVertexDescriptor, but fixes broken geoemtry so I’m pushing anyway
2024-12-23 21:38:17 -06:00
riperiperi
2fb3c6975e
Create command buffers when rented rather than in advance ( #31 )
...
* Make it less likely to freeze, but the creation of the command buffer should probably be moved
* Create command buffers as they're rented rather than in advance
2024-12-23 21:38:15 -06:00
riperiperi
879c93cf73
Preload command speedup, Texture/buffer data flush, blit shader fix ( #30 )
...
* Move encoder state to be tied to command buffer, so preload and background cbs have their own encoder state
* Texture buffer/data flush, blit shader fix
2024-12-23 21:38:13 -06:00
Isaac Marovitz
7d5b4c5d1d
Dont bind images in texture slots
2024-12-23 21:38:11 -06:00
Isaac Marovitz
2860db198c
Stop depth/stencil blits from crashing everything
2024-12-23 21:38:04 -06:00
riperiperi
4b53d18bef
Fix Geometry/TFB on compute, Buffer Textures, add Window Resizing ( #28 )
2024-12-23 21:38:00 -06:00
riperiperi
bbbc9e529d
State and cache optimization ( #27 )
...
* WIP pipeline/depth state cache rework
* Fix some issues
* Fix some more default values
* Reduce allocations for state changes
* fix helpershader stuff
* explanation comment
* fix depth bias
2024-12-23 21:37:58 -06:00
Isaac Marovitz
4f7b3fa058
CommandBufferBarrier
2024-12-23 21:37:52 -06:00
riperiperi
36de337ac2
Add constrained border colours to samplers ( #26 )
2024-12-23 21:37:50 -06:00
Isaac Marovitz
3b2beda27f
Don’t bind byte format converted index buffers at requested index
2024-12-23 21:37:48 -06:00
Isaac Marovitz
de8e03c350
Render target deduplication
...
not sure if this is working
2024-12-23 21:37:45 -06:00
Isaac Marovitz
0b6bc12a65
Fix CBP not doing its job
...
Thanks peri (again)
2024-12-23 21:37:43 -06:00
Isaac Marovitz
16bc02ea2a
Fix blend descriptors not dirting render pipeline
...
Thanks peri
2024-12-23 21:37:41 -06:00
Isaac Marovitz
97814b2852
Support non-index quad draws
...
Fixes Deltarune
2024-12-23 21:37:38 -06:00
Isaac Marovitz
a9633981a8
Be better about memory
2024-12-23 21:37:36 -06:00
Isaac Marovitz
1af7dc4b68
Fix stencil clears
2024-12-23 21:37:14 -06:00
Isaac Marovitz
d6dcc39131
Enable Alpha Test workaround on Metal
2024-12-23 21:37:10 -06:00
Isaac Marovitz
4f699ef96a
Fix Cull FrontAndBack
2024-12-23 21:37:07 -06:00
Isaac Marovitz
30f194e5c0
Warning about host map buffer creation
2024-12-23 21:37:05 -06:00
Isaac Marovitz
dae0f3cded
Argument Buffers ( #24 )
...
* Stuff
* More arg buffer stuff
* Fixes
* Rebase
* Pass storage buffers to inline functions
* Fix binding
* Fix typo + Fix a couple shaders
* Enforce ids
* Dispose
* Mark used buffers as resident
* Update depth clear shader
* Fix non-contiguous struct defs
* Update ChangeBufferStride
* Fix StorageBuffer assignments
* Fix odyssey crash
* Retain buffer bindings
* Pad Std140
* Set texture data with safe buffers
* Clone buffers
* Always declare vert in
* Stop clears from breaking OpenGL games
* Fix depth clear
* Use invariant position
* Horribly inefficient texture & sampler arg buffers
* Fix missing struct access
* Minimise rebinds as much as possible
* Build arg buffers on staging buffer
2024-12-23 21:37:01 -06:00
Isaac Marovitz
9b138a413c
Actually clear the right render target
2024-12-23 21:36:54 -06:00
Isaac Marovitz
58eefa8bdf
Big GetData()
...
Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-12-23 21:36:52 -06:00
Isaac Marovitz
0ebc8bd1b8
Fix Animal Crossing Crash
2024-12-23 21:36:50 -06:00
Isaac Marovitz
d0e4adac36
PreloadCbs + FlushCommandsIfWeightExceeding
2024-12-23 21:36:46 -06:00
Isaac Marovitz
197184657f
Cleanup Pipeline
...
Housekeeping
More housekeeping
2024-12-23 21:36:44 -06:00
Isaac Marovitz
74083083cd
PersistentFlushBuffer + BackgroundResources
2024-12-23 21:36:42 -06:00
Isaac Marovitz
175cded85d
Match S8UintD24Unorm to Depth24UnormStencil8
...
Kind of works for es2gears
2024-12-23 21:36:40 -06:00
Isaac Marovitz
c911db8309
Fix FEZ not showing anything
...
Does not fix the underlying shortcomings of the cache system
2024-12-23 21:35:50 -06:00
Isaac Marovitz
3451fbbbad
Clear cached converted buffers on signaled write
2024-12-23 21:35:47 -06:00
Isaac Marovitz
98ae46ba70
FIx regression
2024-12-23 21:35:45 -06:00
Isaac Marovitz
bf4232a35b
Helper shader cleanup
2024-12-23 21:35:43 -06:00
Isaac Marovitz
c3e39a9c91
Use buffer manager for color blit
2024-12-23 21:35:41 -06:00
Isaac Marovitz
b8779c6e09
Buffer Conversions ( #23 )
...
* Why is this not working
* Revert helper shader changes for now
* Byte Index Buffer Restride
2024-12-23 21:35:38 -06:00
riperiperi
20cf1a08c1
don't recreate render pipeline unless we're about to draw, pass view depth properly ( #22 )
2024-12-23 21:35:36 -06:00
Isaac Marovitz
dda746c0fb
Metal: Buffers Take 2 ( #21 )
...
* Basic BufferManager
* Start Scoped Command Buffers
* Fences stuff
* Remember to cleanup sync manager
* Auto, Command Buffer Dependants
* Cleanup
* Cleanup + Fix Texture->Buffer Copies
* Slow buffer upload
* Cleanup + Rework TextureBuffer
* Don’t get unsafe
* Cleanup
* Goddamn it
* Staging Buffer + Interrupt Action + Flush
2024-12-23 21:35:33 -06:00
Isaac Marovitz
585bdc2b54
Log failed format conversions
2024-12-23 21:35:31 -06:00
Isaac Marovitz
e49702965f
Print shader code involved in failed linking
2024-12-23 21:35:21 -06:00
Isaac Marovitz
8b5392ce9b
Don’t use DidModifyRange
2024-12-23 21:35:17 -06:00