Optional
generateWhether to generate mips. Default to false
.
Optional
flipYWhether to flip the source along the Y axis. Default to false
.
Optional
premultipliedWhether this texture should be premultiplied or not. Default to false
.
Optional
formatThe GPUTextureFormat | texture format to use. Default to 'rgba8unorm'
.
Optional
placeholderSolid color used by temporary texture to display while loading the source. Default to [0, 0, 0, 255]
(solid black).
Optional
useWhether video textures should use GPUExternalTexture or not. Default to true
.
Optional
viewThe GPUTextureViewDimension | texture view dimension to use. Default to '2d'
.
Optional
visibilityThe texture shaders visibility sent to the texture binding. Default to 'fragment'
.
Optional
cacheOptional
labelThe label of the DOMTexture, used to create various GPU objects for debugging purpose
Optional
nameName of the DOMTexture to use in the binding
Optional
fromOptional DOMTexture to use as a copy source input
Parameters used to create a DOMTexture