Skip to content

AndrewChan2022/wgpu_dawn_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

this is dawn webgpu run iOS OpenGL ES 3.0 backend

build for ios

debug:

mkdir build && cd build
cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS

release:

mkdir build && cd build
cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_BUILD_TYPE=Release
then in xcode -> edit scheme -> choose release

demo

wgpu lib guide:

check MyWGPUPassImp.cpp

issues

1. need call glDisable(GL_SCISSOR_TEST) after create device
2. use libglslang compile glsl to spirv, then use tint to translate to glsl.
3. origin tint coordinate system to flip y, and transform z[0,1] to [-1,1], here we comment it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published