【翻译】(81)Renderscript之运行时API参考手册

本文档介绍Renderscript运行时API,这是一种高性能的原生层图形渲染及计算技术。开发者可以使用C99编写代码并在不同平台上运行。文章涵盖了必要的头文件引入、Renderscript与Android框架API的配合使用等关键信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【翻译】(81)Renderscript之运行时API参考手册

 

see

http://developer.android.com/guide/topics/renderscript/reference.html

 

原文见

http://developer.android.com/guide/topics/renderscript/reference.html

 

-------------------------------

 

Runtime API Reference

 

Renderscript之运行时API参考手册

 

(注:此章包含的是用doxygen生成的文档,我只翻译概览部分,其余内容待翻译)

 

-------------------------------

 

Overview Globals Structs

 

概览 全局 结构体

 

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:

 

Renderscript是一个高性能运行时,它在原生层上提供图形渲染和计算操作。Renderscript代码在运行时期间在设备上被编译,而且是为了允许平台独立性。本参考文档描述Renderscript运行时API,你可以利用它用C99编写Renderscript代码。Renderscript头文件为你自动地被包含,除了rs_graphics.rsh头文件。如果你正在执行图形渲染,像这样包含图形头文件:

 

#include "rs_graphics.rsh"

 

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 android.renderscript package reference. For more information on how to develop with Renderscript and how the runtime and Android framework APIs interact, see the Renderscript developer guide and the Renderscript samples.

 

为了使用Renderscript,你需要利用在这里被文档化的Renderscript运行时API以及用于Renderscript的Android框架API。想获得关于Android框架API的文档,参见android.renderscript的包参考手册。想获得关于如何用Renderscript开发和运行时和Android框架API如何交互的更多信息,参见Renderscript开发者指引和Renderscript示例。

 

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.

 

除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。

 

Android 4.0 r1 - 07 Apr 2012 1:06

 

-------------------------------

 

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

 

此页部分内容,是基于Android开源项目所创建和共享的工作,并且根据知识共享2.5署名许可证描述的条款来使用的修改版。

 

(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:

* ソフトウェア技術ドキュメントを勝手に翻訳

http://www.techdoctranslator.com/android

* Ley's Blog

http://leybreeze.com/blog/

* 农民伯伯

http://www.cnblogs.com/over140/

* Android中文翻译组

http://androidbox.sinaapp.com/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值