SIMD.%type%.extractLane()

This translation is incomplete. Please help translate this article from English.

This is an experimental technology, part of the ECMAScript 2016 (ES7) proposal.
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future version of browsers as the spec changes.

El mètode estàtic SIMD.%type%.extractLane() retorna el valor d'una ruta donada.

Sintaxi

SIMD.Float32x4.extractLane(t, index)
SIMD.Float64x2.extractLane(t, index)

SIMD.Int8x16.extractLane(t, index)
SIMD.Int16x8.extractLane(t, index)
SIMD.Int32x4.extractLane(t, index)

SIMD.Bool8x16.extractLane(t, index)
SIMD.Bool16x8.extractLane(t, index)
SIMD.Bool32x4.extractLane(t, index)

Paràmetres

t
Una instància d'un tipus SIMD corresponent.
index
Un nombre índex per la ruta d'extreure.

Return value

The value of the extracted lane.

Errors thrown

  • A TypeError, si t is not the corresponding SIMD type.
  • A RangeError, if the lane index is out of bounds.

Exemples

var t = SIMD.Float32x4(1, 2, 3, 4);
SIMD.Float32x4.extractLane(t, 2); 
// 3

Especificacions

Especificació Estat Comentaris
SIMD
The definition of 'SIMDConstructor.extractLane' in that specification.
Obsolete Definició inicial.

Compatibilitat amb navegadors

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Característica Chrome Firefox (Gecko) Internet Explorer Opera Safari
Suport bàsic No support Nightly build No support No support No support
Característica Android Chrome per Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Suport bàsic No support No support Nightly build No support No support No support

Vegeu també

Document Tags and Contributors

 Contributors to this page: llue
 Last updated by: llue,