Record Class VulkanPNextStruct
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.vulkan.init.VulkanPNextStruct
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final Class<?> The field for thepNextStructClassrecord component.private final intThe field for thestructSizerecord component.private final intThe field for thesTyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionVulkanPNextStruct(Class<?> pNextStructClass, int sType, int structSize) Creates an instance of aVulkanPNextStructrecord class.<T extends org.lwjgl.system.Struct<?>>VulkanPNextStruct(Class<T> pNextStructClass) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfieldOffset(String name) longfindOrCreateStructInPNextChain(long pNextChain, org.lwjgl.system.MemoryStack stack) longfindOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceFeatures2 features2, org.lwjgl.system.MemoryStack stack) longfindOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceProperties2 properties2, org.lwjgl.system.MemoryStack stack) longfindStructInPNextChain(long pNextChain) private static longfindStructInPNextChain(long pNextChain, int sType) final inthashCode()Returns a hash code value for this object.private static longpNext(long pointer) private static voidpNext(long pointer, long value) Class<?> Returns the value of thepNextStructClassrecord component.intReturns the value of thestructSizerecord component.intsType()Returns the value of thesTyperecord component.private static intsType(long pointer) private static voidsType(long pointer, int value) toString()Returns a string representation of this record class.
-
Field Details
-
pNextStructClass
The field for thepNextStructClassrecord component. -
sType
private final int sTypeThe field for thesTyperecord component. -
structSize
private final int structSizeThe field for thestructSizerecord component. -
OFFSET_PNEXT
private static final int OFFSET_PNEXT -
OFFSET_STYPE
private static final int OFFSET_STYPE
-
-
Constructor Details
-
VulkanPNextStruct
-
VulkanPNextStruct
Creates an instance of aVulkanPNextStructrecord class.- Parameters:
pNextStructClass- the value for thepNextStructClassrecord componentsType- the value for thesTyperecord componentstructSize- the value for thestructSizerecord component
-
-
Method Details
-
pNext
private static long pNext(long pointer) -
pNext
private static void pNext(long pointer, long value) -
sType
private static int sType(long pointer) -
sType
private static void sType(long pointer, int value) -
fieldOffset
-
findOrCreateStructInPNextChain
public long findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceProperties2 properties2, org.lwjgl.system.MemoryStack stack) -
findOrCreateStructInPNextChain
public long findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceFeatures2 features2, org.lwjgl.system.MemoryStack stack) -
findOrCreateStructInPNextChain
public long findOrCreateStructInPNextChain(long pNextChain, org.lwjgl.system.MemoryStack stack) -
findStructInPNextChain
public long findStructInPNextChain(long pNextChain) -
findStructInPNextChain
private static long findStructInPNextChain(long pNextChain, int sType) -
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. -
pNextStructClass
Returns the value of thepNextStructClassrecord component.- Returns:
- the value of the
pNextStructClassrecord component
-
sType
public int sType()Returns the value of thesTyperecord component.- Returns:
- the value of the
sTyperecord component
-
structSize
public int structSize()Returns the value of thestructSizerecord component.- Returns:
- the value of the
structSizerecord component
-