Skip to content

Commit ecbdb21

Browse files
committed
Add missing step to copy files to phone
1 parent 6cde4e0 commit ecbdb21

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

content/learning-paths/smartphones-and-mobile/android_webgpu_dawn/6-render-a-simple-3D-object-part-2.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,18 @@ desc.nextInChain = &toggles.chain;
123123
Toggles are Dawn’s special way of enabling/disabling features at the scale of the whole WebGPU instance. See the whole list in [Toggle.cpp](https://dawn.googlesource.com/dawn/+/refs/heads/main/src/dawn/native/Toggles.cpp#33).
124124
{{% /notice %}}
125125

126-
Hit the **Run** icon in Android Studio, which build the application and launch it on the connected device, producing the following output
126+
## Building and Running the application
127+
128+
Now we can build and run the application, but first copy the file with shader code and 3D object files to connected phone
129+
130+
``` bash
131+
cd app/src/main/cpp
132+
adb shell "mkdir /data/local/tmp/webgpu/"
133+
adb push resources/shader_texture_file.wgsl /data/local/tmp/webgpu/
134+
adb push resources/cone_in_turdis.obj /data/local/tmp/webgpu/
135+
adb push resources/cone_in_turdis.mtl /data/local/tmp/webgpu/
136+
```
137+
138+
Now click the **Run** icon in Android Studio, which builds the application and launches it on the connected device, producing the following output
139+
127140
!["Output"](./images/output.gif, "Output")

0 commit comments

Comments
 (0)