SKMeshVertexBuffer.Copy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Copy() |
Creates a CPU-backed copy of this vertex buffer. |
| Copy(GRContext) |
Creates a GPU-backed copy of this vertex buffer. |
Copy()
Creates a CPU-backed copy of this vertex buffer.
public SkiaSharp.SKMeshVertexBuffer? Copy();
Returns
The copied buffer, or null if the buffer could not be copied.
Remarks
Copying is only supported when the source buffer is CPU-backed.
Applies to
Copy(GRContext)
Creates a GPU-backed copy of this vertex buffer.
public SkiaSharp.SKMeshVertexBuffer? Copy(SkiaSharp.GRContext context);
Parameters
- context
- GRContext
The GPU context to upload the copy to.
Returns
The copied buffer, or null if the buffer could not be copied.
Remarks
Copying is only supported when the source buffer is CPU-backed.