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

« back to all changes in this revision

Viewing changes to clReleaseSampler.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>clReleaseSampler</keyword>
 
9
        </keywordset>
 
10
    </refentryinfo>
 
11
 
 
12
    <refmeta>
 
13
        <refentrytitle>
 
14
            clReleaseSampler
 
15
        </refentrytitle>
 
16
 
 
17
        <refmiscinfo>
 
18
            <copyright>
 
19
                <year>2007-2011</year>
 
20
                <holder>The Khronos Group Inc.
 
21
 Permission is hereby granted, free of charge, to any person obtaining a
 
22
copy of this software and/or associated documentation files (the
 
23
"Materials"), to deal in the Materials without restriction, including
 
24
without limitation the rights to use, copy, modify, merge, publish,
 
25
distribute, sublicense, and/or sell copies of the Materials, and to
 
26
permit persons to whom the Materials are furnished to do so, subject to
 
27
the condition that this copyright notice and permission notice shall be included
 
28
in all copies or substantial portions of the Materials.</holder>
 
29
            </copyright>
 
30
        </refmiscinfo>
 
31
        <manvolnum>3</manvolnum>
 
32
    </refmeta>
 
33
 
 
34
<!-- ================================ SYNOPSIS -->
 
35
 
 
36
    <refnamediv id="clReleaseSampler">
 
37
        <refname>
 
38
            clReleaseSampler
 
39
        </refname>
 
40
 
 
41
        <refpurpose>
 
42
            Decrements the sampler reference count.
 
43
        </refpurpose>
 
44
    </refnamediv>
 
45
 
 
46
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
 
47
        <funcsynopsis>
 
48
            <funcprototype>
 
49
                <funcdef>
 
50
                    <link xlink:href="scalarDataTypes.html">cl_int</link>
 
51
 <function>clReleaseSampler</function>
 
52
                </funcdef>
 
53
 
 
54
                <paramdef><link xlink:href="abstractDataTypes.html">cl_sampler</link><parameter>sampler</parameter></paramdef>
 
55
            </funcprototype>
 
56
        </funcsynopsis>
 
57
    </refsynopsisdiv>
 
58
 
 
59
<!-- ================================ PARAMETERS -->
 
60
 
 
61
    <refsect1 id="parameters">
 
62
        <title>Parameters</title>
 
63
        <variablelist>
 
64
            <varlistentry>
 
65
                <term>
 
66
                    <varname>sampler<!-- parameter name -->
 
67
                    </varname>
 
68
                </term>
 
69
 
 
70
                <listitem>
 
71
                    Specifies the <varname>sampler</varname> being retained.
 
72
               </listitem>
 
73
            </varlistentry>
 
74
        </variablelist>
 
75
     </refsect1>
 
76
 
 
77
<!-- ================================ NOTES  -->
 
78
 
 
79
    <refsect1 id="notes"><title>Notes</title>
 
80
        <para>
 
81
          The sampler object is deleted after the reference count becomes zero and commands queued
 
82
          for execution on a command-queue(s) that use <varname>sampler</varname> have finished.
 
83
        </para>
 
84
    </refsect1>
 
85
 
 
86
<!-- ================================ ERRORS  -->
 
87
 
 
88
    <refsect1 id="errors"><title>Errors</title>
 
89
        <para>
 
90
            Returns <errorname>CL_SUCCESS</errorname> if the function is executed successfully.
 
91
            Otherwise, it returns one of the following errors:
 
92
        </para>
 
93
 
 
94
        <itemizedlist mark="disc">
 
95
            <listitem>
 
96
              <errorname>CL_INVALID_SAMPLER</errorname> if <varname>sampler</varname> is not
 
97
              a valid sampler object.
 
98
            </listitem>
 
99
 
 
100
            <listitem>
 
101
              <errorname>CL_OUT_OF_RESOURCES</errorname> if there is a failure to allocate
 
102
              resources required by the OpenCL implementation on the device.
 
103
            </listitem>
 
104
 
 
105
            <listitem>
 
106
              <errorname>CL_OUT_OF_HOST_MEMORY</errorname> if there is a failure to allocate
 
107
              resources required by the OpenCL implementation on the host.
 
108
            </listitem>
 
109
        </itemizedlist>
 
110
    </refsect1>
 
111
 
 
112
<!-- ================================ EXAMPLE  -->
 
113
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
 
114
<!--
 
115
    <refsect2 id="example1">
 
116
        <title>
 
117
            Example
 
118
        </title>
 
119
 
 
120
        <informaltable frame="none">
 
121
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
122
                <colspec colname="col1" colnum="1" />
 
123
                <tbody>
 
124
                    <row>
 
125
                        <entry>
 
126
                            Example goes here - it will be set in "code" type with white space preserved.
 
127
                        </entry>
 
128
                    </row>
 
129
                </tbody>
 
130
            </tgroup>
 
131
        </informaltable>
 
132
    </refsect2>
 
133
-->
 
134
 
 
135
<!-- ================================ SPECIFICATION  -->
 
136
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
137
-->
 
138
    <refsect1 id="specification"><title>Specification</title>
 
139
        <para>
 
140
            <imageobject>
 
141
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
142
            </imageobject>
 
143
 
 
144
            <olink uri="clReleaseSampler">OpenCL Specification</olink>
 
145
        </para>
 
146
    </refsect1>
 
147
 
 
148
<!-- ================================ ALSO SEE  -->
 
149
 
 
150
    <refsect1 id="seealso"><title>Also see</title>
 
151
        <para>
 
152
            <citerefentry><refentrytitle>clCreateSampler</refentrytitle></citerefentry>,
 
153
            <citerefentry><refentrytitle>clRetainSampler</refentrytitle></citerefentry>,
 
154
            <citerefentry><refentrytitle>clGetSamplerInfo</refentrytitle></citerefentry>
 
155
        </para>
 
156
    </refsect1>
 
157
 
 
158
<!-- ================================ COPYRIGHT  -->
 
159
<!-- Content included from copyright.inc.xsl -->
 
160
 
 
161
    <refsect3 id="Copyright"><title></title>
 
162
        <imageobject>
 
163
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
164
        </imageobject>
 
165
        <para />
 
166
    </refsect3>
 
167
 
 
168
<!-- 18-Oct-2011 -->
 
169
</refentry>
 
170