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 GpuTexture
protected GpuTextureView
protected GpuTexture
protected GpuTextureView
int
protected final String
private static int
final boolean
final boolean
int
int
int
-
Constructor Summary
ConstructorsConstructorDescriptionRenderTarget
(String pName, boolean pUseDepth) RenderTarget
(String pName, boolean pUseDepth, boolean useStencil) -
Method Summary
Modifier and TypeMethodDescriptionvoid
blitAndBlendToTexture
(GpuTextureView pTextureView) void
void
copyDepthFrom
(RenderTarget pOtherTarget) void
createBuffers
(int pWidth, int pHeight) void
void
resize
(int pWidth, int pHeight) void
setFilterMode
(FilterMode pFilterMode) private void
setFilterMode
(FilterMode pFilterMode, boolean pForce)
-
Field Details
-
UNNAMED_RENDER_TARGETS
private static int UNNAMED_RENDER_TARGETS -
width
public int width -
height
public int height -
viewWidth
public int viewWidth -
viewHeight
public int viewHeight -
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
-