Record Class RenderTargetDescriptor
java.lang.Object
java.lang.Record
dev.engine.graphics.target.RenderTargetDescriptor
public record RenderTargetDescriptor(int width, int height, List<TextureFormat> colorAttachments, TextureFormat depthFormat)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRenderTargetDescriptor(int width, int height, List<TextureFormat> colorAttachments, TextureFormat depthFormat) Creates an instance of aRenderTargetDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderTargetDescriptorcolor(int width, int height, TextureFormat format) Returns the value of thecolorAttachmentsrecord component.static RenderTargetDescriptorcolorDepth(int width, int height, TextureFormat colorFormat, TextureFormat depthFormat) Returns the value of thedepthFormatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
RenderTargetDescriptor
public RenderTargetDescriptor(int width, int height, List<TextureFormat> colorAttachments, TextureFormat depthFormat) Creates an instance of aRenderTargetDescriptorrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentcolorAttachments- the value for thecolorAttachmentsrecord componentdepthFormat- the value for thedepthFormatrecord component
-
-
Method Details
-
color
-
colorDepth
public static RenderTargetDescriptor colorDepth(int width, int height, TextureFormat colorFormat, TextureFormat depthFormat) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
colorAttachments
Returns the value of thecolorAttachmentsrecord component.- Returns:
- the value of the
colorAttachmentsrecord component
-
depthFormat
Returns the value of thedepthFormatrecord component.- Returns:
- the value of the
depthFormatrecord component
-