Package icyllis.arc3d.granite
Class StaticBufferManager
java.lang.Object
icyllis.arc3d.granite.StaticBufferManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
flush
(QueueManager queueManager, SharedResourceCache sharedResourceCache) long
getIndexWriter
(long requiredBytes, BufferViewInfo outInfo) long
getVertexWriter
(long requiredBytes, BufferViewInfo outInfo) The passed inBufferViewInfo
is 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 inBufferViewInfo
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
-