PIX markers in monogame

I’ve patched GraphicsDebug.DirectX.cs to allow PIX-like annotations and I thought it’d be interesting to share:

Once compiled, you can use GraphicsDevice.GraphicsDebug.SetMarker (Color,“mark name”) or BeginEvent/EndEvent to create GPU annotations/events and make the GPU debugging slightly better.

sadly, I don’t know what the color means :slight_smile: I haven’t been able to nest events either.

I don’t know what went through my head when creating this in GraphicsDebug. This can be a standalone class which doesn’t require MG modification.