Record Class WgpuBindings.BindGroupEntry
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.BindGroupEntry
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.BindGroupEntry(int binding, WgpuBindings.BindingResourceType resourceType, long handle, long offset, long size)
extends Record
Describes a bind group entry for buffer binding.
-
Constructor Summary
ConstructorsConstructorDescriptionBindGroupEntry(int binding, WgpuBindings.BindingResourceType resourceType, long handle, long offset, long size) Creates an instance of aBindGroupEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()Returns the value of thebindingrecord component.final booleanIndicates whether some other object is "equal to" this one.longhandle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.longoffset()Returns the value of theoffsetrecord component.Returns the value of theresourceTyperecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BindGroupEntry
public BindGroupEntry(int binding, WgpuBindings.BindingResourceType resourceType, long handle, long offset, long size) Creates an instance of aBindGroupEntryrecord class.- Parameters:
binding- the value for thebindingrecord componentresourceType- the value for theresourceTyperecord componenthandle- the value for thehandlerecord componentoffset- the value for theoffsetrecord componentsize- the value for thesizerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
binding
public int binding()Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
handle
public long handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-