Commit graph

103 commits

Author SHA1 Message Date
d698a52a9a
rid command_pool from globals 2024-09-26 00:22:53 +02:00
26dda0f7a5
rid pipeline module of globals 2024-09-26 00:12:47 +02:00
e39fabf681
clean up buffer.c from globals 2024-09-25 19:59:18 +02:00
2f0c678d89
further reduce g_dev usage 2024-09-25 19:54:41 +02:00
fc5695fce8
wtf 2024-09-25 19:50:26 +02:00
e7663ea5d1
remove unneeded init.h includes 2024-09-25 19:47:54 +02:00
5683cc0228
get rid of most uses of g_max_frames_in_flight 2024-09-25 19:43:21 +02:00
46a00f9466
finish ptk.c cleanup by removing key callback 2024-09-25 19:33:51 +02:00
96721f78ee
move cleanup stuff to vk_finish 2024-09-25 19:33:20 +02:00
22f41e1172
get rid of g_window use in ptk.c 2024-09-25 19:30:00 +02:00
8d017e2268
make module fields in draw.c static 2024-09-25 19:22:39 +02:00
44fe0c5f7d
get rid of current frame global
now I feel dirty because this feels like oop
2024-09-25 18:00:30 +02:00
ccf0e1481b
improve the resize callback
also gets rid of 1 global var
2024-09-25 17:58:18 +02:00
6c20ddcbd9
add todos about globals throughout the vulkan backend 2024-09-24 13:00:53 +02:00
2d3c33cb75
move sync objects to separate module 2024-09-24 12:56:12 +02:00
15e74a9a17
move command buffer allocation to separate module 2024-09-24 12:48:54 +02:00
952d68f68f
move all descriptor stuff into separate module 2024-09-24 12:41:59 +02:00
8ee6070467
add license notices 2024-09-24 12:30:57 +02:00
04db7a3318
separate buffer stuff into modules 2024-09-24 12:29:59 +02:00
88b2154c16
move command pool to its own module 2024-09-24 12:03:16 +02:00
495c2f458a
move descriptor set layout to its own module 2024-09-24 11:58:35 +02:00
1bac9dcfee
fix invalid VkDevice in vkGetDeviceQueue 2024-09-24 11:57:30 +02:00
37381e2e1d
move pipeline stuff to separate module 2024-09-24 11:42:18 +02:00
e664c74cb2
make render pass a member in init 2024-09-24 11:21:54 +02:00
854416f651
move render pass to PTK_OPTION 2024-09-24 11:14:41 +02:00
2e8a490fbe
move VkDevice to PTK_OPTION 2024-09-24 10:40:59 +02:00
65d6c42a47
go back to global vars
I dislike this strongly but it's better to keep them in init.c I think
this is all internals either way right now I just wanna clean things up
so that introducing different backends isn't tedious
2024-09-24 10:36:29 +02:00
402e45c766
almost improve physical dev module
draw function needs some help
2024-09-22 20:23:10 +02:00
7565731ef5
improve instance module 2024-09-22 20:13:54 +02:00
9a28978380
whoops 2024-09-12 12:39:00 +02:00
578fde4a09
big refactor but still shit 2024-09-12 12:35:56 +02:00
3a2a80f70a
add PTK_LIST_GROW 2024-09-11 01:04:18 +02:00
7dc9a329ad
improve swapchain framebuffer creation 2024-09-10 23:59:51 +02:00
b31dd0d797
watch default.nix in direnv 2024-09-10 14:33:06 +02:00
73d14d1908
add helper component functions that take an id 2024-09-10 10:17:30 +02:00
a6d741b995
add get_component_id() 2024-09-10 09:56:39 +02:00
40c8d69690
add default case to vk_result_string 2024-09-09 23:54:06 +02:00
1037eaaeff
Squashed commit of the following:
commit 51a16fcec3
Author: jacekpoz <jacekpoz@proton.me>
Date:   Mon Sep 9 23:07:46 2024 +0200

    mark all components to be updated during initialization

commit 7952918cdb
Author: jacekpoz <jacekpoz@proton.me>
Date:   Mon Sep 9 23:07:31 2024 +0200

    clear caches before updating component

commit 40c2329b3c
Author: jacekpoz <jacekpoz@proton.me>
Date:   Mon Sep 9 22:25:22 2024 +0200

    implement vertex and index caches

    hopefully these work and actually help with performance

commit be1ae4c531
Author: jacekpoz <jacekpoz@proton.me>
Date:   Mon Sep 9 21:11:52 2024 +0200

    initial tree impl without any updating logic
2024-09-09 23:52:15 +02:00
8581e336d5
whoops forgot !!! 2024-09-09 19:59:06 +02:00
7c63947056
actually use the index buffer properly 2024-09-09 18:54:46 +02:00
35cf6c593d
introduce index buffer (doesn't optimize anything yet) 2024-09-08 17:08:11 +02:00
af7e527ff2
fix list growing when inintial size is 0 2024-09-08 16:56:15 +02:00
5f3362a929
hehe :-) 2024-09-08 16:22:13 +02:00
b30ff30ed0
move even more arrays to the ptk ones 2024-09-08 12:59:38 +02:00
5c8a21b375
more usage of PTK_LIST and PTK_ARRAY 2024-09-08 12:53:37 +02:00
59f4ed89d4
add a few more cflags to the makefile 2024-09-08 12:14:41 +02:00
273094de29
add eupl notice to button example 2024-09-08 12:00:31 +02:00
cb3d1d6f7c
remove redundant header from ptk_list.h 2024-09-05 00:21:58 +02:00
3b73c51cb9
add enumerated versions of each macro and consts 2024-09-04 20:39:09 +02:00
ed9c34e243
add ptk list iterator macro 2024-09-04 20:27:53 +02:00