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
11
gpu/src/TODO
11
gpu/src/TODO
|
|
@ -186,17 +186,6 @@ typedef struct WGPURenderPipelineDescriptor {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct WGPUCompilationMessage {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
char const * message;
|
|
||||||
WGPUCompilationMessageType type;
|
|
||||||
uint64_t lineNum;
|
|
||||||
uint64_t linePos;
|
|
||||||
uint64_t offset;
|
|
||||||
uint64_t length;
|
|
||||||
} WGPUCompilationMessage;
|
|
||||||
|
|
||||||
typedef struct WGPUConstantEntry {
|
typedef struct WGPUConstantEntry {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
char const * key;
|
char const * key;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ const Buffer = @import("Buffer.zig");
|
||||||
const Sampler = @import("Sampler.zig");
|
const Sampler = @import("Sampler.zig");
|
||||||
const TextureView = @import("TextureView.zig");
|
const TextureView = @import("TextureView.zig");
|
||||||
const BufferBindingType = @import("enums.zig").BufferBindingType;
|
const BufferBindingType = @import("enums.zig").BufferBindingType;
|
||||||
|
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
||||||
|
|
||||||
pub const BindGroupEntry = struct {
|
pub const BindGroupEntry = struct {
|
||||||
binding: u32,
|
binding: u32,
|
||||||
|
|
@ -17,9 +18,19 @@ pub const BufferBindingLayout = struct {
|
||||||
type: BufferBindingType,
|
type: BufferBindingType,
|
||||||
has_dynamic_offset: bool,
|
has_dynamic_offset: bool,
|
||||||
min_binding_size: u64,
|
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" {
|
test "syntax" {
|
||||||
_ = BindGroupEntry;
|
_ = BindGroupEntry;
|
||||||
_ = BufferBindingLayout;
|
_ = BufferBindingLayout;
|
||||||
|
_ = CompilationMessage;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue