Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make getConfiguration().toneMapping optional #159

Merged
merged 3 commits into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,20 @@ interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
}

type GPUCanvasConfigurationOut =
Required<GPUCanvasConfiguration> & {
viewFormats: GPUTextureFormat[];
};
interface GPUCanvasConfigurationOut
extends Required<
Omit<
GPUCanvasConfiguration,
"toneMapping"
>
> {
/** {@inheritDoc GPUCanvasConfiguration.viewFormats} */
viewFormats: GPUTextureFormat[];
/**
* {@inheritDoc GPUCanvasConfiguration.toneMapping}
*/
toneMapping?: GPUCanvasToneMapping;
}

interface GPUCanvasToneMapping {
mode?: GPUCanvasToneMappingMode;
Expand Down Expand Up @@ -3207,14 +3217,20 @@ declare var GPUTextureUsage: {
};

/** @deprecated Use {@link GPUTexelCopyBufferLayout} */
type GPUImageDataLayout = GPUTexelCopyBufferLayout;
type GPUImageDataLayout =
GPUTexelCopyBufferLayout;
/** @deprecated Use {@link GPUTexelCopyBufferInfo} */
type GPUImageCopyBuffer = GPUTexelCopyBufferInfo;
type GPUImageCopyBuffer =
GPUTexelCopyBufferInfo;
/** @deprecated Use {@link GPUTexelCopyTextureInfo} */
type GPUImageCopyTexture = GPUTexelCopyTextureInfo;
type GPUImageCopyTexture =
GPUTexelCopyTextureInfo;
/** @deprecated Use {@link GPUCopyExternalImageDestInfo} */
type GPUImageCopyTextureTagged = GPUCopyExternalImageDestInfo;
type GPUImageCopyTextureTagged =
GPUCopyExternalImageDestInfo;
/** @deprecated Use {@link GPUCopyExternalImageSourceInfo} */
type GPUImageCopyExternalImage = GPUCopyExternalImageSourceInfo;
type GPUImageCopyExternalImage =
GPUCopyExternalImageSourceInfo;
/** @deprecated Use {@link GPUCopyExternalImageSource} */
type GPUImageCopyExternalImageSource = GPUCopyExternalImageSource;
type GPUImageCopyExternalImageSource =
GPUCopyExternalImageSource;
Loading