diff options
author | Andreas Grois <andi@grois.info> | 2018-03-22 22:52:44 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-22 22:52:44 +0100 |
commit | e45b39dc2ebb76bc079677b1d186b6a5109d1a5b (patch) | |
tree | 17919228413393625b94fbfd3435f966159e33dc /BuddhaTest/src | |
parent | d06a01040cd7614a6951d6e6e350135a05ddb9c2 (diff) |
Get occupancy back up good by exploiting shared memory.
Diffstat (limited to 'BuddhaTest/src')
-rw-r--r-- | BuddhaTest/src/BuddhaTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp index 4de252d..4d7ab9f 100644 --- a/BuddhaTest/src/BuddhaTest.cpp +++ b/BuddhaTest/src/BuddhaTest.cpp @@ -122,7 +122,7 @@ int main(int argc, char * argv[]) GLuint brightnessBuffer; glGenBuffers(1,&brightnessBuffer); glBindBuffer(GL_SHADER_STORAGE_BUFFER, brightnessBuffer); - glBufferData(GL_SHADER_STORAGE_BUFFER, 16,nullptr, GL_DYNAMIC_COPY); + glBufferData(GL_SHADER_STORAGE_BUFFER, 4,nullptr, GL_DYNAMIC_COPY); glClearBufferData(GL_SHADER_STORAGE_BUFFER,GL_R8,GL_RED,GL_UNSIGNED_INT,nullptr); glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, brightnessBuffer); |