|
|
|
|
|
|
readonly float _devicePixelRatio; |
|
|
|
readonly MeshPool _meshPool; |
|
|
|
|
|
|
|
readonly bool _isMainCanvas; |
|
|
|
|
|
|
|
readonly List<RenderLayer> _layers = new List<RenderLayer>(); |
|
|
|
RenderLayer _currentLayer; |
|
|
|
uiRect? _lastScissor; |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public PictureFlusher(RenderTexture renderTexture, float devicePixelRatio, MeshPool meshPool, bool isMainCanvas) { |
|
|
|
public PictureFlusher(RenderTexture renderTexture, float devicePixelRatio, MeshPool meshPool) { |
|
|
|
D.assert(renderTexture); |
|
|
|
D.assert(devicePixelRatio > 0); |
|
|
|
D.assert(meshPool != null); |
|
|
|
|
|
|
this._devicePixelRatio = devicePixelRatio; |
|
|
|
this._meshPool = meshPool; |
|
|
|
this._isMainCanvas = isMainCanvas; |
|
|
|
|
|
|
|
this.___drawTextDrawMeshCallback = this._drawTextDrawMeshCallback; |
|
|
|
this.___drawPathDrawMeshCallback2 = this._drawPathDrawMeshCallback2; |
|
|
|