From 77869840ae81a5ce24d02653884a68a69284cc13 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 10:04:55 -0700 Subject: [PATCH] gpu: update defaults/optionality for ExternalTextureDescriptor Signed-off-by: Stephen Gutekanst --- gpu/src/external_texture.zig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gpu/src/external_texture.zig b/gpu/src/external_texture.zig index 2d726e3b..515286d6 100644 --- a/gpu/src/external_texture.zig +++ b/gpu/src/external_texture.zig @@ -34,9 +34,13 @@ pub const ExternalTextureDescriptor = extern struct { label: ?[*:0]const u8 = null, plane0: TextureView, plane1: ?TextureView, - do_yuv_to_rgb_conversion_only: bool, - yuv_to_rgb_conversion_matrix: ?[*]const f32 = null, + do_yuv_to_rgb_conversion_only: bool = false, + // TODO: dawn.json says length 12, does it mean array length? + yuv_to_rgb_conversion_matrix: ?[*]const f32, + // TODO: dawn.json says length 7, does it mean array length? src_transform_function_parameters: [*]const f32, + // TODO: dawn.json says length 7, does it mean array length? dst_transform_function_parameters: [*]const f32, + // TODO: dawn.json says length 9, does it mean array length? gamut_conversion_matrix: [*]const f32, };