Lines Matching refs:depthBuffer
43 depthBuffer = nullptr; in Device()
161 if(depthBuffer) in ~Device()
163 depthBuffer->release(); in ~Device()
164 depthBuffer = nullptr; in ~Device()
219 if(!depthBuffer) in clearDepth()
225 sw::Rect clearRect = depthBuffer->getRect(); in clearDepth()
232 depthBuffer->clearDepth(z, clearRect.x0, clearRect.y0, clearRect.width(), clearRect.height()); in clearDepth()
316 void Device::setDepthBuffer(egl::Image *depthBuffer, unsigned int layer) in setDepthBuffer() argument
318 if(this->depthBuffer == depthBuffer) in setDepthBuffer()
323 if(depthBuffer) in setDepthBuffer()
325 depthBuffer->addRef(); in setDepthBuffer()
328 if(this->depthBuffer) in setDepthBuffer()
330 this->depthBuffer->release(); in setDepthBuffer()
333 this->depthBuffer = depthBuffer; in setDepthBuffer()
335 Renderer::setDepthBuffer(depthBuffer, layer); in setDepthBuffer()
804 if(depthBuffer) in bindViewport()
807 scissor.x1 = min(scissor.x1, depthBuffer->getWidth()); in bindViewport()
809 scissor.y1 = min(scissor.y1, depthBuffer->getHeight()); in bindViewport()