runtimePlatform
The platform that the collection is intended to be used with.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public RuntimePlatform runtimePlatform { get; set; }
Remarks
The same shader variant and graphics state on different platforms can result in different GPU representations. To ensure that the accurate GPU representation is created, it is recommended that a collection is prewarmed on the same platform that it was recorded on. When a collection is recorded via GraphicsStateCollection.BeginTrace/GraphicsStateCollection.EndTrace, this value is set to Application.platform.
Additional Resources: RuntimePlatform.