diff options
| author | Pirama Arumuga Nainar <pirama@google.com> | 2015-11-13 12:54:42 -0800 |
|---|---|---|
| committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-11-23 16:45:30 -0800 |
| commit | 43d758c56868560fdd3cdcfeea599819ed037031 (patch) | |
| tree | 33c403dc21b5f033fb59d3e557ca4a4af07ad96a /cpp/RenderScript.cpp | |
| parent | 57bc7cbc3d074deaf749a188109d3e1b3d5cb7a7 (diff) | |
Add helper functions to create allocations
Bug: 23535985
- Adds high-level helper functions such as rsCreateAllocation_char4 etc
to the API.
- To accomplish this, adds "#RST_i" pattern replacement to the
generator. Similar to replacement of #1 with the equivalent parameter
in the spec, the generator now replaces '#RST_i' patterns with the RS
type equivalent of the parameter. For e.g.:
"
...
t: i8, i16 # assume this is the first "replaceable" list in this spec
...
inline:
rsCreateElement(RS_TYPE_#RST_1)
"
will generate
- "rsCreateElement(RS_TYPE_SIGNED_8)" and
- "rsCreateElement(RS_TYPE_SIGNED_16)"
respectively.
Change-Id: I162e3f3b9d89d477bf85e12dd300fd5b949dbd4b
Diffstat (limited to 'cpp/RenderScript.cpp')
0 files changed, 0 insertions, 0 deletions
