gpu: add ExternalTexture.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 00:02:20 -07:00 committed by Stephen Gutekanst
parent 4dc69a9de6
commit 128f87a3fd
2 changed files with 13 additions and 12 deletions

View file

@ -1,15 +1,3 @@
typedef struct WGPUExternalTextureDescriptor {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
WGPUTextureView plane0;
WGPUTextureView plane1; // nullable
do_yuv_to_rgb_conversion_only: bool,
float const * yuvToRgbConversionMatrix; // nullable
float const * srcTransferFunctionParameters;
float const * dstTransferFunctionParameters;
float const * gamutConversionMatrix;
} WGPUExternalTextureDescriptor;
typedef struct WGPUInstanceDescriptor {
next_in_chain: *const ChainedStruct,
} WGPUInstanceDescriptor;