Note + bound
This commit is contained in:
@@ -202,7 +202,7 @@ public class MDICSectionRenderer extends AbstractSectionRenderer<MDICViewport, B
|
|||||||
glBindVertexArray(RenderService.STATIC_VAO);//Needs to be before binding
|
glBindVertexArray(RenderService.STATIC_VAO);//Needs to be before binding
|
||||||
this.bindRenderingBuffers();
|
this.bindRenderingBuffers();
|
||||||
|
|
||||||
glMultiDrawElementsIndirectCountARB(GL_TRIANGLES, GL_UNSIGNED_SHORT, TRANSLUCENT_OFFSET*5*4, 4*4, Math.min((int)(this.geometryManager.getSectionCount()*4.4+128), 100_000), 0);
|
glMultiDrawElementsIndirectCountARB(GL_TRIANGLES, GL_UNSIGNED_SHORT, TRANSLUCENT_OFFSET*5*4, 4*4, Math.min(this.geometryManager.getSectionCount(), 100_000), 0);
|
||||||
|
|
||||||
glEnable(GL_CULL_FACE);
|
glEnable(GL_CULL_FACE);
|
||||||
glBindVertexArray(0);
|
glBindVertexArray(0);
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ void main() {
|
|||||||
|
|
||||||
//Work size batching
|
//Work size batching
|
||||||
for (uint i = 0; i < OPS_PER_THREAD; i++) {
|
for (uint i = 0; i < OPS_PER_THREAD; i++) {
|
||||||
barrier();
|
barrier();//Probably unneeded, was just to keep warp coheriancy
|
||||||
uint id = gl_LocalInvocationID.x+(i*WORK_SIZE);
|
uint id = gl_LocalInvocationID.x+(i*WORK_SIZE);
|
||||||
uint sid = initalSort[id];
|
uint sid = initalSort[id];
|
||||||
if ((sid&(1u<<31)) != 0) {
|
if ((sid&(1u<<31)) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user