GlbData.UseBufferView
Contents
[
Hide
]UseBufferView(ArraySegment<byte>, int, BufferMode?)
Creates or reuses a BufferView
instance at !:GlbImage.LogicalBufferViews.
public BufferView UseBufferView(ArraySegment<byte> data, int byteStride = 0,
BufferMode? target = default)
Parameter | Type | Description |
---|---|---|
data | ArraySegment`1 | The array range to wrap. |
byteStride | Int32 | For strided vertex buffers, it must be a value multiple of 4, 0 otherwise |
target | Nullable`1 | The type hardware device buffer, or null |
Return Value
A BufferView
instance.
See Also
- class BufferView
- enum BufferMode
- class GlbData
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD
UseBufferView(byte[], int, int?, int, BufferMode?)
Creates or reuses a BufferView
instance at !:GlbImage.LogicalBufferViews.
public BufferView UseBufferView(byte[] buffer, int byteOffset = 0, int? byteLength = null,
int byteStride = 0, BufferMode? target = default)
Parameter | Type | Description |
---|---|---|
buffer | Byte[] | The array to wrap. |
byteOffset | Int32 | The zero-based index of the first Byte in buffer |
byteLength | Nullable`1 | The number of elements in buffer |
byteStride | Int32 | For strided vertex buffers, it must be a value multiple of 4, 0 otherwise |
target | Nullable`1 | The type hardware device buffer, or null |
Return Value
A BufferView
instance.
See Also
- class BufferView
- enum BufferMode
- class GlbData
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD
UseBufferView(Buffer, int, int?, int, BufferMode?)
Creates or reuses a BufferView
instance at !:GlbImage.LogicalBufferViews.
public BufferView UseBufferView(Buffer buffer, int byteOffset = 0, int? byteLength = null,
int byteStride = 0, BufferMode? target = default)
Parameter | Type | Description |
---|---|---|
buffer | Buffer | The buffer to wrap. |
byteOffset | Int32 | The zero-based index of the first Byte in buffer |
byteLength | Nullable`1 | The number of elements in buffer |
byteStride | Int32 | For strided vertex buffers, it must be a value multiple of 4, 0 otherwise |
target | Nullable`1 | The type hardware device buffer, or null |
Return Value
A BufferView
instance.
See Also
- class BufferView
- class Buffer
- enum BufferMode
- class GlbData
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD