DefaultMeshBufferTarget
The options for the default GPU buffer target that Unity applies to the vertex and index buffers of meshes.
읽는 시간 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}