Record Class DeviceLimits
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.DeviceLimits
public record DeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for themaxAnisotropyrecord component.private final intThe field for themaxColorAttachmentsrecord component.private final longThe field for themaxMemoryAllocationSizerecord component.private final intThe field for themaxMultiDrawDirectInterleavedDrawCountrecord component.private final intThe field for themaxTextureSizerecord component.private final intThe field for theminUniformOffsetAlignmentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments) Creates an instance of aDeviceLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxAnisotropyrecord component.intReturns the value of themaxColorAttachmentsrecord component.longReturns the value of themaxMemoryAllocationSizerecord component.intReturns the value of themaxMultiDrawDirectInterleavedDrawCountrecord component.intReturns the value of themaxTextureSizerecord component.intmaxTextureSizeForFormat(GpuFormat format) intReturns the value of theminUniformOffsetAlignmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
maxAnisotropy
private final int maxAnisotropyThe field for themaxAnisotropyrecord component. -
minUniformOffsetAlignment
private final int minUniformOffsetAlignmentThe field for theminUniformOffsetAlignmentrecord component. -
maxTextureSize
private final int maxTextureSizeThe field for themaxTextureSizerecord component. -
maxMemoryAllocationSize
private final long maxMemoryAllocationSizeThe field for themaxMemoryAllocationSizerecord component. -
maxMultiDrawDirectInterleavedDrawCount
private final int maxMultiDrawDirectInterleavedDrawCountThe field for themaxMultiDrawDirectInterleavedDrawCountrecord component. -
maxColorAttachments
private final int maxColorAttachmentsThe field for themaxColorAttachmentsrecord component.
-
-
Constructor Details
-
DeviceLimits
public DeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments) Creates an instance of aDeviceLimitsrecord class.- Parameters:
maxAnisotropy- the value for themaxAnisotropyrecord componentminUniformOffsetAlignment- the value for theminUniformOffsetAlignmentrecord componentmaxTextureSize- the value for themaxTextureSizerecord componentmaxMemoryAllocationSize- the value for themaxMemoryAllocationSizerecord componentmaxMultiDrawDirectInterleavedDrawCount- the value for themaxMultiDrawDirectInterleavedDrawCountrecord componentmaxColorAttachments- the value for themaxColorAttachmentsrecord component
-
-
Method Details
-
maxTextureSizeForFormat
-
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 with thecomparemethod from their corresponding wrapper classes. -
maxAnisotropy
public int maxAnisotropy()Returns the value of themaxAnisotropyrecord component.- Returns:
- the value of the
maxAnisotropyrecord component
-
minUniformOffsetAlignment
public int minUniformOffsetAlignment()Returns the value of theminUniformOffsetAlignmentrecord component.- Returns:
- the value of the
minUniformOffsetAlignmentrecord component
-
maxTextureSize
public int maxTextureSize()Returns the value of themaxTextureSizerecord component.- Returns:
- the value of the
maxTextureSizerecord component
-
maxMemoryAllocationSize
public long maxMemoryAllocationSize()Returns the value of themaxMemoryAllocationSizerecord component.- Returns:
- the value of the
maxMemoryAllocationSizerecord component
-
maxMultiDrawDirectInterleavedDrawCount
public int maxMultiDrawDirectInterleavedDrawCount()Returns the value of themaxMultiDrawDirectInterleavedDrawCountrecord component.- Returns:
- the value of the
maxMultiDrawDirectInterleavedDrawCountrecord component
-
maxColorAttachments
public int maxColorAttachments()Returns the value of themaxColorAttachmentsrecord component.- Returns:
- the value of the
maxColorAttachmentsrecord component
-