gpu: fix BindGroup.Entry so that optional things are optional

This commit is contained in:
Silver 2022-04-07 00:17:21 +01:00 committed by Stephen Gutekanst
parent 35b38dfa96
commit f4c8a1908d
2 changed files with 28 additions and 31 deletions

View file

@ -30,11 +30,11 @@ pub inline fn setLabel(group: BindGroup, label: [:0]const u8) void {
pub const Entry = struct {
binding: u32,
buffer: Buffer,
buffer: ?Buffer,
offset: u64,
size: u64,
sampler: Sampler,
texture_view: TextureView,
sampler: ?Sampler,
texture_view: ?TextureView,
};
pub const Descriptor = struct {