Package com.mojang.blaze3d.pipeline
Class MainTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
com.mojang.blaze3d.pipeline.MainTarget
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final MainTarget.Dimensionstatic final intstatic final intFields inherited from class com.mojang.blaze3d.pipeline.RenderTarget
colorTexture, depthTexture, filterMode, height, label, useDepth, useStencil, viewHeight, viewWidth, width -
Constructor Summary
ConstructorsConstructorDescriptionMainTarget(int width, int height) MainTarget(int width, int height, boolean enableStencil) -
Method Summary
Modifier and TypeMethodDescriptionprivate MainTarget.DimensionallocateAttachments(int width, int height) private GpuTextureallocateColorAttachment(MainTarget.Dimension dimension) private GpuTextureallocateDepthAttachment(MainTarget.Dimension dimension) private voidcreateFrameBuffer(int width, int height) Methods inherited from class com.mojang.blaze3d.pipeline.RenderTarget
blitAndBlendToTexture, blitToScreen, copyDepthFrom, createBuffers, destroyBuffers, getColorTexture, getDepthTexture, resize, setFilterMode
-
Field Details
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT- See Also:
-
DEFAULT_DIMENSIONS
-
-
Constructor Details
-
MainTarget
public MainTarget(int width, int height) -
MainTarget
public MainTarget(int width, int height, boolean enableStencil)
-
-
Method Details
-
createFrameBuffer
private void createFrameBuffer(int width, int height) -
allocateAttachments
-
allocateColorAttachment
-
allocateDepthAttachment
-