File tree 3 files changed +3
-19
lines changed
3 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,4 @@ var LibraryHTML5WebGPU = {
90
90
{ { { html5_gpu . makeImportExport ( 'render_bundle_encoder' , 'RenderBundleEncoder' ) } } }
91
91
{ { { html5_gpu . makeImportExport ( 'render_bundle' , 'RenderBundle' ) } } }
92
92
93
- for ( const key of Object . keys ( LibraryHTML5WebGPU ) ) {
94
- if ( typeof LibraryHTML5WebGPU [ key ] === 'function' && ! ( key + '__proxy' in LibraryHTML5WebGPU ) ) {
95
- LibraryHTML5WebGPU [ key + '__proxy' ] = 'sync' ;
96
- }
97
- }
98
-
99
93
addToLibrary ( LibraryHTML5WebGPU ) ;
Original file line number Diff line number Diff line change @@ -2730,9 +2730,6 @@ for (var value in LibraryWebGPU.$WebGPU.FeatureName) {
2730
2730
for ( const key of Object . keys ( LibraryWebGPU ) ) {
2731
2731
if ( typeof LibraryWebGPU [ key ] === 'function' ) {
2732
2732
LibraryWebGPU [ key + '__i53abi' ] = true ;
2733
- if ( ! ( key + '__proxy' in LibraryWebGPU ) ) {
2734
- LibraryWebGPU [ key + '__proxy' ] = 'sync' ;
2735
- }
2736
2733
}
2737
2734
}
2738
2735
Original file line number Diff line number Diff line change 1
- #include < stdio.h>
2
-
3
- #include < emscripten/em_asm.h>
1
+ #include < emscripten.h>
4
2
#include < emscripten/html5_webgpu.h>
5
3
6
- __attribute__ ((constructor)) void init () {
4
+ int main () {
7
5
EM_ASM ({
8
6
Module[' preinitializedWebGPUDevice' ] = { this_is: ' a_dummy_object' };
9
7
});
10
- }
11
-
12
- int main () {
13
- WGPUDevice d = emscripten_webgpu_get_device ();
14
- printf (" emscripten_webgpu_get_device: %p\n " , d);
15
- return 0 ;
8
+ emscripten_webgpu_get_device ();
16
9
}
You can’t perform that action at this time.
0 commit comments