|
|
|
|
|
|
protected override float queryDevicePixelRatio() { |
|
|
|
return EditorGUIUtility.pixelsPerPoint; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Window.defaultAntiAliasing; |
|
|
|
return defaultAntiAliasing; |
|
|
|
} |
|
|
|
|
|
|
|
protected override Vector2 queryWindowSize() { |
|
|
|
|
|
|
public void OnEnable() { |
|
|
|
this._devicePixelRatio = this.queryDevicePixelRatio(); |
|
|
|
this._antiAliasing = this.queryAntiAliasing(); |
|
|
|
|
|
|
|
|
|
|
|
var size = this.queryWindowSize(); |
|
|
|
this._lastWindowWidth = size.x; |
|
|
|
this._lastWindowHeight = size.y; |
|
|
|
|
|
|
if (this.displayMetricsChanged()) { |
|
|
|
this._devicePixelRatio = this.queryDevicePixelRatio(); |
|
|
|
this._antiAliasing = this.queryAntiAliasing(); |
|
|
|
|
|
|
|
|
|
|
|
var size = this.queryWindowSize(); |
|
|
|
this._lastWindowWidth = size.x; |
|
|
|
this._lastWindowHeight = size.y; |
|
|
|
|
|
|
if (regenerateLayerTree) { |
|
|
|
this._regenerateLayerTree = true; |
|
|
|
} |
|
|
|
|
|
|
|
if (Application.targetFrameRate > minTargetFrameRate) |
|
|
|
if (Application.targetFrameRate > minTargetFrameRate) { |
|
|
|
} |
|
|
|
}, true); |
|
|
|
} |
|
|
|
}, true); |
|
|
|
} |
|
|
|
|
|
|
|
public override void render(Scene scene) { |
|
|
|
var layerTree = scene.takeLayerTree(); |
|
|
|