|
@@ -11,8 +11,7 @@ import {
|
|
|
Int32BufferAttribute,
|
|
|
Uint32BufferAttribute,
|
|
|
Float16BufferAttribute,
|
|
|
- Float32BufferAttribute,
|
|
|
- Float64BufferAttribute
|
|
|
+ Float32BufferAttribute
|
|
|
} from '../../../../src/core/BufferAttribute.js';
|
|
|
|
|
|
import { DynamicDrawUsage } from '../../../../src/constants.js';
|
|
@@ -505,7 +504,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
const toHalfFloatArray = ( f32Array ) => {
|
|
|
|
|
|
const f16Array = new Uint16Array( f32Array.length );
|
|
|
- for ( let i = 0, n = f32Array.length; i < n; ++i ) {
|
|
|
+ for ( let i = 0, n = f32Array.length; i < n; ++ i ) {
|
|
|
|
|
|
f16Array[ i ] = toHalfFloat( f32Array[ i ] );
|
|
|
|
|
@@ -518,7 +517,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
const fromHalfFloatArray = ( f16Array ) => {
|
|
|
|
|
|
const f32Array = new Float32Array( f16Array.length );
|
|
|
- for ( let i = 0, n = f16Array.length; i < n; ++i ) {
|
|
|
+ for ( let i = 0, n = f16Array.length; i < n; ++ i ) {
|
|
|
|
|
|
f32Array[ i ] = fromHalfFloat( f16Array[ i ] );
|
|
|
|
|
@@ -604,27 +603,4 @@ export default QUnit.module( 'Core', () => {
|
|
|
|
|
|
} );
|
|
|
|
|
|
- QUnit.module( 'Float64BufferAttribute', () => {
|
|
|
-
|
|
|
- // INHERITANCE
|
|
|
- QUnit.test( 'Extending', ( assert ) => {
|
|
|
-
|
|
|
- const object = new Float64BufferAttribute();
|
|
|
- assert.strictEqual(
|
|
|
- object instanceof BufferAttribute, true,
|
|
|
- 'Float64BufferAttribute extends from BufferAttribute'
|
|
|
- );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
- // INSTANCING
|
|
|
- QUnit.test( 'Instancing', ( assert ) => {
|
|
|
-
|
|
|
- const object = new Float64BufferAttribute();
|
|
|
- assert.ok( object, 'Can instantiate a Float64BufferAttribute.' );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
} );
|