![]() ![]()
I've come across this problem many times over the years and still live in hope that there is an easy way to do this that I have missed. Std::cout << "lightCount value = " << *(int*)ptr << "\n" Void* ptr = glMapBuffer(GL_SHADER_STORAGE_BUFFER, GL_READ_ONLY) GlBufferSubData(GL_SHADER_STORAGE_BUFFER, sizeof(int), sizeof(LightData) * lights.size(),
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |