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
<!ENTITY vectorFunctionsInc SYSTEM "vectorFunctionsInc.xml">
5
<!ENTITY vectorHalfFunctionsInc SYSTEM "vectorHalfFunctionsInc.xml">
11
<keyword>vstoren</keyword>
16
<refentrytitle>vstoren</refentrytitle>
20
<year>2007-2011</year>
21
<holder>The Khronos Group Inc.
22
Permission is hereby granted, free of charge, to any person obtaining a
23
copy of this software and/or associated documentation files (the
24
"Materials"), to deal in the Materials without restriction, including
25
without limitation the rights to use, copy, modify, merge, publish,
26
distribute, sublicense, and/or sell copies of the Materials, and to
27
permit persons to whom the Materials are furnished to do so, subject to
28
the condition that this copyright notice and permission notice shall be included
29
in all copies or substantial portions of the Materials.</holder>
32
<manvolnum>3</manvolnum>
35
<!-- ================================ SYNOPSIS -->
37
<refnamediv id="vstoren">
38
<refname>vstore<emphasis>n</emphasis></refname>
41
Write sizeof bytes (<type>gentype<replaceable>n</replaceable></type>) to memory.
45
<refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
49
<link xlink:href="scalarDataTypes.html">void</link>
51
vstore<replaceable>n</replaceable>
56
gentype<replaceable>n</replaceable><parameter>data</parameter>
60
<link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter>
64
<link xlink:href="global.html">__global</link> gentype<parameter>*p</parameter>
72
<link xlink:href="scalarDataTypes.html">void</link>
74
vstore<replaceable>n</replaceable>
77
<paramdef>gentype<replaceable>n</replaceable><parameter>data</parameter></paramdef>
78
<paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
79
<paramdef><link xlink:href="local.html">__local</link> gentype<parameter>*p</parameter></paramdef>
86
<link xlink:href="scalarDataTypes.html">void</link>
88
vstore<replaceable>n</replaceable>
91
<paramdef>gentype<replaceable>n</replaceable><parameter>data</parameter></paramdef>
92
<paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
93
<paramdef><link xlink:href="private.html">__private</link> gentype<parameter>*p</parameter></paramdef>
98
<!-- ================================ DESCRIPTION -->
100
<refsect1 id="description"><title>Description</title>
102
Write <constant>sizeof(<type>gentype<replaceable>n</replaceable></type>)</constant>
103
bytes given by <varname>data</varname> to address (<varname>p</varname> +
104
(<varname>offset</varname> * <varname>n</varname>)). The address computed as
105
(<varname>p</varname> + (<varname>offset</varname> * <varname>n</varname>)) must be
106
8-bit aligned if <type>gentype</type> is <type>char</type> or <type>uchar</type>;
107
16-bit aligned if <type>gentype</type> is <type>short</type>, <type>ushort</type>,
108
or <type>half</type>; 32-bit aligned if <type>gentype</type> is <type>int</type>,
109
<type>uint</type>, or <type>float</type>; 64-bit aligned if <type>gentype</type> is
110
<type>long</type> or <type>ulong</type>.
114
<!-- ================================ NOTES -->
116
<refsect1 id="notes"><title>Notes</title>
120
&vectorHalfFunctionsInc;
123
<function>vstore3</function>, and <function>vstore_half3</function> write
124
<varname>x</varname>, <varname>y</varname>, <varname>z</varname> components from a
125
3-component vector to address (<varname>p</varname> + (<varname>offset</varname> * 3)).
129
<!-- ================================ EXAMPLE -->
130
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
132
<refsect2 id="example1">
137
<informaltable frame="none">
138
<tgroup cols="1" align="left" colsep="0" rowsep="0">
139
<colspec colname="col1" colnum="1" />
143
Example goes here - it will be set in "code" type with white space preserved.
152
<!-- ================================ SPECIFICATION -->
153
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
155
<refsect1 id="specification"><title>Specification</title>
158
<imagedata fileref="pdficon_small1.gif" format="gif" />
161
<olink uri="vectorDataLoadandStoreFunctions">OpenCL Specification</olink>
165
<!-- ================================ ALSO SEE -->
167
<refsect1 id="seealso"><title>Also see</title>
169
<citerefentry href="vectorDataLoadandStoreFunctions"><refentrytitle>Vector Data Load and Store Functions</refentrytitle></citerefentry>
173
<!-- ============================== COPYRIGHT -->
174
<!-- Content included from copyright.inc.xsl -->
176
<refsect3 id="Copyright"><title></title>
178
<imagedata fileref="KhronosLogo.jpg" format="jpg" />