This was a bad idea. Easy enough to wrap all the functionality in c++ semantics, but it's not really useful, at least not to me.
Handcrafted idiomatic C++ wrapper for wgpu-native
I originally set out to implement a zero-ish overhead wrapper for wgpu-native. Currently, the file structs.hpp contains a handful of structs matching the transparent structs and descriptors in webgpu.h, but they are extremely naive implementations that do a lot of duplicating and storing data.
Incorporate with cmake FetchContent.
include(FetchContent)
FetchContent_Declare(
echdina
GIT_REPOSITORY https://github.com/adamdusty/echidna.git
GIT_TAG main
GIT_SHALLOW TRUE
SYSTEM
)
FetchContent_MakeAvailable(echidna)
add_executable(application)
target_sources(application PRIVATE main.cpp)
target_link_libraries(application PUBLIC echidna::echidna)Via cmake
cmake --preset dev
cmake --build --preset dev
build/dev/samples/phongVia just
just c
just b
just phongcmake --preset release
cmake --build --preset release
cmake --install build/release