1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"unpackHalf2x16">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>unpackHalf2x16
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>unpackHalf2x16
</refname>
17 <refpurpose>convert two
16-bit floating-point values packed into a single
32-bit integer into a vector of two
32-bit floating-point quantities
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>vec2
<function>unpackHalf2x16
</function></funcdef>
23 <paramdef>uint
<parameter>v
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>v
</parameter></term>
33 Specify a single
32-bit unsigned integer values that contains two
16-bit floating point values to be unpacked.
39 <refsect1 id=
"description"><title>Description
</title>
41 <function>unpackHalf2x16
</function> returns a two-component floating-point vector with
42 components obtained by unpacking a
32-bit unsigned
43 integer into a pair of
16-bit values, interpreting those
44 values as
16-bit floating-point numbers according to the
45 OpenGL Specification, and converting them to
32-bit
46 floating-point values.
47 The first component of the vector is obtained from the
48 16 least-significant bits of v; the second component is
49 obtained from the
16 most-significant bits of v.
52 <refsect1 id=
"versions"><title>Version Support
</title>
53 <informaltable frame=
"topbot">
58 <entry>unpackHalf2x16
</entry>#newin42#
64 <refsect1 id=
"seealso"><title>See Also
</title>
66 <citerefentry><refentrytitle>packDouble2x32
</refentrytitle></citerefentry>,
67 <citerefentry><refentrytitle>unpackDouble2x32
</refentrytitle></citerefentry>,
68 <citerefentry><refentrytitle>packHalf2x16
</refentrytitle></citerefentry>
71 <refsect1 id=
"Copyright"><title>Copyright
</title>
73 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
74 This material may be distributed subject to the terms and conditions set forth in
75 the Open Publication License, v
1.0,
8 June
1999.
76 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.