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
* @property {number} width The width (in pixels) of the 3D texture source data.
19
+
* @property {number} height The height (in pixels) of the 3D texture source data.
20
+
* @property {number} depth The depth (in pixels) of the 3D texture source data.
21
+
* @property {TypedArray|DataView} arrayBufferView The source data for a 3D texture. The type of each element needs to match the pixelDatatype.
22
+
* @property {TypedArray|DataView} [mipLevels] An array of mip level data. Each element in the array should be a TypedArray or DataView that matches the pixelDatatype.
23
+
*/
24
+
16
25
/**
17
26
* @typedef {object} Texture3D.ConstructorOptions
18
27
*
19
28
* @property {Context} context
20
-
* @property {object} [source] The source for texel values to be loaded into the texture3D.
29
+
* @property {Texture3D.Source} [source] The source for texel values to be loaded into the 3D texture.
21
30
* @property {PixelFormat} [pixelFormat=PixelFormat.RGBA] The format of each pixel, i.e., the number of components it has and what they represent.
22
31
* @property {PixelDatatype} [pixelDatatype=PixelDatatype.UNSIGNED_BYTE] The data type of each pixel.
23
32
* @property {boolean} [flipY=true] If true, the source values will be read as if the y-axis is inverted (y=0 at the top).
24
33
* @property {boolean} [skipColorSpaceConversion=false] If true, color space conversions will be skipped when reading the texel values.
25
-
* @property {Sampler} [sampler] Information about how to sample the texture3D.
26
-
* @property {number} [width] The pixel width of the texture3D. If not supplied, must be available from the source.
27
-
* @property {number} [height] The pixel height of the texture3D. If not supplied, must be available from the source.
28
-
* @property {number} [depth] The pixel depth of the texture3D. If not supplied, must be available from the source.
34
+
* @property {Sampler} [sampler] Information about how to sample the 3D texture.
35
+
* @property {number} [width] The width (in pixels) of the 3D texture. If not supplied, must be available from the source.
36
+
* @property {number} [height] The height (in pixels) of the 3D texture. If not supplied, must be available from the source.
37
+
* @property {number} [depth] The depth (in pixels) of the 3D texture. If not supplied, must be available from the source.
29
38
* @property {boolean} [preMultiplyAlpha] If true, the alpha channel will be multiplied into the other channels.
30
-
* @property {string} [id] A unique identifier for the texture3D. If this is not given, then a GUID will be created.
39
+
* @property {string} [id] A unique identifier for the 3D texture. If this is not given, then a GUID will be created.
31
40
*
32
41
* @private
33
42
*/
@@ -253,7 +262,7 @@ function Texture3D(options) {
253
262
* Load texel data from a buffer into a texture3D.
254
263
*
255
264
* @param {Texture3D} texture3D The texture3D to which texel values will be loaded.
256
-
* @param {object} source The source for texel values to be loaded into the texture3D.
265
+
* @param {Texture3D.Source} source The source for texel values to be loaded into the texture3D.
257
266
*
258
267
* @private
259
268
*/
@@ -503,6 +512,7 @@ function setupSampler(texture3D, sampler) {
0 commit comments