Skip to content

Commit

Permalink
Make getConfiguration().toneMapping optional (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x authored Nov 2, 2024
1 parent 700448a commit 9982477
Showing 1 changed file with 26 additions and 10 deletions.
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;

0 comments on commit 9982477

Please sign in to comment.