gfx-rs / wgpu-native

Native WebGPU implementation based on wgpu-core
Apache License 2.0
843 stars 96 forks source link

wgpu.h: Don't require preprocessing to use. #359

Closed waywardmonkeys closed 7 months ago

waywardmonkeys commented 7 months ago

Right now, wgpu.h can be included directly and it then includes webgpu-headers/webgpu.h. This is altered during creation of a distribution package to remove the "webgpu-headers", but by adding ffi/webgpu-headers to the include search path, we can avoid having to preprocess the wgpu.h.

waywardmonkeys commented 7 months ago

I ran across this while working on some cmake stuff regarding #251

cc: @eliemichel

waywardmonkeys commented 7 months ago

@rajveermalviya Hopefully good to go now!

waywardmonkeys commented 7 months ago

Thanks… another Pr coming up soon!