DefaultMeshBufferTarget
The options for the default GPU buffer target that Unity applies to the vertex and index buffers of meshes.
Read time 1 minuteLast updated 7 days ago
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}