Overte C++ Documentation
gpu::Context::ProgramsToSync Struct Reference

#include <Context.h>

Public Member Functions

 ProgramsToSync (const std::vector< gpu::ShaderPointer > &programs, std::function< void()> callback, size_t rate)
 

Detailed Description

Structure containing a vector of shader pointers that are to be synchronized and a callback that will be called when synchronization is finished. On OpenGL backend synchronization means loading and compiling the shader.

Constructor & Destructor Documentation

◆ ProgramsToSync()

gpu::Context::ProgramsToSync::ProgramsToSync ( const std::vector< gpu::ShaderPointer > &  programs,
std::function< void()>  callback,
size_t  rate 
)
inline
Parameters
programsVector of shaders to be loaded and compiled.
callbackFunction to call when work is done.
rateLimits how many shaders can be processed in a single frame.

The documentation for this struct was generated from the following file: