@@ -69,7 +69,7 @@ void RsdShader::init() {
6969 uint32_t attribCount = 0 ;
7070 uint32_t uniformCount = 0 ;
7171 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .inputElementsCount ; ct++) {
72- initAddUserElement (mRSProgram ->mHal .state .inputElements [ct]. get () , mAttribNames , NULL , &attribCount, RS_SHADER_ATTR);
72+ initAddUserElement (mRSProgram ->mHal .state .inputElements [ct], mAttribNames , NULL , &attribCount, RS_SHADER_ATTR);
7373 }
7474 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .constantsCount ; ct++) {
7575 initAddUserElement (mRSProgram ->mHal .state .constantTypes [ct]->getElement (), mUniformNames , mUniformArraySizes , &uniformCount, RS_SHADER_UNI);
@@ -89,7 +89,7 @@ void RsdShader::init() {
8989String8 RsdShader::getGLSLInputString () const {
9090 String8 s;
9191 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .inputElementsCount ; ct++) {
92- const Element *e = mRSProgram ->mHal .state .inputElements [ct]. get () ;
92+ const Element *e = mRSProgram ->mHal .state .inputElements [ct];
9393 for (uint32_t field=0 ; field < e->getFieldCount (); field++) {
9494 const Element *f = e->getField (field);
9595
@@ -113,7 +113,7 @@ String8 RsdShader::getGLSLInputString() const {
113113
114114void RsdShader::appendAttributes () {
115115 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .inputElementsCount ; ct++) {
116- const Element *e = mRSProgram ->mHal .state .inputElements [ct]. get () ;
116+ const Element *e = mRSProgram ->mHal .state .inputElements [ct];
117117 for (uint32_t field=0 ; field < e->getFieldCount (); field++) {
118118 const Element *f = e->getField (field);
119119 const char *fn = e->getFieldName (field);
@@ -414,7 +414,7 @@ void RsdShader::setupTextures(const Context *rsc, RsdShaderCache *sc) {
414414 RSD_CALL_GL (glActiveTexture, GL_TEXTURE0 + ct);
415415 RSD_CALL_GL (glUniform1i, sc->fragUniformSlot (mTextureUniformIndexStart + ct), ct);
416416
417- if (!mRSProgram ->mHal .state .textures [ct]. get () ) {
417+ if (!mRSProgram ->mHal .state .textures [ct]) {
418418 // if nothing is bound, reset to default GL texture
419419 RSD_CALL_GL (glBindTexture, mTextureTargets [ct], 0 );
420420 continue ;
@@ -427,9 +427,9 @@ void RsdShader::setupTextures(const Context *rsc, RsdShaderCache *sc) {
427427 }
428428 RSD_CALL_GL (glBindTexture, drvTex->glTarget , drvTex->textureID );
429429 rsdGLCheckError (rsc, " ProgramFragment::setup tex bind" );
430- if (mRSProgram ->mHal .state .samplers [ct]. get () ) {
431- setupSampler (rsc, mRSProgram ->mHal .state .samplers [ct]. get () ,
432- mRSProgram ->mHal .state .textures [ct]. get () );
430+ if (mRSProgram ->mHal .state .samplers [ct]) {
431+ setupSampler (rsc, mRSProgram ->mHal .state .samplers [ct],
432+ mRSProgram ->mHal .state .textures [ct]);
433433 } else {
434434 RSD_CALL_GL (glTexParameteri, drvTex->glTarget , GL_TEXTURE_MIN_FILTER, GL_NEAREST);
435435 RSD_CALL_GL (glTexParameteri, drvTex->glTarget , GL_TEXTURE_MAG_FILTER, GL_NEAREST);
@@ -448,7 +448,7 @@ void RsdShader::setupTextures(const Context *rsc, RsdShaderCache *sc) {
448448void RsdShader::setupUserConstants (const Context *rsc, RsdShaderCache *sc, bool isFragment) {
449449 uint32_t uidx = 0 ;
450450 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .constantsCount ; ct++) {
451- Allocation *alloc = mRSProgram ->mHal .state .constants [ct]. get () ;
451+ Allocation *alloc = mRSProgram ->mHal .state .constants [ct];
452452 if (!alloc) {
453453 LOGE (" Attempting to set constants on shader id %u, but alloc at slot %u is not set" ,
454454 (uint32_t )this , ct);
@@ -504,7 +504,7 @@ void RsdShader::setup(const android::renderscript::Context *rsc, RsdShaderCache
504504void RsdShader::initAttribAndUniformArray () {
505505 mAttribCount = 0 ;
506506 for (uint32_t ct=0 ; ct < mRSProgram ->mHal .state .inputElementsCount ; ct++) {
507- const Element *elem = mRSProgram ->mHal .state .inputElements [ct]. get () ;
507+ const Element *elem = mRSProgram ->mHal .state .inputElements [ct];
508508 for (uint32_t field=0 ; field < elem->getFieldCount (); field++) {
509509 if (elem->getFieldName (field)[0 ] != ' #' ) {
510510 mAttribCount ++;
0 commit comments