Class MainTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
com.mojang.blaze3d.pipeline.MainTarget
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MainTarget.Dimensionstatic final intstatic final intFields inherited from class RenderTarget
colorTexture, colorTextureView, depthTexture, depthTextureView, height, label, useDepth, useStencil, width -
Constructor Summary
ConstructorsConstructorDescriptionMainTarget(int desiredWidth, int desiredHeight) MainTarget(int desiredWidth, int desiredHeight, boolean enableStencil) -
Method Summary
Modifier and TypeMethodDescriptionprivate MainTarget.DimensionallocateAttachments(int width, int height) private @Nullable GpuTextureallocateColorAttachment(MainTarget.Dimension dimension) private @Nullable GpuTextureallocateDepthAttachment(MainTarget.Dimension dimension) private voidcreateFrameBuffer(int desiredWidth, int desiredHeight) Methods inherited from class RenderTarget
blitAndBlendToTexture, blitToScreen, copyDepthFrom, createBuffers, destroyBuffers, getColorTexture, getColorTextureView, getDepthTexture, getDepthTextureView, resize
-
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 desiredWidth, int desiredHeight) -
MainTarget
public MainTarget(int desiredWidth, int desiredHeight, boolean enableStencil)
-
-
Method Details
-
createFrameBuffer
private void createFrameBuffer(int desiredWidth, int desiredHeight) -
allocateAttachments
-
allocateColorAttachment
-
allocateDepthAttachment
-