fillTextureDataWithTexelValue(texelValue, format, dimension, outputBuffer, size, options?): void
Fill an ArrayBuffer with the linear-memory representation of a solid-color
texture where every texel has the byte value texelValue.
Preserves the contents of outputBuffer which are in "padding" space between image rows.
Effectively emulates a copyTextureToBuffer from a solid-color texture to a buffer.
Fill an ArrayBuffer with the linear-memory representation of a solid-color texture where every texel has the byte value
texelValue
. Preserves the contents ofoutputBuffer
which are in "padding" space between image rows.Effectively emulates a copyTextureToBuffer from a solid-color texture to a buffer.