Edit

SKMeshIndexBuffer.Create Method

Definition

Overloads

Name Description
Create(Int32)

Creates a zero-initialized CPU-backed index buffer of the specified size.

Create(ReadOnlySpan<Byte>)

Creates a CPU-backed index buffer containing a copy of the supplied data.

Create(GRContext, Int32)

Creates a zero-initialized GPU-backed index buffer of the specified size.

Create(GRContext, ReadOnlySpan<Byte>)

Creates a GPU-backed index buffer containing a copy of the supplied data.

Create(IntPtr, Int32)

Creates a CPU-backed index buffer containing a copy of size bytes read from data.

Create(GRContext, IntPtr, Int32)

Creates a GPU-backed index buffer containing a copy of size bytes read from data.

Create(Int32)

Creates a zero-initialized CPU-backed index buffer of the specified size.

public static SkiaSharp.SKMeshIndexBuffer? 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 index buffer containing a copy of the supplied data.

public static SkiaSharp.SKMeshIndexBuffer? 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 index buffer of the specified size.

public static SkiaSharp.SKMeshIndexBuffer? 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 index buffer containing a copy of the supplied data.

public static SkiaSharp.SKMeshIndexBuffer? 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 index buffer containing a copy of size bytes read from data.

public static SkiaSharp.SKMeshIndexBuffer? 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 index buffer containing a copy of size bytes read from data.

public static SkiaSharp.SKMeshIndexBuffer? 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.

Applies to