xref: /aosp_15_r20/prebuilts/sdk/renderscript/include/rs_graphics.rsh (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker/*
2*344a7f5eSAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project
3*344a7f5eSAndroid Build Coastguard Worker *
4*344a7f5eSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*344a7f5eSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*344a7f5eSAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*344a7f5eSAndroid Build Coastguard Worker *
8*344a7f5eSAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*344a7f5eSAndroid Build Coastguard Worker *
10*344a7f5eSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*344a7f5eSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*344a7f5eSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*344a7f5eSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*344a7f5eSAndroid Build Coastguard Worker * limitations under the License.
15*344a7f5eSAndroid Build Coastguard Worker */
16*344a7f5eSAndroid Build Coastguard Worker
17*344a7f5eSAndroid Build Coastguard Worker// Don't edit this file!  It is auto-generated by frameworks/rs/api/generate.sh.
18*344a7f5eSAndroid Build Coastguard Worker
19*344a7f5eSAndroid Build Coastguard Worker/*
20*344a7f5eSAndroid Build Coastguard Worker * rs_graphics.rsh: Graphics Functions and Types
21*344a7f5eSAndroid Build Coastguard Worker *
22*344a7f5eSAndroid Build Coastguard Worker * The graphics subsystem of RenderScript was removed at API level 23.
23*344a7f5eSAndroid Build Coastguard Worker */
24*344a7f5eSAndroid Build Coastguard Worker
25*344a7f5eSAndroid Build Coastguard Worker#ifndef RENDERSCRIPT_RS_GRAPHICS_RSH
26*344a7f5eSAndroid Build Coastguard Worker#define RENDERSCRIPT_RS_GRAPHICS_RSH
27*344a7f5eSAndroid Build Coastguard Worker
28*344a7f5eSAndroid Build Coastguard Worker#ifdef __LP64__
29*344a7f5eSAndroid Build Coastguard Worker// TODO We need to fix some of the builds before enabling this error:
30*344a7f5eSAndroid Build Coastguard Worker// #error "RenderScript graphics is deprecated and not supported in 64bit mode."
31*344a7f5eSAndroid Build Coastguard Worker#endif
32*344a7f5eSAndroid Build Coastguard Worker
33*344a7f5eSAndroid Build Coastguard Worker// TODO we seem to assume order for the other headers too.
34*344a7f5eSAndroid Build Coastguard Worker#include "rs_object_types.rsh"
35*344a7f5eSAndroid Build Coastguard Worker
36*344a7f5eSAndroid Build Coastguard Worker/*
37*344a7f5eSAndroid Build Coastguard Worker * rs_blend_src_func: Blend source function
38*344a7f5eSAndroid Build Coastguard Worker *
39*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
40*344a7f5eSAndroid Build Coastguard Worker *
41*344a7f5eSAndroid Build Coastguard Worker */
42*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
43*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
44*344a7f5eSAndroid Build Coastguard Workertypedef enum __attribute__((
45*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
46*344a7f5eSAndroid Build Coastguard Workerdeprecated
47*344a7f5eSAndroid Build Coastguard Worker#endif
48*344a7f5eSAndroid Build Coastguard Worker)) {
49*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_ZERO = 0,
50*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_ONE = 1,
51*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_DST_COLOR = 2,
52*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_ONE_MINUS_DST_COLOR = 3,
53*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_SRC_ALPHA = 4,
54*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_ONE_MINUS_SRC_ALPHA = 5,
55*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_DST_ALPHA = 6,
56*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_ONE_MINUS_DST_ALPHA = 7,
57*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_SRC_ALPHA_SATURATE = 8,
58*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_SRC_INVALID = 100
59*344a7f5eSAndroid Build Coastguard Worker} rs_blend_src_func;
60*344a7f5eSAndroid Build Coastguard Worker#endif
61*344a7f5eSAndroid Build Coastguard Worker#endif
62*344a7f5eSAndroid Build Coastguard Worker
63*344a7f5eSAndroid Build Coastguard Worker/*
64*344a7f5eSAndroid Build Coastguard Worker * rs_blend_dst_func: Blend destination function
65*344a7f5eSAndroid Build Coastguard Worker *
66*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
67*344a7f5eSAndroid Build Coastguard Worker *
68*344a7f5eSAndroid Build Coastguard Worker */
69*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
70*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
71*344a7f5eSAndroid Build Coastguard Workertypedef enum __attribute__((
72*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
73*344a7f5eSAndroid Build Coastguard Workerdeprecated
74*344a7f5eSAndroid Build Coastguard Worker#endif
75*344a7f5eSAndroid Build Coastguard Worker)) {
76*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_ZERO = 0,
77*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_ONE = 1,
78*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_SRC_COLOR = 2,
79*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_ONE_MINUS_SRC_COLOR = 3,
80*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_SRC_ALPHA = 4,
81*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_ONE_MINUS_SRC_ALPHA = 5,
82*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_DST_ALPHA = 6,
83*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_ONE_MINUS_DST_ALPHA = 7,
84*344a7f5eSAndroid Build Coastguard Worker    RS_BLEND_DST_INVALID = 100
85*344a7f5eSAndroid Build Coastguard Worker} rs_blend_dst_func;
86*344a7f5eSAndroid Build Coastguard Worker#endif
87*344a7f5eSAndroid Build Coastguard Worker#endif
88*344a7f5eSAndroid Build Coastguard Worker
89*344a7f5eSAndroid Build Coastguard Worker/*
90*344a7f5eSAndroid Build Coastguard Worker * rs_cull_mode: Culling mode
91*344a7f5eSAndroid Build Coastguard Worker *
92*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
93*344a7f5eSAndroid Build Coastguard Worker *
94*344a7f5eSAndroid Build Coastguard Worker */
95*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
96*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
97*344a7f5eSAndroid Build Coastguard Workertypedef enum __attribute__((
98*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
99*344a7f5eSAndroid Build Coastguard Workerdeprecated
100*344a7f5eSAndroid Build Coastguard Worker#endif
101*344a7f5eSAndroid Build Coastguard Worker)) {
102*344a7f5eSAndroid Build Coastguard Worker    RS_CULL_BACK = 0,
103*344a7f5eSAndroid Build Coastguard Worker    RS_CULL_FRONT = 1,
104*344a7f5eSAndroid Build Coastguard Worker    RS_CULL_NONE = 2,
105*344a7f5eSAndroid Build Coastguard Worker    RS_CULL_INVALID = 100
106*344a7f5eSAndroid Build Coastguard Worker} rs_cull_mode;
107*344a7f5eSAndroid Build Coastguard Worker#endif
108*344a7f5eSAndroid Build Coastguard Worker#endif
109*344a7f5eSAndroid Build Coastguard Worker
110*344a7f5eSAndroid Build Coastguard Worker/*
111*344a7f5eSAndroid Build Coastguard Worker * rs_depth_func: Depth function
112*344a7f5eSAndroid Build Coastguard Worker *
113*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
114*344a7f5eSAndroid Build Coastguard Worker *
115*344a7f5eSAndroid Build Coastguard Worker * Specifies conditional drawing depending on the comparison of the incoming
116*344a7f5eSAndroid Build Coastguard Worker * depth to that found in the depth buffer.
117*344a7f5eSAndroid Build Coastguard Worker */
118*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
119*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
120*344a7f5eSAndroid Build Coastguard Workertypedef enum __attribute__((
121*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
122*344a7f5eSAndroid Build Coastguard Workerdeprecated
123*344a7f5eSAndroid Build Coastguard Worker#endif
124*344a7f5eSAndroid Build Coastguard Worker)) {
125*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_ALWAYS = 0, // Always drawn
126*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_LESS = 1, // Drawn if the incoming depth value is less than that in the depth buffer
127*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_LEQUAL = 2, // Drawn if the incoming depth value is less or equal to that in the depth buffer
128*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_GREATER = 3, // Drawn if the incoming depth value is greater than that in the depth buffer
129*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_GEQUAL = 4, // Drawn if the incoming depth value is greater or equal to that in the depth buffer
130*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_EQUAL = 5, // Drawn if the incoming depth value is equal to that in the depth buffer
131*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_NOTEQUAL = 6, // Drawn if the incoming depth value is not equal to that in the depth buffer
132*344a7f5eSAndroid Build Coastguard Worker    RS_DEPTH_FUNC_INVALID = 100 // Invalid depth function
133*344a7f5eSAndroid Build Coastguard Worker} rs_depth_func;
134*344a7f5eSAndroid Build Coastguard Worker#endif
135*344a7f5eSAndroid Build Coastguard Worker#endif
136*344a7f5eSAndroid Build Coastguard Worker
137*344a7f5eSAndroid Build Coastguard Worker/*
138*344a7f5eSAndroid Build Coastguard Worker * rs_primitive: How to intepret mesh vertex data
139*344a7f5eSAndroid Build Coastguard Worker *
140*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
141*344a7f5eSAndroid Build Coastguard Worker *
142*344a7f5eSAndroid Build Coastguard Worker * Describes the way mesh vertex data is interpreted when rendering
143*344a7f5eSAndroid Build Coastguard Worker */
144*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
145*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
146*344a7f5eSAndroid Build Coastguard Workertypedef enum __attribute__((
147*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
148*344a7f5eSAndroid Build Coastguard Workerdeprecated
149*344a7f5eSAndroid Build Coastguard Worker#endif
150*344a7f5eSAndroid Build Coastguard Worker)) {
151*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_POINT = 0, // Vertex data will be rendered as a series of points
152*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_LINE = 1, // Vertex pairs will be rendered as lines
153*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_LINE_STRIP = 2, // Vertex data will be rendered as a connected line strip
154*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_TRIANGLE = 3, // Vertices will be rendered as individual triangles
155*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_TRIANGLE_STRIP = 4, // Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex
156*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_TRIANGLE_FAN = 5, // Vertices will be rendered as a sequence of triangles that all share first vertex as the origin
157*344a7f5eSAndroid Build Coastguard Worker    RS_PRIMITIVE_INVALID = 100 // Invalid primitive
158*344a7f5eSAndroid Build Coastguard Worker} rs_primitive;
159*344a7f5eSAndroid Build Coastguard Worker#endif
160*344a7f5eSAndroid Build Coastguard Worker#endif
161*344a7f5eSAndroid Build Coastguard Worker
162*344a7f5eSAndroid Build Coastguard Worker/*
163*344a7f5eSAndroid Build Coastguard Worker * rs_font: Handle to a Font
164*344a7f5eSAndroid Build Coastguard Worker *
165*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
166*344a7f5eSAndroid Build Coastguard Worker *
167*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript font object.
168*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.Font
169*344a7f5eSAndroid Build Coastguard Worker */
170*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
171*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
172*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_font _RS_OBJECT_DECL __attribute__((
173*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
174*344a7f5eSAndroid Build Coastguard Workerdeprecated
175*344a7f5eSAndroid Build Coastguard Worker#endif
176*344a7f5eSAndroid Build Coastguard Worker)) rs_font;
177*344a7f5eSAndroid Build Coastguard Worker#endif
178*344a7f5eSAndroid Build Coastguard Worker#endif
179*344a7f5eSAndroid Build Coastguard Worker
180*344a7f5eSAndroid Build Coastguard Worker/*
181*344a7f5eSAndroid Build Coastguard Worker * rs_mesh: Handle to a Mesh
182*344a7f5eSAndroid Build Coastguard Worker *
183*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
184*344a7f5eSAndroid Build Coastguard Worker *
185*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript mesh object.
186*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.Mesh
187*344a7f5eSAndroid Build Coastguard Worker */
188*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
189*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
190*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_mesh _RS_OBJECT_DECL __attribute__((
191*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
192*344a7f5eSAndroid Build Coastguard Workerdeprecated
193*344a7f5eSAndroid Build Coastguard Worker#endif
194*344a7f5eSAndroid Build Coastguard Worker)) rs_mesh;
195*344a7f5eSAndroid Build Coastguard Worker#endif
196*344a7f5eSAndroid Build Coastguard Worker#endif
197*344a7f5eSAndroid Build Coastguard Worker
198*344a7f5eSAndroid Build Coastguard Worker/*
199*344a7f5eSAndroid Build Coastguard Worker * rs_program_fragment: Handle to a ProgramFragment
200*344a7f5eSAndroid Build Coastguard Worker *
201*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
202*344a7f5eSAndroid Build Coastguard Worker *
203*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript ProgramFragment object.
204*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.ProgramFragment
205*344a7f5eSAndroid Build Coastguard Worker */
206*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
207*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
208*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_program_fragment _RS_OBJECT_DECL __attribute__((
209*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
210*344a7f5eSAndroid Build Coastguard Workerdeprecated
211*344a7f5eSAndroid Build Coastguard Worker#endif
212*344a7f5eSAndroid Build Coastguard Worker)) rs_program_fragment;
213*344a7f5eSAndroid Build Coastguard Worker#endif
214*344a7f5eSAndroid Build Coastguard Worker#endif
215*344a7f5eSAndroid Build Coastguard Worker
216*344a7f5eSAndroid Build Coastguard Worker/*
217*344a7f5eSAndroid Build Coastguard Worker * rs_program_vertex: Handle to a ProgramVertex
218*344a7f5eSAndroid Build Coastguard Worker *
219*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
220*344a7f5eSAndroid Build Coastguard Worker *
221*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript ProgramVertex object.
222*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.ProgramVertex
223*344a7f5eSAndroid Build Coastguard Worker */
224*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
225*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
226*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_program_vertex _RS_OBJECT_DECL __attribute__((
227*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
228*344a7f5eSAndroid Build Coastguard Workerdeprecated
229*344a7f5eSAndroid Build Coastguard Worker#endif
230*344a7f5eSAndroid Build Coastguard Worker)) rs_program_vertex;
231*344a7f5eSAndroid Build Coastguard Worker#endif
232*344a7f5eSAndroid Build Coastguard Worker#endif
233*344a7f5eSAndroid Build Coastguard Worker
234*344a7f5eSAndroid Build Coastguard Worker/*
235*344a7f5eSAndroid Build Coastguard Worker * rs_program_raster: Handle to a ProgramRaster
236*344a7f5eSAndroid Build Coastguard Worker *
237*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
238*344a7f5eSAndroid Build Coastguard Worker *
239*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript ProgramRaster object.
240*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.ProgramRaster
241*344a7f5eSAndroid Build Coastguard Worker */
242*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
243*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
244*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_program_raster _RS_OBJECT_DECL __attribute__((
245*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
246*344a7f5eSAndroid Build Coastguard Workerdeprecated
247*344a7f5eSAndroid Build Coastguard Worker#endif
248*344a7f5eSAndroid Build Coastguard Worker)) rs_program_raster;
249*344a7f5eSAndroid Build Coastguard Worker#endif
250*344a7f5eSAndroid Build Coastguard Worker#endif
251*344a7f5eSAndroid Build Coastguard Worker
252*344a7f5eSAndroid Build Coastguard Worker/*
253*344a7f5eSAndroid Build Coastguard Worker * rs_program_store: Handle to a ProgramStore
254*344a7f5eSAndroid Build Coastguard Worker *
255*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
256*344a7f5eSAndroid Build Coastguard Worker *
257*344a7f5eSAndroid Build Coastguard Worker * Opaque handle to a RenderScript ProgramStore object.
258*344a7f5eSAndroid Build Coastguard Worker * See: android.renderscript.ProgramStore
259*344a7f5eSAndroid Build Coastguard Worker */
260*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
261*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
262*344a7f5eSAndroid Build Coastguard Workertypedef struct rs_program_store _RS_OBJECT_DECL __attribute__((
263*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
264*344a7f5eSAndroid Build Coastguard Workerdeprecated
265*344a7f5eSAndroid Build Coastguard Worker#endif
266*344a7f5eSAndroid Build Coastguard Worker)) rs_program_store;
267*344a7f5eSAndroid Build Coastguard Worker#endif
268*344a7f5eSAndroid Build Coastguard Worker#endif
269*344a7f5eSAndroid Build Coastguard Worker
270*344a7f5eSAndroid Build Coastguard Worker/*
271*344a7f5eSAndroid Build Coastguard Worker * rsClearObject: Release an object
272*344a7f5eSAndroid Build Coastguard Worker *
273*344a7f5eSAndroid Build Coastguard Worker * Tells the run time that this handle will no longer be used to access the the related
274*344a7f5eSAndroid Build Coastguard Worker * object.  If this was the last handle to that object, resource recovery may happen.
275*344a7f5eSAndroid Build Coastguard Worker *
276*344a7f5eSAndroid Build Coastguard Worker * After calling this function, *dst will be set to an empty handle.  See rsIsObject().
277*344a7f5eSAndroid Build Coastguard Worker */
278*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
279*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
280*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
281*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_mesh* dst);
282*344a7f5eSAndroid Build Coastguard Worker#endif
283*344a7f5eSAndroid Build Coastguard Worker#endif
284*344a7f5eSAndroid Build Coastguard Worker
285*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
286*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
287*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
288*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_program_fragment* dst);
289*344a7f5eSAndroid Build Coastguard Worker#endif
290*344a7f5eSAndroid Build Coastguard Worker#endif
291*344a7f5eSAndroid Build Coastguard Worker
292*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
293*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
294*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
295*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_program_vertex* dst);
296*344a7f5eSAndroid Build Coastguard Worker#endif
297*344a7f5eSAndroid Build Coastguard Worker#endif
298*344a7f5eSAndroid Build Coastguard Worker
299*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
300*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
301*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
302*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_program_raster* dst);
303*344a7f5eSAndroid Build Coastguard Worker#endif
304*344a7f5eSAndroid Build Coastguard Worker#endif
305*344a7f5eSAndroid Build Coastguard Worker
306*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
307*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
308*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
309*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_program_store* dst);
310*344a7f5eSAndroid Build Coastguard Worker#endif
311*344a7f5eSAndroid Build Coastguard Worker#endif
312*344a7f5eSAndroid Build Coastguard Worker
313*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
314*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
315*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
316*344a7f5eSAndroid Build Coastguard Worker    rsClearObject(rs_font* dst);
317*344a7f5eSAndroid Build Coastguard Worker#endif
318*344a7f5eSAndroid Build Coastguard Worker#endif
319*344a7f5eSAndroid Build Coastguard Worker
320*344a7f5eSAndroid Build Coastguard Worker/*
321*344a7f5eSAndroid Build Coastguard Worker * rsIsObject: Check for an empty handle
322*344a7f5eSAndroid Build Coastguard Worker *
323*344a7f5eSAndroid Build Coastguard Worker * Returns true if the handle contains a non-null reference.
324*344a7f5eSAndroid Build Coastguard Worker *
325*344a7f5eSAndroid Build Coastguard Worker * This function does not validate that the internal pointer used in the handle
326*344a7f5eSAndroid Build Coastguard Worker * points to an actual valid object; it only checks for null.
327*344a7f5eSAndroid Build Coastguard Worker *
328*344a7f5eSAndroid Build Coastguard Worker * This function can be used to check the Element returned by rsElementGetSubElement()
329*344a7f5eSAndroid Build Coastguard Worker * or see if rsClearObject() has been called on a handle.
330*344a7f5eSAndroid Build Coastguard Worker */
331*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
332*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
333*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
334*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_mesh v);
335*344a7f5eSAndroid Build Coastguard Worker#endif
336*344a7f5eSAndroid Build Coastguard Worker#endif
337*344a7f5eSAndroid Build Coastguard Worker
338*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
339*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
340*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
341*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_program_fragment v);
342*344a7f5eSAndroid Build Coastguard Worker#endif
343*344a7f5eSAndroid Build Coastguard Worker#endif
344*344a7f5eSAndroid Build Coastguard Worker
345*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
346*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
347*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
348*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_program_vertex v);
349*344a7f5eSAndroid Build Coastguard Worker#endif
350*344a7f5eSAndroid Build Coastguard Worker#endif
351*344a7f5eSAndroid Build Coastguard Worker
352*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
353*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
354*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
355*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_program_raster v);
356*344a7f5eSAndroid Build Coastguard Worker#endif
357*344a7f5eSAndroid Build Coastguard Worker#endif
358*344a7f5eSAndroid Build Coastguard Worker
359*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
360*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
361*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
362*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_program_store v);
363*344a7f5eSAndroid Build Coastguard Worker#endif
364*344a7f5eSAndroid Build Coastguard Worker#endif
365*344a7f5eSAndroid Build Coastguard Worker
366*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
367*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
368*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable))
369*344a7f5eSAndroid Build Coastguard Worker    rsIsObject(rs_font v);
370*344a7f5eSAndroid Build Coastguard Worker#endif
371*344a7f5eSAndroid Build Coastguard Worker#endif
372*344a7f5eSAndroid Build Coastguard Worker
373*344a7f5eSAndroid Build Coastguard Worker/*
374*344a7f5eSAndroid Build Coastguard Worker * rsSetObject: For internal use.
375*344a7f5eSAndroid Build Coastguard Worker *
376*344a7f5eSAndroid Build Coastguard Worker */
377*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
378*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
379*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
380*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_mesh* dst, rs_mesh src);
381*344a7f5eSAndroid Build Coastguard Worker#endif
382*344a7f5eSAndroid Build Coastguard Worker#endif
383*344a7f5eSAndroid Build Coastguard Worker
384*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
385*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
386*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
387*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_program_fragment* dst, rs_program_fragment src);
388*344a7f5eSAndroid Build Coastguard Worker#endif
389*344a7f5eSAndroid Build Coastguard Worker#endif
390*344a7f5eSAndroid Build Coastguard Worker
391*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
392*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
393*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
394*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_program_vertex* dst, rs_program_vertex src);
395*344a7f5eSAndroid Build Coastguard Worker#endif
396*344a7f5eSAndroid Build Coastguard Worker#endif
397*344a7f5eSAndroid Build Coastguard Worker
398*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
399*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
400*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
401*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_program_raster* dst, rs_program_raster src);
402*344a7f5eSAndroid Build Coastguard Worker#endif
403*344a7f5eSAndroid Build Coastguard Worker#endif
404*344a7f5eSAndroid Build Coastguard Worker
405*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
406*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
407*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
408*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_program_store* dst, rs_program_store src);
409*344a7f5eSAndroid Build Coastguard Worker#endif
410*344a7f5eSAndroid Build Coastguard Worker#endif
411*344a7f5eSAndroid Build Coastguard Worker
412*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
413*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (RS_VERSION <= 22)
414*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable))
415*344a7f5eSAndroid Build Coastguard Worker    rsSetObject(rs_font* dst, rs_font src);
416*344a7f5eSAndroid Build Coastguard Worker#endif
417*344a7f5eSAndroid Build Coastguard Worker#endif
418*344a7f5eSAndroid Build Coastguard Worker
419*344a7f5eSAndroid Build Coastguard Worker/*
420*344a7f5eSAndroid Build Coastguard Worker * rsgAllocationSyncAll: Sync the contents of an allocation
421*344a7f5eSAndroid Build Coastguard Worker *
422*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
423*344a7f5eSAndroid Build Coastguard Worker *
424*344a7f5eSAndroid Build Coastguard Worker * Sync the contents of an allocation.
425*344a7f5eSAndroid Build Coastguard Worker *
426*344a7f5eSAndroid Build Coastguard Worker * If the source is specified, sync from memory space specified by source.
427*344a7f5eSAndroid Build Coastguard Worker *
428*344a7f5eSAndroid Build Coastguard Worker * If the source is not specified, sync from its SCRIPT memory space to its HW
429*344a7f5eSAndroid Build Coastguard Worker * memory spaces.
430*344a7f5eSAndroid Build Coastguard Worker */
431*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
432*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
433*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
434*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
435*344a7f5eSAndroid Build Coastguard Worker, deprecated
436*344a7f5eSAndroid Build Coastguard Worker#endif
437*344a7f5eSAndroid Build Coastguard Worker))
438*344a7f5eSAndroid Build Coastguard Worker    rsgAllocationSyncAll(rs_allocation alloc);
439*344a7f5eSAndroid Build Coastguard Worker#endif
440*344a7f5eSAndroid Build Coastguard Worker#endif
441*344a7f5eSAndroid Build Coastguard Worker
442*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
443*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
444*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
445*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
446*344a7f5eSAndroid Build Coastguard Worker, deprecated
447*344a7f5eSAndroid Build Coastguard Worker#endif
448*344a7f5eSAndroid Build Coastguard Worker))
449*344a7f5eSAndroid Build Coastguard Worker    rsgAllocationSyncAll(rs_allocation alloc, rs_allocation_usage_type source);
450*344a7f5eSAndroid Build Coastguard Worker#endif
451*344a7f5eSAndroid Build Coastguard Worker#endif
452*344a7f5eSAndroid Build Coastguard Worker
453*344a7f5eSAndroid Build Coastguard Worker/*
454*344a7f5eSAndroid Build Coastguard Worker * rsgBindColorTarget: Set the color target
455*344a7f5eSAndroid Build Coastguard Worker *
456*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
457*344a7f5eSAndroid Build Coastguard Worker *
458*344a7f5eSAndroid Build Coastguard Worker * Set the color target used for all subsequent rendering calls
459*344a7f5eSAndroid Build Coastguard Worker */
460*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
461*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
462*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
463*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
464*344a7f5eSAndroid Build Coastguard Worker, deprecated
465*344a7f5eSAndroid Build Coastguard Worker#endif
466*344a7f5eSAndroid Build Coastguard Worker))
467*344a7f5eSAndroid Build Coastguard Worker    rsgBindColorTarget(rs_allocation colorTarget, uint slot);
468*344a7f5eSAndroid Build Coastguard Worker#endif
469*344a7f5eSAndroid Build Coastguard Worker#endif
470*344a7f5eSAndroid Build Coastguard Worker
471*344a7f5eSAndroid Build Coastguard Worker/*
472*344a7f5eSAndroid Build Coastguard Worker * rsgBindConstant: Bind a constant allocation
473*344a7f5eSAndroid Build Coastguard Worker *
474*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
475*344a7f5eSAndroid Build Coastguard Worker *
476*344a7f5eSAndroid Build Coastguard Worker * Bind a new Allocation object to a ProgramFragment or ProgramVertex.
477*344a7f5eSAndroid Build Coastguard Worker * The Allocation must be a valid constant input for the Program.
478*344a7f5eSAndroid Build Coastguard Worker *
479*344a7f5eSAndroid Build Coastguard Worker * Parameters:
480*344a7f5eSAndroid Build Coastguard Worker *   ps: program fragment object
481*344a7f5eSAndroid Build Coastguard Worker *   slot: index of the constant buffer on the program
482*344a7f5eSAndroid Build Coastguard Worker *   c: constants to bind
483*344a7f5eSAndroid Build Coastguard Worker *   pv: program vertex object
484*344a7f5eSAndroid Build Coastguard Worker */
485*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
486*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
487*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
488*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
489*344a7f5eSAndroid Build Coastguard Worker, deprecated
490*344a7f5eSAndroid Build Coastguard Worker#endif
491*344a7f5eSAndroid Build Coastguard Worker))
492*344a7f5eSAndroid Build Coastguard Worker    rsgBindConstant(rs_program_fragment ps, uint slot, rs_allocation c);
493*344a7f5eSAndroid Build Coastguard Worker#endif
494*344a7f5eSAndroid Build Coastguard Worker#endif
495*344a7f5eSAndroid Build Coastguard Worker
496*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
497*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
498*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
499*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
500*344a7f5eSAndroid Build Coastguard Worker, deprecated
501*344a7f5eSAndroid Build Coastguard Worker#endif
502*344a7f5eSAndroid Build Coastguard Worker))
503*344a7f5eSAndroid Build Coastguard Worker    rsgBindConstant(rs_program_vertex pv, uint slot, rs_allocation c);
504*344a7f5eSAndroid Build Coastguard Worker#endif
505*344a7f5eSAndroid Build Coastguard Worker#endif
506*344a7f5eSAndroid Build Coastguard Worker
507*344a7f5eSAndroid Build Coastguard Worker/*
508*344a7f5eSAndroid Build Coastguard Worker * rsgBindDepthTarget: Set the depth target
509*344a7f5eSAndroid Build Coastguard Worker *
510*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
511*344a7f5eSAndroid Build Coastguard Worker *
512*344a7f5eSAndroid Build Coastguard Worker * Set the depth target used for all subsequent rendering calls
513*344a7f5eSAndroid Build Coastguard Worker */
514*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
515*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
516*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
517*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
518*344a7f5eSAndroid Build Coastguard Worker, deprecated
519*344a7f5eSAndroid Build Coastguard Worker#endif
520*344a7f5eSAndroid Build Coastguard Worker))
521*344a7f5eSAndroid Build Coastguard Worker    rsgBindDepthTarget(rs_allocation depthTarget);
522*344a7f5eSAndroid Build Coastguard Worker#endif
523*344a7f5eSAndroid Build Coastguard Worker#endif
524*344a7f5eSAndroid Build Coastguard Worker
525*344a7f5eSAndroid Build Coastguard Worker/*
526*344a7f5eSAndroid Build Coastguard Worker * rsgBindFont: Bind a font object
527*344a7f5eSAndroid Build Coastguard Worker *
528*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
529*344a7f5eSAndroid Build Coastguard Worker *
530*344a7f5eSAndroid Build Coastguard Worker * Binds the font object to be used for all subsequent font rendering calls
531*344a7f5eSAndroid Build Coastguard Worker *
532*344a7f5eSAndroid Build Coastguard Worker * Parameters:
533*344a7f5eSAndroid Build Coastguard Worker *   font: object to bind
534*344a7f5eSAndroid Build Coastguard Worker */
535*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
536*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
537*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
538*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
539*344a7f5eSAndroid Build Coastguard Worker, deprecated
540*344a7f5eSAndroid Build Coastguard Worker#endif
541*344a7f5eSAndroid Build Coastguard Worker))
542*344a7f5eSAndroid Build Coastguard Worker    rsgBindFont(rs_font font);
543*344a7f5eSAndroid Build Coastguard Worker#endif
544*344a7f5eSAndroid Build Coastguard Worker#endif
545*344a7f5eSAndroid Build Coastguard Worker
546*344a7f5eSAndroid Build Coastguard Worker/*
547*344a7f5eSAndroid Build Coastguard Worker * rsgBindProgramFragment: Bind a ProgramFragment
548*344a7f5eSAndroid Build Coastguard Worker *
549*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
550*344a7f5eSAndroid Build Coastguard Worker *
551*344a7f5eSAndroid Build Coastguard Worker * Bind a new ProgramFragment to the rendering context.
552*344a7f5eSAndroid Build Coastguard Worker */
553*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
554*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
555*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
556*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
557*344a7f5eSAndroid Build Coastguard Worker, deprecated
558*344a7f5eSAndroid Build Coastguard Worker#endif
559*344a7f5eSAndroid Build Coastguard Worker))
560*344a7f5eSAndroid Build Coastguard Worker    rsgBindProgramFragment(rs_program_fragment pf);
561*344a7f5eSAndroid Build Coastguard Worker#endif
562*344a7f5eSAndroid Build Coastguard Worker#endif
563*344a7f5eSAndroid Build Coastguard Worker
564*344a7f5eSAndroid Build Coastguard Worker/*
565*344a7f5eSAndroid Build Coastguard Worker * rsgBindProgramRaster: Bind a ProgramRaster
566*344a7f5eSAndroid Build Coastguard Worker *
567*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
568*344a7f5eSAndroid Build Coastguard Worker *
569*344a7f5eSAndroid Build Coastguard Worker * Bind a new ProgramRaster to the rendering context.
570*344a7f5eSAndroid Build Coastguard Worker */
571*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
572*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
573*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
574*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
575*344a7f5eSAndroid Build Coastguard Worker, deprecated
576*344a7f5eSAndroid Build Coastguard Worker#endif
577*344a7f5eSAndroid Build Coastguard Worker))
578*344a7f5eSAndroid Build Coastguard Worker    rsgBindProgramRaster(rs_program_raster pr);
579*344a7f5eSAndroid Build Coastguard Worker#endif
580*344a7f5eSAndroid Build Coastguard Worker#endif
581*344a7f5eSAndroid Build Coastguard Worker
582*344a7f5eSAndroid Build Coastguard Worker/*
583*344a7f5eSAndroid Build Coastguard Worker * rsgBindProgramStore: Bind a ProgramStore
584*344a7f5eSAndroid Build Coastguard Worker *
585*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
586*344a7f5eSAndroid Build Coastguard Worker *
587*344a7f5eSAndroid Build Coastguard Worker * Bind a new ProgramStore to the rendering context.
588*344a7f5eSAndroid Build Coastguard Worker */
589*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
590*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
591*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
592*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
593*344a7f5eSAndroid Build Coastguard Worker, deprecated
594*344a7f5eSAndroid Build Coastguard Worker#endif
595*344a7f5eSAndroid Build Coastguard Worker))
596*344a7f5eSAndroid Build Coastguard Worker    rsgBindProgramStore(rs_program_store ps);
597*344a7f5eSAndroid Build Coastguard Worker#endif
598*344a7f5eSAndroid Build Coastguard Worker#endif
599*344a7f5eSAndroid Build Coastguard Worker
600*344a7f5eSAndroid Build Coastguard Worker/*
601*344a7f5eSAndroid Build Coastguard Worker * rsgBindProgramVertex: Bind a ProgramVertex
602*344a7f5eSAndroid Build Coastguard Worker *
603*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
604*344a7f5eSAndroid Build Coastguard Worker *
605*344a7f5eSAndroid Build Coastguard Worker * Bind a new ProgramVertex to the rendering context.
606*344a7f5eSAndroid Build Coastguard Worker */
607*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
608*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
609*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
610*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
611*344a7f5eSAndroid Build Coastguard Worker, deprecated
612*344a7f5eSAndroid Build Coastguard Worker#endif
613*344a7f5eSAndroid Build Coastguard Worker))
614*344a7f5eSAndroid Build Coastguard Worker    rsgBindProgramVertex(rs_program_vertex pv);
615*344a7f5eSAndroid Build Coastguard Worker#endif
616*344a7f5eSAndroid Build Coastguard Worker#endif
617*344a7f5eSAndroid Build Coastguard Worker
618*344a7f5eSAndroid Build Coastguard Worker/*
619*344a7f5eSAndroid Build Coastguard Worker * rsgBindSampler: Bind a sampler
620*344a7f5eSAndroid Build Coastguard Worker *
621*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
622*344a7f5eSAndroid Build Coastguard Worker *
623*344a7f5eSAndroid Build Coastguard Worker * Bind a new Sampler object to a ProgramFragment.  The sampler will
624*344a7f5eSAndroid Build Coastguard Worker * operate on the texture bound at the matching slot.
625*344a7f5eSAndroid Build Coastguard Worker */
626*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
627*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
628*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
629*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
630*344a7f5eSAndroid Build Coastguard Worker, deprecated
631*344a7f5eSAndroid Build Coastguard Worker#endif
632*344a7f5eSAndroid Build Coastguard Worker))
633*344a7f5eSAndroid Build Coastguard Worker    rsgBindSampler(rs_program_fragment fragment, uint slot, rs_sampler sampler);
634*344a7f5eSAndroid Build Coastguard Worker#endif
635*344a7f5eSAndroid Build Coastguard Worker#endif
636*344a7f5eSAndroid Build Coastguard Worker
637*344a7f5eSAndroid Build Coastguard Worker/*
638*344a7f5eSAndroid Build Coastguard Worker * rsgBindTexture: Bind a texture allocation
639*344a7f5eSAndroid Build Coastguard Worker *
640*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
641*344a7f5eSAndroid Build Coastguard Worker *
642*344a7f5eSAndroid Build Coastguard Worker * Bind a new Allocation object to a ProgramFragment.  The
643*344a7f5eSAndroid Build Coastguard Worker * Allocation must be a valid texture for the Program.  The sampling
644*344a7f5eSAndroid Build Coastguard Worker * of the texture will be controled by the Sampler bound at the
645*344a7f5eSAndroid Build Coastguard Worker * matching slot.
646*344a7f5eSAndroid Build Coastguard Worker */
647*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
648*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
649*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
650*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
651*344a7f5eSAndroid Build Coastguard Worker, deprecated
652*344a7f5eSAndroid Build Coastguard Worker#endif
653*344a7f5eSAndroid Build Coastguard Worker))
654*344a7f5eSAndroid Build Coastguard Worker    rsgBindTexture(rs_program_fragment v, uint slot, rs_allocation alloc);
655*344a7f5eSAndroid Build Coastguard Worker#endif
656*344a7f5eSAndroid Build Coastguard Worker#endif
657*344a7f5eSAndroid Build Coastguard Worker
658*344a7f5eSAndroid Build Coastguard Worker/*
659*344a7f5eSAndroid Build Coastguard Worker * rsgClearAllRenderTargets: Clear all color and depth targets
660*344a7f5eSAndroid Build Coastguard Worker *
661*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
662*344a7f5eSAndroid Build Coastguard Worker *
663*344a7f5eSAndroid Build Coastguard Worker * Clear all color and depth targets and resume rendering into
664*344a7f5eSAndroid Build Coastguard Worker * the framebuffer
665*344a7f5eSAndroid Build Coastguard Worker */
666*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
667*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
668*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
669*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
670*344a7f5eSAndroid Build Coastguard Worker, deprecated
671*344a7f5eSAndroid Build Coastguard Worker#endif
672*344a7f5eSAndroid Build Coastguard Worker))
673*344a7f5eSAndroid Build Coastguard Worker    rsgClearAllRenderTargets(void);
674*344a7f5eSAndroid Build Coastguard Worker#endif
675*344a7f5eSAndroid Build Coastguard Worker#endif
676*344a7f5eSAndroid Build Coastguard Worker
677*344a7f5eSAndroid Build Coastguard Worker/*
678*344a7f5eSAndroid Build Coastguard Worker * rsgClearColor: Clear the specified color from the surface
679*344a7f5eSAndroid Build Coastguard Worker *
680*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
681*344a7f5eSAndroid Build Coastguard Worker *
682*344a7f5eSAndroid Build Coastguard Worker * Clears the rendering surface to the specified color.
683*344a7f5eSAndroid Build Coastguard Worker */
684*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
685*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
686*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
687*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
688*344a7f5eSAndroid Build Coastguard Worker, deprecated
689*344a7f5eSAndroid Build Coastguard Worker#endif
690*344a7f5eSAndroid Build Coastguard Worker))
691*344a7f5eSAndroid Build Coastguard Worker    rsgClearColor(float r, float g, float b, float a);
692*344a7f5eSAndroid Build Coastguard Worker#endif
693*344a7f5eSAndroid Build Coastguard Worker#endif
694*344a7f5eSAndroid Build Coastguard Worker
695*344a7f5eSAndroid Build Coastguard Worker/*
696*344a7f5eSAndroid Build Coastguard Worker * rsgClearColorTarget: Clear the color target
697*344a7f5eSAndroid Build Coastguard Worker *
698*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
699*344a7f5eSAndroid Build Coastguard Worker *
700*344a7f5eSAndroid Build Coastguard Worker * Clear the previously set color target
701*344a7f5eSAndroid Build Coastguard Worker */
702*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
703*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
704*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
705*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
706*344a7f5eSAndroid Build Coastguard Worker, deprecated
707*344a7f5eSAndroid Build Coastguard Worker#endif
708*344a7f5eSAndroid Build Coastguard Worker))
709*344a7f5eSAndroid Build Coastguard Worker    rsgClearColorTarget(uint slot);
710*344a7f5eSAndroid Build Coastguard Worker#endif
711*344a7f5eSAndroid Build Coastguard Worker#endif
712*344a7f5eSAndroid Build Coastguard Worker
713*344a7f5eSAndroid Build Coastguard Worker/*
714*344a7f5eSAndroid Build Coastguard Worker * rsgClearDepth: Clear the depth surface
715*344a7f5eSAndroid Build Coastguard Worker *
716*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
717*344a7f5eSAndroid Build Coastguard Worker *
718*344a7f5eSAndroid Build Coastguard Worker * Clears the depth suface to the specified value.
719*344a7f5eSAndroid Build Coastguard Worker */
720*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
721*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
722*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
723*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
724*344a7f5eSAndroid Build Coastguard Worker, deprecated
725*344a7f5eSAndroid Build Coastguard Worker#endif
726*344a7f5eSAndroid Build Coastguard Worker))
727*344a7f5eSAndroid Build Coastguard Worker    rsgClearDepth(float value);
728*344a7f5eSAndroid Build Coastguard Worker#endif
729*344a7f5eSAndroid Build Coastguard Worker#endif
730*344a7f5eSAndroid Build Coastguard Worker
731*344a7f5eSAndroid Build Coastguard Worker/*
732*344a7f5eSAndroid Build Coastguard Worker * rsgClearDepthTarget: Clear the depth target
733*344a7f5eSAndroid Build Coastguard Worker *
734*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
735*344a7f5eSAndroid Build Coastguard Worker *
736*344a7f5eSAndroid Build Coastguard Worker * Clear the previously set depth target
737*344a7f5eSAndroid Build Coastguard Worker */
738*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
739*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
740*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
741*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
742*344a7f5eSAndroid Build Coastguard Worker, deprecated
743*344a7f5eSAndroid Build Coastguard Worker#endif
744*344a7f5eSAndroid Build Coastguard Worker))
745*344a7f5eSAndroid Build Coastguard Worker    rsgClearDepthTarget(void);
746*344a7f5eSAndroid Build Coastguard Worker#endif
747*344a7f5eSAndroid Build Coastguard Worker#endif
748*344a7f5eSAndroid Build Coastguard Worker
749*344a7f5eSAndroid Build Coastguard Worker/*
750*344a7f5eSAndroid Build Coastguard Worker * rsgDrawMesh: Draw a mesh
751*344a7f5eSAndroid Build Coastguard Worker *
752*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
753*344a7f5eSAndroid Build Coastguard Worker *
754*344a7f5eSAndroid Build Coastguard Worker * Draw a mesh using the current context state.
755*344a7f5eSAndroid Build Coastguard Worker *
756*344a7f5eSAndroid Build Coastguard Worker * If primitiveIndex is specified, draw part of a mesh using the current context state.
757*344a7f5eSAndroid Build Coastguard Worker *
758*344a7f5eSAndroid Build Coastguard Worker * If start and len are also specified, draw specified index range of part of a mesh using the current context state.
759*344a7f5eSAndroid Build Coastguard Worker *
760*344a7f5eSAndroid Build Coastguard Worker * Otherwise the whole mesh is rendered.
761*344a7f5eSAndroid Build Coastguard Worker *
762*344a7f5eSAndroid Build Coastguard Worker * Parameters:
763*344a7f5eSAndroid Build Coastguard Worker *   ism: mesh object to render
764*344a7f5eSAndroid Build Coastguard Worker *   primitiveIndex: for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw.
765*344a7f5eSAndroid Build Coastguard Worker *   start: starting index in the range
766*344a7f5eSAndroid Build Coastguard Worker *   len: number of indices to draw
767*344a7f5eSAndroid Build Coastguard Worker */
768*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
769*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
770*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
771*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
772*344a7f5eSAndroid Build Coastguard Worker, deprecated
773*344a7f5eSAndroid Build Coastguard Worker#endif
774*344a7f5eSAndroid Build Coastguard Worker))
775*344a7f5eSAndroid Build Coastguard Worker    rsgDrawMesh(rs_mesh ism);
776*344a7f5eSAndroid Build Coastguard Worker#endif
777*344a7f5eSAndroid Build Coastguard Worker#endif
778*344a7f5eSAndroid Build Coastguard Worker
779*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
780*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
781*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
782*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
783*344a7f5eSAndroid Build Coastguard Worker, deprecated
784*344a7f5eSAndroid Build Coastguard Worker#endif
785*344a7f5eSAndroid Build Coastguard Worker))
786*344a7f5eSAndroid Build Coastguard Worker    rsgDrawMesh(rs_mesh ism, uint primitiveIndex);
787*344a7f5eSAndroid Build Coastguard Worker#endif
788*344a7f5eSAndroid Build Coastguard Worker#endif
789*344a7f5eSAndroid Build Coastguard Worker
790*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
791*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
792*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
793*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
794*344a7f5eSAndroid Build Coastguard Worker, deprecated
795*344a7f5eSAndroid Build Coastguard Worker#endif
796*344a7f5eSAndroid Build Coastguard Worker))
797*344a7f5eSAndroid Build Coastguard Worker    rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len);
798*344a7f5eSAndroid Build Coastguard Worker#endif
799*344a7f5eSAndroid Build Coastguard Worker#endif
800*344a7f5eSAndroid Build Coastguard Worker
801*344a7f5eSAndroid Build Coastguard Worker/*
802*344a7f5eSAndroid Build Coastguard Worker * rsgDrawQuad: Draw a quad
803*344a7f5eSAndroid Build Coastguard Worker *
804*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
805*344a7f5eSAndroid Build Coastguard Worker *
806*344a7f5eSAndroid Build Coastguard Worker * Low performance utility function for drawing a simple quad.  Not intended for
807*344a7f5eSAndroid Build Coastguard Worker * drawing large quantities of geometry.
808*344a7f5eSAndroid Build Coastguard Worker */
809*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
810*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
811*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
812*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
813*344a7f5eSAndroid Build Coastguard Worker, deprecated
814*344a7f5eSAndroid Build Coastguard Worker#endif
815*344a7f5eSAndroid Build Coastguard Worker))
816*344a7f5eSAndroid Build Coastguard Worker    rsgDrawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3,
817*344a7f5eSAndroid Build Coastguard Worker                float z3, float x4, float y4, float z4);
818*344a7f5eSAndroid Build Coastguard Worker#endif
819*344a7f5eSAndroid Build Coastguard Worker#endif
820*344a7f5eSAndroid Build Coastguard Worker
821*344a7f5eSAndroid Build Coastguard Worker/*
822*344a7f5eSAndroid Build Coastguard Worker * rsgDrawQuadTexCoords: Draw a textured quad
823*344a7f5eSAndroid Build Coastguard Worker *
824*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
825*344a7f5eSAndroid Build Coastguard Worker *
826*344a7f5eSAndroid Build Coastguard Worker * Low performance utility function for drawing a textured quad.  Not intended
827*344a7f5eSAndroid Build Coastguard Worker * for drawing large quantities of geometry.
828*344a7f5eSAndroid Build Coastguard Worker */
829*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
830*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
831*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
832*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
833*344a7f5eSAndroid Build Coastguard Worker, deprecated
834*344a7f5eSAndroid Build Coastguard Worker#endif
835*344a7f5eSAndroid Build Coastguard Worker))
836*344a7f5eSAndroid Build Coastguard Worker    rsgDrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, float x2, float y2,
837*344a7f5eSAndroid Build Coastguard Worker                         float z2, float u2, float v2, float x3, float y3, float z3, float u3,
838*344a7f5eSAndroid Build Coastguard Worker                         float v3, float x4, float y4, float z4, float u4, float v4);
839*344a7f5eSAndroid Build Coastguard Worker#endif
840*344a7f5eSAndroid Build Coastguard Worker#endif
841*344a7f5eSAndroid Build Coastguard Worker
842*344a7f5eSAndroid Build Coastguard Worker/*
843*344a7f5eSAndroid Build Coastguard Worker * rsgDrawRect: Draw a rectangle
844*344a7f5eSAndroid Build Coastguard Worker *
845*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
846*344a7f5eSAndroid Build Coastguard Worker *
847*344a7f5eSAndroid Build Coastguard Worker * Low performance utility function for drawing a simple rectangle.  Not
848*344a7f5eSAndroid Build Coastguard Worker * intended for drawing large quantities of geometry.
849*344a7f5eSAndroid Build Coastguard Worker */
850*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
851*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
852*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
853*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
854*344a7f5eSAndroid Build Coastguard Worker, deprecated
855*344a7f5eSAndroid Build Coastguard Worker#endif
856*344a7f5eSAndroid Build Coastguard Worker))
857*344a7f5eSAndroid Build Coastguard Worker    rsgDrawRect(float x1, float y1, float x2, float y2, float z);
858*344a7f5eSAndroid Build Coastguard Worker#endif
859*344a7f5eSAndroid Build Coastguard Worker#endif
860*344a7f5eSAndroid Build Coastguard Worker
861*344a7f5eSAndroid Build Coastguard Worker/*
862*344a7f5eSAndroid Build Coastguard Worker * rsgDrawSpriteScreenspace: Draw rectangles in screenspace
863*344a7f5eSAndroid Build Coastguard Worker *
864*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
865*344a7f5eSAndroid Build Coastguard Worker *
866*344a7f5eSAndroid Build Coastguard Worker * Low performance function for drawing rectangles in screenspace.  This
867*344a7f5eSAndroid Build Coastguard Worker * function uses the default passthough ProgramVertex.  Any bound ProgramVertex
868*344a7f5eSAndroid Build Coastguard Worker * is ignored.  This function has considerable overhead and should not be used
869*344a7f5eSAndroid Build Coastguard Worker * for drawing in shipping applications.
870*344a7f5eSAndroid Build Coastguard Worker */
871*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
872*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
873*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
874*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
875*344a7f5eSAndroid Build Coastguard Worker, deprecated
876*344a7f5eSAndroid Build Coastguard Worker#endif
877*344a7f5eSAndroid Build Coastguard Worker))
878*344a7f5eSAndroid Build Coastguard Worker    rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h);
879*344a7f5eSAndroid Build Coastguard Worker#endif
880*344a7f5eSAndroid Build Coastguard Worker#endif
881*344a7f5eSAndroid Build Coastguard Worker
882*344a7f5eSAndroid Build Coastguard Worker/*
883*344a7f5eSAndroid Build Coastguard Worker * rsgDrawText: Draw a text string
884*344a7f5eSAndroid Build Coastguard Worker *
885*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
886*344a7f5eSAndroid Build Coastguard Worker *
887*344a7f5eSAndroid Build Coastguard Worker * Draws text given a string and location
888*344a7f5eSAndroid Build Coastguard Worker */
889*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
890*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
891*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
892*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
893*344a7f5eSAndroid Build Coastguard Worker, deprecated
894*344a7f5eSAndroid Build Coastguard Worker#endif
895*344a7f5eSAndroid Build Coastguard Worker))
896*344a7f5eSAndroid Build Coastguard Worker    rsgDrawText(const char* text, int x, int y);
897*344a7f5eSAndroid Build Coastguard Worker#endif
898*344a7f5eSAndroid Build Coastguard Worker#endif
899*344a7f5eSAndroid Build Coastguard Worker
900*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
901*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
902*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
903*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
904*344a7f5eSAndroid Build Coastguard Worker, deprecated
905*344a7f5eSAndroid Build Coastguard Worker#endif
906*344a7f5eSAndroid Build Coastguard Worker))
907*344a7f5eSAndroid Build Coastguard Worker    rsgDrawText(rs_allocation alloc, int x, int y);
908*344a7f5eSAndroid Build Coastguard Worker#endif
909*344a7f5eSAndroid Build Coastguard Worker#endif
910*344a7f5eSAndroid Build Coastguard Worker
911*344a7f5eSAndroid Build Coastguard Worker/*
912*344a7f5eSAndroid Build Coastguard Worker * rsgFinish: End rendering commands
913*344a7f5eSAndroid Build Coastguard Worker *
914*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
915*344a7f5eSAndroid Build Coastguard Worker *
916*344a7f5eSAndroid Build Coastguard Worker * Force RenderScript to finish all rendering commands
917*344a7f5eSAndroid Build Coastguard Worker */
918*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
919*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
920*344a7f5eSAndroid Build Coastguard Workerextern uint __attribute__((overloadable
921*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
922*344a7f5eSAndroid Build Coastguard Worker, deprecated
923*344a7f5eSAndroid Build Coastguard Worker#endif
924*344a7f5eSAndroid Build Coastguard Worker))
925*344a7f5eSAndroid Build Coastguard Worker    rsgFinish(void);
926*344a7f5eSAndroid Build Coastguard Worker#endif
927*344a7f5eSAndroid Build Coastguard Worker#endif
928*344a7f5eSAndroid Build Coastguard Worker
929*344a7f5eSAndroid Build Coastguard Worker/*
930*344a7f5eSAndroid Build Coastguard Worker * rsgFontColor: Set the font color
931*344a7f5eSAndroid Build Coastguard Worker *
932*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
933*344a7f5eSAndroid Build Coastguard Worker *
934*344a7f5eSAndroid Build Coastguard Worker * Sets the font color for all subsequent rendering calls
935*344a7f5eSAndroid Build Coastguard Worker *
936*344a7f5eSAndroid Build Coastguard Worker * Parameters:
937*344a7f5eSAndroid Build Coastguard Worker *   r: red component
938*344a7f5eSAndroid Build Coastguard Worker *   g: green component
939*344a7f5eSAndroid Build Coastguard Worker *   b: blue component
940*344a7f5eSAndroid Build Coastguard Worker *   a: alpha component
941*344a7f5eSAndroid Build Coastguard Worker */
942*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
943*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
944*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
945*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
946*344a7f5eSAndroid Build Coastguard Worker, deprecated
947*344a7f5eSAndroid Build Coastguard Worker#endif
948*344a7f5eSAndroid Build Coastguard Worker))
949*344a7f5eSAndroid Build Coastguard Worker    rsgFontColor(float r, float g, float b, float a);
950*344a7f5eSAndroid Build Coastguard Worker#endif
951*344a7f5eSAndroid Build Coastguard Worker#endif
952*344a7f5eSAndroid Build Coastguard Worker
953*344a7f5eSAndroid Build Coastguard Worker/*
954*344a7f5eSAndroid Build Coastguard Worker * rsgGetHeight: Get the surface height
955*344a7f5eSAndroid Build Coastguard Worker *
956*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
957*344a7f5eSAndroid Build Coastguard Worker *
958*344a7f5eSAndroid Build Coastguard Worker * Get the height of the current rendering surface.
959*344a7f5eSAndroid Build Coastguard Worker */
960*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
961*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
962*344a7f5eSAndroid Build Coastguard Workerextern uint __attribute__((overloadable
963*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
964*344a7f5eSAndroid Build Coastguard Worker, deprecated
965*344a7f5eSAndroid Build Coastguard Worker#endif
966*344a7f5eSAndroid Build Coastguard Worker))
967*344a7f5eSAndroid Build Coastguard Worker    rsgGetHeight(void);
968*344a7f5eSAndroid Build Coastguard Worker#endif
969*344a7f5eSAndroid Build Coastguard Worker#endif
970*344a7f5eSAndroid Build Coastguard Worker
971*344a7f5eSAndroid Build Coastguard Worker/*
972*344a7f5eSAndroid Build Coastguard Worker * rsgGetWidth: Get the surface width
973*344a7f5eSAndroid Build Coastguard Worker *
974*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
975*344a7f5eSAndroid Build Coastguard Worker *
976*344a7f5eSAndroid Build Coastguard Worker * Get the width of the current rendering surface.
977*344a7f5eSAndroid Build Coastguard Worker */
978*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
979*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
980*344a7f5eSAndroid Build Coastguard Workerextern uint __attribute__((overloadable
981*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
982*344a7f5eSAndroid Build Coastguard Worker, deprecated
983*344a7f5eSAndroid Build Coastguard Worker#endif
984*344a7f5eSAndroid Build Coastguard Worker))
985*344a7f5eSAndroid Build Coastguard Worker    rsgGetWidth(void);
986*344a7f5eSAndroid Build Coastguard Worker#endif
987*344a7f5eSAndroid Build Coastguard Worker#endif
988*344a7f5eSAndroid Build Coastguard Worker
989*344a7f5eSAndroid Build Coastguard Worker/*
990*344a7f5eSAndroid Build Coastguard Worker * rsgMeasureText: Get the bounding box for a text string
991*344a7f5eSAndroid Build Coastguard Worker *
992*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
993*344a7f5eSAndroid Build Coastguard Worker *
994*344a7f5eSAndroid Build Coastguard Worker * Returns the bounding box of the text relative to (0, 0)
995*344a7f5eSAndroid Build Coastguard Worker * Any of left, right, top, bottom could be NULL
996*344a7f5eSAndroid Build Coastguard Worker */
997*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
998*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
999*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1000*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1001*344a7f5eSAndroid Build Coastguard Worker, deprecated
1002*344a7f5eSAndroid Build Coastguard Worker#endif
1003*344a7f5eSAndroid Build Coastguard Worker))
1004*344a7f5eSAndroid Build Coastguard Worker    rsgMeasureText(const char* text, int* left, int* right, int* top, int* bottom);
1005*344a7f5eSAndroid Build Coastguard Worker#endif
1006*344a7f5eSAndroid Build Coastguard Worker#endif
1007*344a7f5eSAndroid Build Coastguard Worker
1008*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1009*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1010*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1011*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1012*344a7f5eSAndroid Build Coastguard Worker, deprecated
1013*344a7f5eSAndroid Build Coastguard Worker#endif
1014*344a7f5eSAndroid Build Coastguard Worker))
1015*344a7f5eSAndroid Build Coastguard Worker    rsgMeasureText(rs_allocation alloc, int* left, int* right, int* top, int* bottom);
1016*344a7f5eSAndroid Build Coastguard Worker#endif
1017*344a7f5eSAndroid Build Coastguard Worker#endif
1018*344a7f5eSAndroid Build Coastguard Worker
1019*344a7f5eSAndroid Build Coastguard Worker/*
1020*344a7f5eSAndroid Build Coastguard Worker * rsgMeshComputeBoundingBox: Compute a bounding box
1021*344a7f5eSAndroid Build Coastguard Worker *
1022*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1023*344a7f5eSAndroid Build Coastguard Worker *
1024*344a7f5eSAndroid Build Coastguard Worker * Computes an axis aligned bounding box of a mesh object
1025*344a7f5eSAndroid Build Coastguard Worker */
1026*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1027*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1028*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1029*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1030*344a7f5eSAndroid Build Coastguard Worker, deprecated
1031*344a7f5eSAndroid Build Coastguard Worker#endif
1032*344a7f5eSAndroid Build Coastguard Worker))
1033*344a7f5eSAndroid Build Coastguard Worker    rsgMeshComputeBoundingBox(rs_mesh mesh, float* minX, float* minY, float* min, float* maxX,
1034*344a7f5eSAndroid Build Coastguard Worker                              float* maxY, float* maxZ);
1035*344a7f5eSAndroid Build Coastguard Worker#endif
1036*344a7f5eSAndroid Build Coastguard Worker#endif
1037*344a7f5eSAndroid Build Coastguard Worker
1038*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1039*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1040*344a7f5eSAndroid Build Coastguard Workerstatic inline void __attribute__((overloadable
1041*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1042*344a7f5eSAndroid Build Coastguard Worker, deprecated
1043*344a7f5eSAndroid Build Coastguard Worker#endif
1044*344a7f5eSAndroid Build Coastguard Worker))
1045*344a7f5eSAndroid Build Coastguard Worker    rsgMeshComputeBoundingBox(rs_mesh mesh, float3* bBoxMin, float3* bBoxMax) {
1046*344a7f5eSAndroid Build Coastguard Worker    float x1, y1, z1, x2, y2, z2;
1047*344a7f5eSAndroid Build Coastguard Worker    rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
1048*344a7f5eSAndroid Build Coastguard Worker    bBoxMin->x = x1;
1049*344a7f5eSAndroid Build Coastguard Worker    bBoxMin->y = y1;
1050*344a7f5eSAndroid Build Coastguard Worker    bBoxMin->z = z1;
1051*344a7f5eSAndroid Build Coastguard Worker    bBoxMax->x = x2;
1052*344a7f5eSAndroid Build Coastguard Worker    bBoxMax->y = y2;
1053*344a7f5eSAndroid Build Coastguard Worker    bBoxMax->z = z2;
1054*344a7f5eSAndroid Build Coastguard Worker}
1055*344a7f5eSAndroid Build Coastguard Worker#endif
1056*344a7f5eSAndroid Build Coastguard Worker#endif
1057*344a7f5eSAndroid Build Coastguard Worker
1058*344a7f5eSAndroid Build Coastguard Worker/*
1059*344a7f5eSAndroid Build Coastguard Worker * rsgMeshGetIndexAllocation: Return an allocation containing index data
1060*344a7f5eSAndroid Build Coastguard Worker *
1061*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1062*344a7f5eSAndroid Build Coastguard Worker *
1063*344a7f5eSAndroid Build Coastguard Worker * Returns an allocation containing index data or a null
1064*344a7f5eSAndroid Build Coastguard Worker * allocation if only the primitive is specified
1065*344a7f5eSAndroid Build Coastguard Worker *
1066*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1067*344a7f5eSAndroid Build Coastguard Worker *   m: mesh to get data from
1068*344a7f5eSAndroid Build Coastguard Worker *   index: index of the index allocation
1069*344a7f5eSAndroid Build Coastguard Worker *
1070*344a7f5eSAndroid Build Coastguard Worker * Returns: allocation containing index data
1071*344a7f5eSAndroid Build Coastguard Worker */
1072*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1073*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1074*344a7f5eSAndroid Build Coastguard Workerextern rs_allocation __attribute__((overloadable
1075*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1076*344a7f5eSAndroid Build Coastguard Worker, deprecated
1077*344a7f5eSAndroid Build Coastguard Worker#endif
1078*344a7f5eSAndroid Build Coastguard Worker))
1079*344a7f5eSAndroid Build Coastguard Worker    rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index);
1080*344a7f5eSAndroid Build Coastguard Worker#endif
1081*344a7f5eSAndroid Build Coastguard Worker#endif
1082*344a7f5eSAndroid Build Coastguard Worker
1083*344a7f5eSAndroid Build Coastguard Worker/*
1084*344a7f5eSAndroid Build Coastguard Worker * rsgMeshGetPrimitive: Return the primitive
1085*344a7f5eSAndroid Build Coastguard Worker *
1086*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1087*344a7f5eSAndroid Build Coastguard Worker *
1088*344a7f5eSAndroid Build Coastguard Worker * Returns the primitive describing how a part of the mesh is
1089*344a7f5eSAndroid Build Coastguard Worker * rendered
1090*344a7f5eSAndroid Build Coastguard Worker *
1091*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1092*344a7f5eSAndroid Build Coastguard Worker *   m: mesh to get data from
1093*344a7f5eSAndroid Build Coastguard Worker *   index: index of the primitive
1094*344a7f5eSAndroid Build Coastguard Worker *
1095*344a7f5eSAndroid Build Coastguard Worker * Returns: primitive describing how the mesh is rendered
1096*344a7f5eSAndroid Build Coastguard Worker */
1097*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1098*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1099*344a7f5eSAndroid Build Coastguard Workerextern rs_primitive __attribute__((overloadable
1100*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1101*344a7f5eSAndroid Build Coastguard Worker, deprecated
1102*344a7f5eSAndroid Build Coastguard Worker#endif
1103*344a7f5eSAndroid Build Coastguard Worker))
1104*344a7f5eSAndroid Build Coastguard Worker    rsgMeshGetPrimitive(rs_mesh m, uint32_t index);
1105*344a7f5eSAndroid Build Coastguard Worker#endif
1106*344a7f5eSAndroid Build Coastguard Worker#endif
1107*344a7f5eSAndroid Build Coastguard Worker
1108*344a7f5eSAndroid Build Coastguard Worker/*
1109*344a7f5eSAndroid Build Coastguard Worker * rsgMeshGetPrimitiveCount: Return the number of index sets
1110*344a7f5eSAndroid Build Coastguard Worker *
1111*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1112*344a7f5eSAndroid Build Coastguard Worker *
1113*344a7f5eSAndroid Build Coastguard Worker * Meshes could have multiple index sets, this function returns
1114*344a7f5eSAndroid Build Coastguard Worker * the number.
1115*344a7f5eSAndroid Build Coastguard Worker *
1116*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1117*344a7f5eSAndroid Build Coastguard Worker *   m: mesh to get data from
1118*344a7f5eSAndroid Build Coastguard Worker *
1119*344a7f5eSAndroid Build Coastguard Worker * Returns: number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data
1120*344a7f5eSAndroid Build Coastguard Worker */
1121*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1122*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1123*344a7f5eSAndroid Build Coastguard Workerextern uint32_t __attribute__((overloadable
1124*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1125*344a7f5eSAndroid Build Coastguard Worker, deprecated
1126*344a7f5eSAndroid Build Coastguard Worker#endif
1127*344a7f5eSAndroid Build Coastguard Worker))
1128*344a7f5eSAndroid Build Coastguard Worker    rsgMeshGetPrimitiveCount(rs_mesh m);
1129*344a7f5eSAndroid Build Coastguard Worker#endif
1130*344a7f5eSAndroid Build Coastguard Worker#endif
1131*344a7f5eSAndroid Build Coastguard Worker
1132*344a7f5eSAndroid Build Coastguard Worker/*
1133*344a7f5eSAndroid Build Coastguard Worker * rsgMeshGetVertexAllocation: Return a vertex allocation
1134*344a7f5eSAndroid Build Coastguard Worker *
1135*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1136*344a7f5eSAndroid Build Coastguard Worker *
1137*344a7f5eSAndroid Build Coastguard Worker * Returns an allocation that is part of the mesh and contains
1138*344a7f5eSAndroid Build Coastguard Worker * vertex data, e.g. positions, normals, texcoords
1139*344a7f5eSAndroid Build Coastguard Worker *
1140*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1141*344a7f5eSAndroid Build Coastguard Worker *   m: mesh to get data from
1142*344a7f5eSAndroid Build Coastguard Worker *   index: index of the vertex allocation
1143*344a7f5eSAndroid Build Coastguard Worker *
1144*344a7f5eSAndroid Build Coastguard Worker * Returns: allocation containing vertex data
1145*344a7f5eSAndroid Build Coastguard Worker */
1146*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1147*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1148*344a7f5eSAndroid Build Coastguard Workerextern rs_allocation __attribute__((overloadable
1149*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1150*344a7f5eSAndroid Build Coastguard Worker, deprecated
1151*344a7f5eSAndroid Build Coastguard Worker#endif
1152*344a7f5eSAndroid Build Coastguard Worker))
1153*344a7f5eSAndroid Build Coastguard Worker    rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index);
1154*344a7f5eSAndroid Build Coastguard Worker#endif
1155*344a7f5eSAndroid Build Coastguard Worker#endif
1156*344a7f5eSAndroid Build Coastguard Worker
1157*344a7f5eSAndroid Build Coastguard Worker/*
1158*344a7f5eSAndroid Build Coastguard Worker * rsgMeshGetVertexAllocationCount: Return the number of vertex allocations
1159*344a7f5eSAndroid Build Coastguard Worker *
1160*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1161*344a7f5eSAndroid Build Coastguard Worker *
1162*344a7f5eSAndroid Build Coastguard Worker * Returns the number of allocations in the mesh that contain
1163*344a7f5eSAndroid Build Coastguard Worker * vertex data
1164*344a7f5eSAndroid Build Coastguard Worker *
1165*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1166*344a7f5eSAndroid Build Coastguard Worker *   m: mesh to get data from
1167*344a7f5eSAndroid Build Coastguard Worker *
1168*344a7f5eSAndroid Build Coastguard Worker * Returns: number of allocations in the mesh that contain vertex data
1169*344a7f5eSAndroid Build Coastguard Worker */
1170*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1171*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1172*344a7f5eSAndroid Build Coastguard Workerextern uint32_t __attribute__((overloadable
1173*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1174*344a7f5eSAndroid Build Coastguard Worker, deprecated
1175*344a7f5eSAndroid Build Coastguard Worker#endif
1176*344a7f5eSAndroid Build Coastguard Worker))
1177*344a7f5eSAndroid Build Coastguard Worker    rsgMeshGetVertexAllocationCount(rs_mesh m);
1178*344a7f5eSAndroid Build Coastguard Worker#endif
1179*344a7f5eSAndroid Build Coastguard Worker#endif
1180*344a7f5eSAndroid Build Coastguard Worker
1181*344a7f5eSAndroid Build Coastguard Worker/*
1182*344a7f5eSAndroid Build Coastguard Worker * rsgProgramFragmentConstantColor: Set the constant color for a fixed function emulation program
1183*344a7f5eSAndroid Build Coastguard Worker *
1184*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1185*344a7f5eSAndroid Build Coastguard Worker *
1186*344a7f5eSAndroid Build Coastguard Worker * Set the constant color for a fixed function emulation program.
1187*344a7f5eSAndroid Build Coastguard Worker */
1188*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1189*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1190*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1191*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1192*344a7f5eSAndroid Build Coastguard Worker, deprecated
1193*344a7f5eSAndroid Build Coastguard Worker#endif
1194*344a7f5eSAndroid Build Coastguard Worker))
1195*344a7f5eSAndroid Build Coastguard Worker    rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a);
1196*344a7f5eSAndroid Build Coastguard Worker#endif
1197*344a7f5eSAndroid Build Coastguard Worker#endif
1198*344a7f5eSAndroid Build Coastguard Worker
1199*344a7f5eSAndroid Build Coastguard Worker/*
1200*344a7f5eSAndroid Build Coastguard Worker * rsgProgramVertexGetProjectionMatrix: Get the projection matrix for a fixed function vertex program
1201*344a7f5eSAndroid Build Coastguard Worker *
1202*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1203*344a7f5eSAndroid Build Coastguard Worker *
1204*344a7f5eSAndroid Build Coastguard Worker * Get the projection matrix for a currently bound fixed function
1205*344a7f5eSAndroid Build Coastguard Worker * vertex program. Calling this function with a custom vertex shader
1206*344a7f5eSAndroid Build Coastguard Worker * would result in an error.
1207*344a7f5eSAndroid Build Coastguard Worker *
1208*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1209*344a7f5eSAndroid Build Coastguard Worker *   proj: matrix to store the current projection matrix into
1210*344a7f5eSAndroid Build Coastguard Worker */
1211*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1212*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1213*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1214*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1215*344a7f5eSAndroid Build Coastguard Worker, deprecated
1216*344a7f5eSAndroid Build Coastguard Worker#endif
1217*344a7f5eSAndroid Build Coastguard Worker))
1218*344a7f5eSAndroid Build Coastguard Worker    rsgProgramVertexGetProjectionMatrix(rs_matrix4x4* proj);
1219*344a7f5eSAndroid Build Coastguard Worker#endif
1220*344a7f5eSAndroid Build Coastguard Worker#endif
1221*344a7f5eSAndroid Build Coastguard Worker
1222*344a7f5eSAndroid Build Coastguard Worker/*
1223*344a7f5eSAndroid Build Coastguard Worker * rsgProgramVertexLoadModelMatrix: Load the model matrix for a bound fixed function vertex program
1224*344a7f5eSAndroid Build Coastguard Worker *
1225*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1226*344a7f5eSAndroid Build Coastguard Worker *
1227*344a7f5eSAndroid Build Coastguard Worker * Load the model matrix for a currently bound fixed function
1228*344a7f5eSAndroid Build Coastguard Worker * vertex program. Calling this function with a custom vertex shader
1229*344a7f5eSAndroid Build Coastguard Worker * would result in an error.
1230*344a7f5eSAndroid Build Coastguard Worker *
1231*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1232*344a7f5eSAndroid Build Coastguard Worker *   model: model matrix
1233*344a7f5eSAndroid Build Coastguard Worker */
1234*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1235*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1236*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1237*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1238*344a7f5eSAndroid Build Coastguard Worker, deprecated
1239*344a7f5eSAndroid Build Coastguard Worker#endif
1240*344a7f5eSAndroid Build Coastguard Worker))
1241*344a7f5eSAndroid Build Coastguard Worker    rsgProgramVertexLoadModelMatrix(const rs_matrix4x4* model);
1242*344a7f5eSAndroid Build Coastguard Worker#endif
1243*344a7f5eSAndroid Build Coastguard Worker#endif
1244*344a7f5eSAndroid Build Coastguard Worker
1245*344a7f5eSAndroid Build Coastguard Worker/*
1246*344a7f5eSAndroid Build Coastguard Worker * rsgProgramVertexLoadProjectionMatrix: Load the projection matrix for a bound fixed function vertex program
1247*344a7f5eSAndroid Build Coastguard Worker *
1248*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1249*344a7f5eSAndroid Build Coastguard Worker *
1250*344a7f5eSAndroid Build Coastguard Worker * Load the projection matrix for a currently bound fixed function
1251*344a7f5eSAndroid Build Coastguard Worker * vertex program. Calling this function with a custom vertex shader
1252*344a7f5eSAndroid Build Coastguard Worker * would result in an error.
1253*344a7f5eSAndroid Build Coastguard Worker *
1254*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1255*344a7f5eSAndroid Build Coastguard Worker *   proj: projection matrix
1256*344a7f5eSAndroid Build Coastguard Worker */
1257*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1258*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1259*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1260*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1261*344a7f5eSAndroid Build Coastguard Worker, deprecated
1262*344a7f5eSAndroid Build Coastguard Worker#endif
1263*344a7f5eSAndroid Build Coastguard Worker))
1264*344a7f5eSAndroid Build Coastguard Worker    rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4* proj);
1265*344a7f5eSAndroid Build Coastguard Worker#endif
1266*344a7f5eSAndroid Build Coastguard Worker#endif
1267*344a7f5eSAndroid Build Coastguard Worker
1268*344a7f5eSAndroid Build Coastguard Worker/*
1269*344a7f5eSAndroid Build Coastguard Worker * rsgProgramVertexLoadTextureMatrix: Load the texture matrix for a bound fixed function vertex program
1270*344a7f5eSAndroid Build Coastguard Worker *
1271*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1272*344a7f5eSAndroid Build Coastguard Worker *
1273*344a7f5eSAndroid Build Coastguard Worker * Load the texture matrix for a currently bound fixed function
1274*344a7f5eSAndroid Build Coastguard Worker * vertex program. Calling this function with a custom vertex shader
1275*344a7f5eSAndroid Build Coastguard Worker * would result in an error.
1276*344a7f5eSAndroid Build Coastguard Worker *
1277*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1278*344a7f5eSAndroid Build Coastguard Worker *   tex: texture matrix
1279*344a7f5eSAndroid Build Coastguard Worker */
1280*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1281*344a7f5eSAndroid Build Coastguard Worker#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1282*344a7f5eSAndroid Build Coastguard Workerextern void __attribute__((overloadable
1283*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1284*344a7f5eSAndroid Build Coastguard Worker, deprecated
1285*344a7f5eSAndroid Build Coastguard Worker#endif
1286*344a7f5eSAndroid Build Coastguard Worker))
1287*344a7f5eSAndroid Build Coastguard Worker    rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4* tex);
1288*344a7f5eSAndroid Build Coastguard Worker#endif
1289*344a7f5eSAndroid Build Coastguard Worker#endif
1290*344a7f5eSAndroid Build Coastguard Worker
1291*344a7f5eSAndroid Build Coastguard Worker/*
1292*344a7f5eSAndroid Build Coastguard Worker * rsgProgramRasterGetCullMode: Get program raster cull mode
1293*344a7f5eSAndroid Build Coastguard Worker *
1294*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1295*344a7f5eSAndroid Build Coastguard Worker *
1296*344a7f5eSAndroid Build Coastguard Worker * Get program raster cull mode
1297*344a7f5eSAndroid Build Coastguard Worker *
1298*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1299*344a7f5eSAndroid Build Coastguard Worker *   pr: program raster to query
1300*344a7f5eSAndroid Build Coastguard Worker */
1301*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1302*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1303*344a7f5eSAndroid Build Coastguard Workerextern rs_cull_mode __attribute__((overloadable
1304*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1305*344a7f5eSAndroid Build Coastguard Worker, deprecated
1306*344a7f5eSAndroid Build Coastguard Worker#endif
1307*344a7f5eSAndroid Build Coastguard Worker))
1308*344a7f5eSAndroid Build Coastguard Worker    rsgProgramRasterGetCullMode(rs_program_raster pr);
1309*344a7f5eSAndroid Build Coastguard Worker#endif
1310*344a7f5eSAndroid Build Coastguard Worker#endif
1311*344a7f5eSAndroid Build Coastguard Worker
1312*344a7f5eSAndroid Build Coastguard Worker/*
1313*344a7f5eSAndroid Build Coastguard Worker * rsgProgramRasterIsPointSpriteEnabled: Get program raster point sprite state
1314*344a7f5eSAndroid Build Coastguard Worker *
1315*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1316*344a7f5eSAndroid Build Coastguard Worker *
1317*344a7f5eSAndroid Build Coastguard Worker * Get program raster point sprite state
1318*344a7f5eSAndroid Build Coastguard Worker *
1319*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1320*344a7f5eSAndroid Build Coastguard Worker *   pr: program raster to query
1321*344a7f5eSAndroid Build Coastguard Worker */
1322*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1323*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1324*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1325*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1326*344a7f5eSAndroid Build Coastguard Worker, deprecated
1327*344a7f5eSAndroid Build Coastguard Worker#endif
1328*344a7f5eSAndroid Build Coastguard Worker))
1329*344a7f5eSAndroid Build Coastguard Worker    rsgProgramRasterIsPointSpriteEnabled(rs_program_raster pr);
1330*344a7f5eSAndroid Build Coastguard Worker#endif
1331*344a7f5eSAndroid Build Coastguard Worker#endif
1332*344a7f5eSAndroid Build Coastguard Worker
1333*344a7f5eSAndroid Build Coastguard Worker/*
1334*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreGetBlendDstFunc: Get program store blend destination function
1335*344a7f5eSAndroid Build Coastguard Worker *
1336*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1337*344a7f5eSAndroid Build Coastguard Worker *
1338*344a7f5eSAndroid Build Coastguard Worker * Get program store blend destination function
1339*344a7f5eSAndroid Build Coastguard Worker *
1340*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1341*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1342*344a7f5eSAndroid Build Coastguard Worker */
1343*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1344*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1345*344a7f5eSAndroid Build Coastguard Workerextern rs_blend_dst_func __attribute__((overloadable
1346*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1347*344a7f5eSAndroid Build Coastguard Worker, deprecated
1348*344a7f5eSAndroid Build Coastguard Worker#endif
1349*344a7f5eSAndroid Build Coastguard Worker))
1350*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
1351*344a7f5eSAndroid Build Coastguard Worker#endif
1352*344a7f5eSAndroid Build Coastguard Worker#endif
1353*344a7f5eSAndroid Build Coastguard Worker
1354*344a7f5eSAndroid Build Coastguard Worker/*
1355*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreGetBlendSrcFunc: Get program store blend source function
1356*344a7f5eSAndroid Build Coastguard Worker *
1357*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1358*344a7f5eSAndroid Build Coastguard Worker *
1359*344a7f5eSAndroid Build Coastguard Worker * Get program store blend source function
1360*344a7f5eSAndroid Build Coastguard Worker *
1361*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1362*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1363*344a7f5eSAndroid Build Coastguard Worker */
1364*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1365*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1366*344a7f5eSAndroid Build Coastguard Workerextern rs_blend_src_func __attribute__((overloadable
1367*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1368*344a7f5eSAndroid Build Coastguard Worker, deprecated
1369*344a7f5eSAndroid Build Coastguard Worker#endif
1370*344a7f5eSAndroid Build Coastguard Worker))
1371*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
1372*344a7f5eSAndroid Build Coastguard Worker#endif
1373*344a7f5eSAndroid Build Coastguard Worker#endif
1374*344a7f5eSAndroid Build Coastguard Worker
1375*344a7f5eSAndroid Build Coastguard Worker/*
1376*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreGetDepthFunc: Get program store depth function
1377*344a7f5eSAndroid Build Coastguard Worker *
1378*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1379*344a7f5eSAndroid Build Coastguard Worker *
1380*344a7f5eSAndroid Build Coastguard Worker * Get program store depth function
1381*344a7f5eSAndroid Build Coastguard Worker *
1382*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1383*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1384*344a7f5eSAndroid Build Coastguard Worker */
1385*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1386*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1387*344a7f5eSAndroid Build Coastguard Workerextern rs_depth_func __attribute__((overloadable
1388*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1389*344a7f5eSAndroid Build Coastguard Worker, deprecated
1390*344a7f5eSAndroid Build Coastguard Worker#endif
1391*344a7f5eSAndroid Build Coastguard Worker))
1392*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreGetDepthFunc(rs_program_store ps);
1393*344a7f5eSAndroid Build Coastguard Worker#endif
1394*344a7f5eSAndroid Build Coastguard Worker#endif
1395*344a7f5eSAndroid Build Coastguard Worker
1396*344a7f5eSAndroid Build Coastguard Worker/*
1397*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsColorMaskAlphaEnabled: Get program store alpha component color mask
1398*344a7f5eSAndroid Build Coastguard Worker *
1399*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1400*344a7f5eSAndroid Build Coastguard Worker *
1401*344a7f5eSAndroid Build Coastguard Worker * Get program store alpha component color mask
1402*344a7f5eSAndroid Build Coastguard Worker *
1403*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1404*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1405*344a7f5eSAndroid Build Coastguard Worker */
1406*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1407*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1408*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1409*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1410*344a7f5eSAndroid Build Coastguard Worker, deprecated
1411*344a7f5eSAndroid Build Coastguard Worker#endif
1412*344a7f5eSAndroid Build Coastguard Worker))
1413*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsColorMaskAlphaEnabled(rs_program_store ps);
1414*344a7f5eSAndroid Build Coastguard Worker#endif
1415*344a7f5eSAndroid Build Coastguard Worker#endif
1416*344a7f5eSAndroid Build Coastguard Worker
1417*344a7f5eSAndroid Build Coastguard Worker/*
1418*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsColorMaskBlueEnabled: Get program store blur component color mask
1419*344a7f5eSAndroid Build Coastguard Worker *
1420*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1421*344a7f5eSAndroid Build Coastguard Worker *
1422*344a7f5eSAndroid Build Coastguard Worker * Get program store blur component color mask
1423*344a7f5eSAndroid Build Coastguard Worker *
1424*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1425*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1426*344a7f5eSAndroid Build Coastguard Worker */
1427*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1428*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1429*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1430*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1431*344a7f5eSAndroid Build Coastguard Worker, deprecated
1432*344a7f5eSAndroid Build Coastguard Worker#endif
1433*344a7f5eSAndroid Build Coastguard Worker))
1434*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps);
1435*344a7f5eSAndroid Build Coastguard Worker#endif
1436*344a7f5eSAndroid Build Coastguard Worker#endif
1437*344a7f5eSAndroid Build Coastguard Worker
1438*344a7f5eSAndroid Build Coastguard Worker/*
1439*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsColorMaskGreenEnabled: Get program store green component color mask
1440*344a7f5eSAndroid Build Coastguard Worker *
1441*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1442*344a7f5eSAndroid Build Coastguard Worker *
1443*344a7f5eSAndroid Build Coastguard Worker * Get program store green component color mask
1444*344a7f5eSAndroid Build Coastguard Worker *
1445*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1446*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1447*344a7f5eSAndroid Build Coastguard Worker */
1448*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1449*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1450*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1451*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1452*344a7f5eSAndroid Build Coastguard Worker, deprecated
1453*344a7f5eSAndroid Build Coastguard Worker#endif
1454*344a7f5eSAndroid Build Coastguard Worker))
1455*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps);
1456*344a7f5eSAndroid Build Coastguard Worker#endif
1457*344a7f5eSAndroid Build Coastguard Worker#endif
1458*344a7f5eSAndroid Build Coastguard Worker
1459*344a7f5eSAndroid Build Coastguard Worker/*
1460*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsColorMaskRedEnabled: Get program store red component color mask
1461*344a7f5eSAndroid Build Coastguard Worker *
1462*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1463*344a7f5eSAndroid Build Coastguard Worker *
1464*344a7f5eSAndroid Build Coastguard Worker * Get program store red component color mask
1465*344a7f5eSAndroid Build Coastguard Worker *
1466*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1467*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1468*344a7f5eSAndroid Build Coastguard Worker */
1469*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1470*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1471*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1472*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1473*344a7f5eSAndroid Build Coastguard Worker, deprecated
1474*344a7f5eSAndroid Build Coastguard Worker#endif
1475*344a7f5eSAndroid Build Coastguard Worker))
1476*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps);
1477*344a7f5eSAndroid Build Coastguard Worker#endif
1478*344a7f5eSAndroid Build Coastguard Worker#endif
1479*344a7f5eSAndroid Build Coastguard Worker
1480*344a7f5eSAndroid Build Coastguard Worker/*
1481*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsDepthMaskEnabled: Get program store depth mask
1482*344a7f5eSAndroid Build Coastguard Worker *
1483*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1484*344a7f5eSAndroid Build Coastguard Worker *
1485*344a7f5eSAndroid Build Coastguard Worker * Get program store depth mask
1486*344a7f5eSAndroid Build Coastguard Worker *
1487*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1488*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1489*344a7f5eSAndroid Build Coastguard Worker */
1490*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1491*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1492*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1493*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1494*344a7f5eSAndroid Build Coastguard Worker, deprecated
1495*344a7f5eSAndroid Build Coastguard Worker#endif
1496*344a7f5eSAndroid Build Coastguard Worker))
1497*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps);
1498*344a7f5eSAndroid Build Coastguard Worker#endif
1499*344a7f5eSAndroid Build Coastguard Worker#endif
1500*344a7f5eSAndroid Build Coastguard Worker
1501*344a7f5eSAndroid Build Coastguard Worker/*
1502*344a7f5eSAndroid Build Coastguard Worker * rsgProgramStoreIsDitherEnabled: Get program store dither state
1503*344a7f5eSAndroid Build Coastguard Worker *
1504*344a7f5eSAndroid Build Coastguard Worker * DEPRECATED.  Do not use.
1505*344a7f5eSAndroid Build Coastguard Worker *
1506*344a7f5eSAndroid Build Coastguard Worker * Get program store dither state
1507*344a7f5eSAndroid Build Coastguard Worker *
1508*344a7f5eSAndroid Build Coastguard Worker * Parameters:
1509*344a7f5eSAndroid Build Coastguard Worker *   ps: program store to query
1510*344a7f5eSAndroid Build Coastguard Worker */
1511*344a7f5eSAndroid Build Coastguard Worker#ifndef __LP64__
1512*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1513*344a7f5eSAndroid Build Coastguard Workerextern bool __attribute__((overloadable
1514*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1515*344a7f5eSAndroid Build Coastguard Worker, deprecated
1516*344a7f5eSAndroid Build Coastguard Worker#endif
1517*344a7f5eSAndroid Build Coastguard Worker))
1518*344a7f5eSAndroid Build Coastguard Worker    rsgProgramStoreIsDitherEnabled(rs_program_store ps);
1519*344a7f5eSAndroid Build Coastguard Worker#endif
1520*344a7f5eSAndroid Build Coastguard Worker#endif
1521*344a7f5eSAndroid Build Coastguard Worker
1522*344a7f5eSAndroid Build Coastguard Worker#endif // RENDERSCRIPT_RS_GRAPHICS_RSH
1523