Objectify icon indicating copy to clipboard operation
Objectify copied to clipboard

Render script migration problem

Open tirumalarajajee opened this issue 1 year ago • 1 comments

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

tirumalarajajee avatar Apr 25 '23 13:04 tirumalarajajee

kindly help migrating them renderscript toolkit or vulkan class

tirumalarajajee avatar Apr 25 '23 13:04 tirumalarajajee