Class StagingBuffer.PersistentlyMapped
java.lang.Object
com.mojang.blaze3d.vertex.StagingBuffer
com.mojang.blaze3d.vertex.StagingBuffer.PersistentlyMapped
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
StagingBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class StagingBuffer
StagingBuffer.BufferHandle, StagingBuffer.Uploader -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferprivate GpuBufferprivate GpuBufferSlice.MappedViewprivate final MappableRingBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidcopyTo(CommandEncoder encoder, GpuBuffer dstBuffer, long dstOffset, long stagingBufferOffset, long copySize) protected ByteBufferprotected voidMethods inherited from class StagingBuffer
create, startUploading, tryAppend
-
Field Details
-
mappableRingBuffer
-
currentMappedView
-
currentGPUBuffer
-
currentBuffer
-
-
Constructor Details
-
PersistentlyMapped
-
-
Method Details
-
getWriteBuffer
- Specified by:
getWriteBufferin classStagingBuffer
-
copyTo
protected void copyTo(CommandEncoder encoder, GpuBuffer dstBuffer, long dstOffset, long stagingBufferOffset, long copySize) - Specified by:
copyToin classStagingBuffer
-
rotateBuffer
protected void rotateBuffer()- Overrides:
rotateBufferin classStagingBuffer
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStagingBuffer
-