Skip to content
Discussion options

You must be logged in to vote

Have you taken a look at ProgramManager? There are several ways you can use it, such as registering shaders to get a 64Bit ID that you can later use to load the cached Program, or simply try to load the shaders, where the ProgramManager will automatically compute the 64Bit ID and load the cached Program if it exists, otherwise it creates a new Program and adds it to the cache.

For example, you could register shaders with ProgramManager::registerCustomProgram(), and store the 64Bit ID that it returns for later use. You pass that ID to ProgramManager::loadProgram(uint64_t progId) to get the cached Program, and then create the ProgramState from it, which you can then set via Node::setProgram…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kdeckard
Comment options

@rh101
Comment options

rh101 Jun 2, 2026
Collaborator

@kdeckard
Comment options

Answer selected by kdeckard
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