@woosh/meep-engine 2.111.7 → 2.111.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle-worker-terrain.js +1 -1
- package/build/meep.cjs +45 -43
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +45 -43
- package/package.json +1 -1
- package/src/core/collection/array/typed/compute_binary_data_type_from_typed_array.d.ts +8 -0
- package/src/core/collection/array/typed/compute_binary_data_type_from_typed_array.d.ts.map +1 -0
- package/src/core/collection/array/typed/compute_binary_data_type_from_typed_array.js +39 -0
- package/src/core/collection/array/typed/isTypedArray.d.ts +4 -3
- package/src/core/collection/array/typed/isTypedArray.d.ts.map +1 -1
- package/src/core/collection/array/typed/isTypedArray.js +4 -5
- package/src/core/collection/array/typed/typedArrayToDataType.d.ts +3 -5
- package/src/core/collection/array/typed/typedArrayToDataType.d.ts.map +1 -1
- package/src/core/collection/array/typed/typedArrayToDataType.js +3 -31
- package/src/core/collection/array/typed/uint_array_for_count.d.ts +3 -3
- package/src/core/collection/array/typed/uint_array_for_count.d.ts.map +1 -1
- package/src/core/collection/array/typed/uint_array_for_count.js +7 -7
- package/src/core/collection/table/RowFirstTable.d.ts +6 -0
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +32 -3
- package/src/engine/graphics/geometry/AttributeSpec.d.ts.map +1 -1
- package/src/engine/graphics/geometry/AttributeSpec.js +48 -29
- package/src/engine/graphics/geometry/VertexDataSpec.d.ts.map +1 -1
- package/src/engine/graphics/geometry/VertexDataSpec.js +13 -6
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.d.ts.map +1 -1
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.js +4 -2
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/Sampler2D.js +4 -2
- package/src/engine/graphics/texture/sampler/sampler2d_compute_texel_value_conversion_scale_to_uint8.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_compute_texel_value_conversion_scale_to_uint8.js +6 -4
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BinaryDataType } from "../../../../core/binary/type/BinaryDataType.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
compute_binary_data_type_from_typed_array
|
|
4
|
+
} from "../../../../core/collection/array/typed/compute_binary_data_type_from_typed_array.js";
|
|
4
5
|
import { isTypedArray } from "../../../../core/collection/array/typed/isTypedArray.js";
|
|
5
|
-
import {
|
|
6
|
+
import { max2 } from "../../../../core/math/max2.js";
|
|
7
|
+
import { min2 } from "../../../../core/math/min2.js";
|
|
6
8
|
import { sampler2d_channel_compute_max } from "./sampler2d_channel_compute_max.js";
|
|
7
9
|
import { sampler2d_channel_compute_min } from "./sampler2d_channel_compute_min.js";
|
|
8
10
|
|
|
@@ -16,7 +18,7 @@ export function sampler2d_compute_texel_value_conversion_scale_to_uint8(sampler)
|
|
|
16
18
|
let dataType;
|
|
17
19
|
|
|
18
20
|
if (isTypedArray(sampler.data)) {
|
|
19
|
-
dataType =
|
|
21
|
+
dataType = compute_binary_data_type_from_typed_array(sampler.data);
|
|
20
22
|
} else {
|
|
21
23
|
// plain numeric array
|
|
22
24
|
dataType = BinaryDataType.Float32;
|