Record Class WgpuBindings.DeviceLimits
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.DeviceLimits
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.DeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy)
extends Record
Device limits queried from the GPU.
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy) 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 themaxColorAttachmentsrecord component.floatReturns the value of themaxSamplerAnisotropyrecord component.intReturns the value of themaxStorageBufferBindingSizerecord component.intReturns the value of themaxTextureDimension2Drecord component.intReturns the value of themaxTextureDimension3Drecord component.intReturns the value of themaxUniformBufferBindingSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeviceLimits
public DeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy) Creates an instance of aDeviceLimitsrecord class.- Parameters:
maxTextureDimension2D- the value for themaxTextureDimension2Drecord componentmaxTextureDimension3D- the value for themaxTextureDimension3Drecord componentmaxUniformBufferBindingSize- the value for themaxUniformBufferBindingSizerecord componentmaxStorageBufferBindingSize- the value for themaxStorageBufferBindingSizerecord componentmaxColorAttachments- the value for themaxColorAttachmentsrecord componentmaxSamplerAnisotropy- the value for themaxSamplerAnisotropyrecord 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 with thecomparemethod from their corresponding wrapper classes. -
maxTextureDimension2D
public int maxTextureDimension2D()Returns the value of themaxTextureDimension2Drecord component.- Returns:
- the value of the
maxTextureDimension2Drecord component
-
maxTextureDimension3D
public int maxTextureDimension3D()Returns the value of themaxTextureDimension3Drecord component.- Returns:
- the value of the
maxTextureDimension3Drecord component
-
maxUniformBufferBindingSize
public int maxUniformBufferBindingSize()Returns the value of themaxUniformBufferBindingSizerecord component.- Returns:
- the value of the
maxUniformBufferBindingSizerecord component
-
maxStorageBufferBindingSize
public int maxStorageBufferBindingSize()Returns the value of themaxStorageBufferBindingSizerecord component.- Returns:
- the value of the
maxStorageBufferBindingSizerecord component
-
maxColorAttachments
public int maxColorAttachments()Returns the value of themaxColorAttachmentsrecord component.- Returns:
- the value of the
maxColorAttachmentsrecord component
-
maxSamplerAnisotropy
public float maxSamplerAnisotropy()Returns the value of themaxSamplerAnisotropyrecord component.- Returns:
- the value of the
maxSamplerAnisotropyrecord component
-