Lines Matching refs:stencilBuffer
40 stencilBuffer = nullptr; in Device()
141 if(stencilBuffer) in ~Device()
143 stencilBuffer->release(); in ~Device()
144 stencilBuffer = nullptr; in ~Device()
205 if(!stencilBuffer) in clearStencil()
210 sw::Rect clearRect = stencilBuffer->getRect(); in clearStencil()
217 …stencilBuffer->clearStencil(stencil, mask, clearRect.x0, clearRect.y0, clearRect.width(), clearRec… in clearStencil()
286 void Device::setStencilBuffer(egl::Image *stencilBuffer) in setStencilBuffer() argument
288 if(this->stencilBuffer == stencilBuffer) in setStencilBuffer()
293 if(stencilBuffer) in setStencilBuffer()
295 stencilBuffer->addRef(); in setStencilBuffer()
298 if(this->stencilBuffer) in setStencilBuffer()
300 this->stencilBuffer->release(); in setStencilBuffer()
303 this->stencilBuffer = stencilBuffer; in setStencilBuffer()
305 Renderer::setStencilBuffer(stencilBuffer); in setStencilBuffer()
509 if(stencilBuffer) in bindViewport()
512 scissor.x1 = min(scissor.x1, stencilBuffer->getWidth()); in bindViewport()
514 scissor.y1 = min(scissor.y1, stencilBuffer->getHeight()); in bindViewport()