gpu: add MultisampleState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 10:33:52 -07:00 committed by Stephen Gutekanst
parent 8f80cdc321
commit 4fc752723c
3 changed files with 18 additions and 18 deletions

View file

@ -1,10 +1,3 @@
typedef struct WGPUMultisampleState {
next_in_chain: *const ChainedStruct,
count: u32,
mask: u32,
alpha_to_coverage_enabled: bool,
} WGPUMultisampleState;
typedef struct WGPUPipelineLayoutDescriptor { typedef struct WGPUPipelineLayoutDescriptor {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null, label: ?[*:0]const u8 = null,

View file

@ -47,17 +47,6 @@ pub const ComputePassTimestampWrite = struct {
location: ComputePassTimestampLocation, location: ComputePassTimestampLocation,
}; };
pub const CopyTextureForBrowserOptions = extern struct {
next_in_chain: *const ChainedStruct,
flip_y: bool,
needs_color_space_conversion: bool,
src_alpha_mode: AlphaMode,
src_transfer_function_parameters: ?*const f32 = null,
conversion_matrix: ?*const f32 = null,
dst_transfer_function_parameters: ?*const f32 = null,
dst_alpha_mode: AlphaMode,
};
test { test {
refAllDecls(@import("adapter.zig")); refAllDecls(@import("adapter.zig"));
refAllDecls(@import("bind_group.zig")); refAllDecls(@import("bind_group.zig"));

View file

@ -446,6 +446,24 @@ pub const ConstantEntry = extern struct {
value: f64, value: f64,
}; };
pub const CopyTextureForBrowserOptions = extern struct {
next_in_chain: *const ChainedStruct,
flip_y: bool,
needs_color_space_conversion: bool,
src_alpha_mode: AlphaMode,
src_transfer_function_parameters: ?*const f32 = null,
conversion_matrix: ?*const f32 = null,
dst_transfer_function_parameters: ?*const f32 = null,
dst_alpha_mode: AlphaMode,
};
pub const MultisampleState = struct {
next_in_chain: *const ChainedStruct,
count: u32,
mask: u32,
alpha_to_coverage_enabled: bool,
};
test "BackendType name" { test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
} }