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
cache
Parameters used to copy an external image to a texture, i.e. that will be uploaded to the GPU using GPUQueue#copyExternalImageToTexture | copyExternalImageToTexture