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)
  2. Buffer createStaticBuffer(const(T)[] data, BufferUsage usage)
    class Example
    createStaticBuffer
    (
    T
    )
    (
    const(T)[] data
    ,)
    if (
    !is(T == void)
    )
  3. Buffer createStaticBuffer(T data, BufferUsage usage)

Meta