GitHub
5 年前
当前提交
18e40cd8
共有 18 个文件被更改,包括 159 次插入 和 29 次删除
-
2Editor/UIWidgetsPanelEditor.cs
-
12Runtime/editor/editor_window.cs
-
2Runtime/editor/rasterizer.cs
-
20Runtime/editor/surface.cs
-
14Runtime/engine/UIWidgetsPanel.cs
-
13Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs
-
5Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_shader_initializer.cs
-
3Runtime/ui/renderer/cmdbufferCanvas/rendering/render_layer.cs
-
1Runtime/ui/renderer/compositeCanvas/flow/layer.cs
-
8Runtime/ui/renderer/compositeCanvas/flow/layer_tree.cs
-
2Runtime/ui/renderer/compositeCanvas/flow/picture_layer.cs
-
32Runtime/ui/renderer/compositeCanvas/flow/raster_cache.cs
-
7Runtime/ui/txt/emoji.cs
-
13Runtime/ui/txt/layout.cs
-
11Runtime/ui/window.cs
-
1Samples/UIWidgetsGallery/GalleryMain.cs
-
31Runtime/editor/window_config.cs
-
11Runtime/editor/window_config.cs.meta
|
|||
using Unity.UIWidgets.foundation; |
|||
|
|||
namespace Unity.UIWidgets.editor { |
|||
public class WindowConfig { |
|||
public readonly bool disableRasterCache; |
|||
|
|||
public static float MaxRasterImageSize = 4096; |
|||
|
|||
static bool? _disableComputeBuffer = null; |
|||
|
|||
public static bool disableComputeBuffer { |
|||
//disable compute buffer by default for now
|
|||
get { return _disableComputeBuffer ?? true; } |
|||
set { |
|||
D.assert(_disableComputeBuffer == null |
|||
|| _disableComputeBuffer == value |
|||
, () => "The global settings of [disableComputeBuffer] cannot be initiated for multiple times!"); |
|||
|
|||
_disableComputeBuffer = value; |
|||
} |
|||
} |
|||
|
|||
public WindowConfig(bool disableRasterCache) { |
|||
this.disableRasterCache = disableRasterCache; |
|||
} |
|||
|
|||
public static readonly WindowConfig defaultConfig = new WindowConfig( |
|||
disableRasterCache: false |
|||
); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b07028e6b697b43e4a5911da0ab9ca54 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue