rs_element.rsh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2012 The Android Open Source Project
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00023 #ifndef __RS_ELEMENT_RSH__
00024 #define __RS_ELEMENT_RSH__
00025 
00026 // New API's
00027 #if (defined(RS_VERSION) && (RS_VERSION >= 16))
00028 
00038 extern uint32_t __attribute__((overloadable))
00039     rsElementGetSubElementCount(rs_element e);
00040 
00049 extern rs_element __attribute__((overloadable))
00050     rsElementGetSubElement(rs_element, uint32_t index);
00051 
00061 extern uint32_t __attribute__((overloadable))
00062     rsElementGetSubElementNameLength(rs_element e, uint32_t index);
00063 
00075 extern uint32_t __attribute__((overloadable))
00076     rsElementGetSubElementName(rs_element e, uint32_t index, char *name, uint32_t nameLength);
00077 
00088 extern uint32_t __attribute__((overloadable))
00089     rsElementGetSubElementArraySize(rs_element e, uint32_t index);
00090 
00100 extern uint32_t __attribute__((overloadable))
00101     rsElementGetSubElementOffsetBytes(rs_element e, uint32_t index);
00102 
00109 extern uint32_t __attribute__((overloadable))
00110     rsElementGetBytesSize(rs_element e);
00111 
00118 extern rs_data_type __attribute__((overloadable))
00119     rsElementGetDataType(rs_element e);
00120 
00127 extern rs_data_kind __attribute__((overloadable))
00128     rsElementGetDataKind(rs_element e);
00129 
00137 extern uint32_t __attribute__((overloadable))
00138     rsElementGetVectorSize(rs_element e);
00139 
00140 #endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
00141 
00142 #endif // __RS_ELEMENT_RSH__
00143