Show navigation Hide navigation

RenderScript Index


M_1_PI 1 / pi, as a 32 bit float
M_2_PI 2 / pi, as a 32 bit float
M_2_SQRTPI 2 / sqrt(pi), as a 32 bit float
M_E e, as a 32 bit float
M_LN10 log_e(10), as a 32 bit float
M_LN2 log_e(2), as a 32 bit float
M_LOG10E log_10(e), as a 32 bit float
M_LOG2E log_2(e), as a 32 bit float
M_PI pi, as a 32 bit float
M_PI_2 pi / 2, as a 32 bit float
M_PI_4 pi / 4, as a 32 bit float
M_SQRT1_2 1 / sqrt(2), as a 32 bit float
M_SQRT2 sqrt(2), as a 32 bit float


char2 Two 8 bit signed integers
char3 Three 8 bit signed integers
char4 Four 8 bit signed integers
double2 Two 64 bit floats
double3 Three 64 bit floats
double4 Four 64 bit floats
float2 Two 32 bit floats
float3 Three 32 bit floats
float4 Four 32 bit floats
int16_t 16 bit signed integer
int2 Two 32 bit signed integers
int3 Three 32 bit signed integers
int32_t 32 bit signed integer
int4 Four 32 bit signed integers
int64_t 64 bit signed integer
int8_t 8 bit signed integer
long2 Two 64 bit signed integers
long3 Three 64 bit signed integers
long4 Four 64 bit signed integers
rs_allocation Handle to an allocation
rs_allocation_cubemap_face Enum for selecting cube map faces
rs_allocation_usage_type Bitfield to specify how an allocation is used
rs_data_kind Element data kind
rs_data_type Element basic data type
rs_element Handle to an element
rs_for_each_strategy_t Suggested cell processing order
rs_matrix2x2 2x2 matrix of 32 bit floats
rs_matrix3x3 3x3 matrix of 32 bit floats
rs_matrix4x4 4x4 matrix of 32 bit floats
rs_quaternion Quaternion
rs_sampler Handle to a Sampler
rs_sampler_value Sampler wrap T value
rs_script Handle to a Script
rs_script_call_t Cell iteration information
rs_time_t Seconds since January 1, 1970
rs_tm Date and time structure
rs_type Handle to a Type
short2 Two 16 bit signed integers
short3 Three 16 bit signed integers
short4 Four 16 bit signed integers
size_t Unsigned size type
ssize_t Signed size type
uchar 8 bit unsigned integer
uchar2 Two 8 bit unsigned integers
uchar3 Three 8 bit unsigned integers
uchar4 Four 8 bit unsigned integers
uint 32 bit unsigned integer
uint16_t 16 bit unsigned integer
uint2 Two 32 bit unsigned integers
uint3 Three 32 bit unsigned integers
uint32_t 32 bit unsigned integer
uint4 Four 32 bit unsigned integers
uint64_t 64 bit unsigned integer
uint8_t 8 bit unsigned integer
ulong 64 bit unsigned integer
ulong2 Two 64 bit unsigned integers
ulong3 Three 64 bit unsigned integers
ulong4 Four 64 bit unsigned integers
ushort 16 bit unsigned integer
ushort2 Two 16 bit unsigned integers
ushort3 Three 16 bit unsigned integers
ushort4 Four 16 bit unsigned integers


abs Absolute value of an integer
acos Inverse cosine
acosh Inverse hyperbolic cosine
acospi Inverse cosine divided by pi
asin Inverse sine
asinh Inverse hyperbolic sine
asinpi Inverse sine divided by pi
atan Inverse tangent
atan2 Inverse tangent of a ratio
atan2pi Inverse tangent of a ratio, divided by pi
atanh Inverse hyperbolic tangent
atanpi Inverse tangent divided by pi
cbrt Cube root
ceil Smallest integer not less than a value
clamp Restrain a value to a range
clz Number of leading 0 bits
convert Convert numerical vectors
copysign Copies the sign of a number to another
cos Cosine
cosh Hypebolic cosine
cospi Cosine of a number multiplied by pi
cross Cross product of two vectors
degrees Converts radians into degrees
distance Distance between two points
dot Dot product of two vectors
erf Mathematical error function
erfc Mathematical complementary error function
exp e raised to a number
exp10 10 raised to a number
exp2 2 raised to a number
expm1 e raised to a number minus one
fabs Absolute value of a float
fast_distance Approximate distance between two points
fast_length Approximate length of a vector
fast_normalize Approximate normalized vector
fdim Positive difference between two values
floor Smallest integer not greater than a value
fma Multiply and add
fmax Maximum of two floats
fmin Minimum of two floats
fmod Modulo
fract Positive fractional part
frexp Binary mantissa and exponent
half_recip Reciprocal computed to 16 bit precision
half_rsqrt Reciprocal of a square root computed to 16 bit precision
half_sqrt Square root computed to 16 bit precision
hypot Hypotenuse
ilogb Base two exponent
ldexp Creates a floating point from mantissa and exponent
length Length of a vector
lgamma Natural logarithm of the gamma function
log Natural logarithm
log10 Base 10 logarithm
log1p Natural logarithm of a value plus 1
log2 Base 2 logarithm
logb Base two exponent
mad Multiply and add
max Maximum
min Minimum
mix Mixes two values
modf Integral and fractional components
nan Not a Number
native_acos Approximate inverse cosine
native_acosh Approximate inverse hyperbolic cosine
native_acospi Approximate inverse cosine divided by pi
native_asin Approximate inverse sine
native_asinh Approximate inverse hyperbolic sine
native_asinpi Approximate inverse sine divided by pi
native_atan Approximate inverse tangent
native_atan2 Approximate inverse tangent of a ratio
native_atan2pi Approximate inverse tangent of a ratio, divided by pi
native_atanh Approximate inverse hyperbolic tangent
native_atanpi Approximate inverse tangent divided by pi
native_cbrt Approximate cube root
native_cos Approximate cosine
native_cosh Approximate hypebolic cosine
native_cospi Approximate cosine of a number multiplied by pi
native_distance Approximate distance between two points
native_divide Approximate division
native_exp Approximate e raised to a number
native_exp10 Approximate 10 raised to a number
native_exp2 Approximate 2 raised to a number
native_expm1 Approximate e raised to a number minus one
native_hypot Approximate hypotenuse
native_length Approximate length of a vector
native_log Approximate natural logarithm
native_log10 Approximate base 10 logarithm
native_log1p Approximate natural logarithm of a value plus 1
native_log2 Approximate base 2 logarithm
native_normalize Approximately normalize a vector
native_powr Approximate positive base raised to an exponent
native_recip Approximate reciprocal
native_rootn Approximate nth root
native_rsqrt Approximate reciprocal of a square root
native_sin Approximate sine
native_sincos Approximate sine and cosine
native_sinh Approximate hyperbolic sine
native_sinpi Approximate sine of a number multiplied by pi
native_sqrt Approximate square root
native_tan Approximate tangent
native_tanh Approximate hyperbolic tangent
native_tanpi Approximate tangent of a number multiplied by pi
nextafter Next floating point number
normalize Normalize a vector
pow Base raised to an exponent
pown Base raised to an integer exponent
powr Positive base raised to an exponent
radians Converts degrees into radians
remainder Remainder of a division
remquo Remainder and quotient of a division
rint Round to even
rootn Nth root
round Round away from zero
rsAllocationCopy1DRange Copy consecutive cells between allocations
rsAllocationCopy2DRange Copy a rectangular region of cells between allocations
rsAllocationGetDimFaces Presence of more than one face
rsAllocationGetDimLOD Presence of levels of detail
rsAllocationGetDimX Size of the X dimension
rsAllocationGetDimY Size of the Y dimension
rsAllocationGetDimZ Size of the Z dimension
rsAllocationGetElement Get the object that describes the cell of an Allocation
rsAllocationIoReceive Receive new content from the queue
rsAllocationIoSend Send new content to the queue
rsAllocationVLoadX Get a vector from an allocation of scalars
rsAllocationVStoreX Store a vector into an allocation of scalars
rsAtomicAdd Thread-safe addition
rsAtomicAnd Thread-safe bitwise and
rsAtomicCas Thread-safe compare and set
rsAtomicDec Thread-safe decrement
rsAtomicInc Thread-safe increment
rsAtomicMax Thread-safe maximum
rsAtomicMin Thread-safe minimum
rsAtomicOr Thread-safe bitwise or
rsAtomicSub Thread-safe subtraction
rsAtomicXor Thread-safe bitwise exclusive or
rsClearObject Release an object
rsDebug Log a message and values
rsElementGetBytesSize Size of an Element
rsElementGetDataKind Kind of an Element
rsElementGetDataType Data type of an Element
rsElementGetSubElement Sub-element of a complex Element
rsElementGetSubElementArraySize Array size of a sub-element of a complex Element
rsElementGetSubElementCount Number of sub-elements
rsElementGetSubElementName Name of a sub-element
rsElementGetSubElementNameLength Length of the name of a sub-element
rsElementGetSubElementOffsetBytes Offset of the instantiated sub-element
rsElementGetVectorSize Vector size of the Element
rsExtractFrustumPlanes Compute frustum planes
rsForEach Invoke the root kernel of a script
rsGetDt Elapsed time since last call
rsGetElementAt Return a cell from an allocation
rsGetElementAtYuv_uchar_U Get the U component of an allocation of YUVs
rsGetElementAtYuv_uchar_V Get the V component of an allocation of YUVs
rsGetElementAtYuv_uchar_Y Get the Y component of an allocation of YUVs
rsIsObject Check for an empty handle
rsIsSphereInFrustum Checks if a sphere is within the frustum planes
rsLocaltime Convert to local time
rsMatrixGet Get one element
rsMatrixInverse Inverts a matrix in place
rsMatrixInverseTranspose Inverts and transpose a matrix in place
rsMatrixLoad Load or copy a matrix
rsMatrixLoadFrustum Load a frustum projection matrix
rsMatrixLoadIdentity Load identity matrix
rsMatrixLoadMultiply Multiply two matrices
rsMatrixLoadOrtho Load an orthographic projection matrix
rsMatrixLoadPerspective Load a perspective projection matrix
rsMatrixLoadRotate Load a rotation matrix
rsMatrixLoadScale Load a scaling matrix
rsMatrixLoadTranslate Load a translation matrix
rsMatrixMultiply Multiply a matrix by a vector or another matrix
rsMatrixRotate Apply a rotation to a transformation matrix
rsMatrixScale Apply a scaling to a transformation matrix
rsMatrixSet Set one element
rsMatrixTranslate Apply a translation to a transformation matrix
rsMatrixTranspose Transpose a matrix place
rsPackColorTo8888 Create a uchar4 RGBA from floats
rsQuaternionAdd Add two quaternions
rsQuaternionConjugate Conjugate a quaternion
rsQuaternionDot Dot product of two quaternions
rsQuaternionGetMatrixUnit Get a rotation matrix from a quaternion
rsQuaternionLoadRotate Create a rotation quaternion
rsQuaternionLoadRotateUnit Quaternion that represents a rotation about an arbitrary unit vector
rsQuaternionMultiply Multiply a quaternion by a scalar or another quaternion
rsQuaternionNormalize Normalize a quaternion
rsQuaternionSet Create a quaternion
rsQuaternionSlerp Spherical linear interpolation between two quaternions
rsRand Pseudo-random number
rsSample Sample a value from a texture allocation
rsSamplerGetAnisotropy Anisotropy of the Sampler
rsSamplerGetMagnification Sampler magnification value
rsSamplerGetMinification Sampler minification value
rsSamplerGetWrapS Sampler wrap S value
rsSamplerGetWrapT Sampler wrap T value
rsSendToClient Send a message to the client, non-blocking
rsSendToClientBlocking Send a message to the client, blocking
rsSetElementAt Set a cell of an allocation
rsTime Seconds since January 1, 1970
rsUnpackColor8888 Create a float4 RGBA from uchar4
rsUptimeMillis System uptime in milliseconds
rsUptimeNanos System uptime in nanoseconds
rsYuvToRGBA Convert a YUV value to RGBA
rsqrt Reciprocal of a square root
sign Sign of a value
sin Sine
sincos Sine and cosine
sinh Hyperbolic sine
sinpi Sine of a number multiplied by pi
sqrt Square root
step 0 if less than a value, 0 otherwise
tan Tangent
tanh Hyperbolic tangent
tanpi Tangent of a number multiplied by pi
tgamma Gamma function
trunc Truncates a floating point

Deprecated Types

rs_blend_dst_func Deprecated. Blend destination function
rs_blend_src_func Deprecated. Blend source function
rs_cull_mode Deprecated. Culling mode
rs_depth_func Deprecated. Depth function
rs_font Deprecated. Handle to a Font
rs_mesh Deprecated. Handle to a Mesh
rs_primitive Deprecated. How to intepret mesh vertex data
rs_program_fragment Deprecated. Handle to a ProgramFragment
rs_program_raster Deprecated. Handle to a ProgramRaster
rs_program_store Deprecated. Handle to a ProgramStore
rs_program_vertex Deprecated. Handle to a ProgramVertex

Deprecated Functions

rsClamp Deprecated. Restrain a value to a range
rsFrac Deprecated. Returns the fractional part of a float
rsGetAllocation Deprecated. Return the Allocation for a given pointer
rsgAllocationSyncAll Deprecated. Sync the contents of an allocation
rsgBindColorTarget Deprecated. Set the color target
rsgBindConstant Deprecated. Bind a constant allocation
rsgBindDepthTarget Deprecated. Set the depth target
rsgBindFont Deprecated. Bind a font object
rsgBindProgramFragment Deprecated. Bind a ProgramFragment
rsgBindProgramRaster Deprecated. Bind a ProgramRaster
rsgBindProgramStore Deprecated. Bind a ProgramStore
rsgBindProgramVertex Deprecated. Bind a ProgramVertex
rsgBindSampler Deprecated. Bind a sampler
rsgBindTexture Deprecated. Bind a texture allocation
rsgClearAllRenderTargets Deprecated. Clear all color and depth targets
rsgClearColor Deprecated. Clear the specified color from the surface
rsgClearColorTarget Deprecated. Clear the color target
rsgClearDepth Deprecated. Clear the depth surface
rsgClearDepthTarget Deprecated. Clear the depth target
rsgDrawMesh Deprecated. Draw a mesh
rsgDrawQuad Deprecated. Draw a quad
rsgDrawQuadTexCoords Deprecated. Draw a textured quad
rsgDrawRect Deprecated. Draw a rectangle
rsgDrawSpriteScreenspace Deprecated. Draw rectangles in screenspace
rsgDrawText Deprecated. Draw a text string
rsgFinish Deprecated. End rendering commands
rsgFontColor Deprecated. Set the font color
rsgGetHeight Deprecated. Get the surface height
rsgGetWidth Deprecated. Get the surface width
rsgMeasureText Deprecated. Get the bounding box for a text string
rsgMeshComputeBoundingBox Deprecated. Compute a bounding box
rsgMeshGetIndexAllocation Deprecated. Return an allocation containing index data
rsgMeshGetPrimitive Deprecated. Return the primitive
rsgMeshGetPrimitiveCount Deprecated. Return the number of index sets
rsgMeshGetVertexAllocation Deprecated. Return a vertex allocation
rsgMeshGetVertexAllocationCount Deprecated. Return the number of vertex allocations
rsgProgramFragmentConstantColor Deprecated. Set the constant color for a fixed function emulation program
rsgProgramRasterGetCullMode Deprecated. Get program raster cull mode
rsgProgramRasterIsPointSpriteEnabled Deprecated. Get program raster point sprite state
rsgProgramStoreGetBlendDstFunc Deprecated. Get program store blend destination function
rsgProgramStoreGetBlendSrcFunc Deprecated. Get program store blend source function
rsgProgramStoreGetDepthFunc Deprecated. Get program store depth function
rsgProgramStoreIsColorMaskAlphaEnabled Deprecated. Get program store alpha component color mask
rsgProgramStoreIsColorMaskBlueEnabled Deprecated. Get program store blur component color mask
rsgProgramStoreIsColorMaskGreenEnabled Deprecated. Get program store green component color mask
rsgProgramStoreIsColorMaskRedEnabled Deprecated. Get program store red component color mask
rsgProgramStoreIsDepthMaskEnabled Deprecated. Get program store depth mask
rsgProgramStoreIsDitherEnabled Deprecated. Get program store dither state
rsgProgramVertexGetProjectionMatrix Deprecated. Get the projection matrix for a fixed function vertex program
rsgProgramVertexLoadModelMatrix Deprecated. Load the model matrix for a bound fixed function vertex program
rsgProgramVertexLoadProjectionMatrix Deprecated. Load the projection matrix for a bound fixed function vertex program
rsgProgramVertexLoadTextureMatrix Deprecated. Load the texture matrix for a bound fixed function vertex program