[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] 2d canvas context to WebGL



All,

Sorry if this is already documented but is there a way to efficiently use a 2d canvas context in WebGL?
We've seen cases where people want to apply effects on 2d contexts and they're doing this by copying the 2d canvas to a buffer, running a shader on it and getting the result back.
This is an expensive workflow both in time and memory. 

Since the 2d canvas is already on the GPU (on most browsers), is there a way to directly access it from WebGL?

Thanks!