Commit graph

45 commits

Author SHA1 Message Date
Samuliak
d8937e5827 fix: hashes 2024-07-23 10:47:57 +02:00
Samuliak
48e538e89e clean up texture copy code 2024-07-08 17:17:55 +02:00
Samuliak
d80ddafb24 implement viewports 2024-07-08 17:04:50 +02:00
Samuliak
db08f73530 set stencil reference value 2024-07-08 15:01:52 +02:00
Samuliak
6c153d96fe implement color write mask 2024-07-08 14:10:25 +02:00
Samuliak
114a5f2f8f fix: include string 2024-07-07 19:25:30 +02:00
Samuliak
07b3e47d7a use more efficient pixel formats 2024-07-07 19:03:01 +02:00
Samuliak
7731787aa2 fix: remaining memory leaks 2024-07-07 13:50:27 +02:00
Samuliak
23af64ade8 release resources 2024-07-07 12:34:04 +02:00
Samuliak
3431f6d192 include debug information 2024-07-07 12:12:34 +02:00
Samuliak
5f5cb02bf6 fix: clear ops not having the correct render pass 2024-07-07 08:36:41 +02:00
Samuliak
7ca08004af fix: incorrect render pass end logic 2024-07-06 22:17:16 +02:00
Samuliak
a9b4f64ca7 use map instead of vector for clear ops 2024-07-06 22:08:15 +02:00
Samuliak
e33339b655 clean up clear attachment code 2024-07-06 21:47:56 +02:00
Samuliak
498c4daed8 do clears as load ops if possible 2024-07-06 17:28:35 +02:00
Samuliak
42fc2bb490 do the copy on the GPU 2024-07-06 09:58:20 +02:00
Samuliak
80bd8f54c3 create copy pipeline 2024-07-06 09:39:12 +02:00
Samuliak
559d194cc7 tightly pack the pipeline hash 2024-07-06 09:00:08 +02:00
Samuliak
5d5df1931f turn config1 into a spec constant 2024-07-06 08:04:59 +02:00
Samuliak
0752a583b5 turn num lights into spec constant 2024-07-05 22:12:00 +02:00
Samuliak
0c19f5a3ea specialize shader 2024-07-05 20:29:05 +02:00
Samuliak
3005468b3f compile shaders to a metallib file 2024-07-05 17:49:04 +02:00
Samuliak
c5bdb28ca1 fix: lighting & use lut texture 2024-07-04 09:37:28 +02:00
Samuliak
b6c72e72e4 use sampler states 2024-07-03 17:45:55 +02:00
Samuliak
9527c2acdb rename files 2024-07-03 15:26:36 +02:00
Samuliak
a08d61ad46 use proper primitive types 2024-07-03 15:16:03 +02:00
Samuliak
b220c163e3 support stencil attachments 2024-07-03 15:01:37 +02:00
Samuliak
720882efeb store vertices in 1 big buffer 2024-07-03 14:31:15 +02:00
Samuliak
ea56f45fc2 only begin a new render pass when necessary 2024-07-03 12:48:40 +02:00
Samuliak
9ec116da18 enable stencil testing 2024-07-03 12:07:56 +02:00
Samuliak
dff6f5bf3f implement proper blending 2024-07-03 11:37:44 +02:00
Samuliak
d977f7ef85 use depth stencil render target 2024-07-03 10:21:49 +02:00
Samuliak
9241306d4d implement pipeline cache 2024-07-03 09:36:23 +02:00
Samuliak
1ba54b44fb support depth render targets 2024-07-03 07:40:32 +02:00
Samuliak
1df81c373c handle screen rotation correctly & fix: srgb 2024-07-02 20:31:59 +02:00
Samuliak
56262c2c24 use proper render targets 2024-07-02 16:54:48 +02:00
Samuliak
53c9611ac2 add: render target caches 2024-07-02 16:06:20 +02:00
Samuliak
ee74af43ec upload env state to the shader 2024-07-02 14:48:50 +02:00
Samuliak
3bb1ccd4d8 sample textures 2024-07-02 14:02:00 +02:00
Samuliak
b62a14d3ff implement textures 2024-07-02 13:40:29 +02:00
Samuliak
bac3a8e040 add: texture cache 2024-07-02 13:25:05 +02:00
Samuliak
4bc19e8e43 fix: issues with drawing 2024-07-02 10:05:59 +02:00
Samuliak
c6704f9218 draw 2024-07-02 09:42:23 +02:00
Samuliak
d41e77491a rewrite shaders 2024-07-02 09:02:03 +02:00
Samuliak
f0547d1a71 metal: initial support 2024-07-02 08:28:41 +02:00