Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

RenderScript

From Wikipedia, the free encyclopedia
Android operating system API
RenderScript
DeveloperGoogle
Operating systemAndroid (operating system)
Websitedeveloper.android.com/guide/topics/renderscript/compute

RenderScript is adeprecated component of theAndroid operating system for mobile devices that offers anAPI for acceleration that takes advantage ofheterogeneous hardware. It allows developers to increase the performance of their applications at the cost of writing more complex (lower-level) code.

It provides the developer three primary tools: A simple 3D rendering API, a compute API similar toCUDA, and aC99-derived language.

History

[edit]

RenderScript was added inAndroid 3.0 Honeycomb.[1]

As of Android 4.1, RenderScript's experimental3D rendering API has been deprecated, and now exists solely as a compute API.

Android 4.2 added new capabilities to script intrinsics, such asBlend andBlur; as well asScriptGroups which allows related RenderScript scripts to be grouped and executed with one call.It also addedFilterScript, which is a subset of RenderScript that allows developers to write their image processing operations in FilterScript using the standard RenderScript runtime API, but within stricter constraints that ensure wider compatibility and improved optimization acrossmulti-coreCPUs,GPUs, andDSPs. FilterScript is less precise infloating point precision, and more cross device compatible subset of RenderScript – and should not be mistaken for a RenderScript replacement technology.[2]

On April 19, 2021, Google announced that RenderScript will bedeprecated inAndroid 12, and recommended porting existing code toVulkan.[3]

Features

[edit]

Portability

[edit]

RenderScript is designed to always run on the various Android platforms regardless of hardware type. Performance tuning is done at runtime.

RenderScript portability depends upon device-specific drivers:[4] a basic CPU-only driver is provided for every device, while there exist some specific chipset-provided RenderScript drivers that enable GPU usage (e.g. Qualcomm specific drivers, which are provided in thelibRSDriver_adreno.so Android library).

Performance

[edit]

RenderScript is designed to tune tasks at runtime that can be efficiently split and run concurrently on the underlying hardware.[5]

As of Android 4.2, RenderScript has been expanded to run on the GPU in addition to the CPU on supported systems.[6]

Limitations

[edit]
  • RenderScript cannot yet express on-chip inter-thread communication (known as local memory inOpenCL, and shared memory in CUDA).
  • RenderScript cannot yet express hardware-implemented 2D and 3D lookups with bilinear interpolation (known as texture in CUDA, and image read in OpenCL).

References

[edit]
  1. ^"Honeycomb".
  2. ^"Android 4.2 APIs". Retrieved2013-03-20.
  3. ^"Android GPU Compute Going Forward".Android Developers Blog. Retrieved2021-04-19.
  4. ^Marchetti, Alberto (2016).RenderScript: parallel computing on Android, the easy way (1st ed.). Archived fromthe original on 2016-08-25. Retrieved2016-07-05.
  5. ^"Renderscript Part 2".
  6. ^"Jelly Bean - Renderscipt Performance". Retrieved2012-11-27.

External links

[edit]
Software
development
Development tools
Official
Other
Integrated development
environments
(IDE)
Languages,databases
Augmented reality andvirtual reality
Events,communities
Releases
Derivatives
Devices
Pixel
Nexus
Play edition
Custom
distributions
Booting and
recovery
APIs
AlternativeUIs
Rooting
Lists
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=RenderScript&oldid=1312483450"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp