Class StagingBuffer.Cpu
java.lang.Object
com.mojang.blaze3d.vertex.StagingBuffer
com.mojang.blaze3d.vertex.StagingBuffer.Cpu
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
StagingBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class StagingBuffer
StagingBuffer.BufferHandle, StagingBuffer.Uploader -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidcopyTo(CommandEncoder encoder, GpuBuffer dstBuffer, long dstOffset, long stagingBufferOffset, long copySize) protected ByteBufferMethods inherited from class StagingBuffer
create, rotateBuffer, startUploading, tryAppend
-
Field Details
-
stagingBuffer
-
-
Constructor Details
-
Cpu
private Cpu(int bufferSize)
-
-
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
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStagingBuffer
-