Record Class WgpuBindings.RenderPassDescriptor
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.RenderPassDescriptor
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.RenderPassDescriptor(WgpuBindings.ColorAttachment[] colorAttachments, WgpuBindings.DepthStencilAttachment depthStencil)
extends Record
Describes a render pass.
-
Constructor Summary
ConstructorsConstructorDescriptionRenderPassDescriptor(WgpuBindings.ColorAttachment[] colorAttachments, WgpuBindings.DepthStencilAttachment depthStencil) Creates an instance of aRenderPassDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorAttachmentsrecord component.Returns the value of thedepthStencilrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderPassDescriptor
public RenderPassDescriptor(WgpuBindings.ColorAttachment[] colorAttachments, WgpuBindings.DepthStencilAttachment depthStencil) Creates an instance of aRenderPassDescriptorrecord class.- Parameters:
colorAttachments- the value for thecolorAttachmentsrecord componentdepthStencil- the value for thedepthStencilrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
colorAttachments
Returns the value of thecolorAttachmentsrecord component.- Returns:
- the value of the
colorAttachmentsrecord component
-
depthStencil
Returns the value of thedepthStencilrecord component.- Returns:
- the value of the
depthStencilrecord component
-