Skip to content

Commit

Permalink
Remove deprecated .copySrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Feb 16, 2024
1 parent 5d0af69 commit 86a2150
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/webgpu/format_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const kFormatUniversalDefaults = {
/** The base format for srgb formats. Specified on both srgb and equivalent non-srgb formats. */
baseFormat: undefined,

/** @deprecated */
copySrc: undefined,
/** @deprecated */
copyDst: undefined,
/** @deprecated Use `.color.bytes`, `.depth.bytes`, or `.stencil.bytes`. */
Expand Down Expand Up @@ -78,7 +76,7 @@ function formatTableWithDefaults<Defaults extends {}, Table extends { readonly [

/** "plain color formats", plus rgb9e5ufloat. */
const kRegularTextureFormatInfo = formatTableWithDefaults({
defaults: { blockWidth: 1, blockHeight: 1, copySrc: true, copyDst: true },
defaults: { blockWidth: 1, blockHeight: 1, copyDst: true },
table: {
// plain, 8 bits per component

Expand Down Expand Up @@ -685,7 +683,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
// because one aspect can be sized and one can be unsized. This should be cleaned up, but is kept
// this way during a migration phase.
const kSizedDepthStencilFormatInfo = formatTableWithDefaults({
defaults: { blockWidth: 1, blockHeight: 1, multisample: true, copySrc: true, renderable: true },
defaults: { blockWidth: 1, blockHeight: 1, multisample: true, renderable: true },
table: {
stencil8: {
stencil: {
Expand Down Expand Up @@ -737,7 +735,6 @@ const kUnsizedDepthStencilFormatInfo = formatTableWithDefaults({
readWriteStorage: false,
bytes: undefined,
},
copySrc: false,
copyDst: false,
renderable: true,
},
Expand All @@ -758,7 +755,6 @@ const kUnsizedDepthStencilFormatInfo = formatTableWithDefaults({
readWriteStorage: false,
bytes: 1,
},
copySrc: false,
copyDst: false,
renderable: true,
},
Expand All @@ -780,7 +776,6 @@ const kUnsizedDepthStencilFormatInfo = formatTableWithDefaults({
bytes: 1,
},
feature: 'depth32float-stencil8',
copySrc: false,
copyDst: false,
renderable: true,
},
Expand All @@ -793,7 +788,6 @@ const kBCTextureFormatInfo = formatTableWithDefaults({
blockHeight: 4,
multisample: false,
feature: 'texture-compression-bc',
copySrc: true,
copyDst: true,
},
table: {
Expand Down Expand Up @@ -974,7 +968,6 @@ const kETC2TextureFormatInfo = formatTableWithDefaults({
blockHeight: 4,
multisample: false,
feature: 'texture-compression-etc2',
copySrc: true,
copyDst: true,
},
table: {
Expand Down Expand Up @@ -1105,7 +1098,6 @@ const kASTCTextureFormatInfo = formatTableWithDefaults({
defaults: {
multisample: false,
feature: 'texture-compression-astc',
copySrc: true,
copyDst: true,
},
table: {
Expand Down Expand Up @@ -1616,7 +1608,6 @@ type TextureFormatInfo_TypeCheck = {
baseFormat: GPUTextureFormat | undefined;
feature: GPUFeatureName | undefined;

copySrc: boolean;
copyDst: boolean;
bytesPerBlock: number | undefined;
renderable: boolean;
Expand Down

0 comments on commit 86a2150

Please sign in to comment.