Skip to content

Commit 3d835a2

Browse files
MediaPipe Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 732100969
1 parent f50e479 commit 3d835a2

File tree

3 files changed

+1226
-0
lines changed

3 files changed

+1226
-0
lines changed

mediapipe/gpu/webgpu/BUILD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
load("@bazel_skylib//lib:selects.bzl", "selects")
22
load("//mediapipe/framework:mediapipe_cc_test.bzl", "mediapipe_cc_test")
3+
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_proto_library")
34

45
licenses(["notice"])
56

@@ -145,3 +146,32 @@ cc_library(
145146
"//mediapipe/framework/formats:tensor",
146147
],
147148
)
149+
150+
cc_library(
151+
name = "webgpu_shader_calculator",
152+
srcs = ["webgpu_shader_calculator.cc"],
153+
deps = [
154+
":webgpu_shader_calculator_cc_proto",
155+
"//mediapipe/framework:calculator_framework",
156+
"//mediapipe/framework:calculator_options_cc_proto",
157+
"//mediapipe/framework/deps:re2",
158+
"//mediapipe/framework/port:status",
159+
"//mediapipe/gpu:gpu_buffer",
160+
"//mediapipe/gpu:gpu_buffer_format",
161+
"//mediapipe/gpu/webgpu:webgpu_service",
162+
"//mediapipe/gpu/webgpu:webgpu_texture_buffer",
163+
"//mediapipe/gpu/webgpu:webgpu_texture_buffer_3d",
164+
"//mediapipe/gpu/webgpu:webgpu_texture_view",
165+
"//mediapipe/util:resource_util",
166+
"@com_google_absl//absl/strings:str_format",
167+
],
168+
alwayslink = 1,
169+
)
170+
171+
mediapipe_proto_library(
172+
name = "webgpu_shader_calculator_proto",
173+
srcs = ["webgpu_shader_calculator.proto"],
174+
deps = [
175+
"//mediapipe/framework:calculator_proto",
176+
],
177+
)

0 commit comments

Comments
 (0)