Skip to content

Commit 68b24da

Browse files
committed
added debug gremedy labels
1 parent 06aba2d commit 68b24da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/src/main/kotlin/com/lambda/graphics/buffer/pbo/PixelBuffer.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.lambda.graphics.buffer.pbo
22

33
import com.lambda.graphics.buffer.BufferUsage
44
import org.lwjgl.opengl.GL45C.*
5+
import org.lwjgl.opengl.GREMEDYStringMarker
56
import java.nio.ByteBuffer
67

78
class 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

0 commit comments

Comments
 (0)