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}