Commit graph

1981 commits

Author SHA1 Message Date
SamoZ256
eb24b2490a
Merge pull request #4 from SamoZ256/metal-load-ops
Metal load ops
2024-07-07 08:42:42 +02:00
Samuliak
5f5cb02bf6 fix: clear ops not having the correct render pass 2024-07-07 08:36:41 +02:00
Samuliak
c7be657d06 add: todo notice 2024-07-06 22:21:57 +02:00
Samuliak
7ca08004af fix: incorrect render pass end logic 2024-07-06 22:17:16 +02:00
Samuliak
d435b38018 fix: command ordering 2024-07-06 22:13:21 +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
SamoZ256
2a9da80ff5
Merge pull request #2 from SamoZ256/metal-lut-tex-fix
Metal LUT texture fix
2024-07-06 10:02:50 +02:00
Samuliak
f42a343e85 add: comment 2024-07-06 09:59: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
82e436199c compile the copy shader 2024-07-06 09:29:14 +02:00
Samuliak
3d32d7a292 setup copy shader 2024-07-06 09:13:45 +02:00
SamoZ256
fca03fe2b8
Merge pull request #1 from SamoZ256/metal-specialized-shaders
Metal specialized shaders
2024-07-06 09:03:58 +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
7e8582d985 fix: incorrect lut texture format 2024-07-05 18:49:17 +02:00
Samuliak
3005468b3f compile shaders to a metallib file 2024-07-05 17:49:04 +02:00
Samuliak
5741de2cad fix: depth transform 2024-07-05 09:44:16 +02:00
Samuliak
b8e155bd4a fix: incorrect depth map logic 2024-07-04 11:42:25 +02:00
Samuliak
13439699ee implement depth uniforms 2024-07-04 11:34:54 +02:00
Samuliak
e8727d5dbd implement clipping & alpha testing 2024-07-04 10:36:25 +02:00
Samuliak
c5bdb28ca1 fix: lighting & use lut texture 2024-07-04 09:37:28 +02:00
Samuliak
3e9d2a852c implement lighting in shaders 2024-07-04 07:37:28 +02:00
Samuliak
27c74d8974 emulate logic op in the shader 2024-07-03 20:52:05 +02:00
Samuliak
dfe38a757c check if drawable is valid 2024-07-03 18:15:30 +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
da8f2ff45d enable depth test 2024-07-03 10:39:14 +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
05fd1d5c29 fix: incorrect z position 2024-07-02 19:55:40 +02:00
Samuliak
ceb3922544 add: temporary depth hack 2024-07-02 19:54:36 +02:00
Samuliak
863edac152 revert formatting 2024-07-02 19:19:37 +02:00
SamoZ256
124622cf18
Merge branch 'metal' into metal 2024-07-02 17:44:32 +02:00
Samuliak
3be48c7c0c implement clearBuffer for color render targets 2024-07-02 17:28:11 +02:00
Samuliak
940f05bb85 remove outdated message 2024-07-02 17:22:08 +02:00
Samuliak
99f16cc859 draw top and bottom screens correctly 2024-07-02 17:08:23 +02:00
Samuliak
cd12d88994 flip y positions 2024-07-02 16:58:29 +02:00