blob: 299aae66d5fcad06f0e8924e9f2d80e55c6f163d [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/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070029 * Get program store depth function
30 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070031 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070032 */
33extern rs_depth_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070034 rsgProgramStoreGetDepthFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070035
36/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070037 * Get program store depth mask
38 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070039 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070040 */
41extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070042 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070043/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070044 * Get program store red component color mask
45 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070046 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070047 */
48extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070049 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070050
51/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070052 * Get program store green component color mask
53 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070054 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070055 */
56extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070057 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070058
59/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070060 * Get program store blur component color mask
61 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070062 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070063 */
64extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070065 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070066
67/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070068 * Get program store alpha component color mask
69 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070070 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070071 */
72extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070073 rsgProgramStoreIsColorMaskAlphaEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070074
75/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070076 * Get program store blend source function
77 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070078 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070079 */
80extern rs_blend_src_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070081 rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070082
83/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070084 * Get program store blend destination function
85 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070086 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070087 */
88extern rs_blend_dst_func __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -070089 rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070090
91/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070092 * Get program store dither state
93 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070094 * @param ps program store to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070095 */
96extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070097 rsgProgramStoreIsDitherEnabled(rs_program_store ps);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070098
99/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700100 * Get program raster point sprite state
101 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -0700102 * @param pr program raster to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700103 */
104extern bool __attribute__((overloadable))
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -0700105 rsgProgramRasterIsPointSpriteEnabled(rs_program_raster pr);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700106
107/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700108 * Get program raster cull mode
109 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -0700110 * @param pr program raster to query
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700111 */
112extern rs_cull_mode __attribute__((overloadable))
Alex Sakhartchoukf8e195e2012-03-22 10:50:55 -0700113 rsgProgramRasterGetCullMode(rs_program_raster pr);
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700114
Alex Sakhartchouk3c0c6062012-03-22 16:59:38 -0700115#endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
Alex Sakhartchouk14607a62012-03-21 09:58:15 -0700116
117#endif // __RS_PROGRAM_RSH__
118