SKMeshVertexBuffer.Create 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 |
|---|---|
| Create(Int32) |
Creates a zero-initialized CPU-backed vertex buffer of the specified size. |
| Create(ReadOnlySpan<Byte>) |
Creates a CPU-backed vertex buffer containing a copy of the supplied data. |
| Create(GRContext, Int32) |
Creates a zero-initialized GPU-backed vertex buffer of the specified size. |
| Create(GRContext, ReadOnlySpan<Byte>) |
Creates a GPU-backed vertex buffer containing a copy of the supplied data. |
| Create(IntPtr, Int32) |
Creates a CPU-backed vertex buffer containing a copy of |
| Create(GRContext, IntPtr, Int32) |
Creates a GPU-backed vertex buffer containing a copy of |
Create(Int32)
Creates a zero-initialized CPU-backed vertex buffer of the specified size.
public static SkiaSharp.SKMeshVertexBuffer? Create(int size);
Parameters
- size
- Int32
The size of the buffer, in bytes.
Returns
The new buffer, or null if it could not be created.
Applies to
Create(ReadOnlySpan<Byte>)
Creates a CPU-backed vertex buffer containing a copy of the supplied data.
public static SkiaSharp.SKMeshVertexBuffer? Create(ReadOnlySpan<byte> data);
Parameters
- data
- ReadOnlySpan<Byte>
The bytes to copy into the buffer.
Returns
The new buffer, or null if it could not be created.
Applies to
Create(GRContext, Int32)
Creates a zero-initialized GPU-backed vertex buffer of the specified size.
public static SkiaSharp.SKMeshVertexBuffer? Create(SkiaSharp.GRContext context, int size);
Parameters
- context
- GRContext
The GPU context to allocate the buffer on.
- size
- Int32
The size of the buffer, in bytes.
Returns
The new buffer, or null if it could not be created.
Applies to
Create(GRContext, ReadOnlySpan<Byte>)
Creates a GPU-backed vertex buffer containing a copy of the supplied data.
public static SkiaSharp.SKMeshVertexBuffer? Create(SkiaSharp.GRContext context, ReadOnlySpan<byte> data);
Parameters
- context
- GRContext
The GPU context to upload the buffer to.
- data
- ReadOnlySpan<Byte>
The bytes to copy into the buffer.
Returns
The new buffer, or null if it could not be created.
Applies to
Create(IntPtr, Int32)
Creates a CPU-backed vertex buffer containing a copy of size bytes read from data.
public static SkiaSharp.SKMeshVertexBuffer? Create(IntPtr data, int size);
Parameters
- data
- IntPtr
A pointer to the bytes to copy.
- size
- Int32
The number of bytes to copy.
Returns
The new buffer, or null if it could not be created.
Applies to
Create(GRContext, IntPtr, Int32)
Creates a GPU-backed vertex buffer containing a copy of size bytes read from data.
public static SkiaSharp.SKMeshVertexBuffer? Create(SkiaSharp.GRContext context, IntPtr data, int size);
Parameters
- context
- GRContext
The GPU context to upload the buffer to.
- data
- IntPtr
A pointer to the bytes to copy.
- size
- Int32
The number of bytes to copy.
Returns
The new buffer, or null if it could not be created.