Class GlTransientMemory
java.lang.Object
com.mojang.blaze3d.opengl.GlTransientMemory
- All Implemented Interfaces:
TransientMemory, AutoCloseable
- Direct Known Subclasses:
GlTransientMemory.Fallback, GlTransientMemory.PersistentMapping
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprotected final BufferStorageprivate final TransientBlockAllocator<Long> protected final GlDebugLabelprotected final DirectStateAccess(package private) final GlCommandEncoderprivate static final longprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateCpu(long size, long alignment, long minimumAllocation, long elementSize) voidclose()voidrotate()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TransientMemory
allocateCpu, allocateGpu, allocateGpu, allocateGpuMapped, allocateGpuMapped, allocateStaging, allocateStaging, multiUploadGpu, multiUploadStaging, uploadGpu, uploadGpu, uploadGpu, uploadGpu, uploadStaging, uploadStaging, uploadStaging, uploadStaging
-
Field Details
-
BLOCK_SIZE
private static final long BLOCK_SIZE- See Also:
-
MAX_CPU_ALIGNMENT
private static final long MAX_CPU_ALIGNMENT- See Also:
-
MAX_GPU_ALIGNMENT
private static final long MAX_GPU_ALIGNMENT -
encoder
-
dsa
-
bufferStorage
-
debugLabels
-
cpuBlockAllocator
-
-
Constructor Details
-
GlTransientMemory
GlTransientMemory(GlDevice device, GlCommandEncoder encoder)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
allocateCpu
- Specified by:
allocateCpuin interfaceTransientMemory
-
rotate
public void rotate()
-