Class RenderPassDescriptor.Builder
java.lang.Object
com.mojang.renderpearl.api.commands.RenderPassDescriptor.Builder
- Enclosing class:
RenderPassDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> private @Nullable RenderPass.RenderArea -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private static RenderPass.RenderAreadefaultRenderArea(List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> colorAttachments, @Nullable RenderPassDescriptor.Attachment<OptionalDouble> depthAttachment) withColorAttachment(GpuTextureView textureView) withColorAttachment(GpuTextureView textureView, Optional<Vector4fc> clearValue) withDepthAttachment(GpuTextureView textureView) withDepthAttachment(GpuTextureView textureView, OptionalDouble clearValue) withRenderArea(RenderPass.RenderArea renderArea)
-
Field Details
-
label
-
colorAttachments
-
depthAttachment
-
renderArea
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withColorAttachment
-
withColorAttachment
public RenderPassDescriptor.Builder withColorAttachment(GpuTextureView textureView, Optional<Vector4fc> clearValue) -
withUnusedColorAttachment
-
withDepthAttachment
-
withDepthAttachment
public RenderPassDescriptor.Builder withDepthAttachment(GpuTextureView textureView, OptionalDouble clearValue) -
withRenderArea
-
build
-
defaultRenderArea
private static RenderPass.RenderArea defaultRenderArea(List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> colorAttachments, @Nullable RenderPassDescriptor.Attachment<OptionalDouble> depthAttachment)
-