gpu: update defaults/optionality for CopyTextureForBrowserOptions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
420077e42f
commit
0bc1831eb3
1 changed files with 10 additions and 7 deletions
|
|
@ -475,13 +475,16 @@ pub const ConstantEntry = extern struct {
|
||||||
|
|
||||||
pub const CopyTextureForBrowserOptions = extern struct {
|
pub const CopyTextureForBrowserOptions = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
flip_y: bool,
|
flip_y: bool = false,
|
||||||
needs_color_space_conversion: bool,
|
needs_color_space_conversion: bool = false,
|
||||||
src_alpha_mode: AlphaMode,
|
src_alpha_mode: AlphaMode = .unpremultiplied,
|
||||||
src_transfer_function_parameters: ?*const f32 = null,
|
// TODO: dawn.json says length 7, does it mean array length?
|
||||||
conversion_matrix: ?*const f32 = null,
|
src_transfer_function_parameters: ?*const f32,
|
||||||
dst_transfer_function_parameters: ?*const f32 = null,
|
// TODO: dawn.json says length 9, does it mean array length?
|
||||||
dst_alpha_mode: AlphaMode,
|
conversion_matrix: ?*const f32,
|
||||||
|
// TODO: dawn.json says length 7, does it mean array length?
|
||||||
|
dst_transfer_function_parameters: ?*const f32,
|
||||||
|
dst_alpha_mode: AlphaMode = .unpremultiplied,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const MultisampleState = extern struct {
|
pub const MultisampleState = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue