gpu: add CopyTextureForBrowserOptions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3ab623f360
commit
2877121147
2 changed files with 11 additions and 11 deletions
|
|
@ -1,14 +1,3 @@
|
||||||
typedef struct WGPUCopyTextureForBrowserOptions {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
flip_y: bool,
|
|
||||||
needs_color_space_conversion: bool,
|
|
||||||
WGPUAlphaMode srcAlphaMode;
|
|
||||||
float const * srcTransferFunctionParameters; // nullable
|
|
||||||
float const * conversionMatrix; // nullable
|
|
||||||
float const * dstTransferFunctionParameters; // nullable
|
|
||||||
WGPUAlphaMode dstAlphaMode;
|
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
|
||||||
|
|
||||||
typedef struct WGPUDawnCacheDeviceDescriptor {
|
typedef struct WGPUDawnCacheDeviceDescriptor {
|
||||||
WGPUChainedStruct chain;
|
WGPUChainedStruct chain;
|
||||||
char const * isolationKey;
|
char const * isolationKey;
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,17 @@ pub const ComputePassTimestampWrite = struct {
|
||||||
location: ComputePassTimestampLocation,
|
location: ComputePassTimestampLocation,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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,
|
||||||
|
};
|
||||||
|
|
||||||
test {
|
test {
|
||||||
refAllDecls(@import("adapter.zig"));
|
refAllDecls(@import("adapter.zig"));
|
||||||
refAllDecls(@import("bind_group.zig"));
|
refAllDecls(@import("bind_group.zig"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue