Tree @main (Download .tar.gz)
lua texture-share-vk
A LÖVE library for sharing GPU textures between processes.
This wraps the OpenGL C API of texture-share-vk and allows sending and receiving LÖVE Canvas contents.
API
tvs.new()
: creates a newClient
object (texture-share-gl
client).Client:newSharedCanvas(name, ...)
: creates a newSharedCanvas
object by delegating tolove.graphics.newCanvas(...)
and publishes it.Client:loadSharedCanvas(name)
: loads aSharedCanvas
object from another publisher.Canvas.name
: the name passed in the SharedCanvas constructorCanvas.canvas
: the love2dCanvas
objectCanvas:send()
: Sends the current contents of the Canvas to subscribers, call this after drawing to the Canvas.Canvas:load()
: Loads updated contents from the publisher, call this before drawing the Canvas.Canvas:any_other_method()
: delegated to the love2dCanvas
object