Add texture sources for WebGL

This commit is contained in:
Christoph Diehl 2018-02-20 02:45:45 +01:00
parent 29fd8b2d53
commit 3ddc37a7e9
No known key found for this signature in database
GPG key ID: 799CE5B68FEF404A

View file

@ -53,5 +53,16 @@
}, },
renderbufferTarget: () => { renderbufferTarget: () => {
return 'RENDERBUFFER' return 'RENDERBUFFER'
},
textureSources: () => {
sources = [
'HTMLCanvasElement',
'HTMLImageElement',
'HTMLVideoElement',
'ImageBitmap',
'ImageData',
'ArrayBufferView'
]
return random.item(sources)
} }
} }