diff options
Diffstat (limited to 'libs/rs/scriptc/rs_allocation.rsh')
| -rw-r--r-- | libs/rs/scriptc/rs_allocation.rsh | 171 |
1 files changed, 3 insertions, 168 deletions
diff --git a/libs/rs/scriptc/rs_allocation.rsh b/libs/rs/scriptc/rs_allocation.rsh index 89696b8..b0840a0 100644 --- a/libs/rs/scriptc/rs_allocation.rsh +++ b/libs/rs/scriptc/rs_allocation.rsh @@ -14,31 +14,6 @@ * limitations under the License. */ -/*! \mainpage notitle - * - * Renderscript is a high-performance runtime that provides graphics rendering and - * compute operations at the native level. Renderscript code is compiled on devices - * at runtime to allow platform-independence as well. - * This reference documentation describes the Renderscript runtime APIs, which you - * can utilize to write Renderscript code in C99. The Renderscript header - * files are automatically included for you, except for the rs_graphics.rsh header. If - * you are doing graphics rendering, include the graphics header file like this: - * - * <code>#include "rs_graphics.rsh"</code> - * - * To use Renderscript, you need to utilize the Renderscript runtime APIs documented here - * as well as the Android framework APIs for Renderscript. - * For documentation on the Android framework APIs, see the <a target="_parent" href= - * "http://developer.android.com/reference/android/renderscript/package-summary.html"> - * android.renderscript</a> package reference. - * For more information on how to develop with Renderscript and how the runtime and - * Android framework APIs interact, see the <a target="_parent" href= - * "http://developer.android.com/guide/topics/renderscript/index.html">Renderscript - * developer guide</a> and the <a target="_parent" href= - * "http://developer.android.com/resources/samples/RenderScript/index.html"> - * Renderscript samples</a>. - */ - /** @file rs_allocation.rsh * \brief Allocation routines * @@ -168,6 +143,8 @@ extern const void * __attribute__((overloadable)) extern const void * __attribute__((overloadable)) rsGetElementAt(rs_allocation, uint32_t x, uint32_t y, uint32_t z); +#if (defined(RS_VERSION) && (RS_VERSION >= 16)) + /** * @param a allocation to get data from * @return element describing allocation layout @@ -176,129 +153,6 @@ extern rs_element __attribute__((overloadable)) rsAllocationGetElement(rs_allocation a); /** - * @param m mesh to get data from - * @return number of allocations in the mesh that contain vertex - * data - */ -extern uint32_t __attribute__((overloadable)) - rsMeshGetVertexAllocationCount(rs_mesh m); - -/** - * @param m mesh to get data from - * @return number of primitive groups in the mesh. This would - * include simple primitives as well as allocations - * containing index data - */ -extern uint32_t __attribute__((overloadable)) - rsMeshGetPrimitiveCount(rs_mesh m); - -/** - * @param m mesh to get data from - * @param index index of the vertex allocation - * @return allocation containing vertex data - */ -extern rs_allocation __attribute__((overloadable)) - rsMeshGetVertexAllocation(rs_mesh m, uint32_t index); - -/** - * @param m mesh to get data from - * @param index index of the index allocation - * @return allocation containing index data - */ -extern rs_allocation __attribute__((overloadable)) - rsMeshGetIndexAllocation(rs_mesh m, uint32_t index); - -/** - * @param m mesh to get data from - * @param index index of the primitive - * @return primitive describing how the mesh is rendered - */ -extern rs_primitive __attribute__((overloadable)) - rsMeshGetPrimitive(rs_mesh m, uint32_t index); - -/** - * @param e element to get data from - * @return number of sub-elements in this element - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSubElementCount(rs_element e); - -/** - * @param e element to get data from - * @param index index of the sub-element to return - * @return sub-element in this element at given index - */ -extern rs_element __attribute__((overloadable)) - rsElementGetSubElement(rs_element, uint32_t index); - -/** - * @param e element to get data from - * @param index index of the sub-element to return - * @return length of the sub-element name including the null - * terminator (size of buffer needed to write the name) - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSubElementNameLength(rs_element e, uint32_t index); - -/** - * @param e element to get data from - * @param index index of the sub-element - * @param name array to store the name into - * @param nameLength length of the provided name array - * @return number of characters actually written, excluding the - * null terminator - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSubElementName(rs_element e, uint32_t index, char *name, uint32_t nameLength); - -/** - * @param e element to get data from - * @param index index of the sub-element - * @return array size of sub-element in this element at given - * index - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSubElementArraySize(rs_element e, uint32_t index); - -/** - * @param e element to get data from - * @param index index of the sub-element - * @return offset in bytes of sub-element in this element at - * given index - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSubElementOffsetBytes(rs_element e, uint32_t index); - -/** - * @param e element to get data from - * @return total size of the element in bytes - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetSizeBytes(rs_element e); - -/** - * @param e element to get data from - * @return element's data type - */ -extern rs_data_type __attribute__((overloadable)) - rsElementGetDataType(rs_element e); - -/** - * @param e element to get data from - * @return element's data size - */ -extern rs_data_kind __attribute__((overloadable)) - rsElementGetDataKind(rs_element e); - -/** - * @param e element to get data from - * @return length of the element vector (for float2, float3, - * etc.) - */ -extern uint32_t __attribute__((overloadable)) - rsElementGetVectorSize(rs_element e); - -/** * Fetch allocation in a way described by the sampler * @param a 1D allocation to sample from * @param s sampler state @@ -339,26 +193,7 @@ extern const float4 __attribute__((overloadable)) extern const float4 __attribute__((overloadable)) rsSample(rs_allocation a, rs_sampler s, float2 location, float lod); -/** - * Fetch allocation in a way described by the sampler - * @param a 3D allocation to sample from - * @param s sampler state - * @param location to sample from - */ -extern const float4 __attribute__((overloadable)) - rsSample(rs_allocation a, rs_sampler s, float3 location); - -/** - * Fetch allocation in a way described by the sampler - * @param a 3D allocation to sample from - * @param s sampler state - * @param location to sample from - * @param lod mip level to sample from, for fractional values - * mip levels will be interpolated if - * RS_SAMPLER_LINEAR_MIP_LINEAR is used - */ -extern const float4 __attribute__((overloadable)) - rsSample(rs_allocation a, rs_sampler s, float3 location, float lod); +#endif // (defined(RS_VERSION) && (RS_VERSION >= 16)) #endif |
