gpu: add CompilationInfo
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3393813ebc
commit
bf3cf08e1e
3 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue