Ejemplo n.º 1
0
 public partial void NamedBufferStorageExternal([Flow(FlowDirection.In)] uint buffer, [Flow(FlowDirection.In)] nint offset, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] nint clientBuffer, [Flow(FlowDirection.In)] BufferStorageMask flags);
Ejemplo n.º 2
0
 public BufferObject(GL gl, ReadOnlySpan <TData> data, BufferStorageMask flags) : base(gl)
 {
     DataLength = (nuint)data.Length;
     Length     = DataLength * (nuint)sizeof(TData);
     GL.NamedBufferStorage(Handle, Length, data, (uint)flags);
 }
Ejemplo n.º 3
0
 public BufferObject(GL gl, nuint dataLength, BufferStorageMask flags) : base(gl)
 {
     DataLength = dataLength;
     Length     = DataLength * (nuint)sizeof(TData);
     GL.NamedBufferStorage(Handle, Length, (void *)null !, (uint)flags);
 }
Ejemplo n.º 4
0
 public static unsafe void BufferStorage <T0>(this ArbBufferStorage thisApi, [Flow(FlowDirection.In)] BufferStorageTarget target, [Flow(FlowDirection.In)] nuint size, [Count(Parameter = "size"), Flow(FlowDirection.In)] ReadOnlySpan <T0> data, [Flow(FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.BufferStorage(target, size, in data.GetPinnableReference(), flags);
 }