Isaac Marovitz
01f41b8b0e
Get render command encoder after finalising buffers
...
Fixes crash in Fire Emblem: Houses
2024-09-28 19:03:01 -04:00
Isaac Marovitz
d5e19a70bd
Image Constant Fixes
...
Allows Mario Party Superstars to boot
2024-09-28 19:03:01 -04:00
Isaac Marovitz
245778bc7e
Helper Shader fixes for non float formats
2024-09-28 19:03:01 -04:00
Isaac Marovitz
47b99e6bc3
TextureArray & ImageArray Creation + State
2024-09-28 19:03:01 -04:00
Isaac Marovitz
810b5792a8
Partial indirect draw support
2024-09-28 19:03:01 -04:00
Isaac Marovitz
3d12f7ef74
Stop complaining about clip distance
2024-09-28 19:03:01 -04:00
Isaac Marovitz
3a04d72686
DepthStencil Blits
2024-09-28 19:03:01 -04:00
Isaac Marovitz
aa6e87e8a6
Multisample Blits
...
Partially fixes Sonic Colors Ultimate
2024-09-28 19:03:01 -04:00
Isaac Marovitz
650f309b58
Image binding support
...
Kirby still has a problem with NaN 3D Texture
2024-09-28 19:03:01 -04:00
Isaac Marovitz
655823ecc7
Better index buffer management
2024-09-28 19:03:01 -04:00
riperiperi
ea30e543e6
Fix preload cbs optimization (for real) ( #34 )
...
* Mostly fix preload cbs. There seems to be some random flickering...
* fix index buffer usage range
* fix missing preflush submit before present
2024-09-28 19:03:01 -04:00
Isaac Marovitz
0c1acb5107
Cleanup + Format
2024-09-28 19:03:01 -04:00
riperiperi
2511bf1e4c
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-09-28 19:03:01 -04:00
Isaac Marovitz
80f9a5d0da
Dont bind images in texture slots
2024-09-28 19:03:01 -04:00
Isaac Marovitz
ed4f7a5602
Stop depth/stencil blits from crashing everything
2024-09-28 19:03:01 -04:00
riperiperi
edceb1607f
Fix Geometry/TFB on compute, Buffer Textures, add Window Resizing ( #28 )
2024-09-28 19:03:01 -04:00
riperiperi
e02df72323
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-09-28 19:03:01 -04:00
Isaac Marovitz
c8c4fd730d
CommandBufferBarrier
2024-09-28 19:03:01 -04:00
Isaac Marovitz
0c562a2c50
Support non-index quad draws
...
Fixes Deltarune
2024-09-28 19:03:01 -04:00
Isaac Marovitz
05189c7749
Enable Alpha Test workaround on Metal
2024-09-28 19:03:01 -04:00
Isaac Marovitz
c8308d27f1
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-09-28 19:03:01 -04:00
Isaac Marovitz
4578ee53d3
Actually clear the right render target
2024-09-28 19:03:01 -04:00
Isaac Marovitz
03161d8048
PreloadCbs + FlushCommandsIfWeightExceeding
2024-09-28 19:03:01 -04:00
Isaac Marovitz
b1928461bb
Cleanup Pipeline
...
Housekeeping
More housekeeping
2024-09-28 19:03:01 -04:00
Isaac Marovitz
6ebe5bb406
Buffer Conversions ( #23 )
...
* Why is this not working
* Revert helper shader changes for now
* Byte Index Buffer Restride
2024-09-28 19:03:01 -04:00
riperiperi
02de48a6f2
don't recreate render pipeline unless we're about to draw, pass view depth properly ( #22 )
2024-09-28 19:03:01 -04:00
Isaac Marovitz
58b3e2e82b
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-09-28 19:03:01 -04:00
Isaac Marovitz
9a6759d1e5
Depth Bias
2024-09-28 19:03:01 -04:00
Isaac Marovitz
fad653c12e
Workaround for Wonder
2024-09-28 19:03:01 -04:00
Isaac Marovitz
3c188718c4
Fix Clear Viewport
2024-09-28 19:03:01 -04:00
Isaac Marovitz
aae9dc0c2e
Cleanup
2024-09-28 19:03:01 -04:00
Isaac Marovitz
d323a8d44a
Rebase Changes
2024-09-28 19:03:01 -04:00
Isaac Marovitz
362746887e
Cleanup + Format
2024-09-28 19:03:01 -04:00
Isaac Marovitz
b064d76a4f
Metal: Compute Shaders ( #19 )
...
* check for too bix texture bindings
* implement lod query
* print shader stage name
* always have fragment input
* resolve merge conflicts
* fix: lod query
* fix: casting texture coords
* support non-array memories
* use structure types for buffers
* implement compute pipeline cache
* compute dispatch
* improve error message
* rebind compute state
* bind compute textures
* pass local size as an argument to dispatch
* implement texture buffers
* hack: change vertex index to vertex id
* pass support buffer as an argument to every function
* return at the end of function
* fix: certain missing compute bindings
* implement texture base
* improve texture binding system
* remove useless exception
* move texture handle to texture base
* fix: segfault when using disposed textures
---------
Co-authored-by: Samuliak <samuliak77@gmail.com>
Co-authored-by: SamoZ256 <96914946+SamoZ256@users.noreply.github.com>
2024-09-28 19:03:01 -04:00
Isaac Marovitz
1b86360a61
RenderTargetColorMasks
2024-09-28 19:03:01 -04:00
Isaac Marovitz
35f68c1b31
Implement Texture CopyTo
2024-09-28 19:03:01 -04:00
Isaac Marovitz
cb8fdeafbc
Cleanup present
2024-09-28 19:03:01 -04:00
Isaac Marovitz
1f29a76ea3
Metal: Advanced Present ( #6 )
...
* Initial DrawTexture support & Advanced Present
* TODO: Get Scissors Working
* Chnage scissor state management
* Rebase problems…
* Rebase fixes again
* Update DrawTexture + Fix Topology
* Fix flipping
* Add clear action support
* Cleanup
2024-09-28 19:03:01 -04:00
SamoZ256
1f91c74a95
Clone the state & flip viewport vertically ( #16 )
...
* implement texture get data
* reset all state before blit & clone state
* format
* support blit regions
* implement source region for blit
* replace bottom with top
* account for 0 size
* support image flipping
* revert presentation fixes & y flip
* revert
* flip viewport vertically
* switch face winding
* comment
* use SetBytes for texture clear
* implement missing compute builtins
* change storage and texture buffer alignment
* correct compute builtins
* don't use nullable for textures and samplers
* remove incorrect texture get data implementation
* Cleanup IntPtrs
---------
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
2024-09-28 19:03:01 -04:00
Isaac Marovitz
0e095c778a
Whitespace formatting
2024-09-28 19:03:01 -04:00
Samuliak
051bd144e1
dispose drawable texture view
2024-09-28 19:03:01 -04:00
Samuliak
e6e898b297
dispose encoder state manager
2024-09-28 19:03:01 -04:00
Samuliak
41fb433495
warn about barriers
2024-09-28 19:03:01 -04:00
Samuliak
1a0b928c35
do memory barriers
2024-09-28 19:03:01 -04:00
Samuliak
17334b2131
remove useless parameters
2024-09-28 19:03:01 -04:00
Samuliak
8eba42447f
fix: incorrect merge stuff
2024-09-28 19:03:01 -04:00
Samuliak
3ec45f73f4
don't interrupt render pass before color clear
2024-09-28 19:03:01 -04:00
Samuliak
b475a44941
implement save and restore state system
2024-09-28 19:03:01 -04:00
Samuliak
295845e6e3
revert deferred clears
2024-09-28 19:03:01 -04:00
Samuliak
79acae3709
prepare for deferred clears
2024-09-28 19:03:01 -04:00