ArrayBuffer created from external buffer can't be used in WebGL
Reported by
orange4g...@gmail.com,
Oct 14
|
|||
Issue descriptionVersion: Chromium 69.0.3497.106 OS: Windows 10 Architecture: x64 steps will reproduce the problem? 1. create ArrayBuffer from external data (For me, I wrote a N-API native module to do this) 2. WebGL: create Texture and bind texImage2D with external ArrayBuffer 3. You got an error What is the expected output? No crash What do you see instead? Crash Please use labels and text to provide additional information. webgl webgl2 arraybuffer extenral-arraybuffer
,
Oct 29
,
Oct 29
Additional information to reproduce : 1. Download the files from link below https://drive.google.com/file/d/1iQJyylkXJI1_Wwbu699vbxTExXfhgtzz/view?usp=sharing 2. $ npm install (install electron) 3. $ ./build.sh (build N-API module) 4. $ npm start (start electron) You can get a expected output with grey color wavy image rendered on a canvas with UNCOMMENT line 20 at 'index.html' What index.html does do is simply renders a Texture2D which of code is mostly came from here (https://developer.mozilla.org/ko/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL)
,
Oct 29
I'm sorry, but our team doesn't support Electron or adding native Node modules into the Electron environment. Looking at your test case, I'm not sure whether the sandbox properly allows loading of the Node module; whether the native Node module is properly being loaded into the renderer process; whether the external ArrayBuffer that's being allocated is compatible with the ArrayBuffers that V8 typically allocates, so they can be passed into WebGL's C++ code; etc. Again, I'm sorry but we can't support you. Please reach out to the Electron community for help. |
|||
►
Sign in to add a comment |
|||
Comment 1 by hablich@chromium.org
, Oct 29