Registered CUDA/OpenGL buffer resource.
new(context:Context, handle:QCudaGlResource)
finalcontext:Context
inlineclose():Void
Alias for dispose(), matching other Quadrants resource wrappers.
dispose():Void
Unregisters the resource. Disposing a mapped resource unmaps it in native code first.
map():Int64
Maps the OpenGL buffer and returns a CUDA device pointer valid until unmap/dispose.
unmap():Void
Unmaps the OpenGL buffer after device writes are finished. Safe to call when already unmapped.