gpu: improve CopyTextureForBrowserOptions type safety
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7e48acaff7
commit
26ee34a09f
1 changed files with 3 additions and 6 deletions
|
|
@ -559,12 +559,9 @@ pub const CopyTextureForBrowserOptions = extern struct {
|
||||||
flip_y: bool = false,
|
flip_y: bool = false,
|
||||||
needs_color_space_conversion: bool = false,
|
needs_color_space_conversion: bool = false,
|
||||||
src_alpha_mode: AlphaMode = .unpremultiplied,
|
src_alpha_mode: AlphaMode = .unpremultiplied,
|
||||||
// TODO: dawn.json says length 7, does it mean array length?
|
src_transfer_function_parameters: ?*const [7]f32 = null,
|
||||||
src_transfer_function_parameters: ?*const f32 = null,
|
conversion_matrix: ?*const [9]f32 = null,
|
||||||
// TODO: dawn.json says length 9, does it mean array length?
|
dst_transfer_function_parameters: ?*const [7]f32 = null,
|
||||||
conversion_matrix: ?*const f32 = null,
|
|
||||||
// TODO: dawn.json says length 7, does it mean array length?
|
|
||||||
dst_transfer_function_parameters: ?*const f32 = null,
|
|
||||||
dst_alpha_mode: AlphaMode = .unpremultiplied,
|
dst_alpha_mode: AlphaMode = .unpremultiplied,
|
||||||
internal_usage: bool = false,
|
internal_usage: bool = false,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue