wgcore 0.2.2

Utilities and abstractions for composable WGSL shaders.
Documentation
1
2
3
4
5
6
7
8
9
#define_import_path composable::module

struct MyStruct {
    value: f32,
}

fn shared_function(a: MyStruct, b: MyStruct) -> MyStruct {
    return MyStruct(a.value + b.value);
}