From e901f2e6f9c7b221aae3860964fc460cf4eae3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Thu, 11 Jul 2024 11:13:43 +0000 Subject: [PATCH] Update gpuweb: add GPUCanvasToneMappingMode --- dist/index.d.ts | 17 +++++++++++++++-- generated/index.d.ts | 17 +++++++++++++++-- gpuweb | 2 +- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index c0f2858..ab402e4 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -168,6 +168,10 @@ type GPUCanvasAlphaMode = | "opaque" | "premultiplied"; +type GPUCanvasToneMappingMode = + + | "standard" + | "extended"; type GPUCompareFunction = | "never" @@ -635,6 +639,11 @@ interface GPUCanvasConfiguration { * {@link GPUCanvasContext#getCurrentTexture} should be displayed with. */ colorSpace?: PredefinedColorSpace; + /** + * The tone mapping determines how the content of textures returned by + * {@link GPUCanvasContext#getCurrentTexture} are to be displayed. + */ + toneMapping?: GPUCanvasToneMapping; /** * Determines the effect that alpha values will have on the content of textures returned by * {@link GPUCanvasContext#getCurrentTexture} when read, displayed, or used as an image source. @@ -642,6 +651,10 @@ interface GPUCanvasConfiguration { alphaMode?: GPUCanvasAlphaMode; } +interface GPUCanvasToneMapping { + mode?: GPUCanvasToneMappingMode; +} + interface GPUColorDict { /** * The red channel value. @@ -1390,12 +1403,12 @@ interface GPUSamplerDescriptor */ addressModeW?: GPUAddressMode; /** - * Specifies the sampling behavior when the sample footprint is smaller than or equal to one + * Specifies the sampling behavior when the sampled area is smaller than or equal to one * texel. */ magFilter?: GPUFilterMode; /** - * Specifies the sampling behavior when the sample footprint is larger than one texel. + * Specifies the sampling behavior when the sampled area is larger than one texel. */ minFilter?: GPUFilterMode; /** diff --git a/generated/index.d.ts b/generated/index.d.ts index 4175925..b8703e4 100644 --- a/generated/index.d.ts +++ b/generated/index.d.ts @@ -114,6 +114,10 @@ type GPUCanvasAlphaMode = | "opaque" | "premultiplied"; +type GPUCanvasToneMappingMode = + + | "standard" + | "extended"; type GPUCompareFunction = | "never" @@ -581,6 +585,11 @@ interface GPUCanvasConfiguration { * {@link GPUCanvasContext#getCurrentTexture} should be displayed with. */ colorSpace?: PredefinedColorSpace; + /** + * The tone mapping determines how the content of textures returned by + * {@link GPUCanvasContext#getCurrentTexture} are to be displayed. + */ + toneMapping?: GPUCanvasToneMapping; /** * Determines the effect that alpha values will have on the content of textures returned by * {@link GPUCanvasContext#getCurrentTexture} when read, displayed, or used as an image source. @@ -588,6 +597,10 @@ interface GPUCanvasConfiguration { alphaMode?: GPUCanvasAlphaMode; } +interface GPUCanvasToneMapping { + mode?: GPUCanvasToneMappingMode; +} + interface GPUColorDict { /** * The red channel value. @@ -1349,12 +1362,12 @@ interface GPUSamplerDescriptor */ addressModeW?: GPUAddressMode; /** - * Specifies the sampling behavior when the sample footprint is smaller than or equal to one + * Specifies the sampling behavior when the sampled area is smaller than or equal to one * texel. */ magFilter?: GPUFilterMode; /** - * Specifies the sampling behavior when the sample footprint is larger than one texel. + * Specifies the sampling behavior when the sampled area is larger than one texel. */ minFilter?: GPUFilterMode; /** diff --git a/gpuweb b/gpuweb index bd5cc72..68ba017 160000 --- a/gpuweb +++ b/gpuweb @@ -1 +1 @@ -Subproject commit bd5cc72c3dc08152a754157c348580cba96b6f3c +Subproject commit 68ba017fbae94c1312d09c926c18ad921b6c3255