Skip to content

Repository files navigation

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.

Echidna

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.

Use

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)

Build

Via cmake

cmake --preset dev
cmake --build --preset dev
build/dev/samples/phong

Via just

just c
just b
just phong

Install

cmake --preset release
cmake --build --preset release
cmake --install build/release

About

WIP idiomatic c++ wgpu-native wrapper

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages