Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer/pipeline setup #2

Merged
merged 13 commits into from
Oct 1, 2021
Merged

Renderer/pipeline setup #2

merged 13 commits into from
Oct 1, 2021

Conversation

ravi688
Copy link
Owner

@ravi688 ravi688 commented Oct 1, 2021

Written graphics pipeline & swapchain setup code in renderer.c , though it is just for placeholder.

Refactored renderer.h and added vk_get_instance_extension_properties(), vk_get_instance_layer_properties(), and some to_string & dump functions. Added few more properties in engine_t (renderer) and converted the pointers to void* so that no one can use it directly at compile time [like private member], added engine_get_renderer().  Added Garbage Collector [tgc] and its wrapper garbage_collector/garbage_collector.h. Fixed a bug in header configuration system, header_config_reset.h was malfunctioned. Added garbage collected string data structure [string(), string_array()]. Added some type definitions in template_system.h because template() doesn't take asterisk or space.  Moved the vulkan code from engine.c to renderer.c and created new struct renderer_t in renderer.h
Added string_bool(bool value), and some abstract function signatures in string.h [to be implemented].
vulkan_wrapper will contains some basic wrapper functions for the vulkan api in a very good manner
When we will build our project in RELEASE mode then garbage_collector will use tgc_alloc allocator, otherwise in DEBUG mode, it will use the malloc allocator..
Added swapchain creation and moved some code [refactored] to vulkan_wrapper.h & vulkan_wrapper.c
Added casting_utility.h and file_utility.h
…ores

Added some more typedefs in template_instantiations.h. Modified file_utility.h functions, now they will return tuples instead of just a raw char pointer. Calling renderer_update in engine_update.
@ravi688 ravi688 merged commit 4c3edd9 into main Oct 1, 2021
@ravi688 ravi688 deleted the Renderer/PipelineSetup branch October 1, 2021 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant