I'm creating a webgl texture in javascript, and trying to get back the handle pointer for the texture, so that I can use it within Texture2D.CreateExternalTexture.
Unfortunately I can't find any examples on this online!
This is the js code:
Texture2D.CreateExternalTexture from a webgl texture
Unfortunately I can't find any examples on this online!
This is the js code:
Code (JavaScript):
- GetCanvasTexturePointer: function () {
- var canvas = document.querySelector('#iframecanvas').contentWindow.document.querySelector('canvas');
- var texture = null;
- if (canvas != null)
- {...