Skip to content

expose graphics pipeline creation infos in on create callback #28

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

Merged

Conversation

underdoeg
Copy link
Contributor

@underdoeg underdoeg commented Jun 10, 2020

This exposes part of the vulkan creation information to an on_create callback handler. I did not expose those that are already exposed via some graphics_pipeline methods. It might make sense to include them as well just to be consistent.

Fixes #26

Example:

 pipeline = make_graphics_pipeline(app.device);
 pipeline->on_create = [](graphics_pipeline::create_info& info){
        info.input_assembly_state.topology = VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
        return true;
};

@TheLavaBlock TheLavaBlock added the enhancement New feature or request label Jun 10, 2020
@TheLavaBlock TheLavaBlock merged commit 191051a into liblava:master Jun 10, 2020
@TheLavaBlock
Copy link
Member

LGTM. Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

how to change rendering topology
2 participants