private void prepareWriters() { fbAddress = getTextureAddress(fbp, prim.pxMin, prim.pyMin, fbw, psm); depthAddress = getTextureAddress(zbp, prim.pxMin, prim.pyMin, zbw, depthBufferPixelFormat); if (!RendererTemplate.isRendererWriterNative(RuntimeContext.MemoryInt, psm)) { rendererWriter = RendererWriter.getRendererWriter(fbAddress, fbw, psm, depthAddress, zbw, depthBufferPixelFormat, needDestinationDepthRead, needDepthWrite); } imageWriterSkipEOL = fbw - prim.destinationWidth; depthWriterSkipEOL = zbw - prim.destinationWidth; }
protected internal virtual void copy(BasePrimitiveRenderer from) { base.copy(from); pixel.copy(from.pixel); prim.copy(from.prim); needScissoringX = from.needScissoringX; needScissoringY = from.needScissoringY; needSourceDepthRead = from.needSourceDepthRead; needDestinationDepthRead = from.needDestinationDepthRead; needDepthWrite = from.needDepthWrite; needTextureUV = from.needTextureUV; simpleTextureUV = from.simpleTextureUV; needTextureWrapU = from.needTextureWrapU; needTextureWrapV = from.needTextureWrapV; sameVertexColor = from.sameVertexColor; fbAddress = from.fbAddress; depthAddress = from.depthAddress; rendererWriter = from.rendererWriter; needSourceDepthClamp = from.needSourceDepthClamp; }