Graphics Buffers can be used as Shader Storage Buffers.

This commit is contained in:
Alex Szpakowski
2021-01-10 17:53:12 -04:00
parent 6fede802b3
commit 50ff86bd92
15 changed files with 451 additions and 68 deletions
+9
View File
@@ -80,6 +80,12 @@ private:
bool active = false;
};
struct BufferBinding
{
int bindingindex = 0;
GLuint buffer = 0;
};
// Map active uniform names to their locations.
void mapActiveUniforms();
@@ -117,6 +123,9 @@ private:
// Texture unit pool for setting textures
std::vector<TextureUnit> textureUnits;
std::vector<int> storageBufferBindingIndexToActiveBinding;
std::vector<BufferBinding> activeStorageBufferBindings;
std::vector<std::pair<const UniformInfo *, int>> pendingUniformUpdates;
float lastPointSize;