Class MappableRingBuffer

java.lang.Object
net.minecraft.client.renderer.MappableRingBuffer
All Implemented Interfaces:
AutoCloseable

public class MappableRingBuffer extends Object implements AutoCloseable
  • Field Details

    • BUFFER_COUNT

      private static final int BUFFER_COUNT
      See Also:
    • buffers

      private final GpuBuffer[] buffers
    • fences

      private final GpuFence[] fences
    • size

      private final int size
    • current

      private int current
  • Constructor Details

    • MappableRingBuffer

      public MappableRingBuffer(Supplier<String> pLabel, int pUsage, int pSize)
  • Method Details

    • size

      public int size()
    • currentBuffer

      public GpuBuffer currentBuffer()
    • rotate

      public void rotate()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable