2222 */
2323#ifndef __RS_GRAPHICS_RSH__
2424#define __RS_GRAPHICS_RSH__
25-
26- // These are API 15 once it get official
27- typedef enum {
28- RS_DEPTH_FUNC_ALWAYS,
29- RS_DEPTH_FUNC_LESS,
30- RS_DEPTH_FUNC_LEQUAL,
31- RS_DEPTH_FUNC_GREATER,
32- RS_DEPTH_FUNC_GEQUAL,
33- RS_DEPTH_FUNC_EQUAL,
34- RS_DEPTH_FUNC_NOTEQUAL
35- } rs_depth_func;
36-
37- typedef enum {
38- RS_BLEND_SRC_ZERO, // 0
39- RS_BLEND_SRC_ONE, // 1
40- RS_BLEND_SRC_DST_COLOR, // 2
41- RS_BLEND_SRC_ONE_MINUS_DST_COLOR, // 3
42- RS_BLEND_SRC_SRC_ALPHA, // 4
43- RS_BLEND_SRC_ONE_MINUS_SRC_ALPHA, // 5
44- RS_BLEND_SRC_DST_ALPHA, // 6
45- RS_BLEND_SRC_ONE_MINUS_DST_ALPHA, // 7
46- RS_BLEND_SRC_SRC_ALPHA_SATURATE // 8
47- } rs_blend_src_func;
48-
49- typedef enum {
50- RS_BLEND_DST_ZERO, // 0
51- RS_BLEND_DST_ONE, // 1
52- RS_BLEND_DST_SRC_COLOR, // 2
53- RS_BLEND_DST_ONE_MINUS_SRC_COLOR, // 3
54- RS_BLEND_DST_SRC_ALPHA, // 4
55- RS_BLEND_DST_ONE_MINUS_SRC_ALPHA, // 5
56- RS_BLEND_DST_DST_ALPHA, // 6
57- RS_BLEND_DST_ONE_MINUS_DST_ALPHA // 7
58- } rs_blend_dst_func;
59-
60- typedef enum {
61- RS_CULL_BACK,
62- RS_CULL_FRONT,
63- RS_CULL_NONE
64- } rs_cull_mode;
65-
66- typedef enum {
67- RS_SAMPLER_NEAREST,
68- RS_SAMPLER_LINEAR,
69- RS_SAMPLER_LINEAR_MIP_LINEAR,
70- RS_SAMPLER_WRAP,
71- RS_SAMPLER_CLAMP,
72- RS_SAMPLER_LINEAR_MIP_NEAREST,
73- } rs_sampler_value;
74-
7525#if (defined(RS_VERSION) && (RS_VERSION >= 14))
7626/**
7727 * Set the color target used for all subsequent rendering calls
@@ -132,88 +82,6 @@ extern void __attribute__((overloadable))
13282extern void __attribute__((overloadable))
13383 rsgBindProgramStore(rs_program_store ps);
13484
135-
136- /**
137- * @hide
138- * Get program store depth function
139- *
140- * @param ps
141- */
142- extern rs_depth_func __attribute__((overloadable))
143- rsgProgramStoreGetDepthFunc(rs_program_store ps);
144-
145- /**
146- * @hide
147- * Get program store depth mask
148- *
149- * @param ps
150- */
151- extern bool __attribute__((overloadable))
152- rsgProgramStoreGetDepthMask(rs_program_store ps);
153- /**
154- * @hide
155- * Get program store red component color mask
156- *
157- * @param ps
158- */
159- extern bool __attribute__((overloadable))
160- rsgProgramStoreGetColorMaskR(rs_program_store ps);
161-
162- /**
163- * @hide
164- * Get program store green component color mask
165- *
166- * @param ps
167- */
168- extern bool __attribute__((overloadable))
169- rsgProgramStoreGetColorMaskG(rs_program_store ps);
170-
171- /**
172- * @hide
173- * Get program store blur component color mask
174- *
175- * @param ps
176- */
177- extern bool __attribute__((overloadable))
178- rsgProgramStoreGetColorMaskB(rs_program_store ps);
179-
180- /**
181- * @hide
182- * Get program store alpha component color mask
183- *
184- * @param ps
185- */
186- extern bool __attribute__((overloadable))
187- rsgProgramStoreGetColorMaskA(rs_program_store ps);
188-
189- /**
190- * @hide
191- * Get program store blend source function
192- *
193- * @param ps
194- */
195- extern rs_blend_src_func __attribute__((overloadable))
196- rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
197-
198- /**
199- * @hide
200- * Get program store blend destination function
201- *
202- * @param ps
203- */
204- extern rs_blend_dst_func __attribute__((overloadable))
205- rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
206-
207- /**
208- * @hide
209- * Get program store dither state
210- *
211- * @param ps
212- */
213- extern bool __attribute__((overloadable))
214- rsgProgramStoreGetDitherEnabled(rs_program_store ps);
215-
216-
21785/**
21886 * Bind a new ProgramVertex to the rendering context.
21987 *
@@ -230,24 +98,6 @@ extern void __attribute__((overloadable))
23098extern void __attribute__((overloadable))
23199 rsgBindProgramRaster(rs_program_raster pr);
232100
233- /**
234- * @hide
235- * Get program raster point sprite state
236- *
237- * @param pr
238- */
239- extern bool __attribute__((overloadable))
240- rsgProgramRasterGetPointSpriteEnabled(rs_program_raster pr);
241-
242- /**
243- * @hide
244- * Get program raster cull mode
245- *
246- * @param pr
247- */
248- extern rs_cull_mode __attribute__((overloadable))
249- rsgProgramRasterGetCullMode(rs_program_raster pr);
250-
251101/**
252102 * Bind a new Sampler object to a ProgramFragment. The sampler will
253103 * operate on the texture bound at the matching slot.
@@ -257,51 +107,6 @@ extern rs_cull_mode __attribute__((overloadable))
257107extern void __attribute__((overloadable))
258108 rsgBindSampler(rs_program_fragment, uint slot, rs_sampler);
259109
260- /**
261- * @hide
262- * Get sampler minification value
263- *
264- * @param pr
265- */
266- extern rs_sampler_value __attribute__((overloadable))
267- rsgSamplerGetMinification(rs_sampler s);
268-
269- /**
270- * @hide
271- * Get sampler magnification value
272- *
273- * @param pr
274- */
275- extern rs_sampler_value __attribute__((overloadable))
276- rsgSamplerGetMagnification(rs_sampler s);
277-
278- /**
279- * @hide
280- * Get sampler wrap S value
281- *
282- * @param pr
283- */
284- extern rs_sampler_value __attribute__((overloadable))
285- rsgSamplerGetWrapS(rs_sampler s);
286-
287- /**
288- * @hide
289- * Get sampler wrap T value
290- *
291- * @param pr
292- */
293- extern rs_sampler_value __attribute__((overloadable))
294- rsgSamplerGetWrapT(rs_sampler s);
295-
296- /**
297- * @hide
298- * Get sampler anisotropy
299- *
300- * @param pr
301- */
302- extern float __attribute__((overloadable))
303- rsgSamplerGetAnisotropy(rs_sampler s);
304-
305110/**
306111 * Bind a new Allocation object to a ProgramFragment. The
307112 * Allocation must be a valid texture for the Program. The sampling
0 commit comments