Skip to content

Commit a0452b4

Browse files
MediaPipe Teamcopybara-github
authored andcommitted
Use wgpu::ShaderSourceWGSL instead of wgpu::ShaderModuleWGSLDescriptor.
PiperOrigin-RevId: 732281179
1 parent 3d835a2 commit a0452b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mediapipe/gpu/webgpu/image_to_tensor_converter_webgpu_texture.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn main(@builtin(global_invocation_id) gid : vec3<u32>) {
131131
kTileSize, kTileSize);
132132

133133
// Create the shader module.
134-
wgpu::ShaderModuleWGSLDescriptor wgsl;
134+
wgpu::ShaderSourceWGSL wgsl;
135135
wgsl.code = shader.c_str();
136136
wgpu::ShaderModuleDescriptor shader_desc = {.nextInChain = &wgsl};
137137
wgpu::ShaderModule module =

0 commit comments

Comments
 (0)