gpu: add CompilationMessage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
95413bae6f
commit
49b7e423d3
2 changed files with 12 additions and 12 deletions
|
|
@ -3,6 +3,7 @@ const Buffer = @import("Buffer.zig");
|
|||
const Sampler = @import("Sampler.zig");
|
||||
const TextureView = @import("TextureView.zig");
|
||||
const BufferBindingType = @import("enums.zig").BufferBindingType;
|
||||
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
||||
|
||||
pub const BindGroupEntry = struct {
|
||||
binding: u32,
|
||||
|
|
@ -17,9 +18,19 @@ pub const BufferBindingLayout = struct {
|
|||
type: BufferBindingType,
|
||||
has_dynamic_offset: bool,
|
||||
min_binding_size: u64,
|
||||
}
|
||||
};
|
||||
|
||||
pub const CompilationMessage = struct {
|
||||
message: [:0]const u8,
|
||||
type: CompilationMessageType,
|
||||
line_num: u64,
|
||||
line_pos: u64,
|
||||
offset: u64,
|
||||
length: u64,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = BindGroupEntry;
|
||||
_ = BufferBindingLayout;
|
||||
_ = CompilationMessage;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue