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
Direct-state implementation of
VanillaAdvancedFboWrapper
.-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.framebuffer.AdvancedFbo
AdvancedFbo.Builder
-
Constructor Summary
ConstructorDescriptionDSAVanillaAdvancedFboWrapper
(Supplier<com.mojang.blaze3d.pipeline.RenderTarget> renderTargetSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(float red, float green, float blue, float alpha, int clearMask, int[] clearBuffers) Clears the specified buffers.void
resolveToAdvancedFbo
(AdvancedFbo target, int mask, int filtering) Resolves this framebuffer to the provided advanced framebuffer as the target.void
resolveToFbo
(int id, int width, int height, int mask, int filtering) Resolves this framebuffer to the framebuffer with the specified id as the target.void
resolveToRenderTarget
(com.mojang.blaze3d.pipeline.RenderTarget target, int mask, int filtering) Resolves this framebuffer to the provided minecraft framebuffer as the target.Methods inherited from class foundry.veil.impl.client.render.wrapper.VanillaAdvancedFboWrapper
bind, bindDraw, clear, clear, create, drawBuffers, free, getClearMask, getColorAttachment, getColorAttachments, getDepthAttachment, getDrawBuffers, getHeight, getId, getWidth, hasColorAttachment, hasDepthAttachment, resetDrawBuffers, toRenderTarget
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.render.framebuffer.AdvancedFbo
bindRead, clear, getColorRenderAttachment, getColorTextureAttachment, getDepthRenderAttachment, getDepthTextureAttachment, isColorRenderAttachment, isColorTextureAttachment, isDepthMutableTextureAttachment, isDepthRenderAttachment, isDepthTextureAttachment, isMutableColorTextureAttachment, resolveToAdvancedFbo, resolveToRenderTarget, resolveToScreen, resolveToScreen, setColorAttachmentTexture, setColorAttachmentTexture, setDepthAttachmentTexture, setDepthAttachmentTexture
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
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 intowidth
- The width of the framebuffer being copied intoheight
- The height of the framebuffer being copied intomask
- The buffers to copy into the provided framebufferfiltering
- The filter to use if this framebuffer and the provided framebuffer are different sizes
-
resolveToAdvancedFbo
Description copied from interface:AdvancedFbo
Resolves this framebuffer to the provided advanced framebuffer as the target.- Parameters:
target
- The target framebuffer to copy data intomask
- The buffers to copy into the provided framebufferfiltering
- 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 intomask
- The buffers to copy into the provided framebufferfiltering
- The filter to use if this framebuffer and the provided framebuffer are different sizes
-