Skip to content

Commit a1cc82d

Browse files
committed
Add missing __deps: [..] statements.
1 parent e9b74a8 commit a1cc82d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/lib_webgpu.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ mergeInto(LibraryManager.library, {
186186
wgpu[o]['label'] = UTF8ToString(label);
187187
},
188188

189+
wgpu_object_get_label__deps: ['$stringToUTF8'],
189190
wgpu_object_get_label: function(o, dstLabel, dstLabelSize) {
190191
{{{ wassert('wgpu[o]'); }}}
191192
stringToUTF8(wgpu[o]['label'], dstLabel, dstLabelSize);
@@ -367,6 +368,7 @@ mergeInto(LibraryManager.library, {
367368
return 1;
368369
},
369370

371+
wgpuReportErrorCodeAndMessage__deps: ['$lengthBytesUTF8', '$stringToUTF8'],
370372
wgpuReportErrorCodeAndMessage: function(device, callback, errorCode, stringMessage, userData) {
371373
if (stringMessage) {
372374
// n.b. these variables deliberately rely on 'var' scope.
@@ -758,6 +760,7 @@ mergeInto(LibraryManager.library, {
758760
#endif
759761

760762
wgpu_adapter_request_adapter_info_async__docs: '/** @suppress{checkTypes} */', // This function intentionally calls cb() without args.
763+
wgpu_adapter_request_adapter_info_async__deps: ['$stringToUTF8'],
761764
wgpu_adapter_request_adapter_info_async: function(adapter, unmaskHints, callback, userData) {
762765
{{{ wdebuglog('`wgpu_adapter_request_adapter_info_async(adapter: ${adapter}, unmaskHints: ${unmaskHints}, callback: ${callback}, userData: ${userData})`'); }}}
763766
{{{ wassert('adapter != 0'); }}}
@@ -855,6 +858,7 @@ mergeInto(LibraryManager.library, {
855858
);
856859
},
857860

861+
wgpu_shader_module_get_compilation_info_async__deps: ['$lengthBytesUTF8', '$stringToUTF8', 'malloc'],
858862
wgpu_shader_module_get_compilation_info_async: function(shaderModule, callback, userData) {
859863
{{{ wdebuglog('`wgpu_shader_module_get_compilation_info_async(shaderModule=${shaderModule}, callback=${callback}, userData=${userData})`'); }}}
860864
{{{ wassert('shaderModule != 0'); }}}

0 commit comments

Comments
 (0)