Skip to content

Move EboAlphaWritting over to MappedBufferIntWritter#986

Open
RuffledPlume wants to merge 10 commits into117HD:masterfrom
RuffledPlume:EboAlphaintWritter
Open

Move EboAlphaWritting over to MappedBufferIntWritter#986
RuffledPlume wants to merge 10 commits into117HD:masterfrom
RuffledPlume:EboAlphaintWritter

Conversation

@RuffledPlume
Copy link
Contributor

No description provided.

RuffledPlume and others added 7 commits March 4, 2026 12:56
 Resolves issues where there is no room left in the mapped buffer, since GLMappedBufferIntWritter will allocate stagingBuffers to hold the data temporarily
alphaModels are pushed in the order they should be uploaded in, so the offset is now redundant
This was always wrong anyway, since multiLoc could change the amount of alpha within a given zone
 * EBOAlphaWritter needs to Sync with GPU since its not double buffered
 * Clean up state after doing Scene & Directional Pass
 * Ensure GLBuffer.Bind() is being used instead of glBindBuffer()
@RuffledPlume
Copy link
Contributor Author

09c3fb8

  • Fixes flickering by making the EBO Map Sync with the GPU before Invalidating the Buffer
  • Fixes EBO Errors by cleaning up State in various places & switching to .Bind .Unbind instead of doing glBindBuffer within GLBuffer & Mapped Variant

aHooder added 2 commits March 7, 2026 13:46
Since the bound EBO is part of VAO state, we probably shouldn't make it
seem like it's global state by unbinding it right after explicitly
unbinding the current VAO, even though it in practice makes no
difference of course.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants