blob: 6a9929e7f5fb4f578f0b84e426655ed408336347 [file] [log] [blame]
Alex Sakhartchouk14607a62012-03-21 09:58:15 -07001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070017/** @file rs_program.rsh
18 * \brief Program object routines
19 *
20 *
21 */
22
23#ifndef __RS_PROGRAM_RSH__
24#define __RS_PROGRAM_RSH__
25
Alex Sakhartchouk3c0c6062012-03-22 16:59:38 -070026#if (defined(RS_VERSION) && (RS_VERSION >= 16))
27
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070028/**
29 * @hide
30 * Get program store depth function
31 *
32 * @param ps
33 */
34extern rs_depth_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070035 rsgProgramStoreGetDepthFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070036
37/**
38 * @hide
39 * Get program store depth mask
40 *
41 * @param ps
42 */
43extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070044 rsgProgramStoreGetDepthMask(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070045/**
46 * @hide
47 * Get program store red component color mask
48 *
49 * @param ps
50 */
51extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070052 rsgProgramStoreGetColorMaskR(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070053
54/**
55 * @hide
56 * Get program store green component color mask
57 *
58 * @param ps
59 */
60extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070061 rsgProgramStoreGetColorMaskG(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070062
63/**
64 * @hide
65 * Get program store blur component color mask
66 *
67 * @param ps
68 */
69extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070070 rsgProgramStoreGetColorMaskB(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070071
72/**
73 * @hide
74 * Get program store alpha component color mask
75 *
76 * @param ps
77 */
78extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070079 rsgProgramStoreGetColorMaskA(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070080
81/**
82 * @hide
83 * Get program store blend source function
84 *
85 * @param ps
86 */
87extern rs_blend_src_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070088 rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070089
90/**
91 * @hide
92 * Get program store blend destination function
93 *
94 * @param ps
95 */
96extern rs_blend_dst_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070097 rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070098
99/**
100 * @hide
101 * Get program store dither state
102 *
103 * @param ps
104 */
105extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -0700106 rsgProgramStoreGetDitherEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700107
108/**
109 * @hide
110 * Get program raster point sprite state
111 *
112 * @param pr
113 */
114extern bool __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -0700115 rsgProgramRasterGetPointSpriteEnabled(rs_program_raster pr);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700116
117/**
118 * @hide
119 * Get program raster cull mode
120 *
121 * @param pr
122 */
123extern rs_cull_mode __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -0700124 rsgProgramRasterGetCullMode(rs_program_raster pr);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700125
Alex Sakhartchouk3c0c6062012-03-22 16:59:38 -0700126#endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700127
128#endif // __RS_PROGRAM_RSH__
129