Note: The breaking change here is that the 1.x would call generateMipmap
automatically
if texture.mipLevelCount > 1
. That was arguably a bug and in fact you can see all the
examples were passing in an option of { mips: true }
even though mips
wasn’t an option. 😅
mips
is now an option. Set it to true
if you want generateMipmap
on creation and/or
on copySourceToTexture
/ copySourcesToTexture
. Code that wasn’t setting it before
and was getting lucky to have mip maps generated will need to pass it in.
@size
doesn’t increase size of intrinsic view.minBindingSize
in bind group layouts.primitives.deindex
primitives.generateTriangleNormals
ShaderDataDefinitions
atomic
makeBindGroupLayoutDescriptors
getSizeOfUnsizedArrayElement
generateMipmap
support compatibility modesetIntrinsicsToView
createBufferInfoFromArrays
to createBuffersAndAttributesFromArrays
createBufferInfoFromArrays
copySourceToTexture
and createTextureFromSource
copySourceToTexture
ArrayBufferViews.views
to any
because
otherwise it’s too cumbersome to use in TypeScript.array
constructoradd texture related functions
generateMipmap
copySourceToTexture
getSizeFromSource
createTextureFromSource
createTextureFromImage
numMipLevels
normalizeGPUExtent3D