Example.createStaticBuffer

Create a buffer, and bind it with memory filled with data. The bound memory will be deviceLocal, without guarantee to be host visible.

  1. Buffer createStaticBuffer(const(void)[] data, BufferUsage usage)
    class Example
    final
    createStaticBuffer
    (
    const(void)[] data
    ,)
  2. Buffer createStaticBuffer(const(T)[] data, BufferUsage usage)
  3. Buffer createStaticBuffer(T data, BufferUsage usage)

Meta