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;
|
WGPUAlphaMode dstAlphaMode;
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
} WGPUCopyTextureForBrowserOptions;
|
||||||
|
|
||||||
typedef struct WGPUCompilationInfo {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
uint32_t messageCount;
|
|
||||||
WGPUCompilationMessage const * messages;
|
|
||||||
} WGPUCompilationInfo;
|
|
||||||
|
|
||||||
typedef struct WGPUDepthStencilState {
|
typedef struct WGPUDepthStencilState {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
WGPUTextureFormat format;
|
WGPUTextureFormat format;
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
||||||
|
|
||||||
// Data structures not ABI-compatible with webgpu.h
|
// Data structures not ABI-compatible with webgpu.h
|
||||||
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
||||||
|
pub const CompilationInfo = @Import("structs.zig").CompilationInfo;
|
||||||
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
||||||
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
||||||
pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBindingLayout;
|
pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBindingLayout;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@ pub const CompilationMessage = struct {
|
||||||
length: u64,
|
length: u64,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CompilationInfo = struct {
|
||||||
|
messages: []const CompilationMessage,
|
||||||
|
};
|
||||||
|
|
||||||
pub const MultisampleState = struct {
|
pub const MultisampleState = struct {
|
||||||
count: u32,
|
count: u32,
|
||||||
mask: u32,
|
mask: u32,
|
||||||
|
|
@ -40,6 +44,7 @@ pub const StorageTextureBindingLayout = struct {
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
|
_ = CompilationInfo;
|
||||||
_ = MultisampleState;
|
_ = MultisampleState;
|
||||||
_ = PrimitiveState;
|
_ = PrimitiveState;
|
||||||
_ = StorageTextureBindingLayout;
|
_ = StorageTextureBindingLayout;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue