File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
common/src/main/kotlin/com/lambda/graphics/buffer/pbo Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.lambda.graphics.buffer.pbo
22
33import com.lambda.graphics.buffer.BufferUsage
44import org.lwjgl.opengl.GL45C.*
5+ import org.lwjgl.opengl.GREMEDYStringMarker
56import java.nio.ByteBuffer
67
78class PixelBuffer (
@@ -30,6 +31,8 @@ class PixelBuffer(
3031 recordTransfer {
3132 uploadIdx = (writeIdx + 1 ) % buffers
3233
34+ GREMEDYStringMarker .glStringMarkerGREMEDY(" Data transfer to buffer" )
35+
3336 // Bind the next PBO to update pixel values
3437 glBindBuffer(GL_PIXEL_UNPACK_BUFFER , pboIds[writeIdx])
3538
@@ -47,6 +50,8 @@ class PixelBuffer(
4750 // Bind the current PBO for writing
4851 glBindBuffer(GL_PIXEL_UNPACK_BUFFER , pboIds[uploadIdx])
4952
53+ GREMEDYStringMarker .glStringMarkerGREMEDY(" Data transfer to GPU" )
54+
5055 // Copy the pixel values from the PBO to the texture
5156 process()
5257
You can’t perform that action at this time.
0 commit comments