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
Samuliak
d423a53595
resolve merge conflicts
2024-09-28 19:03:01 -04:00
Isaac Marovitz
997393bc65
Cleanup + Format
2024-09-28 19:03:01 -04:00
Samuliak
4bbf7b67d4
do texture barrier tiled
2024-09-28 19:03:01 -04:00
Samuliak
b1549be8c3
do texture barrier
2024-09-28 19:03:01 -04:00
Isaac Marovitz
bd3df5f26a
Depth Clear
2024-09-28 19:03:01 -04:00
Isaac Marovitz
8feee9c005
Shitty Clears + Inline Buffer Improvements?
2024-09-28 19:03:01 -04:00
Isaac Marovitz
f2490347af
Use return value of BeginRenderPass
2024-09-28 19:03:01 -04:00
Samuliak
918e1c16b7
don't end render pass when not neccessary
2024-09-28 19:03:01 -04:00
Isaac Marovitz
20e1d1cd33
Implement SetDepthClamp
2024-09-28 19:03:01 -04:00
Isaac Marovitz
f98d9bae24
Implement SetBlendState
2024-09-28 19:03:01 -04:00
Isaac Marovitz
1db8decd12
Be consistent with things that lack support
2024-09-28 19:03:01 -04:00
Isaac Marovitz
71ccb7eaef
Ignore SetDepthMode
2024-09-28 19:03:01 -04:00
Isaac Marovitz
45b533b23b
Fix present
2024-09-28 19:03:01 -04:00
Isaac Marovitz
738227519d
Break everything :D
2024-09-28 19:03:01 -04:00
Isaac Marovitz
de86f20b94
Clamp ScissorRect
2024-09-28 19:03:01 -04:00
Isaac Marovitz
4e6abb0191
Set Depth Attachment Texture
2024-09-28 19:03:01 -04:00
Isaac Marovitz
35b0436a2b
Clamp Viewport ZNear & ZFar
2024-09-28 19:03:01 -04:00
Samuliak
262452f586
offset storage buffer bindings by 15
2024-09-28 19:03:01 -04:00
Samuliak
64005ba9ee
don't hardcode render pipeline attachments
2024-09-28 19:03:01 -04:00
Isaac Marovitz
32db6cc281
Format
2024-09-28 19:03:01 -04:00
Isaac Marovitz
722aa4e45d
Rebase + GAL Changes
2024-09-28 19:03:01 -04:00
Isaac Marovitz
00b99770a2
Remove TODOs
2024-09-28 19:03:01 -04:00
Isaac Marovitz
df6821d023
Fix Scissor/Viewport state & Validation Error
2024-09-28 19:03:01 -04:00
Isaac Marovitz
192a84aa2d
Bind Uniform & Storage Buffers
2024-09-28 19:03:01 -04:00
Isaac Marovitz
316fea1fa9
Set scissors & viewports
2024-09-28 19:03:01 -04:00
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
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
8dca53685a
Fix VertexBuffers
...
Naive non-managed approach
2024-09-28 19:03:01 -04:00
Isaac Marovitz
4a30b58e0b
Formatting
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
3d897c4f9a
FIx build
2024-09-28 19:03:01 -04:00