You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/engine/Source/Renderer/Texture.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ import TextureMinificationFilter from "./TextureMinificationFilter.js";
18
18
* @typedef {object} Texture.ConstructorOptions
19
19
*
20
20
* @property {Context} context
21
-
* @property {object} [source] The source for texel values to be loaded into the texture.
21
+
* @property {object} [source] The source for texel values to be loaded into the texture. A {@link ImageData}, {@link HTMLImageElement}, {@link HTMLCanvasElement},
22
+
* {@link HTMLVideoElement}, {@link OffscreenCanvas}, or {@link ImageBitmap},
23
+
* or an object with width, height, and arrayBufferView properties.
22
24
* @property {PixelFormat} [pixelFormat=PixelFormat.RGBA] The format of each pixel, i.e., the number of components it has and what they represent.
23
25
* @property {PixelDatatype} [pixelDatatype=PixelDatatype.UNSIGNED_BYTE] The data type of each pixel.
24
26
* @property {boolean} [flipY=true] If true, the source values will be read as if the y-axis is inverted (y=0 at the top).
@@ -830,7 +832,8 @@ function setupSampler(texture, sampler) {
830
832
* Copy new image data into this texture, from a source {@link ImageData}, {@link HTMLImageElement}, {@link HTMLCanvasElement}, or {@link HTMLVideoElement}.
831
833
* or an object with width, height, and arrayBufferView properties.
832
834
* @param {object} options Object with the following properties:
833
-
* @param {object} options.source The source {@link ImageData}, {@link HTMLImageElement}, {@link HTMLCanvasElement}, or {@link HTMLVideoElement},
0 commit comments