~ubuntu-branches/ubuntu/trusty/khronos-opencl-man/trusty

« back to all changes in this revision

Viewing changes to clGetSamplerInfo.xml

  • Committer: Package Import Robot
  • Author(s): Mathieu Malaterre
  • Date: 2013-05-21 18:06:15 UTC
  • Revision ID: package-import@ubuntu.com-20130521180615-6e0s2n3pai95ip2f
Tags: upstream-1.0~svn21772
ImportĀ upstreamĀ versionĀ 1.0~svn21772

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
5
<refentry>
 
6
    <refentryinfo>
 
7
        <keywordset>
 
8
            <keyword>
 
9
                clGetSamplerInfo
 
10
            </keyword>
 
11
        </keywordset>
 
12
    </refentryinfo>
 
13
 
 
14
    <refmeta>
 
15
        <refentrytitle>
 
16
            clGetSamplerInfo
 
17
        </refentrytitle>
 
18
 
 
19
        <refmiscinfo>
 
20
            <copyright>
 
21
                <year>2007-2011</year>
 
22
                <holder>The Khronos Group Inc.
 
23
 Permission is hereby granted, free of charge, to any person obtaining a
 
24
copy of this software and/or associated documentation files (the
 
25
"Materials"), to deal in the Materials without restriction, including
 
26
without limitation the rights to use, copy, modify, merge, publish,
 
27
distribute, sublicense, and/or sell copies of the Materials, and to
 
28
permit persons to whom the Materials are furnished to do so, subject to
 
29
the condition that this copyright notice and permission notice shall be included
 
30
in all copies or substantial portions of the Materials.</holder>
 
31
            </copyright>
 
32
        </refmiscinfo>
 
33
        <manvolnum>3</manvolnum>
 
34
    </refmeta>
 
35
 
 
36
<!-- ================================ SYNOPSIS -->
 
37
 
 
38
    <refnamediv id="clGetSamplerInfo">
 
39
        <refname>
 
40
            clGetSamplerInfo
 
41
        </refname>
 
42
 
 
43
        <refpurpose>
 
44
            Returns information about the sampler object.
 
45
        </refpurpose>
 
46
    </refnamediv>
 
47
 
 
48
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink">
 
49
      <title></title>
 
50
      <funcsynopsis>
 
51
        <funcprototype>
 
52
          <funcdef>
 
53
            <link xlink:href="scalarDataTypes.html">cl_int</link>
 
54
            <function>clGetSamplerInfo</function>
 
55
          </funcdef>
 
56
 
 
57
          <paramdef><link xlink:href="abstractDataTypes.html">cl_sampler</link><parameter>sampler</parameter></paramdef>
 
58
          <paramdef><link xlink:href="enums.html#cl_sampler_info">cl_sampler_info</link><parameter>param_name</parameter></paramdef>
 
59
          <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>param_value_size</parameter></paramdef>
 
60
          <paramdef><link xlink:href="scalarDataTypes.html">void</link><parameter>*param_value</parameter></paramdef>
 
61
          <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>*param_value_size_ret</parameter></paramdef>
 
62
 
 
63
        </funcprototype>
 
64
      </funcsynopsis>
 
65
    </refsynopsisdiv>
 
66
 
 
67
<!-- ================================ PARAMETERS -->
 
68
 
 
69
    <refsect1 id="parameters">
 
70
      <title>Parameters</title>
 
71
      <variablelist>
 
72
 
 
73
        <varlistentry>
 
74
          <term><varname>sampler</varname></term>
 
75
          <listitem> <para>Specifies the sampler being queried.</para> </listitem>
 
76
        </varlistentry>
 
77
 
 
78
        <varlistentry>
 
79
          <term><varname>param_name</varname></term>
 
80
          <listitem>
 
81
            <para>
 
82
              Specifies the information to query. The list of supported
 
83
              <varname>param_name</varname> types and the information returned in
 
84
              <varname>param_value</varname> by <function>clGetSamplerInfo</function> is
 
85
              described in the table below.
 
86
            </para>
 
87
 
 
88
            <!-- table 5.12 -->
 
89
            <informaltable frame="all">
 
90
              <tgroup cols="2" align="left" colsep="1" rowsep="1">
 
91
                <colspec colname="col1" colnum="1" />
 
92
                <colspec colname="col2" colnum="2" />
 
93
                <thead>
 
94
                  <row>
 
95
                    <entry>cl_sampler_info</entry>
 
96
                    <entry>Return Type and Info. returned in <varname>param_value</varname></entry>
 
97
                  </row>
 
98
                </thead>
 
99
 
 
100
                <tbody>
 
101
                  <row>
 
102
                    <entry><constant>CL_SAMPLER_REFERENCE_COUNT</constant></entry>
 
103
                    <entry>
 
104
                      Return type: cl_uint
 
105
 
 
106
                      <para>
 
107
                        Return the <varname>sampler</varname> reference count. The reference
 
108
                        count returned should be considered immediately stale. It is unsuitable
 
109
                        for general use in applications. This feature is provided for identifying
 
110
                        memory leaks.
 
111
                      </para>
 
112
                    </entry>
 
113
                  </row>
 
114
 
 
115
                  <row>
 
116
                    <entry><constant>CL_SAMPLER_CONTEXT</constant></entry>
 
117
                    <entry>
 
118
                      Return type: cl_context
 
119
 
 
120
                      <para>
 
121
                        Return the context specified when the sampler is created.
 
122
                      </para>
 
123
                    </entry>
 
124
                  </row>
 
125
 
 
126
                  <row>
 
127
                    <entry><constant>CL_SAMPLER_NORMALIZED_COORDS</constant></entry>
 
128
                    <entry>
 
129
                      Return type: cl_bool
 
130
 
 
131
                      <para>
 
132
                        Return the normalized coords value associated with
 
133
                        <varname>sampler</varname>.
 
134
                      </para>
 
135
                    </entry>
 
136
                  </row>
 
137
 
 
138
                  <row>
 
139
                    <entry><constant>CL_SAMPLER_ADDRESSING_MODE</constant></entry>
 
140
                    <entry>
 
141
                      Return type: cl_addressing_mode
 
142
 
 
143
                      <para>
 
144
                        Return the addressing mode value associated with
 
145
                        <varname>sampler</varname>.
 
146
                      </para>
 
147
                    </entry>
 
148
                  </row>
 
149
 
 
150
                  <row>
 
151
                    <entry><constant>CL_SAMPLER_FILTER_MODE</constant></entry>
 
152
                    <entry>
 
153
                      Return type: cl_filter_mode
 
154
 
 
155
                      <para>
 
156
                        Return the filter mode value associated with <varname>sampler</varname>.
 
157
                      </para>
 
158
                    </entry>
 
159
                  </row>
 
160
                </tbody>
 
161
              </tgroup>
 
162
            </informaltable>
 
163
          </listitem>
 
164
        </varlistentry>
 
165
 
 
166
        <varlistentry>
 
167
          <term> <varname>param_value </varname> </term>
 
168
          <listitem>
 
169
            <para>
 
170
              A pointer to memory where the appropriate result being queried is returned. If
 
171
              <varname>param_value</varname> is NULL, it is ignored.
 
172
            </para>
 
173
          </listitem>
 
174
        </varlistentry>
 
175
 
 
176
        <varlistentry>
 
177
          <term> <varname> param_value_size </varname> </term>
 
178
          <listitem>
 
179
            <para>
 
180
              Specifies the size in bytes of memory pointed to by
 
181
              <varname>param_value</varname>. This size must be &ge; size of return type as
 
182
              described in the table above.
 
183
            </para>
 
184
          </listitem>
 
185
        </varlistentry>
 
186
 
 
187
        <varlistentry>
 
188
          <term> <varname> param_value_size_ret </varname> </term>
 
189
          <listitem>
 
190
            <para>
 
191
              Returns the actual size in bytes of data copied to <varname>param_value</varname>.
 
192
              If <varname>param_value_size_ret</varname> is NULL, it is ignored.
 
193
            </para>
 
194
          </listitem>
 
195
        </varlistentry>
 
196
      </variablelist>
 
197
 
 
198
            <!-- END PARAMETER TABLE  -->
 
199
 
 
200
    </refsect1>
 
201
 
 
202
<!-- ================================ NOTES  -->
 
203
<!-- <refsect1 id="notes"><title>Notes</title>
 
204
        <para>
 
205
 
 
206
        </para>
 
207
    </refsect1>
 
208
-->
 
209
 
 
210
<!-- ================================ ERRORS  -->
 
211
 
 
212
    <refsect1 id="errors"><title>Errors</title>
 
213
        <para>
 
214
          Returns <errorname>CL_SUCCESS</errorname> if the function is executed
 
215
          successfully. Otherwise, it returns one of the following errors:
 
216
        </para>
 
217
 
 
218
        <itemizedlist mark="disc">
 
219
            <listitem>
 
220
              <errorname>CL_INVALID_VALUE</errorname> if <varname>param_name</varname> is not
 
221
              valid, or if size in bytes specified by <varname>param_value_size</varname>
 
222
              is &lt; size of return type as described in the table above and
 
223
              <varname>param_value</varname> is not NULL
 
224
            </listitem>
 
225
 
 
226
            <listitem>
 
227
              <errorname>CL_INVALID_SAMPLER</errorname> if   <varname>sampler</varname> is a
 
228
              not a valid sampler object.
 
229
            </listitem>
 
230
 
 
231
            <listitem>
 
232
              <errorname>CL_OUT_OF_RESOURCES</errorname> if there is a failure to allocate
 
233
              resources required by the OpenCL implementation on the device.
 
234
            </listitem>
 
235
 
 
236
            <listitem>
 
237
              <errorname>CL_OUT_OF_HOST_MEMORY</errorname> if there is a failure to allocate
 
238
              resources required by the OpenCL implementation on the host.
 
239
            </listitem>
 
240
        </itemizedlist>
 
241
    </refsect1>
 
242
 
 
243
<!-- ================================ EXAMPLE  -->
 
244
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
 
245
<!--
 
246
    <refsect2 id="example1">
 
247
        <title>
 
248
            Example
 
249
        </title>
 
250
 
 
251
        <informaltable frame="none">
 
252
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
253
                <colspec colname="col1" colnum="1" />
 
254
                <tbody>
 
255
                    <row>
 
256
                        <entry>
 
257
                            Example goes here - it will be set in "code" type with white space preserved.
 
258
                        </entry>
 
259
                    </row>
 
260
                </tbody>
 
261
            </tgroup>
 
262
        </informaltable>
 
263
    </refsect2>
 
264
-->
 
265
 
 
266
<!-- ================================ SPECIFICATION  -->
 
267
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
268
-->
 
269
    <refsect1 id="specification"><title>Specification</title>
 
270
        <para>
 
271
            <imageobject>
 
272
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
273
            </imageobject>
 
274
 
 
275
            <olink uri="clGetSamplerInfo">OpenCL Specification</olink>
 
276
        </para>
 
277
    </refsect1>
 
278
 
 
279
<!-- ================================ ALSO SEE  -->
 
280
 
 
281
    <refsect1 id="seealso"><title>Also see</title>
 
282
        <para>
 
283
            <citerefentry><refentrytitle>clCreateSampler</refentrytitle></citerefentry>,
 
284
            <citerefentry><refentrytitle>clRetainSampler</refentrytitle></citerefentry>,
 
285
            <citerefentry><refentrytitle>clReleaseSampler</refentrytitle></citerefentry>
 
286
        </para>
 
287
    </refsect1>
 
288
 
 
289
<!-- ================================ COPYRIGHT  -->
 
290
<!-- Content included from copyright.inc.xsl -->
 
291
 
 
292
    <refsect3 id="Copyright"><title></title>
 
293
        <imageobject>
 
294
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
295
        </imageobject>
 
296
        <para />
 
297
    </refsect3>
 
298
 
 
299
<!-- 18-Oct-2011 -->
 
300
</refentry>
 
301