gpu: add BufferBindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a541bf4fa1
commit
95413bae6f
2 changed files with 8 additions and 7 deletions
|
|
@ -187,13 +187,6 @@ typedef struct WGPURenderPipelineDescriptor {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUBufferBindingLayout {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
WGPUBufferBindingType type;
|
||||
bool hasDynamicOffset;
|
||||
uint64_t minBindingSize;
|
||||
} WGPUBufferBindingLayout;
|
||||
|
||||
typedef struct WGPUCompilationMessage {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * message;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
const Buffer = @import("Buffer.zig");
|
||||
const Sampler = @import("Sampler.zig");
|
||||
const TextureView = @import("TextureView.zig");
|
||||
const BufferBindingType = @import("enums.zig").BufferBindingType;
|
||||
|
||||
pub const BindGroupEntry = struct {
|
||||
binding: u32,
|
||||
|
|
@ -12,6 +13,13 @@ pub const BindGroupEntry = struct {
|
|||
texture_view: TextureView,
|
||||
};
|
||||
|
||||
pub const BufferBindingLayout = struct {
|
||||
type: BufferBindingType,
|
||||
has_dynamic_offset: bool,
|
||||
min_binding_size: u64,
|
||||
}
|
||||
|
||||
test "syntax" {
|
||||
_ = BindGroupEntry;
|
||||
_ = BufferBindingLayout;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue