Searched refs:unitIdx (Results 1 – 4 of 4) sorted by relevance
/third_party/skia/src/gpu/gl/ |
D | GrGLGpu.cpp | 245 void bindSampler(int unitIdx, GrSamplerState state) { in bindSampler() argument 265 if (!fTextureUnitStates[unitIdx].fKnown || in bindSampler() 266 fTextureUnitStates[unitIdx].fSamplerIDIfKnown != fSamplers[index]) { in bindSampler() 267 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler() 268 fTextureUnitStates[unitIdx].fSamplerIDIfKnown = fSamplers[index]; in bindSampler() 269 fTextureUnitStates[unitIdx].fKnown = true; in bindSampler() 273 void unbindSampler(int unitIdx) { in unbindSampler() argument 274 if (!fTextureUnitStates[unitIdx].fKnown || in unbindSampler() 275 fTextureUnitStates[unitIdx].fSamplerIDIfKnown != 0) { in unbindSampler() 276 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, 0)); in unbindSampler() [all …]
|
D | GrGLGpu.h | 53 void bindTexture(int unitIdx, GrSamplerState samplerState, const GrSwizzle&, GrGLTexture*); 360 void setTextureUnit(int unitIdx);
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLGpu.cpp | 286 void bindSampler(int unitIdx, const GrSamplerState& state) { in bindSampler() argument 306 if (fHWBoundSamplers[unitIdx] != fSamplers[index]) { in bindSampler() 307 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler() 308 fHWBoundSamplers[unitIdx] = fSamplers[index]; in bindSampler() 2806 void GrGLGpu::bindTexture(int unitIdx, GrSamplerState samplerState, const GrSwizzle& swizzle, in bindTexture() argument 2830 if (fHWTextureUnitBindings[unitIdx].boundID(target) != textureID) { in bindTexture() 2831 this->setTextureUnit(unitIdx); in bindTexture() 2833 fHWTextureUnitBindings[unitIdx].setBoundID(target, textureID); in bindTexture() 2856 fSamplerObjectCache->bindSampler(unitIdx, samplerState); in bindTexture() 2873 this->setTextureUnit(unitIdx); in bindTexture() [all …]
|
D | GrGLGpu.h | 60 void bindTexture(int unitIdx, GrSamplerState samplerState, const GrSwizzle&, GrGLTexture*); 274 void setTextureUnit(int unitIdx);
|