TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ UpdateShader()

void SharedMemoryManager::UpdateShader ( Shader shader)

Definition at line 277 of file SharedMemoryManager.cpp.

278{
279 glBindBuffer(GL_SHADER_STORAGE_BUFFER, ssbo);
280 glBufferData(GL_SHADER_STORAGE_BUFFER, sizeof(SharedMemoryItem) * sharedMemoryBlobs.size(), sharedMemoryBlobs.data(), GL_DYNAMIC_DRAW);
281 glBindBufferBase(GL_SHADER_STORAGE_BUFFER, ssboBinding, ssbo);
282 glBindBuffer(GL_SHADER_STORAGE_BUFFER, 0);
283}
SharedMemoryItem ! A data structure to be passed to the GPU.