Package icyllis.arc3d.vulkan
Class VulkanBuffer
java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.Buffer
icyllis.arc3d.vulkan.VulkanBuffer
- All Implemented Interfaces:
RefCounted
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.engine.Buffer
Buffer.ResourceKey
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.Buffer
kRead_MapMode, kWriteDiscard_MapMode, mSize, mUsage
-
Constructor Summary
-
Method Summary
Methods inherited from class icyllis.arc3d.engine.Buffer
getMappedBuffer, getSize, getUsage, isMapped, map, map, unmap, unmap, updateData
Methods inherited from class icyllis.arc3d.engine.Resource
getContext, getDevice, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isWrapped, onSetLabel, ref, refCommandBuffer, setKey, setLabel, setNonCacheable, unref, unrefCommandBuffer
-
Constructor Details
-
VulkanBuffer
-
-
Method Details
-
onRelease
protected void onRelease()Description copied from class:Resource
Subclass should override this method to free GPU resources in the backend API. -
onMap
protected long onMap(int mode, long offset, long size) -
onUnmap
protected void onUnmap(int mode, long offset, long size)
-