Class CommandEncoder

java.lang.Object
com.mojang.blaze3d.systems.CommandEncoder

public class CommandEncoder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • createRenderPass

      public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor)
    • createRenderPass

      public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor, @Nullable GpuTextureView depthTexture, OptionalDouble clearDepth)
    • clearColorTexture

      public void clearColorTexture(GpuTexture colorTexture, int clearColor)
    • clearColorAndDepthTextures

      public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth)
    • clearColorAndDepthTextures

      public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int regionX, int regionY, int regionWidth, int regionHeight)
    • clearDepthTexture

      public void clearDepthTexture(GpuTexture depthTexture, double clearDepth)
    • clearStencilTexture

      public void clearStencilTexture(GpuTexture texture, int value)
    • writeToBuffer

      public void writeToBuffer(GpuBufferSlice destination, ByteBuffer data)
    • mapBuffer

      public GpuBuffer.MappedView mapBuffer(GpuBuffer buffer, boolean read, boolean write)
    • mapBuffer

      public GpuBuffer.MappedView mapBuffer(GpuBufferSlice slice, boolean read, boolean write)
    • copyToBuffer

      public void copyToBuffer(GpuBufferSlice source, GpuBufferSlice target)
    • writeToTexture

      public void writeToTexture(GpuTexture destination, NativeImage source)
    • writeToTexture

      public void writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY)
    • writeToTexture

      public void writeToTexture(GpuTexture destination, ByteBuffer source, NativeImage.Format format, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height)
    • copyTextureToBuffer

      public void copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel)
    • copyTextureToBuffer

      public void copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel, int x, int y, int width, int height)
    • copyTextureToTexture

      public void copyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int destX, int destY, int sourceX, int sourceY, int width, int height)
    • presentTexture

      public void presentTexture(GpuTextureView textureView)
    • createFence

      public GpuFence createFence()
    • timerQueryBegin

      public GpuQuery timerQueryBegin()
    • timerQueryEnd

      public void timerQueryEnd(GpuQuery query)
    • verifyColorTexture

      private void verifyColorTexture(GpuTexture colorTexture)
    • verifyDepthTexture

      private void verifyDepthTexture(GpuTexture depthTexture)
    • verifyStencilTexture

      private void verifyStencilTexture(GpuTexture stencilTexture)
    • verifyRegion

      private void verifyRegion(GpuTexture colorTexture, int regionX, int regionY, int regionWidth, int regionHeight)