Class DSAVanillaAdvancedFboWrapper

java.lang.Object
foundry.veil.impl.client.render.wrapper.VanillaAdvancedFboWrapper
foundry.veil.impl.client.render.wrapper.DSAVanillaAdvancedFboWrapper
All Implemented Interfaces:
AdvancedFbo, AutoCloseable, org.lwjgl.system.NativeResource

@Internal public class DSAVanillaAdvancedFboWrapper extends VanillaAdvancedFboWrapper
Direct-state implementation of VanillaAdvancedFboWrapper.
  • Constructor Details

    • DSAVanillaAdvancedFboWrapper

      public DSAVanillaAdvancedFboWrapper(Supplier<com.mojang.blaze3d.pipeline.RenderTarget> renderTargetSupplier)
  • Method Details

    • clear

      public void clear(float red, float green, float blue, float alpha, int clearMask, int[] clearBuffers)
      Description copied from interface: AdvancedFbo
      Clears the specified buffers.
      Parameters:
      clearMask - The buffers to clear
    • resolveToFbo

      public void resolveToFbo(int id, int width, int height, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the framebuffer with the specified id as the target.
      Parameters:
      id - The id of the framebuffer to copy into
      width - The width of the framebuffer being copied into
      height - The height of the framebuffer being copied into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes
    • resolveToAdvancedFbo

      public void resolveToAdvancedFbo(AdvancedFbo target, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the provided advanced framebuffer as the target.
      Parameters:
      target - The target framebuffer to copy data into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes
    • resolveToRenderTarget

      public void resolveToRenderTarget(com.mojang.blaze3d.pipeline.RenderTarget target, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the provided minecraft framebuffer as the target.
      Parameters:
      target - The target framebuffer to copy data into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes