Sign in
android
/
platform
/
frameworks
/
rs
/
a3c6f62775506c95afd556e617f14d7a28839f01
/
.
/
tests
/
lldb
/
java
/
SingleSource
/
src
/
rs
/
rs_single_source.rs
blob: 7bc7ec3d9d5d2e6780a68ee20e4f50e377e082d8 [
file
] [
log
] [
blame
]
#
pragma version
(
1
)
#
pragma rs java_package_name
(
com
.
android
.
rs
.
singlesource
)
float __attribute__
((
kernel
))
square_kernel
(
float a
)
{
return
a
*
a
;
}
void script_invoke
(
rs_allocation out
,
rs_allocation in
)
{
rsForEach
(
square_kernel
,
out
,
in
);
}