]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml WebGPU: remove userdata from request adapter callback (#15527)
authorDaniel Bevenius <redacted>
Sun, 7 Sep 2025 08:19:45 +0000 (10:19 +0200)
committerGitHub <redacted>
Sun, 7 Sep 2025 08:19:45 +0000 (11:19 +0300)
commit3b15924d71237a43bb5ad71f5b885ee66a821342
tree8e9ce8d4235f203a14f2d240f371faa7167c29a6
parent79bc429262268ad2ac8a364cfe6c2d6b9c5f008a
ggml WebGPU: remove userdata from request adapter callback (#15527)

* ggml WebGPU: remove userdata from request adapter callback

This commit removes the `userdata` parameter from the WebGPU request
adapter callback in `ggml-webgpu.cpp`. Instead, the lambda function
captures the `webgpu_context` directly.

The motivation for this change is to simplify the code and improve
readability.

* inline the callback lambda into the RequestAdapter call

This commit removes the callback lambda variable and inlines it directly
into the RequestAdapter call.
ggml/src/ggml-webgpu/ggml-webgpu.cpp