mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
This PR adds `ResourceId::Sampler`, `NativeResource::Sampler` and `TrackerSet::samplers`. Samplers are (similarly to bind groups) created with their own life guard and a device id to keep the device ref count alive. Also added are `extern wgpu_sampler_destroy` and `sampler_destroy`. The rest of the implementation was guided by compiler errors, so there is a good chance I didn't find something crucial that also needed doing. Please check :)