DefaultMeshBufferTarget
The options for the default GPU buffer target that Unity applies to the vertex and index buffers of meshes.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Enum
- Namespace: UnityEditor.Rendering
- Assembly: UnityEditor.CoreModule
public enum DefaultMeshBufferTarget
Remarks
Use this enum with EditorGraphicsSettings.defaultMeshBufferTarget to control whether Unity applies an additional buffer target to the GPU buffers it creates for meshes.
On platforms that don’t support compute access, Unity doesn’t add any additional targets.
Additional Resources: EditorGraphicsSettings.defaultMeshBufferTarget, Mesh.GetVertexBuffer, Mesh.GetIndexBuffer, GraphicsBuffer.Target.
Examples
{code Documentation/ManualDocs/com.unity.documentation-examples/Graphics/Scripts/Editor/DefaultMeshBufferTargetExample.cs#example}