gpu: add CompilationInfo

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 16:17:42 -07:00 committed by Stephen Gutekanst
parent 3393813ebc
commit bf3cf08e1e
3 changed files with 6 additions and 6 deletions

View file

@ -204,12 +204,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
WGPUAlphaMode dstAlphaMode;
} WGPUCopyTextureForBrowserOptions;
typedef struct WGPUCompilationInfo {
WGPUChainedStruct const * nextInChain;
uint32_t messageCount;
WGPUCompilationMessage const * messages;
} WGPUCompilationInfo;
typedef struct WGPUDepthStencilState {
WGPUChainedStruct const * nextInChain;
WGPUTextureFormat format;

View file

@ -89,6 +89,7 @@ pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
// Data structures not ABI-compatible with webgpu.h
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
pub const CompilationInfo = @Import("structs.zig").CompilationInfo;
pub const MultisampleState = @import("structs.zig").MultisampleState;
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBindingLayout;

View file

@ -19,6 +19,10 @@ pub const CompilationMessage = struct {
length: u64,
};
pub const CompilationInfo = struct {
messages: []const CompilationMessage,
};
pub const MultisampleState = struct {
count: u32,
mask: u32,
@ -40,6 +44,7 @@ pub const StorageTextureBindingLayout = struct {
test "syntax" {
_ = CompilationMessage;
_ = CompilationInfo;
_ = MultisampleState;
_ = PrimitiveState;
_ = StorageTextureBindingLayout;