Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edb2fc6a authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()"

parents 5aa1c034 d8e76204
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -91,6 +91,12 @@ static void SC_bindProgramRaster(RsProgramRaster pv)
// VP
//////////////////////////////////////////////////////////////////////////////

static void SC_vpLoadProjectionMatrix(const rsc_Matrix *m)
{
    GET_TLS();
    rsc->getVertex()->setProjectionMatrix(m);
}

static void SC_vpLoadModelMatrix(const rsc_Matrix *m)
{
    GET_TLS();
@@ -355,6 +361,7 @@ static ScriptCState::SymbolTable_t gSyms[] = {
    { "rsgBindSampler", (void *)&SC_bindSampler },
    { "rsgBindTexture", (void *)&SC_bindTexture },

    { "rsgProgramVertexLoadProjectionMatrix", (void *)&SC_vpLoadProjectionMatrix },
    { "rsgProgramVertexLoadModelMatrix", (void *)&SC_vpLoadModelMatrix },
    { "rsgProgramVertexLoadTextureMatrix", (void *)&SC_vpLoadTextureMatrix },

+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ extern void rsgBindProgramRaster(rs_program_raster);
extern void rsgBindSampler(rs_program_fragment, int slot, rs_sampler);
extern void rsgBindTexture(rs_program_fragment, int slot, rs_allocation);

extern void rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4 *);
extern void rsgProgramVertexLoadModelMatrix(const rs_matrix4x4 *);
extern void rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4 *);