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 @Nullable GpuTextureprotected @Nullable GpuTextureViewprotected @Nullable GpuTextureprotected @Nullable GpuTextureViewintprotected final Stringprivate static intfinal booleanfinal booleanint -
Constructor Summary
ConstructorsConstructorDescriptionRenderTarget(@Nullable String pName, boolean pUseDepth) RenderTarget(@Nullable String pName, boolean pUseDepth, boolean useStencil) -
Method Summary
Modifier and TypeMethodDescriptionvoidblitAndBlendToTexture(GpuTextureView pTextureView) voidvoidcopyDepthFrom(RenderTarget pOtherTarget) voidcreateBuffers(int pWidth, int pHeight) void@Nullable GpuTexture@Nullable GpuTextureView@Nullable GpuTexture@Nullable GpuTextureViewvoidresize(int pWidth, int pHeight)
-
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
-
-
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) -
blitToScreen
public void blitToScreen() -
blitAndBlendToTexture
-
getColorTexture
-
getColorTextureView
-
getDepthTexture
-
getDepthTextureView
-