|
|
|
|
|
|
|
|
|
|
readonly List<RenderLayer> _layers = new List<RenderLayer>(); |
|
|
|
RenderLayer _currentLayer; |
|
|
|
Rect _lastScissor; |
|
|
|
|
|
|
|
public PictureFlusher(RenderTexture renderTexture, float devicePixelRatio, MeshPool meshPool) { |
|
|
|
D.assert(renderTexture); |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void _tryAddScissor(RenderLayer layer, Rect scissor) { |
|
|
|
if (scissor == layer.lastScissor) { |
|
|
|
if (scissor == this._lastScissor) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
layer.lastScissor = scissor; |
|
|
|
this._lastScissor = scissor; |
|
|
|
} |
|
|
|
|
|
|
|
bool _applyClip(Rect queryBounds) { |
|
|
|
|
|
|
public readonly ClipStack clipStack = new ClipStack(); |
|
|
|
public uint lastClipGenId; |
|
|
|
public Rect lastClipBounds; |
|
|
|
public Rect lastScissor; |
|
|
|
public bool ignoreClip = true; |
|
|
|
|
|
|
|
Vector4? _viewport; |
|
|
|