Interface ManagedRenderTarget

All Known Implementing Classes:
RenderTargetWrapper

@API(status=EXPERIMENTAL, since="1.4.0") public interface ManagedRenderTarget
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beginWrite(boolean updateViewport)
    Begins a write operation on this render target.
    void
    Clears the content of this render target.
    void
    clear(boolean swallowErrors)
     
    void
    copyDepthFrom(com.mojang.blaze3d.pipeline.RenderTarget target)
    Copies the depth texture from another render target to this render target.
    void
    Draws this render target, scaling to the default render target's width and height.
    void
    draw(boolean disableBlend)
    Draws this render target, scaling to the default render target's width and height.
    void
    draw(int width, int height, boolean disableBlend)
     
    @Nullable com.mojang.blaze3d.pipeline.RenderTarget
     
    net.minecraft.client.renderer.RenderType
    getRenderType(net.minecraft.client.renderer.RenderType base)
    Gets a simple RenderType that is functionally identical to base, but with a different RenderStateShard.OutputStateShard that binds this render target.
  • Method Details

    • getRenderTarget

      @Nullable @Nullable com.mojang.blaze3d.pipeline.RenderTarget getRenderTarget()
    • beginWrite

      void beginWrite(boolean updateViewport)
      Begins a write operation on this render target.

      If the operation is successful, every subsequent draw call will write to this render target.

      Parameters:
      updateViewport - whether binding this render target should call RenderSystem.viewport(int, int, int, int)
    • copyDepthFrom

      void copyDepthFrom(com.mojang.blaze3d.pipeline.RenderTarget target)
      Copies the depth texture from another render target to this render target.
      Parameters:
      target - the render target to copy depth from
    • draw

      void draw()
      Draws this render target, scaling to the default render target's width and height. Disables blending by default.
    • draw

      void draw(boolean disableBlend)
      Draws this render target, scaling to the default render target's width and height.
    • draw

      void draw(int width, int height, boolean disableBlend)
    • clear

      void clear()
      Clears the content of this render target.
    • clear

      void clear(boolean swallowErrors)
    • getRenderType

      net.minecraft.client.renderer.RenderType getRenderType(net.minecraft.client.renderer.RenderType base)
      Gets a simple RenderType that is functionally identical to base, but with a different RenderStateShard.OutputStateShard that binds this render target.
      Parameters:
      base - the layer to copy
      Returns:
      a render layer using this render target
      See Also: