Package com.mojang.blaze3d.pipeline
Class RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- Direct Known Subclasses:
MainTarget,TextureTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GpuTextureprotected GpuTextureViewprotected GpuTextureprotected GpuTextureViewintprotected final Stringprivate static intfinal booleanfinal booleanint -
Constructor Summary
ConstructorsConstructorDescriptionRenderTarget(String pName, boolean pUseDepth) RenderTarget(String pName, boolean pUseDepth, boolean useStencil) -
Method Summary
Modifier and TypeMethodDescriptionvoidblitAndBlendToTexture(GpuTextureView pTextureView) voidvoidcopyDepthFrom(RenderTarget pOtherTarget) voidcreateBuffers(int pWidth, int pHeight) voidvoidresize(int pWidth, int pHeight) voidsetFilterMode(FilterMode pFilterMode) private voidsetFilterMode(FilterMode pFilterMode, boolean pForce)
-
Field Details
-
UNNAMED_RENDER_TARGETS
private static int UNNAMED_RENDER_TARGETS -
width
public int width -
height
public int height -
label
-
useDepth
public final boolean useDepth -
useStencil
public final boolean useStencil -
colorTexture
-
colorTextureView
-
depthTexture
-
depthTextureView
-
filterMode
-
-
Constructor Details
-
RenderTarget
-
RenderTarget
-
-
Method Details
-
resize
public void resize(int pWidth, int pHeight) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
createBuffers
public void createBuffers(int pWidth, int pHeight) -
setFilterMode
-
setFilterMode
-
blitToScreen
public void blitToScreen() -
blitAndBlendToTexture
-
getColorTexture
-
getColorTextureView
-
getDepthTexture
-
getDepthTextureView
-