Package icyllis.arc3d.granite
Class StaticBufferManager
java.lang.Object
icyllis.arc3d.granite.StaticBufferManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintflush(QueueManager queueManager, GlobalResourceCache globalResourceCache) longgetIndexWriter(long requiredBytes, BufferViewInfo outInfo) longgetVertexWriter(long requiredBytes, BufferViewInfo outInfo) The passed inBufferViewInfois updated when finalize() is later called, to point to the packed, GPU-private buffer at the appropriate offset.
-
Field Details
-
RESULT_SUCCESS
public static final int RESULT_SUCCESS- See Also:
-
RESULT_FAILURE
public static final int RESULT_FAILURE- See Also:
-
RESULT_NO_WORK
public static final int RESULT_NO_WORK- See Also:
-
-
Constructor Details
-
StaticBufferManager
-
-
Method Details
-
getVertexWriter
The passed inBufferViewInfois 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
-
flush
-