Skip to content
Discussion options

You must be logged in to vote

There isn't yet an example illustrating using of push constants. The vsg::PushConstant wraps the vkCmdPushConstants() and provides the mechanism for pass the data at the appropriate offset. You also need to set up the pipeline layout for it as well.

However, push constants might not be the most appropriate tool. Push constants are best for high frequency changes in state. Simulation time and frame count is low frequency state that will be updated once per frame that is better suited to a uniform.

The vsg::ViewDependentState has the type of granularity of that would be appropriate. Perhaps it could even be extended to include simulation time and frame count as an option as I can see this b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@CHristopher-G-C
Comment options

@robertosfield
Comment options

Answer selected by robertosfield
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants