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 intint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblitAndBlendToTexture(GpuTextureView output, GpuTextureView outputDepth) voidcopyColorFrom(RenderTarget source) voidcopyDepthFrom(RenderTarget source) voidcreateBuffers(int width, int height) voidbooleanhasDepth()voidresize(int width, int height)
-
Field Details
-
UNNAMED_RENDER_TARGETS
private static int UNNAMED_RENDER_TARGETS -
width
public int width -
height
public int height -
label
-
colorFormat
-
depthFormat
-
colorTexture
-
colorTextureView
-
depthTexture
-
depthTextureView
-
-
Constructor Details
-
RenderTarget
-
-
Method Details
-
resize
public void resize(int width, int height) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
copyColorFrom
-
createBuffers
public void createBuffers(int width, int height) -
blitAndBlendToTexture
-
getColorTexture
-
getColorTextureView
-
getDepthTexture
-
getDepthTextureView
-
hasDepth
public boolean hasDepth()
-