gpu: add MultisampleState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0fd769923c
commit
a6be646b94
3 changed files with 8 additions and 7 deletions
|
|
@ -192,6 +192,7 @@ typedef struct WGPUConstantEntry {
|
||||||
double value;
|
double value;
|
||||||
} WGPUConstantEntry;
|
} WGPUConstantEntry;
|
||||||
|
|
||||||
|
// TODO: Dawn-specific?
|
||||||
typedef struct WGPUCopyTextureForBrowserOptions {
|
typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
bool flipY;
|
bool flipY;
|
||||||
|
|
@ -203,13 +204,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
WGPUAlphaMode dstAlphaMode;
|
WGPUAlphaMode dstAlphaMode;
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
} WGPUCopyTextureForBrowserOptions;
|
||||||
|
|
||||||
typedef struct WGPUMultisampleState {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
uint32_t count;
|
|
||||||
uint32_t mask;
|
|
||||||
bool alphaToCoverageEnabled;
|
|
||||||
} WGPUMultisampleState;
|
|
||||||
|
|
||||||
typedef struct WGPUPrimitiveState {
|
typedef struct WGPUPrimitiveState {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
WGPUPrimitiveTopology topology;
|
WGPUPrimitiveTopology topology;
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
||||||
pub const BindGroupEntry = @import("structs.zig").BindGroupEntry;
|
pub const BindGroupEntry = @import("structs.zig").BindGroupEntry;
|
||||||
pub const BufferBindingLayout = @import("structs.zig").BufferBindingLayout;
|
pub const BufferBindingLayout = @import("structs.zig").BufferBindingLayout;
|
||||||
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
||||||
|
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ pub const CompilationMessage = struct {
|
||||||
length: u64,
|
length: u64,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const MultisampleState = struct {
|
||||||
|
count: u32,
|
||||||
|
mask: u32,
|
||||||
|
alpha_to_coverage_enabled: bool,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = BindGroupEntry;
|
_ = BindGroupEntry;
|
||||||
_ = BufferBindingLayout;
|
_ = BufferBindingLayout;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue