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 {
|
||||
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,
|
||||
flip_y: bool = false,
|
||||
needs_color_space_conversion: bool = false,
|
||||
src_alpha_mode: AlphaMode = .unpremultiplied,
|
||||
// TODO: dawn.json says length 7, does it mean array length?
|
||||
src_transfer_function_parameters: ?*const f32,
|
||||
// TODO: dawn.json says length 9, does it mean array length?
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue