Class FrameBufferCache
java.lang.Object
com.mojang.renderpearl.backend.opengl.FrameBufferCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<FrameBufferCache.CacheKey> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcreateFbo(FrameBufferCache.CacheKey key, DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorAttachments, @Nullable FrameBufferAttachment depthAttachment, int mipOffset) voidintgetFbo(DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorTextures, @Nullable FrameBufferAttachment depthTexture) intgetFbo(DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorTextures, @Nullable FrameBufferAttachment depthTexture, int mipOffset)
-
Field Details
-
cache
-
-
Constructor Details
-
FrameBufferCache
public FrameBufferCache()
-
-
Method Details
-
getFbo
public int getFbo(DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorTextures, @Nullable FrameBufferAttachment depthTexture) -
getFbo
public int getFbo(DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorTextures, @Nullable FrameBufferAttachment depthTexture, int mipOffset) -
createFbo
private int createFbo(FrameBufferCache.CacheKey key, DirectStateAccess dsa, List<@Nullable FrameBufferAttachment> colorAttachments, @Nullable FrameBufferAttachment depthAttachment, int mipOffset) -
destroyFbo
-