Class StaticBufferManager

java.lang.Object
icyllis.arc3d.granite.StaticBufferManager

public class StaticBufferManager extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getVertexWriter

      public long getVertexWriter(long requiredBytes, BufferViewInfo outInfo)
      The passed in BufferViewInfo is updated when finalize() is later called, to point to the packed, GPU-private buffer at the appropriate offset. The data written to the returned Writer is copied to the private buffer at that offset. 'binding' must live until finalize() returns.
      Returns:
      write-combining buffer address, or NULL
    • getIndexWriter

      public long getIndexWriter(long requiredBytes, BufferViewInfo outInfo)
    • flush

      public int flush(QueueManager queueManager, SharedResourceCache sharedResourceCache)