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;
|
||||
} WGPUConstantEntry;
|
||||
|
||||
// TODO: Dawn-specific?
|
||||
typedef struct WGPUCopyTextureForBrowserOptions {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
bool flipY;
|
||||
|
|
@ -203,13 +204,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
|
|||
WGPUAlphaMode dstAlphaMode;
|
||||
} WGPUCopyTextureForBrowserOptions;
|
||||
|
||||
typedef struct WGPUMultisampleState {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
uint32_t count;
|
||||
uint32_t mask;
|
||||
bool alphaToCoverageEnabled;
|
||||
} WGPUMultisampleState;
|
||||
|
||||
typedef struct WGPUPrimitiveState {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
WGPUPrimitiveTopology topology;
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
|||
pub const BindGroupEntry = @import("structs.zig").BindGroupEntry;
|
||||
pub const BufferBindingLayout = @import("structs.zig").BufferBindingLayout;
|
||||
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
||||
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
||||
|
||||
// Enumerations
|
||||
pub const Feature = @import("enums.zig").Feature;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,12 @@ pub const CompilationMessage = struct {
|
|||
length: u64,
|
||||
};
|
||||
|
||||
pub const MultisampleState = struct {
|
||||
count: u32,
|
||||
mask: u32,
|
||||
alpha_to_coverage_enabled: bool,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = BindGroupEntry;
|
||||
_ = BufferBindingLayout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue