Objectify
Objectify copied to clipboard
Render script migration problem
ScriptC_lh_integration lhIntegration = new ScriptC_lh_integration(rs);
/* set params for the generator */
lhIntegration.set_width(mWidth);
lhIntegration.set_height(mHeight);
lhIntegration.bind_pNormals(allInNormals); lhIntegration.bind_pHeights(allOutHeights);
/* pass the input to RenderScript */
for (int i = 0; i < LH_ITERATIONS; i++) {
lhIntegration.forEach_integrate(allInNormals, allOutHeights);
ScriptC_compute_normals cmpNormals = new ScriptC_compute_normals(rs);
/* set params for the generator */
cmpNormals.set_width(mWidth);
cmpNormals.bind_pMask(allMask);
/* create allocation for output */
Type normalsType =
new Builder(rs, Element.F32_4(rs)).setX(mWidth * mHeight).create();
Allocation allOutNormals = Allocation.createTyped(rs, normalsType);
cmpNormals.forEach_compute_normals(allInData, allOutNormals);
}
ScriptC_lh_integration, ScriptC_compute_normals couldnt be resolved neither found solution in alterantive
kindly help migrating them renderscript toolkit or vulkan class