gpu: fix BindGroup.Entry so that optional things are optional
This commit is contained in:
parent
35b38dfa96
commit
f4c8a1908d
2 changed files with 28 additions and 31 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue