Skip to content

TextureWriteOptions

TextureWriteOptions = object

Defined in: packages/typegpu/src/core/texture/texture.ts:99

optional fit: TextureWriteFit

Defined in: packages/typegpu/src/core/texture/texture.ts:106

How to handle a source whose dimensions do not match the texture.

By default, mismatched writes throw. Use 'stretch' to resample the source to the texture’s dimensions.