gpu: convert Buffer from enum(usize) to *opaque
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9b28403d9d
commit
ca21c4fa80
3 changed files with 61 additions and 64 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const ShaderStageFlags = @import("types.zig").ShaderStageFlags;
|
||||
const Buffer = @import("buffer.zig").Buffer;
|
||||
const BufferBindingLayout = @import("buffer.zig").BufferBindingLayout;
|
||||
const Sampler = @import("sampler.zig").Sampler;
|
||||
const Texture = @import("texture.zig").Texture;
|
||||
const StorageTextureBindingLayout = @import("types.zig").StorageTextureBindingLayout;
|
||||
|
|
@ -11,7 +12,7 @@ pub const BindGroupLayoutEntry = extern struct {
|
|||
next_in_chain: *const ChainedStruct,
|
||||
binding: u32,
|
||||
visibility: ShaderStageFlags,
|
||||
buffer: Buffer.BindingLayout,
|
||||
buffer: BufferBindingLayout,
|
||||
sampler: Sampler.BindingLayout,
|
||||
texture: Texture.BindingLayout,
|
||||
storage_texture: StorageTextureBindingLayout,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue