Skip to content

Render script migration problem #1

@tirumalarajajee

Description

@tirumalarajajee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions