AdvancedOptionalantialias?: falseA 3D texture can't be multisampled. WebGPU has no such texture, and a volume is sampled, not resolved.
OptionalarrayLayerCount?: neverA 3D texture has no array layers
The depth of a 3D texture, in texels. Setting it makes a '3d' texture.
Unlike width and height, resolution doesn't scale it. Can't be combined with arrayLayerCount.
OptionalviewDimension?: "3d"depth already makes the view '3d', so only that value is accepted
Optionaldepth?: neverNot a 3D texture: arrayLayerCount and viewDimension decide the shape
The
depthoption, which makes a 3D texture. A texture is 3D (depth) or layered (arrayLayerCount), never both, and TypeScript rejects options that set both.depthlives here rather than on TextureSourceOptions so that options typed with that interface still pass to the constructor.