Package icyllis.arc3d.opengl
Class GLBuffer
java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.Buffer
icyllis.arc3d.opengl.GLBuffer
- All Implemented Interfaces:
- RefCounted
- 
Nested Class SummaryNested classes/interfaces inherited from class icyllis.arc3d.engine.BufferBuffer.ResourceKey
- 
Field SummaryFields inherited from class icyllis.arc3d.engine.BufferkRead_MapMode, kWriteDiscard_MapMode, mSize, mUsage
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddoUploadData(GLDevice device, int buffer, int target, long data, long offset, long totalSize) intstatic intgetBufferStorageFlags(int usage) longprotected GLDeviceintstatic intgetMutableBufferUsage(int usage) intReturns a default target for this buffer.static @Nullable @SharedPtr GLBufferprotected longonMap(int mode, long offset, long size) protected voidSubclass should override this method to free GPU resources in the backend API.protected voidonSetLabel(@Nullable String label) Subclass should override this method to set object label in the backend API.protected voidonUnmap(int mode, long offset, long size) Methods inherited from class icyllis.arc3d.engine.BuffergetMappedBuffer, getSize, getUsage, isMapped, map, map, unmap, unmap, updateDataMethods inherited from class icyllis.arc3d.engine.ResourcegetContext, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isShareable, isWrapped, ref, refCommandBuffer, setLabel, setNonCacheable, unref, unrefCommandBuffer
- 
Method Details- 
make
- 
getBufferStorageFlagspublic static int getBufferStorageFlags(int usage) 
- 
getMutableBufferUsagepublic static int getMutableBufferUsage(int usage) 
- 
getHandlepublic int getHandle()
- 
getClientUploadBufferpublic long getClientUploadBuffer()
- 
getTargetpublic int getTarget()Returns a default target for this buffer.
- 
getBindingTargetpublic int getBindingTarget()
- 
onSetLabelDescription copied from class:ResourceSubclass should override this method to set object label in the backend API.- Overrides:
- onSetLabelin class- Resource
 
- 
onReleaseprotected void onRelease()Description copied from class:ResourceSubclass should override this method to free GPU resources in the backend API.
- 
getDevice
- 
onMapprotected long onMap(int mode, long offset, long size) 
- 
onUnmapprotected void onUnmap(int mode, long offset, long size) 
- 
doUploadDatapublic static void doUploadData(GLDevice device, int buffer, int target, long data, long offset, long totalSize) 
 
-