|
1 | 1 | load("@bazel_skylib//lib:selects.bzl", "selects") |
2 | 2 | load("//mediapipe/framework:mediapipe_cc_test.bzl", "mediapipe_cc_test") |
| 3 | +load("//mediapipe/framework/port:build_config.bzl", "mediapipe_proto_library") |
3 | 4 |
|
4 | 5 | licenses(["notice"]) |
5 | 6 |
|
@@ -145,3 +146,32 @@ cc_library( |
145 | 146 | "//mediapipe/framework/formats:tensor", |
146 | 147 | ], |
147 | 148 | ) |
| 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