Debian Codegraph @

unpackHalf2x16.xml

raw symbols SCIP
1 <!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
2
3 <!-- Converted by db4-upgrade version 1.1 -->
4
5 <refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="unpackHalf2x16">
6 <info>
7 <copyright>
8 <year>2011-2014</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </info>
12 <refmeta>
13 <refentrytitle>unpackHalf2x16</refentrytitle>
14 <manvolnum>3G</manvolnum>
15 </refmeta>
16 <refnamediv>
17 <refname>unpackHalf2x16</refname>
18 <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 </refnamediv>
20 <refsynopsisdiv><title>Declaration</title>
21 <funcsynopsis>
22 <funcprototype>
23 <funcdef>vec2 <function>unpackHalf2x16</function></funcdef>
24 <paramdef>uint <parameter>v</parameter></paramdef>
25 </funcprototype>
26 </funcsynopsis>
27 </refsynopsisdiv>
28 <refsect1 xml:id="parameters"><title>Parameters</title>
29 <variablelist>
30 <varlistentry>
31 <term><parameter>v</parameter></term>
32 <listitem>
33 <para>
34 Specify a single 32-bit unsigned integer values that contains two 16-bit floating point values to be unpacked.
35 </para>
36 </listitem>
37 </varlistentry>
38 </variablelist>
39 </refsect1>
40 <refsect1 xml:id="description"><title>Description</title>
41 <para>
42 <function>unpackHalf2x16</function> returns a two-component floating-point vector with
43 components obtained by unpacking a 32-bit unsigned
44 integer into a pair of 16-bit values, interpreting those
45 values as 16-bit floating-point numbers according to the
46 OpenGL Specification, and converting them to 32-bit
47 floating-point values.
48 The first component of the vector is obtained from the
49 16 least-significant bits of v; the second component is
50 obtained from the 16 most-significant bits of v.
51 </para>
52 </refsect1>
53 <refsect1 xml:id="versions"><title>Version Support</title>
54 <informaltable>
55 <tgroup cols="13" align="left">
56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="funchead.xml" xpointer="xpointer(/*/*)"/>
57 <tbody>
58 <row>
59 <entry>unpackHalf2x16</entry>
60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="version.xml" xpointer="xpointer(/*/*[@role='42']/*)"/>
61 </row>
62 </tbody>
63 </tgroup>
64 </informaltable>
65 </refsect1>
66 <refsect1 xml:id="seealso"><title>See Also</title>
67 <para>
68 <citerefentry><refentrytitle>packDouble2x32</refentrytitle></citerefentry>,
69 <citerefentry><refentrytitle>unpackDouble2x32</refentrytitle></citerefentry>,
70 <citerefentry><refentrytitle>packHalf2x16</refentrytitle></citerefentry>
71 </para>
72 </refsect1>
73 <refsect1 xml:id="Copyright"><title>Copyright</title>
74 <para>
75 Copyright <trademark class="copyright"/> 2011-2014 Khronos Group.
76 This material may be distributed subject to the terms and conditions set forth in
77 the Open Publication License, v 1.0, 8 June 1999.
78 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://opencontent.org/openpub/">http://opencontent.org/openpub/</link>.
79 </para>
80 </refsect1>
81 </refentry>