gpu: convert Sampler from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 14:57:40 -07:00 committed by Stephen Gutekanst
parent cb8c874536
commit 34edad6a2c
3 changed files with 35 additions and 38 deletions

View file

@ -12,7 +12,7 @@ pub const BindGroupEntry = extern struct {
buffer: ?Buffer,
offset: u64,
size: u64,
sampler: Sampler = Sampler.none, // nullable
sampler: ?Sampler,
texture_view: TextureView = TextureView.none, // nullable
};