diff --git a/generators/src/main/kotlin/overrungl/gen/Struct.kt b/generators/src/main/kotlin/overrungl/gen/Struct.kt index 9d491663..23db046c 100644 --- a/generators/src/main/kotlin/overrungl/gen/Struct.kt +++ b/generators/src/main/kotlin/overrungl/gen/Struct.kt @@ -29,6 +29,7 @@ class Struct( private val union: Boolean = false, action: Struct.() -> Unit ) { + private val kindString = if (union) "union" else "struct" private val members = mutableListOf() val pointerType: CustomTypeSpec by lazy { val className = ClassName.get(packageName, name) @@ -107,8 +108,8 @@ class Struct( sb.appendLine( when (it) { is ValueStructMember -> "/// [VarHandle][#VH_${it.name}] - [Getter][#${it.name}()] - [Setter][#${it.name}(${it.type.carrier})]" - is ByValueStructStructMember -> "/// [Byte offset][#OFFSET_${it.name}] - [Memory layout][#ML_${it.name}] - [Getter][#${it.name}()] - [Setter][#${it.name}(${it.type.carrier})]" - is FixedSizeStructMember -> "/// [Byte offset handle][#MH_${it.name}] - [Memory layout][#ML_${it.name}] - [Getter][#${it.name}(long)] - [Setter][#${it.name}(long, ${it.type.carrier})]" + is ByValueStructStructMember, is FixedSizeStructMember -> + "/// [Byte offset][#OFFSET_${it.name}] - [Memory layout][#ML_${it.name}] - [Getter][#${it.name}()] - [Setter][#${it.name}(${it.type.carrier})]" } ) } @@ -118,7 +119,7 @@ class Struct( /// ## Layout /// [Java definition][#LAYOUT] /// ```c - /// typedef ${if (union) "union" else "struct"} ${if (cType != null) "$cType " else ""}{ + /// typedef $kindString ${if (cType != null) "$cType " else ""}{ """.trimIndent() ) members.forEach { @@ -134,7 +135,7 @@ class Struct( sb.appendLine( """ public final class $name extends ${if (union) "Union" else "Struct"} { - /// The ${if (union) "union" else "struct"} layout of `$cType`. + /// The $kindString layout of `$cType`. public static final ${if (union) "Union" else "Struct"}Layout LAYOUT = ${if (union) "MemoryLayout.unionLayout" else "LayoutBuilder.struct"}( """.trimIndent() ) @@ -154,7 +155,7 @@ class Struct( """.trimMargin() ) - is ByValueStructStructMember -> sb.appendLine( + is ByValueStructStructMember, is FixedSizeStructMember -> sb.appendLine( """ | /// The byte offset of `${it.name}`. | public static final long OFFSET_${it.name} = LAYOUT.byteOffset(PathElement.groupElement("${it.name}")); @@ -162,15 +163,6 @@ class Struct( | public static final MemoryLayout ML_${it.name} = LAYOUT.select(PathElement.groupElement("${it.name}")); """.trimMargin() ) - - is FixedSizeStructMember -> sb.appendLine( - """ - | /// The byte offset handle of `${it.name}` of type `(long baseOffset, long elementIndex)long`. - | public static final MethodHandle MH_${it.name} = LAYOUT.byteOffsetHandle(PathElement.groupElement("${it.name}"), PathElement.sequenceElement()); - | /// The memory layout of `${it.name}`. - | public static final MemoryLayout ML_${it.name} = LAYOUT.select(PathElement.groupElement("${it.name}")); - """.trimMargin() - ) } } } @@ -223,26 +215,41 @@ class Struct( """.trimMargin() ) + // slice + sb.appendLine( + """ + | /// Creates a slice of `$name`. + | /// @param index the index of the $kindString buffer + | /// @return the slice of `$name` + | public $name asSlice(long index) { return new $name(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + | + | /// Creates a slice of `$name`. + | /// @param index the index of the $kindString buffer + | /// @param count the count + | /// @return the slice of `$name` + | public $name asSlice(long index, long count) { return new $name(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + | + """.trimMargin() + ) + if (!opaque) { members.forEach { // getters when (it) { - is ValueStructMember, is ByValueStructStructMember -> { + is ValueStructMember, is ByValueStructStructMember, is FixedSizeStructMember -> { // static sb.appendLine( """ | /// {@return `${it.name}` at the given index} - | /// @param segment the segment of the struct + | /// @param segment the segment of the $kindString | /// @param index the index | public static ${it.type.carrierWithC()} get_${it.name}(MemorySegment segment, long index) { ${ when (it) { is ValueStructMember -> "return (${it.type.carrier}) VH_${it.name}.get(segment, 0L, index);" - is ByValueStructStructMember -> + is ByValueStructStructMember, is FixedSizeStructMember -> """return segment.asSlice(LAYOUT.scale(OFFSET_${it.name}, index), ML_${it.name});""" - - else -> error("should not reach here") } } } """.trimMargin() @@ -250,7 +257,7 @@ class Struct( sb.appendLine( """ | /// {@return `${it.name}`} - | /// @param segment the segment of the struct + | /// @param segment the segment of the $kindString | public static ${it.type.carrierWithC()} get_${it.name}(MemorySegment segment) { return $name.get_${it.name}(segment, 0L); } """.trimMargin() ) @@ -269,63 +276,22 @@ class Struct( """.trimMargin() ) } - - is FixedSizeStructMember -> { - // static - sb.appendLine( - """ - | /// {@return `${it.name}` at the given index} - | /// @param segment the segment of the struct - | /// @param index the index of the struct buffer - | /// @param elementIndex the index of the element - | public static ${it.type.carrierWithC()} get_${it.name}(MemorySegment segment, long index, long elementIndex) { - | try { return segment.asSlice(LAYOUT.scale((long) MH_${it.name}.invokeExact(0L, elementIndex), index), ML_${it.name}); } - | catch (Throwable e) { throw new RuntimeException(e); } - | } - """.trimMargin() - ) - sb.appendLine( - """ - | /// {@return `${it.name}`} - | /// @param segment the segment of the struct - | /// @param elementIndex the index of the element - | public static ${it.type.carrierWithC()} get_${it.name}(MemorySegment segment, long elementIndex) { return $name.get_${it.name}(segment, 0L, elementIndex); } - """.trimMargin() - ) - // instance - sb.appendLine( - """ - | /// {@return `${it.name}` at the given index} - | /// @param index the index of the struct buffer - | /// @param elementIndex the index of the element - | public ${it.type.carrierWithC()} ${it.name}At(long index, long elementIndex) { return $name.get_${it.name}(this.segment(), index, elementIndex); } - """.trimMargin() - ) - sb.appendLine( - """ - | /// {@return `${it.name}`} - | /// @param elementIndex the index of the element - | public ${it.type.carrierWithC()} ${it.name}(long elementIndex) { return $name.get_${it.name}(this.segment(), elementIndex); } - """.trimMargin() - ) - } } // setters when (it) { - is ValueStructMember, is ByValueStructStructMember -> { + is ValueStructMember, is ByValueStructStructMember, is FixedSizeStructMember -> { // static sb.appendLine( """ | /// Sets `${it.name}` with the given value at the given index. - | /// @param segment the segment of the struct + | /// @param segment the segment of the $kindString | /// @param index the index | /// @param value the value | public static void set_${it.name}(MemorySegment segment, long index, ${it.type.carrierWithC()} value) { ${ when (it) { is ValueStructMember -> "VH_${it.name}.set(segment, 0L, index, value);" - is ByValueStructStructMember -> """MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_${it.name}, index), ML_${it.name}.byteSize());""" - else -> error("should not reach here") + is ByValueStructStructMember, is FixedSizeStructMember -> """MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_${it.name}, index), ML_${it.name}.byteSize());""" } } } """.trimMargin() @@ -333,7 +299,7 @@ class Struct( sb.appendLine( """ | /// Sets `${it.name}` with the given value. - | /// @param segment the segment of the struct + | /// @param segment the segment of the $kindString | /// @param value the value | public static void set_${it.name}(MemorySegment segment, ${it.type.carrierWithC()} value) { $name.set_${it.name}(segment, 0L, value); } """.trimMargin() @@ -357,52 +323,6 @@ class Struct( """.trimMargin() ) } - - is FixedSizeStructMember -> { - // static - sb.appendLine( - """ - | /// Sets `${it.name}` with the given value at the given index. - | /// @param segment the segment of the struct - | /// @param index the index of the struct buffer - | /// @param elementIndex the index of the element - | /// @param value the value - | public static void set_${it.name}(MemorySegment segment, long index, long elementIndex, ${it.type.carrierWithC()} value) { - | try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_${it.name}.invokeExact(0L, elementIndex), index), ML_${it.name}.byteSize()); } - | catch (Throwable e) { throw new RuntimeException(e); } - | } - """.trimMargin() - ) - sb.appendLine( - """ - | /// Sets `${it.name}` with the given value. - | /// @param segment the segment of the struct - | /// @param elementIndex the index of the element - | /// @param value the value - | public static void set_${it.name}(MemorySegment segment, long elementIndex, ${it.type.carrierWithC()} value) { $name.set_${it.name}(segment, 0L, elementIndex, value); } - """.trimMargin() - ) - // instance - sb.appendLine( - """ - | /// Sets `${it.name}` with the given value at the given index. - | /// @param index the index of the struct buffer - | /// @param elementIndex the index of the element - | /// @param value the value - | /// @return `this` - | public $name ${it.name}At(long index, long elementIndex, ${it.type.carrierWithC()} value) { $name.set_${it.name}(this.segment(), index, elementIndex, value); return this; } - """.trimMargin() - ) - sb.appendLine( - """ - | /// Sets `${it.name}` with the given value. - | /// @param elementIndex the index of the element - | /// @param value the value - | /// @return `this` - | public $name ${it.name}(long elementIndex, ${it.type.carrierWithC()} value) { $name.set_${it.name}(this.segment(), elementIndex, value); return this; } - """.trimMargin() - ) - } } sb.appendLine() diff --git a/generators/vulkan/src/main/kotlin/overrungl/vulkan/VkDowncall.kt b/generators/vulkan/src/main/kotlin/overrungl/vulkan/VkDowncall.kt index 343e80b5..b576debe 100644 --- a/generators/vulkan/src/main/kotlin/overrungl/vulkan/VkDowncall.kt +++ b/generators/vulkan/src/main/kotlin/overrungl/vulkan/VkDowncall.kt @@ -26,6 +26,7 @@ class VkDowncall( write: Boolean = true, action: VkDowncall.() -> Unit ) { + var modifier: String? = null val imports = mutableSetOf() val extends = mutableListOf() val fields = mutableListOf() @@ -192,7 +193,11 @@ class VkDowncall( ) if (packageName != vulkanPackage) sb.appendLine("import overrungl.vulkan.*;") imports.sorted().forEach { sb.appendLine("import $it;") } - sb.append("public class $className") + sb.append("public ") + if (modifier != null) { + sb.append("$modifier ") + } + sb.append("class $className") if (extends.isNotEmpty()) { sb.append(" extends ${extends.joinToString(", ")}") } diff --git a/generators/vulkan/src/main/kotlin/overrungl/vulkan/VulkanGenerator.kt b/generators/vulkan/src/main/kotlin/overrungl/vulkan/VulkanGenerator.kt index 45173952..cdc50fb8 100644 --- a/generators/vulkan/src/main/kotlin/overrungl/vulkan/VulkanGenerator.kt +++ b/generators/vulkan/src/main/kotlin/overrungl/vulkan/VulkanGenerator.kt @@ -284,7 +284,7 @@ fun main() { } } nameIndex++ - if (nameIndex < childNodeList.length - 1) { + if (nameIndex < childNodeList.length) { // scan fixed size array val sb = StringBuilder() for (i2 in nameIndex until childNodeList.length) { @@ -297,7 +297,9 @@ fun main() { } } } - fixedSize = sb.split('[', ']')[1] + if (sb.startsWith("[")) { + fixedSize = sb.split('[', ']')[1] + } } members.add(VkStructMember(typeComp, memberName!!, fixedSize)) if (fixedSize != null && fixedSize.startsWith("VK_")) { @@ -575,6 +577,8 @@ fun main() { if (featureNumber == "1.0") { customCode = """ + public static final MemorySegment VK_NULL_HANDLE = MemorySegment.NULL; + public static int VK_MAKE_API_VERSION(int variant, int major, int minor, int patch) { return (variant << 29) | (major << 22) | (minor << 12) | patch; } @@ -671,19 +675,24 @@ fun main() { addReqEnums(extReqEnums) addReqCommand(extReqCommands, commandMap, commandAliasMap) - constructor = buildString { - append("public $extName(") - when (extType) { - "device" -> append("""@CType("VkDevice") MemorySegment device""") - "instance" -> append("""@CType("VkInstance") MemorySegment instance""") - } - appendLine(", VKLoadFunc func) {") - extReqCommands.forEach { command -> - append(""" PFN_$command = func.invoke($extType, "$command"""") - commandAliasMap[command]?.onEach { append(""", "$it"""") } - appendLine(");") + if (extReqCommands.isEmpty()){ + modifier = "final" + constructor = "private $extName() { }" + }else { + constructor = buildString { + append("public $extName(") + when (extType) { + "device" -> append("""@CType("VkDevice") MemorySegment device""") + "instance" -> append("""@CType("VkInstance") MemorySegment instance""") + } + appendLine(", VKLoadFunc func) {") + extReqCommands.forEach { command -> + append(""" PFN_$command = func.invoke($extType, "$command"""") + commandAliasMap[command]?.onEach { append(""", "$it"""") } + appendLine(");") + } + append("}") } - append("}") } } extensionDowncalls[rawName] = downcall diff --git a/modules/overrungl.core/src/main/java/overrungl/util/MemoryStack.java b/modules/overrungl.core/src/main/java/overrungl/util/MemoryStack.java index b10e038e..c6d757b2 100644 --- a/modules/overrungl.core/src/main/java/overrungl/util/MemoryStack.java +++ b/modules/overrungl.core/src/main/java/overrungl/util/MemoryStack.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2024 Overrun Organization + * Copyright (c) 2024-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -168,9 +168,7 @@ private MemorySegment trySlice(long byteSize, long byteAlignment) { /** * {@inheritDoc} * The returned memory segment is a slice of the {@linkplain #segment() backing segment} - * and is not initialized with zero. - *

- * Use {@link MemorySegment#fill(byte) fill((byte)0)} to initialize with zero. + * and is initialized with zero. * * @throws IndexOutOfBoundsException if there is not enough space to allocate * @throws IllegalArgumentException if {@code byteSize < 0}, {@code byteAlignment <= 0}, @@ -184,7 +182,7 @@ public MemorySegment allocate(long byteSize, long byteAlignment) { if (byteAlignment <= 0 || ((byteAlignment & (byteAlignment - 1)) != 0L)) { throw new IllegalArgumentException("Invalid alignment constraint: " + byteAlignment); } - return trySlice(byteSize, byteAlignment); + return trySlice(byteSize, byteAlignment).fill((byte) 0); } /** diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWAllocator.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWAllocator.java index fdd6be24..d0a41d7d 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWAllocator.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWAllocator.java @@ -95,6 +95,17 @@ public final class GLFWAllocator extends Struct { /// @return the allocated `GLFWAllocator` public static GLFWAllocator alloc(SegmentAllocator allocator, long count) { return new GLFWAllocator(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `GLFWAllocator`. + /// @param index the index of the struct buffer + /// @return the slice of `GLFWAllocator` + public GLFWAllocator asSlice(long index) { return new GLFWAllocator(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `GLFWAllocator`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `GLFWAllocator` + public GLFWAllocator asSlice(long index, long count) { return new GLFWAllocator(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `allocate` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGamepadState.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGamepadState.java index 8497acb2..e470a622 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGamepadState.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGamepadState.java @@ -26,9 +26,9 @@ /// ## Members /// ### buttons -/// [Byte offset handle][#MH_buttons] - [Memory layout][#ML_buttons] - [Getter][#buttons(long)] - [Setter][#buttons(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_buttons] - [Memory layout][#ML_buttons] - [Getter][#buttons()] - [Setter][#buttons(java.lang.foreign.MemorySegment)] /// ### axes -/// [Byte offset handle][#MH_axes] - [Memory layout][#ML_axes] - [Getter][#axes(long)] - [Setter][#axes(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_axes] - [Memory layout][#ML_axes] - [Getter][#axes()] - [Setter][#axes(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -43,12 +43,12 @@ public final class GLFWGamepadState extends Struct { MemoryLayout.sequenceLayout(15, ValueLayout.JAVA_BYTE).withName("buttons"), MemoryLayout.sequenceLayout(6, ValueLayout.JAVA_FLOAT).withName("axes") ); - /// The byte offset handle of `buttons` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_buttons = LAYOUT.byteOffsetHandle(PathElement.groupElement("buttons"), PathElement.sequenceElement()); + /// The byte offset of `buttons`. + public static final long OFFSET_buttons = LAYOUT.byteOffset(PathElement.groupElement("buttons")); /// The memory layout of `buttons`. public static final MemoryLayout ML_buttons = LAYOUT.select(PathElement.groupElement("buttons")); - /// The byte offset handle of `axes` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_axes = LAYOUT.byteOffsetHandle(PathElement.groupElement("axes"), PathElement.sequenceElement()); + /// The byte offset of `axes`. + public static final long OFFSET_axes = LAYOUT.byteOffset(PathElement.groupElement("axes")); /// The memory layout of `axes`. public static final MemoryLayout ML_axes = LAYOUT.select(PathElement.groupElement("axes")); @@ -87,94 +87,77 @@ public final class GLFWGamepadState extends Struct { /// @return the allocated `GLFWGamepadState` public static GLFWGamepadState alloc(SegmentAllocator allocator, long count) { return new GLFWGamepadState(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `GLFWGamepadState`. + /// @param index the index of the struct buffer + /// @return the slice of `GLFWGamepadState` + public GLFWGamepadState asSlice(long index) { return new GLFWGamepadState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `GLFWGamepadState`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `GLFWGamepadState` + public GLFWGamepadState asSlice(long index, long count) { return new GLFWGamepadState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `buttons` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("unsigned char[15]") java.lang.foreign.MemorySegment get_buttons(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_buttons.invokeExact(0L, elementIndex), index), ML_buttons); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("unsigned char[15]") java.lang.foreign.MemorySegment get_buttons(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_buttons, index), ML_buttons); } /// {@return `buttons`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("unsigned char[15]") java.lang.foreign.MemorySegment get_buttons(MemorySegment segment, long elementIndex) { return GLFWGamepadState.get_buttons(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("unsigned char[15]") java.lang.foreign.MemorySegment get_buttons(MemorySegment segment) { return GLFWGamepadState.get_buttons(segment, 0L); } /// {@return `buttons` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("unsigned char[15]") java.lang.foreign.MemorySegment buttonsAt(long index, long elementIndex) { return GLFWGamepadState.get_buttons(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("unsigned char[15]") java.lang.foreign.MemorySegment buttonsAt(long index) { return GLFWGamepadState.get_buttons(this.segment(), index); } /// {@return `buttons`} - /// @param elementIndex the index of the element - public @CType("unsigned char[15]") java.lang.foreign.MemorySegment buttons(long elementIndex) { return GLFWGamepadState.get_buttons(this.segment(), elementIndex); } + public @CType("unsigned char[15]") java.lang.foreign.MemorySegment buttons() { return GLFWGamepadState.get_buttons(this.segment()); } /// Sets `buttons` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_buttons(MemorySegment segment, long index, long elementIndex, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_buttons.invokeExact(0L, elementIndex), index), ML_buttons.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_buttons(MemorySegment segment, long index, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_buttons, index), ML_buttons.byteSize()); } /// Sets `buttons` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_buttons(MemorySegment segment, long elementIndex, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_buttons(MemorySegment segment, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(segment, 0L, value); } /// Sets `buttons` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public GLFWGamepadState buttonsAt(long index, long elementIndex, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(this.segment(), index, elementIndex, value); return this; } + public GLFWGamepadState buttonsAt(long index, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(this.segment(), index, value); return this; } /// Sets `buttons` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public GLFWGamepadState buttons(long elementIndex, @CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(this.segment(), elementIndex, value); return this; } + public GLFWGamepadState buttons(@CType("unsigned char[15]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_buttons(this.segment(), value); return this; } /// {@return `axes` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("float[6]") java.lang.foreign.MemorySegment get_axes(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_axes.invokeExact(0L, elementIndex), index), ML_axes); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("float[6]") java.lang.foreign.MemorySegment get_axes(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_axes, index), ML_axes); } /// {@return `axes`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("float[6]") java.lang.foreign.MemorySegment get_axes(MemorySegment segment, long elementIndex) { return GLFWGamepadState.get_axes(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("float[6]") java.lang.foreign.MemorySegment get_axes(MemorySegment segment) { return GLFWGamepadState.get_axes(segment, 0L); } /// {@return `axes` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("float[6]") java.lang.foreign.MemorySegment axesAt(long index, long elementIndex) { return GLFWGamepadState.get_axes(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("float[6]") java.lang.foreign.MemorySegment axesAt(long index) { return GLFWGamepadState.get_axes(this.segment(), index); } /// {@return `axes`} - /// @param elementIndex the index of the element - public @CType("float[6]") java.lang.foreign.MemorySegment axes(long elementIndex) { return GLFWGamepadState.get_axes(this.segment(), elementIndex); } + public @CType("float[6]") java.lang.foreign.MemorySegment axes() { return GLFWGamepadState.get_axes(this.segment()); } /// Sets `axes` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_axes(MemorySegment segment, long index, long elementIndex, @CType("float[6]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_axes.invokeExact(0L, elementIndex), index), ML_axes.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_axes(MemorySegment segment, long index, @CType("float[6]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_axes, index), ML_axes.byteSize()); } /// Sets `axes` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_axes(MemorySegment segment, long elementIndex, @CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_axes(MemorySegment segment, @CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(segment, 0L, value); } /// Sets `axes` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public GLFWGamepadState axesAt(long index, long elementIndex, @CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(this.segment(), index, elementIndex, value); return this; } + public GLFWGamepadState axesAt(long index, @CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(this.segment(), index, value); return this; } /// Sets `axes` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public GLFWGamepadState axes(long elementIndex, @CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(this.segment(), elementIndex, value); return this; } + public GLFWGamepadState axes(@CType("float[6]") java.lang.foreign.MemorySegment value) { GLFWGamepadState.set_axes(this.segment(), value); return this; } } diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGammaRamp.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGammaRamp.java index 2a0f389a..c568fb7a 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGammaRamp.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWGammaRamp.java @@ -95,6 +95,17 @@ public final class GLFWGammaRamp extends Struct { /// @return the allocated `GLFWGammaRamp` public static GLFWGammaRamp alloc(SegmentAllocator allocator, long count) { return new GLFWGammaRamp(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `GLFWGammaRamp`. + /// @param index the index of the struct buffer + /// @return the slice of `GLFWGammaRamp` + public GLFWGammaRamp asSlice(long index) { return new GLFWGammaRamp(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `GLFWGammaRamp`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `GLFWGammaRamp` + public GLFWGammaRamp asSlice(long index, long count) { return new GLFWGammaRamp(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `red` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWImage.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWImage.java index 1eae9171..fa72e871 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWImage.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWImage.java @@ -89,6 +89,17 @@ public final class GLFWImage extends Struct { /// @return the allocated `GLFWImage` public static GLFWImage alloc(SegmentAllocator allocator, long count) { return new GLFWImage(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `GLFWImage`. + /// @param index the index of the struct buffer + /// @return the slice of `GLFWImage` + public GLFWImage asSlice(long index) { return new GLFWImage(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `GLFWImage`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `GLFWImage` + public GLFWImage asSlice(long index, long count) { return new GLFWImage(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `width` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVidMode.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVidMode.java index ea6404af..d0327433 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVidMode.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVidMode.java @@ -107,6 +107,17 @@ public final class GLFWVidMode extends Struct { /// @return the allocated `GLFWVidMode` public static GLFWVidMode alloc(SegmentAllocator allocator, long count) { return new GLFWVidMode(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `GLFWVidMode`. + /// @param index the index of the struct buffer + /// @return the slice of `GLFWVidMode` + public GLFWVidMode asSlice(long index) { return new GLFWVidMode(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `GLFWVidMode`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `GLFWVidMode` + public GLFWVidMode asSlice(long index, long count) { return new GLFWVidMode(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `width` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDFilterItem.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDFilterItem.java index 2baf0a22..a8be1cdf 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDFilterItem.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDFilterItem.java @@ -83,6 +83,17 @@ public final class NFDFilterItem extends Struct { /// @return the allocated `NFDFilterItem` public static NFDFilterItem alloc(SegmentAllocator allocator, long count) { return new NFDFilterItem(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `NFDFilterItem`. + /// @param index the index of the struct buffer + /// @return the slice of `NFDFilterItem` + public NFDFilterItem asSlice(long index) { return new NFDFilterItem(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `NFDFilterItem`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `NFDFilterItem` + public NFDFilterItem asSlice(long index, long count) { return new NFDFilterItem(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `name` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDOpenDialogArgs.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDOpenDialogArgs.java index effcad2b..7de215c9 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDOpenDialogArgs.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDOpenDialogArgs.java @@ -97,6 +97,17 @@ public final class NFDOpenDialogArgs extends Struct { /// @return the allocated `NFDOpenDialogArgs` public static NFDOpenDialogArgs alloc(SegmentAllocator allocator, long count) { return new NFDOpenDialogArgs(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `NFDOpenDialogArgs`. + /// @param index the index of the struct buffer + /// @return the slice of `NFDOpenDialogArgs` + public NFDOpenDialogArgs asSlice(long index) { return new NFDOpenDialogArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `NFDOpenDialogArgs`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `NFDOpenDialogArgs` + public NFDOpenDialogArgs asSlice(long index, long count) { return new NFDOpenDialogArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `filterList` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDPickFolderArgs.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDPickFolderArgs.java index a9090526..95585969 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDPickFolderArgs.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDPickFolderArgs.java @@ -85,6 +85,17 @@ public final class NFDPickFolderArgs extends Struct { /// @return the allocated `NFDPickFolderArgs` public static NFDPickFolderArgs alloc(SegmentAllocator allocator, long count) { return new NFDPickFolderArgs(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `NFDPickFolderArgs`. + /// @param index the index of the struct buffer + /// @return the slice of `NFDPickFolderArgs` + public NFDPickFolderArgs asSlice(long index) { return new NFDPickFolderArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `NFDPickFolderArgs`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `NFDPickFolderArgs` + public NFDPickFolderArgs asSlice(long index, long count) { return new NFDPickFolderArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `defaultPath` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDSaveDialogArgs.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDSaveDialogArgs.java index 912f5e28..0d66a12d 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDSaveDialogArgs.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDSaveDialogArgs.java @@ -103,6 +103,17 @@ public final class NFDSaveDialogArgs extends Struct { /// @return the allocated `NFDSaveDialogArgs` public static NFDSaveDialogArgs alloc(SegmentAllocator allocator, long count) { return new NFDSaveDialogArgs(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `NFDSaveDialogArgs`. + /// @param index the index of the struct buffer + /// @return the slice of `NFDSaveDialogArgs` + public NFDSaveDialogArgs asSlice(long index) { return new NFDSaveDialogArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `NFDSaveDialogArgs`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `NFDSaveDialogArgs` + public NFDSaveDialogArgs asSlice(long index, long count) { return new NFDSaveDialogArgs(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `filterList` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDWindowHandle.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDWindowHandle.java index babc79f4..29f3af8e 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDWindowHandle.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDWindowHandle.java @@ -83,6 +83,17 @@ public final class NFDWindowHandle extends Struct { /// @return the allocated `NFDWindowHandle` public static NFDWindowHandle alloc(SegmentAllocator allocator, long count) { return new NFDWindowHandle(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `NFDWindowHandle`. + /// @param index the index of the struct buffer + /// @return the slice of `NFDWindowHandle` + public NFDWindowHandle asSlice(long index) { return new NFDWindowHandle(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `NFDWindowHandle`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `NFDWindowHandle` + public NFDWindowHandle asSlice(long index, long count) { return new NFDWindowHandle(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `type` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBIIOCallbacks.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBIIOCallbacks.java index d0555fab..8ece7d5c 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBIIOCallbacks.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBIIOCallbacks.java @@ -89,6 +89,17 @@ public final class STBIIOCallbacks extends Struct { /// @return the allocated `STBIIOCallbacks` public static STBIIOCallbacks alloc(SegmentAllocator allocator, long count) { return new STBIIOCallbacks(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBIIOCallbacks`. + /// @param index the index of the struct buffer + /// @return the slice of `STBIIOCallbacks` + public STBIIOCallbacks asSlice(long index) { return new STBIIOCallbacks(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBIIOCallbacks`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBIIOCallbacks` + public STBIIOCallbacks asSlice(long index, long count) { return new STBIIOCallbacks(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `read` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBIR_RESIZE.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBIR_RESIZE.java index 166a90ca..84c39fb4 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBIR_RESIZE.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBIR_RESIZE.java @@ -287,6 +287,17 @@ public final class STBIR_RESIZE extends Struct { /// @return the allocated `STBIR_RESIZE` public static STBIR_RESIZE alloc(SegmentAllocator allocator, long count) { return new STBIR_RESIZE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBIR_RESIZE`. + /// @param index the index of the struct buffer + /// @return the slice of `STBIR_RESIZE` + public STBIR_RESIZE asSlice(long index) { return new STBIR_RESIZE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBIR_RESIZE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBIR_RESIZE` + public STBIR_RESIZE asSlice(long index, long count) { return new STBIR_RESIZE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `user_data` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPContext.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPContext.java index cfeaa1bd..3006a4be 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPContext.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPContext.java @@ -98,4 +98,15 @@ public final class STBRPContext extends Struct { /// @return the allocated `STBRPContext` public static STBRPContext alloc(SegmentAllocator allocator, long count) { return new STBRPContext(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBRPContext`. + /// @param index the index of the struct buffer + /// @return the slice of `STBRPContext` + public STBRPContext asSlice(long index) { return new STBRPContext(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBRPContext`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBRPContext` + public STBRPContext asSlice(long index, long count) { return new STBRPContext(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPNode.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPNode.java index 96f676be..b1e5f4b7 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPNode.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPNode.java @@ -80,4 +80,15 @@ public final class STBRPNode extends Struct { /// @return the allocated `STBRPNode` public static STBRPNode alloc(SegmentAllocator allocator, long count) { return new STBRPNode(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBRPNode`. + /// @param index the index of the struct buffer + /// @return the slice of `STBRPNode` + public STBRPNode asSlice(long index) { return new STBRPNode(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBRPNode`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBRPNode` + public STBRPNode asSlice(long index, long count) { return new STBRPNode(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPRect.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPRect.java index a7381e08..8e7e603d 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPRect.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRPRect.java @@ -107,6 +107,17 @@ public final class STBRPRect extends Struct { /// @return the allocated `STBRPRect` public static STBRPRect alloc(SegmentAllocator allocator, long count) { return new STBRPRect(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBRPRect`. + /// @param index the index of the struct buffer + /// @return the slice of `STBRPRect` + public STBRPRect asSlice(long index) { return new STBRPRect(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBRPRect`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBRPRect` + public STBRPRect asSlice(long index, long count) { return new STBRPRect(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `id` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTAlignedQuad.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTAlignedQuad.java index 735575b6..229dbaca 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTAlignedQuad.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTAlignedQuad.java @@ -119,6 +119,17 @@ public final class STBTTAlignedQuad extends Struct { /// @return the allocated `STBTTAlignedQuad` public static STBTTAlignedQuad alloc(SegmentAllocator allocator, long count) { return new STBTTAlignedQuad(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTAlignedQuad`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTAlignedQuad` + public STBTTAlignedQuad asSlice(long index) { return new STBTTAlignedQuad(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTAlignedQuad`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTAlignedQuad` + public STBTTAlignedQuad asSlice(long index, long count) { return new STBTTAlignedQuad(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTBakedChar.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTBakedChar.java index 510cff71..a349ed98 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTBakedChar.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTBakedChar.java @@ -113,6 +113,17 @@ public final class STBTTBakedChar extends Struct { /// @return the allocated `STBTTBakedChar` public static STBTTBakedChar alloc(SegmentAllocator allocator, long count) { return new STBTTBakedChar(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTBakedChar`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTBakedChar` + public STBTTBakedChar asSlice(long index) { return new STBTTBakedChar(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTBakedChar`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTBakedChar` + public STBTTBakedChar asSlice(long index, long count) { return new STBTTBakedChar(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTFontInfo.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTFontInfo.java index ec942001..c81d882c 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTFontInfo.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTFontInfo.java @@ -131,4 +131,15 @@ public final class STBTTFontInfo extends Struct { /// @return the allocated `STBTTFontInfo` public static STBTTFontInfo alloc(SegmentAllocator allocator, long count) { return new STBTTFontInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTFontInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTFontInfo` + public STBTTFontInfo asSlice(long index) { return new STBTTFontInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTFontInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTFontInfo` + public STBTTFontInfo asSlice(long index, long count) { return new STBTTFontInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTKerningEntry.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTKerningEntry.java index 664b2bf9..07a4cb97 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTKerningEntry.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTKerningEntry.java @@ -89,6 +89,17 @@ public final class STBTTKerningEntry extends Struct { /// @return the allocated `STBTTKerningEntry` public static STBTTKerningEntry alloc(SegmentAllocator allocator, long count) { return new STBTTKerningEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTKerningEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTKerningEntry` + public STBTTKerningEntry asSlice(long index) { return new STBTTKerningEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTKerningEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTKerningEntry` + public STBTTKerningEntry asSlice(long index, long count) { return new STBTTKerningEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `glyph1` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackRange.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackRange.java index a0d6c2a5..75f3b40d 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackRange.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackRange.java @@ -113,6 +113,17 @@ public final class STBTTPackRange extends Struct { /// @return the allocated `STBTTPackRange` public static STBTTPackRange alloc(SegmentAllocator allocator, long count) { return new STBTTPackRange(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTPackRange`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTPackRange` + public STBTTPackRange asSlice(long index) { return new STBTTPackRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTPackRange`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTPackRange` + public STBTTPackRange asSlice(long index, long count) { return new STBTTPackRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `font_size` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackedChar.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackedChar.java index cf60cef5..de084e2e 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackedChar.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTPackedChar.java @@ -125,6 +125,17 @@ public final class STBTTPackedChar extends Struct { /// @return the allocated `STBTTPackedChar` public static STBTTPackedChar alloc(SegmentAllocator allocator, long count) { return new STBTTPackedChar(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTPackedChar`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTPackedChar` + public STBTTPackedChar asSlice(long index) { return new STBTTPackedChar(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTPackedChar`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTPackedChar` + public STBTTPackedChar asSlice(long index, long count) { return new STBTTPackedChar(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTVertex.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTVertex.java index 702d267f..72a0fd1e 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTVertex.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTTVertex.java @@ -119,6 +119,17 @@ public final class STBTTVertex extends Struct { /// @return the allocated `STBTTVertex` public static STBTTVertex alloc(SegmentAllocator allocator, long count) { return new STBTTVertex(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTTVertex`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTTVertex` + public STBTTVertex asSlice(long index) { return new STBTTVertex(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTTVertex`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTTVertex` + public STBTTVertex asSlice(long index, long count) { return new STBTTVertex(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__bitmap.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__bitmap.java index cfff8bef..c8b40886 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__bitmap.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__bitmap.java @@ -83,4 +83,15 @@ public final class STBTT__bitmap extends Struct { /// @return the allocated `STBTT__bitmap` public static STBTT__bitmap alloc(SegmentAllocator allocator, long count) { return new STBTT__bitmap(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTT__bitmap`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTT__bitmap` + public STBTT__bitmap asSlice(long index) { return new STBTT__bitmap(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTT__bitmap`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTT__bitmap` + public STBTT__bitmap asSlice(long index, long count) { return new STBTT__bitmap(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__buf.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__buf.java index 92e1f4c4..6b28d4bf 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__buf.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTT__buf.java @@ -80,4 +80,15 @@ public final class STBTT__buf extends Struct { /// @return the allocated `STBTT__buf` public static STBTT__buf alloc(SegmentAllocator allocator, long count) { return new STBTT__buf(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBTT__buf`. + /// @param index the index of the struct buffer + /// @return the slice of `STBTT__buf` + public STBTT__buf asSlice(long index) { return new STBTT__buf(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBTT__buf`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBTT__buf` + public STBTT__buf asSlice(long index, long count) { return new STBTT__buf(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisAlloc.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisAlloc.java index c201ecbb..0459cec5 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisAlloc.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisAlloc.java @@ -83,6 +83,17 @@ public final class STBVorbisAlloc extends Struct { /// @return the allocated `STBVorbisAlloc` public static STBVorbisAlloc alloc(SegmentAllocator allocator, long count) { return new STBVorbisAlloc(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBVorbisAlloc`. + /// @param index the index of the struct buffer + /// @return the slice of `STBVorbisAlloc` + public STBVorbisAlloc asSlice(long index) { return new STBVorbisAlloc(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBVorbisAlloc`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBVorbisAlloc` + public STBVorbisAlloc asSlice(long index, long count) { return new STBVorbisAlloc(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `alloc_buffer` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisComment.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisComment.java index b0938cc9..23259671 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisComment.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisComment.java @@ -89,6 +89,17 @@ public final class STBVorbisComment extends Struct { /// @return the allocated `STBVorbisComment` public static STBVorbisComment alloc(SegmentAllocator allocator, long count) { return new STBVorbisComment(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBVorbisComment`. + /// @param index the index of the struct buffer + /// @return the slice of `STBVorbisComment` + public STBVorbisComment asSlice(long index) { return new STBVorbisComment(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBVorbisComment`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBVorbisComment` + public STBVorbisComment asSlice(long index, long count) { return new STBVorbisComment(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `vendor` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisInfo.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisInfo.java index c8ee7832..94950ee8 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisInfo.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbisInfo.java @@ -107,6 +107,17 @@ public final class STBVorbisInfo extends Struct { /// @return the allocated `STBVorbisInfo` public static STBVorbisInfo alloc(SegmentAllocator allocator, long count) { return new STBVorbisInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `STBVorbisInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `STBVorbisInfo` + public STBVorbisInfo asSlice(long index) { return new STBVorbisInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `STBVorbisInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `STBVorbisInfo` + public STBVorbisInfo asSlice(long index, long count) { return new STBVorbisInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sample_rate` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VK10.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VK10.java index 8f8c7884..312bc2f7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VK10.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VK10.java @@ -1880,6 +1880,8 @@ public void CmdExecuteCommands(@CType("VkCommandBuffer") MemorySegment commandBu } // --- OverrunGL custom code --- + public static final MemorySegment VK_NULL_HANDLE = MemorySegment.NULL; + public static int VK_MAKE_API_VERSION(int variant, int major, int minor, int patch) { return (variant << 29) | (major << 22) | (minor << 12) | patch; } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VKLoadFunc.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VKLoadFunc.java index 4c1bd892..86f76ea8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VKLoadFunc.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/VKLoadFunc.java @@ -26,7 +26,7 @@ /// /// ## Example /// ```java -/// VKLoadFunc func = GLFW::glfwGetInstanceProcAddress; +/// VKLoadFunc func = GLFWVulkan::glfwGetInstanceProcAddress; /// pInstance = stack.allocate(ADDRESS); // VkInstance instance; /// vkCreateInstance(func, createInfo.segment(), NULL, pInstance); // vkCreateInstance(createInfo, NULL, &instance); /// instance = pInstance.get(ADDRESS, 0L); diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDDeviceCoherentMemory.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDDeviceCoherentMemory.java index c43e34cd..8fb14a89 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDDeviceCoherentMemory.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDDeviceCoherentMemory.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDDeviceCoherentMemory { +public final class VKAMDDeviceCoherentMemory { public static final int VK_AMD_DEVICE_COHERENT_MEMORY_SPEC_VERSION = 1; public static final String VK_AMD_DEVICE_COHERENT_MEMORY_EXTENSION_NAME = "VK_AMD_device_coherent_memory"; public static final int VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD = 0x00000040; public static final int VK_MEMORY_PROPERTY_DEVICE_UNCACHED_BIT_AMD = 0x00000080; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD = 1000229000; - public VKAMDDeviceCoherentMemory(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDDeviceCoherentMemory() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGcnShader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGcnShader.java index ba3fc7ad..87c9bf65 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGcnShader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGcnShader.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDGcnShader { +public final class VKAMDGcnShader { public static final int VK_AMD_GCN_SHADER_SPEC_VERSION = 1; public static final String VK_AMD_GCN_SHADER_EXTENSION_NAME = "VK_AMD_gcn_shader"; - public VKAMDGcnShader(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDGcnShader() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderHalfFloat.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderHalfFloat.java index 1814f043..aa175a13 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderHalfFloat.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderHalfFloat.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDGpuShaderHalfFloat { +public final class VKAMDGpuShaderHalfFloat { public static final int VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION = 2; public static final String VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME = "VK_AMD_gpu_shader_half_float"; - public VKAMDGpuShaderHalfFloat(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDGpuShaderHalfFloat() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderInt16.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderInt16.java index a11b37c8..fc1059f2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderInt16.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDGpuShaderInt16.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDGpuShaderInt16 { +public final class VKAMDGpuShaderInt16 { public static final int VK_AMD_GPU_SHADER_INT16_SPEC_VERSION = 2; public static final String VK_AMD_GPU_SHADER_INT16_EXTENSION_NAME = "VK_AMD_gpu_shader_int16"; - public VKAMDGpuShaderInt16(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDGpuShaderInt16() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMemoryOverallocationBehavior.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMemoryOverallocationBehavior.java index 1ed39222..b8618c62 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMemoryOverallocationBehavior.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMemoryOverallocationBehavior.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDMemoryOverallocationBehavior { +public final class VKAMDMemoryOverallocationBehavior { public static final int VK_MEMORY_OVERALLOCATION_BEHAVIOR_DEFAULT_AMD = 0; public static final int VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD = 1; public static final int VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD = 2; @@ -30,7 +30,6 @@ public class VKAMDMemoryOverallocationBehavior { public static final String VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_EXTENSION_NAME = "VK_AMD_memory_overallocation_behavior"; public static final int VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD = 1000189000; - public VKAMDMemoryOverallocationBehavior(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDMemoryOverallocationBehavior() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMixedAttachmentSamples.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMixedAttachmentSamples.java index 7e709fbf..ecf8cbfa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMixedAttachmentSamples.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDMixedAttachmentSamples.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDMixedAttachmentSamples { +public final class VKAMDMixedAttachmentSamples { public static final int VK_AMD_MIXED_ATTACHMENT_SAMPLES_SPEC_VERSION = 1; public static final String VK_AMD_MIXED_ATTACHMENT_SAMPLES_EXTENSION_NAME = "VK_AMD_mixed_attachment_samples"; public static final int VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD = 1000136008; - public VKAMDMixedAttachmentSamples(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDMixedAttachmentSamples() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDNegativeViewportHeight.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDNegativeViewportHeight.java index 6e691e94..698a9e48 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDNegativeViewportHeight.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDNegativeViewportHeight.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDNegativeViewportHeight { +public final class VKAMDNegativeViewportHeight { public static final int VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION = 1; public static final String VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_EXTENSION_NAME = "VK_AMD_negative_viewport_height"; - public VKAMDNegativeViewportHeight(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDNegativeViewportHeight() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDPipelineCompilerControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDPipelineCompilerControl.java index dffd4ee2..c43780a7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDPipelineCompilerControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDPipelineCompilerControl.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDPipelineCompilerControl { +public final class VKAMDPipelineCompilerControl { public static final int VK_AMD_PIPELINE_COMPILER_CONTROL_SPEC_VERSION = 1; public static final String VK_AMD_PIPELINE_COMPILER_CONTROL_EXTENSION_NAME = "VK_AMD_pipeline_compiler_control"; public static final int VK_STRUCTURE_TYPE_PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD = 1000183000; - public VKAMDPipelineCompilerControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDPipelineCompilerControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDRasterizationOrder.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDRasterizationOrder.java index 0d3dbc8c..65ddd6ac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDRasterizationOrder.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDRasterizationOrder.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDRasterizationOrder { +public final class VKAMDRasterizationOrder { public static final int VK_RASTERIZATION_ORDER_STRICT_AMD = 0; public static final int VK_RASTERIZATION_ORDER_RELAXED_AMD = 1; public static final int VK_AMD_RASTERIZATION_ORDER_SPEC_VERSION = 1; public static final String VK_AMD_RASTERIZATION_ORDER_EXTENSION_NAME = "VK_AMD_rasterization_order"; public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000; - public VKAMDRasterizationOrder(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDRasterizationOrder() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderBallot.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderBallot.java index 1c91f19c..50f86157 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderBallot.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderBallot.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderBallot { +public final class VKAMDShaderBallot { public static final int VK_AMD_SHADER_BALLOT_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_BALLOT_EXTENSION_NAME = "VK_AMD_shader_ballot"; - public VKAMDShaderBallot(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderBallot() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties.java index 6e0c02b0..c73a3e2b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderCoreProperties { +public final class VKAMDShaderCoreProperties { public static final int VK_AMD_SHADER_CORE_PROPERTIES_SPEC_VERSION = 2; public static final String VK_AMD_SHADER_CORE_PROPERTIES_EXTENSION_NAME = "VK_AMD_shader_core_properties"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD = 1000185000; - public VKAMDShaderCoreProperties(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderCoreProperties() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties2.java index d8e2ac40..e516260b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderCoreProperties2.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderCoreProperties2 { +public final class VKAMDShaderCoreProperties2 { public static final int VK_AMD_SHADER_CORE_PROPERTIES_2_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_CORE_PROPERTIES_2_EXTENSION_NAME = "VK_AMD_shader_core_properties2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD = 1000227000; - public VKAMDShaderCoreProperties2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderCoreProperties2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderEarlyAndLateFragmentTests.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderEarlyAndLateFragmentTests.java index 9cb86132..c8dad2c0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderEarlyAndLateFragmentTests.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderEarlyAndLateFragmentTests.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderEarlyAndLateFragmentTests { +public final class VKAMDShaderEarlyAndLateFragmentTests { public static final int VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_EXTENSION_NAME = "VK_AMD_shader_early_and_late_fragment_tests"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD = 1000321000; - public VKAMDShaderEarlyAndLateFragmentTests(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderEarlyAndLateFragmentTests() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderExplicitVertexParameter.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderExplicitVertexParameter.java index a993e025..6a7eb5b9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderExplicitVertexParameter.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderExplicitVertexParameter.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderExplicitVertexParameter { +public final class VKAMDShaderExplicitVertexParameter { public static final int VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME = "VK_AMD_shader_explicit_vertex_parameter"; - public VKAMDShaderExplicitVertexParameter(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderExplicitVertexParameter() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderFragmentMask.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderFragmentMask.java index 724eb611..b456dac0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderFragmentMask.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderFragmentMask.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderFragmentMask { +public final class VKAMDShaderFragmentMask { public static final int VK_AMD_SHADER_FRAGMENT_MASK_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_FRAGMENT_MASK_EXTENSION_NAME = "VK_AMD_shader_fragment_mask"; - public VKAMDShaderFragmentMask(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderFragmentMask() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderImageLoadStoreLod.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderImageLoadStoreLod.java index 452ddd74..9a69c3ca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderImageLoadStoreLod.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderImageLoadStoreLod.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderImageLoadStoreLod { +public final class VKAMDShaderImageLoadStoreLod { public static final int VK_AMD_SHADER_IMAGE_LOAD_STORE_LOD_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_IMAGE_LOAD_STORE_LOD_EXTENSION_NAME = "VK_AMD_shader_image_load_store_lod"; - public VKAMDShaderImageLoadStoreLod(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderImageLoadStoreLod() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderTrinaryMinmax.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderTrinaryMinmax.java index 2a7c4a87..9eb9f026 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderTrinaryMinmax.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDShaderTrinaryMinmax.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDShaderTrinaryMinmax { +public final class VKAMDShaderTrinaryMinmax { public static final int VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION = 1; public static final String VK_AMD_SHADER_TRINARY_MINMAX_EXTENSION_NAME = "VK_AMD_shader_trinary_minmax"; - public VKAMDShaderTrinaryMinmax(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDShaderTrinaryMinmax() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDTextureGatherBiasLod.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDTextureGatherBiasLod.java index 37826818..fd3f7100 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDTextureGatherBiasLod.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/VKAMDTextureGatherBiasLod.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKAMDTextureGatherBiasLod { +public final class VKAMDTextureGatherBiasLod { public static final int VK_AMD_TEXTURE_GATHER_BIAS_LOD_SPEC_VERSION = 1; public static final String VK_AMD_TEXTURE_GATHER_BIAS_LOD_EXTENSION_NAME = "VK_AMD_texture_gather_bias_lod"; public static final int VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD = 1000041000; - public VKAMDTextureGatherBiasLod(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKAMDTextureGatherBiasLod() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagDataAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagDataAMD.java index b118bcff..08c12f2c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagDataAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagDataAMD.java @@ -101,6 +101,17 @@ public final class VkAntiLagDataAMD extends Struct { /// @return the allocated `VkAntiLagDataAMD` public static VkAntiLagDataAMD alloc(SegmentAllocator allocator, long count) { return new VkAntiLagDataAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAntiLagDataAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAntiLagDataAMD` + public VkAntiLagDataAMD asSlice(long index) { return new VkAntiLagDataAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAntiLagDataAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAntiLagDataAMD` + public VkAntiLagDataAMD asSlice(long index, long count) { return new VkAntiLagDataAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagPresentationInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagPresentationInfoAMD.java index 93b64867..ab9e3cd3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagPresentationInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAntiLagPresentationInfoAMD.java @@ -95,6 +95,17 @@ public final class VkAntiLagPresentationInfoAMD extends Struct { /// @return the allocated `VkAntiLagPresentationInfoAMD` public static VkAntiLagPresentationInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkAntiLagPresentationInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAntiLagPresentationInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAntiLagPresentationInfoAMD` + public VkAntiLagPresentationInfoAMD asSlice(long index) { return new VkAntiLagPresentationInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAntiLagPresentationInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAntiLagPresentationInfoAMD` + public VkAntiLagPresentationInfoAMD asSlice(long index, long count) { return new VkAntiLagPresentationInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAttachmentSampleCountInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAttachmentSampleCountInfoAMD.java index 02dac384..67970b5c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAttachmentSampleCountInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkAttachmentSampleCountInfoAMD.java @@ -101,6 +101,17 @@ public final class VkAttachmentSampleCountInfoAMD extends Struct { /// @return the allocated `VkAttachmentSampleCountInfoAMD` public static VkAttachmentSampleCountInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkAttachmentSampleCountInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentSampleCountInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentSampleCountInfoAMD` + public VkAttachmentSampleCountInfoAMD asSlice(long index) { return new VkAttachmentSampleCountInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentSampleCountInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentSampleCountInfoAMD` + public VkAttachmentSampleCountInfoAMD asSlice(long index, long count) { return new VkAttachmentSampleCountInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDeviceMemoryOverallocationCreateInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDeviceMemoryOverallocationCreateInfoAMD.java index 497eab18..5285d653 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDeviceMemoryOverallocationCreateInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDeviceMemoryOverallocationCreateInfoAMD.java @@ -89,6 +89,17 @@ public final class VkDeviceMemoryOverallocationCreateInfoAMD extends Struct { /// @return the allocated `VkDeviceMemoryOverallocationCreateInfoAMD` public static VkDeviceMemoryOverallocationCreateInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkDeviceMemoryOverallocationCreateInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceMemoryOverallocationCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceMemoryOverallocationCreateInfoAMD` + public VkDeviceMemoryOverallocationCreateInfoAMD asSlice(long index) { return new VkDeviceMemoryOverallocationCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceMemoryOverallocationCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceMemoryOverallocationCreateInfoAMD` + public VkDeviceMemoryOverallocationCreateInfoAMD asSlice(long index, long count) { return new VkDeviceMemoryOverallocationCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDisplayNativeHdrSurfaceCapabilitiesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDisplayNativeHdrSurfaceCapabilitiesAMD.java index 0c20ec27..ad2cd57a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDisplayNativeHdrSurfaceCapabilitiesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkDisplayNativeHdrSurfaceCapabilitiesAMD.java @@ -89,6 +89,17 @@ public final class VkDisplayNativeHdrSurfaceCapabilitiesAMD extends Struct { /// @return the allocated `VkDisplayNativeHdrSurfaceCapabilitiesAMD` public static VkDisplayNativeHdrSurfaceCapabilitiesAMD alloc(SegmentAllocator allocator, long count) { return new VkDisplayNativeHdrSurfaceCapabilitiesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayNativeHdrSurfaceCapabilitiesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayNativeHdrSurfaceCapabilitiesAMD` + public VkDisplayNativeHdrSurfaceCapabilitiesAMD asSlice(long index) { return new VkDisplayNativeHdrSurfaceCapabilitiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayNativeHdrSurfaceCapabilitiesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayNativeHdrSurfaceCapabilitiesAMD` + public VkDisplayNativeHdrSurfaceCapabilitiesAMD asSlice(long index, long count) { return new VkDisplayNativeHdrSurfaceCapabilitiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceAntiLagFeaturesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceAntiLagFeaturesAMD.java index 245b9fbb..f7185493 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceAntiLagFeaturesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceAntiLagFeaturesAMD.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceAntiLagFeaturesAMD extends Struct { /// @return the allocated `VkPhysicalDeviceAntiLagFeaturesAMD` public static VkPhysicalDeviceAntiLagFeaturesAMD alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAntiLagFeaturesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAntiLagFeaturesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAntiLagFeaturesAMD` + public VkPhysicalDeviceAntiLagFeaturesAMD asSlice(long index) { return new VkPhysicalDeviceAntiLagFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAntiLagFeaturesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAntiLagFeaturesAMD` + public VkPhysicalDeviceAntiLagFeaturesAMD asSlice(long index, long count) { return new VkPhysicalDeviceAntiLagFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceCoherentMemoryFeaturesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceCoherentMemoryFeaturesAMD.java index 1183e3e1..4889fae8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceCoherentMemoryFeaturesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceCoherentMemoryFeaturesAMD.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCoherentMemoryFeaturesAMD extends Struct { /// @return the allocated `VkPhysicalDeviceCoherentMemoryFeaturesAMD` public static VkPhysicalDeviceCoherentMemoryFeaturesAMD alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCoherentMemoryFeaturesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCoherentMemoryFeaturesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCoherentMemoryFeaturesAMD` + public VkPhysicalDeviceCoherentMemoryFeaturesAMD asSlice(long index) { return new VkPhysicalDeviceCoherentMemoryFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCoherentMemoryFeaturesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCoherentMemoryFeaturesAMD` + public VkPhysicalDeviceCoherentMemoryFeaturesAMD asSlice(long index, long count) { return new VkPhysicalDeviceCoherentMemoryFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCoreProperties2AMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCoreProperties2AMD.java index c8f26e6f..f1699927 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCoreProperties2AMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCoreProperties2AMD.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderCoreProperties2AMD extends Struct { /// @return the allocated `VkPhysicalDeviceShaderCoreProperties2AMD` public static VkPhysicalDeviceShaderCoreProperties2AMD alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderCoreProperties2AMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderCoreProperties2AMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderCoreProperties2AMD` + public VkPhysicalDeviceShaderCoreProperties2AMD asSlice(long index) { return new VkPhysicalDeviceShaderCoreProperties2AMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderCoreProperties2AMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderCoreProperties2AMD` + public VkPhysicalDeviceShaderCoreProperties2AMD asSlice(long index, long count) { return new VkPhysicalDeviceShaderCoreProperties2AMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCorePropertiesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCorePropertiesAMD.java index 7a7410e1..133ab0b2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCorePropertiesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderCorePropertiesAMD.java @@ -167,6 +167,17 @@ public final class VkPhysicalDeviceShaderCorePropertiesAMD extends Struct { /// @return the allocated `VkPhysicalDeviceShaderCorePropertiesAMD` public static VkPhysicalDeviceShaderCorePropertiesAMD alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderCorePropertiesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderCorePropertiesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderCorePropertiesAMD` + public VkPhysicalDeviceShaderCorePropertiesAMD asSlice(long index) { return new VkPhysicalDeviceShaderCorePropertiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderCorePropertiesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderCorePropertiesAMD` + public VkPhysicalDeviceShaderCorePropertiesAMD asSlice(long index, long count) { return new VkPhysicalDeviceShaderCorePropertiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD.java index 776737b6..6a481ee3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD ex /// @return the allocated `VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD` public static VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD` + public VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD asSlice(long index) { return new VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD` + public VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD asSlice(long index, long count) { return new VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineCompilerControlCreateInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineCompilerControlCreateInfoAMD.java index 56cb4577..20757350 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineCompilerControlCreateInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineCompilerControlCreateInfoAMD.java @@ -89,6 +89,17 @@ public final class VkPipelineCompilerControlCreateInfoAMD extends Struct { /// @return the allocated `VkPipelineCompilerControlCreateInfoAMD` public static VkPipelineCompilerControlCreateInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkPipelineCompilerControlCreateInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCompilerControlCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCompilerControlCreateInfoAMD` + public VkPipelineCompilerControlCreateInfoAMD asSlice(long index) { return new VkPipelineCompilerControlCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCompilerControlCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCompilerControlCreateInfoAMD` + public VkPipelineCompilerControlCreateInfoAMD asSlice(long index, long count) { return new VkPipelineCompilerControlCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineRasterizationStateRasterizationOrderAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineRasterizationStateRasterizationOrderAMD.java index 0382f4f3..86718dd5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineRasterizationStateRasterizationOrderAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkPipelineRasterizationStateRasterizationOrderAMD.java @@ -89,6 +89,17 @@ public final class VkPipelineRasterizationStateRasterizationOrderAMD extends Str /// @return the allocated `VkPipelineRasterizationStateRasterizationOrderAMD` public static VkPipelineRasterizationStateRasterizationOrderAMD alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationStateRasterizationOrderAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationStateRasterizationOrderAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationStateRasterizationOrderAMD` + public VkPipelineRasterizationStateRasterizationOrderAMD asSlice(long index) { return new VkPipelineRasterizationStateRasterizationOrderAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationStateRasterizationOrderAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationStateRasterizationOrderAMD` + public VkPipelineRasterizationStateRasterizationOrderAMD asSlice(long index, long count) { return new VkPipelineRasterizationStateRasterizationOrderAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderResourceUsageAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderResourceUsageAMD.java index db3988c5..0fd811ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderResourceUsageAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderResourceUsageAMD.java @@ -101,6 +101,17 @@ public final class VkShaderResourceUsageAMD extends Struct { /// @return the allocated `VkShaderResourceUsageAMD` public static VkShaderResourceUsageAMD alloc(SegmentAllocator allocator, long count) { return new VkShaderResourceUsageAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderResourceUsageAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderResourceUsageAMD` + public VkShaderResourceUsageAMD asSlice(long index) { return new VkShaderResourceUsageAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderResourceUsageAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderResourceUsageAMD` + public VkShaderResourceUsageAMD asSlice(long index, long count) { return new VkShaderResourceUsageAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `numUsedVgprs` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderStatisticsInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderStatisticsInfoAMD.java index a7b0c05c..66033828 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderStatisticsInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkShaderStatisticsInfoAMD.java @@ -38,7 +38,7 @@ /// ### numAvailableSgprs /// [VarHandle][#VH_numAvailableSgprs] - [Getter][#numAvailableSgprs()] - [Setter][#numAvailableSgprs(int)] /// ### computeWorkGroupSize -/// [VarHandle][#VH_computeWorkGroupSize] - [Getter][#computeWorkGroupSize()] - [Setter][#computeWorkGroupSize(int)] +/// [Byte offset][#OFFSET_computeWorkGroupSize] - [Memory layout][#ML_computeWorkGroupSize] - [Getter][#computeWorkGroupSize()] - [Setter][#computeWorkGroupSize(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -49,7 +49,7 @@ /// uint32_t numPhysicalSgprs; /// uint32_t numAvailableVgprs; /// uint32_t numAvailableSgprs; -/// uint32_t computeWorkGroupSize; +/// uint32_t[3] computeWorkGroupSize; /// } VkShaderStatisticsInfoAMD; /// ``` public final class VkShaderStatisticsInfoAMD extends Struct { @@ -61,7 +61,7 @@ public final class VkShaderStatisticsInfoAMD extends Struct { ValueLayout.JAVA_INT.withName("numPhysicalSgprs"), ValueLayout.JAVA_INT.withName("numAvailableVgprs"), ValueLayout.JAVA_INT.withName("numAvailableSgprs"), - ValueLayout.JAVA_INT.withName("computeWorkGroupSize") + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("computeWorkGroupSize") ); /// The [VarHandle] of `shaderStageMask` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_shaderStageMask = LAYOUT.arrayElementVarHandle(PathElement.groupElement("shaderStageMask")); @@ -77,8 +77,10 @@ public final class VkShaderStatisticsInfoAMD extends Struct { public static final VarHandle VH_numAvailableVgprs = LAYOUT.arrayElementVarHandle(PathElement.groupElement("numAvailableVgprs")); /// The [VarHandle] of `numAvailableSgprs` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_numAvailableSgprs = LAYOUT.arrayElementVarHandle(PathElement.groupElement("numAvailableSgprs")); - /// The [VarHandle] of `computeWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_computeWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("computeWorkGroupSize")); + /// The byte offset of `computeWorkGroupSize`. + public static final long OFFSET_computeWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("computeWorkGroupSize")); + /// The memory layout of `computeWorkGroupSize`. + public static final MemoryLayout ML_computeWorkGroupSize = LAYOUT.select(PathElement.groupElement("computeWorkGroupSize")); /// Creates `VkShaderStatisticsInfoAMD` with the given segment. /// @param segment the memory segment @@ -115,6 +117,17 @@ public final class VkShaderStatisticsInfoAMD extends Struct { /// @return the allocated `VkShaderStatisticsInfoAMD` public static VkShaderStatisticsInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkShaderStatisticsInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderStatisticsInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderStatisticsInfoAMD` + public VkShaderStatisticsInfoAMD asSlice(long index) { return new VkShaderStatisticsInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderStatisticsInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderStatisticsInfoAMD` + public VkShaderStatisticsInfoAMD asSlice(long index, long count) { return new VkShaderStatisticsInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `shaderStageMask` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -304,32 +317,32 @@ public final class VkShaderStatisticsInfoAMD extends Struct { /// {@return `computeWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_computeWorkGroupSize(MemorySegment segment, long index) { return (int) VH_computeWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_computeWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_computeWorkGroupSize, index), ML_computeWorkGroupSize); } /// {@return `computeWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_computeWorkGroupSize(MemorySegment segment) { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_computeWorkGroupSize(MemorySegment segment) { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(segment, 0L); } /// {@return `computeWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int computeWorkGroupSizeAt(long index) { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment computeWorkGroupSizeAt(long index) { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(this.segment(), index); } /// {@return `computeWorkGroupSize`} - public @CType("uint32_t") int computeWorkGroupSize() { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment computeWorkGroupSize() { return VkShaderStatisticsInfoAMD.get_computeWorkGroupSize(this.segment()); } /// Sets `computeWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_computeWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_computeWorkGroupSize.set(segment, 0L, index, value); } + public static void set_computeWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_computeWorkGroupSize, index), ML_computeWorkGroupSize.byteSize()); } /// Sets `computeWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_computeWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(segment, 0L, value); } + public static void set_computeWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(segment, 0L, value); } /// Sets `computeWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkShaderStatisticsInfoAMD computeWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(this.segment(), index, value); return this; } + public VkShaderStatisticsInfoAMD computeWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(this.segment(), index, value); return this; } /// Sets `computeWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkShaderStatisticsInfoAMD computeWorkGroupSize(@CType("uint32_t") int value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(this.segment(), value); return this; } + public VkShaderStatisticsInfoAMD computeWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkShaderStatisticsInfoAMD.set_computeWorkGroupSize(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkSwapchainDisplayNativeHdrCreateInfoAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkSwapchainDisplayNativeHdrCreateInfoAMD.java index 3d5cff4f..e0bff92a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkSwapchainDisplayNativeHdrCreateInfoAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkSwapchainDisplayNativeHdrCreateInfoAMD.java @@ -89,6 +89,17 @@ public final class VkSwapchainDisplayNativeHdrCreateInfoAMD extends Struct { /// @return the allocated `VkSwapchainDisplayNativeHdrCreateInfoAMD` public static VkSwapchainDisplayNativeHdrCreateInfoAMD alloc(SegmentAllocator allocator, long count) { return new VkSwapchainDisplayNativeHdrCreateInfoAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainDisplayNativeHdrCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainDisplayNativeHdrCreateInfoAMD` + public VkSwapchainDisplayNativeHdrCreateInfoAMD asSlice(long index) { return new VkSwapchainDisplayNativeHdrCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainDisplayNativeHdrCreateInfoAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainDisplayNativeHdrCreateInfoAMD` + public VkSwapchainDisplayNativeHdrCreateInfoAMD asSlice(long index, long count) { return new VkSwapchainDisplayNativeHdrCreateInfoAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkTextureLODGatherFormatPropertiesAMD.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkTextureLODGatherFormatPropertiesAMD.java index cf5461ed..0cdc8ded 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkTextureLODGatherFormatPropertiesAMD.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amd/struct/VkTextureLODGatherFormatPropertiesAMD.java @@ -89,6 +89,17 @@ public final class VkTextureLODGatherFormatPropertiesAMD extends Struct { /// @return the allocated `VkTextureLODGatherFormatPropertiesAMD` public static VkTextureLODGatherFormatPropertiesAMD alloc(SegmentAllocator allocator, long count) { return new VkTextureLODGatherFormatPropertiesAMD(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTextureLODGatherFormatPropertiesAMD`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTextureLODGatherFormatPropertiesAMD` + public VkTextureLODGatherFormatPropertiesAMD asSlice(long index) { return new VkTextureLODGatherFormatPropertiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTextureLODGatherFormatPropertiesAMD`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTextureLODGatherFormatPropertiesAMD` + public VkTextureLODGatherFormatPropertiesAMD asSlice(long index, long count) { return new VkTextureLODGatherFormatPropertiesAMD(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphCountInfoAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphCountInfoAMDX.java index 8b0dd488..1ece3a6e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphCountInfoAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphCountInfoAMDX.java @@ -91,6 +91,17 @@ public final class VkDispatchGraphCountInfoAMDX extends Struct { /// @return the allocated `VkDispatchGraphCountInfoAMDX` public static VkDispatchGraphCountInfoAMDX alloc(SegmentAllocator allocator, long count) { return new VkDispatchGraphCountInfoAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDispatchGraphCountInfoAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDispatchGraphCountInfoAMDX` + public VkDispatchGraphCountInfoAMDX asSlice(long index) { return new VkDispatchGraphCountInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDispatchGraphCountInfoAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDispatchGraphCountInfoAMDX` + public VkDispatchGraphCountInfoAMDX asSlice(long index, long count) { return new VkDispatchGraphCountInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `count` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphInfoAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphInfoAMDX.java index 433ff099..74c7e4d1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphInfoAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkDispatchGraphInfoAMDX.java @@ -97,6 +97,17 @@ public final class VkDispatchGraphInfoAMDX extends Struct { /// @return the allocated `VkDispatchGraphInfoAMDX` public static VkDispatchGraphInfoAMDX alloc(SegmentAllocator allocator, long count) { return new VkDispatchGraphInfoAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDispatchGraphInfoAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDispatchGraphInfoAMDX` + public VkDispatchGraphInfoAMDX asSlice(long index) { return new VkDispatchGraphInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDispatchGraphInfoAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDispatchGraphInfoAMDX` + public VkDispatchGraphInfoAMDX asSlice(long index, long count) { return new VkDispatchGraphInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `nodeIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineCreateInfoAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineCreateInfoAMDX.java index 65eee713..273fe793 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineCreateInfoAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineCreateInfoAMDX.java @@ -125,6 +125,17 @@ public final class VkExecutionGraphPipelineCreateInfoAMDX extends Struct { /// @return the allocated `VkExecutionGraphPipelineCreateInfoAMDX` public static VkExecutionGraphPipelineCreateInfoAMDX alloc(SegmentAllocator allocator, long count) { return new VkExecutionGraphPipelineCreateInfoAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExecutionGraphPipelineCreateInfoAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExecutionGraphPipelineCreateInfoAMDX` + public VkExecutionGraphPipelineCreateInfoAMDX asSlice(long index) { return new VkExecutionGraphPipelineCreateInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExecutionGraphPipelineCreateInfoAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExecutionGraphPipelineCreateInfoAMDX` + public VkExecutionGraphPipelineCreateInfoAMDX asSlice(long index, long count) { return new VkExecutionGraphPipelineCreateInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineScratchSizeAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineScratchSizeAMDX.java index 72cc3b33..c96dabfe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineScratchSizeAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkExecutionGraphPipelineScratchSizeAMDX.java @@ -101,6 +101,17 @@ public final class VkExecutionGraphPipelineScratchSizeAMDX extends Struct { /// @return the allocated `VkExecutionGraphPipelineScratchSizeAMDX` public static VkExecutionGraphPipelineScratchSizeAMDX alloc(SegmentAllocator allocator, long count) { return new VkExecutionGraphPipelineScratchSizeAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExecutionGraphPipelineScratchSizeAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExecutionGraphPipelineScratchSizeAMDX` + public VkExecutionGraphPipelineScratchSizeAMDX asSlice(long index) { return new VkExecutionGraphPipelineScratchSizeAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExecutionGraphPipelineScratchSizeAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExecutionGraphPipelineScratchSizeAMDX` + public VkExecutionGraphPipelineScratchSizeAMDX asSlice(long index, long count) { return new VkExecutionGraphPipelineScratchSizeAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueueFeaturesAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueueFeaturesAMDX.java index e20d16f8..c6988fba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueueFeaturesAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueueFeaturesAMDX.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderEnqueueFeaturesAMDX extends Struct { /// @return the allocated `VkPhysicalDeviceShaderEnqueueFeaturesAMDX` public static VkPhysicalDeviceShaderEnqueueFeaturesAMDX alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderEnqueueFeaturesAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderEnqueueFeaturesAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderEnqueueFeaturesAMDX` + public VkPhysicalDeviceShaderEnqueueFeaturesAMDX asSlice(long index) { return new VkPhysicalDeviceShaderEnqueueFeaturesAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderEnqueueFeaturesAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderEnqueueFeaturesAMDX` + public VkPhysicalDeviceShaderEnqueueFeaturesAMDX asSlice(long index, long count) { return new VkPhysicalDeviceShaderEnqueueFeaturesAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueuePropertiesAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueuePropertiesAMDX.java index 101faca2..bd718dba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueuePropertiesAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPhysicalDeviceShaderEnqueuePropertiesAMDX.java @@ -40,7 +40,7 @@ /// ### executionGraphDispatchAddressAlignment /// [VarHandle][#VH_executionGraphDispatchAddressAlignment] - [Getter][#executionGraphDispatchAddressAlignment()] - [Setter][#executionGraphDispatchAddressAlignment(int)] /// ### maxExecutionGraphWorkgroupCount -/// [VarHandle][#VH_maxExecutionGraphWorkgroupCount] - [Getter][#maxExecutionGraphWorkgroupCount()] - [Setter][#maxExecutionGraphWorkgroupCount(int)] +/// [Byte offset][#OFFSET_maxExecutionGraphWorkgroupCount] - [Memory layout][#ML_maxExecutionGraphWorkgroupCount] - [Getter][#maxExecutionGraphWorkgroupCount()] - [Setter][#maxExecutionGraphWorkgroupCount(java.lang.foreign.MemorySegment)] /// ### maxExecutionGraphWorkgroups /// [VarHandle][#VH_maxExecutionGraphWorkgroups] - [Getter][#maxExecutionGraphWorkgroups()] - [Setter][#maxExecutionGraphWorkgroups(int)] /// ## Layout @@ -54,7 +54,7 @@ /// uint32_t maxExecutionGraphShaderPayloadSize; /// uint32_t maxExecutionGraphShaderPayloadCount; /// uint32_t executionGraphDispatchAddressAlignment; -/// uint32_t maxExecutionGraphWorkgroupCount; +/// uint32_t[3] maxExecutionGraphWorkgroupCount; /// uint32_t maxExecutionGraphWorkgroups; /// } VkPhysicalDeviceShaderEnqueuePropertiesAMDX; /// ``` @@ -68,7 +68,7 @@ public final class VkPhysicalDeviceShaderEnqueuePropertiesAMDX extends Struct { ValueLayout.JAVA_INT.withName("maxExecutionGraphShaderPayloadSize"), ValueLayout.JAVA_INT.withName("maxExecutionGraphShaderPayloadCount"), ValueLayout.JAVA_INT.withName("executionGraphDispatchAddressAlignment"), - ValueLayout.JAVA_INT.withName("maxExecutionGraphWorkgroupCount"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxExecutionGraphWorkgroupCount"), ValueLayout.JAVA_INT.withName("maxExecutionGraphWorkgroups") ); /// The [VarHandle] of `sType` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -85,8 +85,10 @@ public final class VkPhysicalDeviceShaderEnqueuePropertiesAMDX extends Struct { public static final VarHandle VH_maxExecutionGraphShaderPayloadCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxExecutionGraphShaderPayloadCount")); /// The [VarHandle] of `executionGraphDispatchAddressAlignment` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_executionGraphDispatchAddressAlignment = LAYOUT.arrayElementVarHandle(PathElement.groupElement("executionGraphDispatchAddressAlignment")); - /// The [VarHandle] of `maxExecutionGraphWorkgroupCount` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxExecutionGraphWorkgroupCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxExecutionGraphWorkgroupCount")); + /// The byte offset of `maxExecutionGraphWorkgroupCount`. + public static final long OFFSET_maxExecutionGraphWorkgroupCount = LAYOUT.byteOffset(PathElement.groupElement("maxExecutionGraphWorkgroupCount")); + /// The memory layout of `maxExecutionGraphWorkgroupCount`. + public static final MemoryLayout ML_maxExecutionGraphWorkgroupCount = LAYOUT.select(PathElement.groupElement("maxExecutionGraphWorkgroupCount")); /// The [VarHandle] of `maxExecutionGraphWorkgroups` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxExecutionGraphWorkgroups = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxExecutionGraphWorkgroups")); @@ -125,6 +127,17 @@ public final class VkPhysicalDeviceShaderEnqueuePropertiesAMDX extends Struct { /// @return the allocated `VkPhysicalDeviceShaderEnqueuePropertiesAMDX` public static VkPhysicalDeviceShaderEnqueuePropertiesAMDX alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderEnqueuePropertiesAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderEnqueuePropertiesAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderEnqueuePropertiesAMDX` + public VkPhysicalDeviceShaderEnqueuePropertiesAMDX asSlice(long index) { return new VkPhysicalDeviceShaderEnqueuePropertiesAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderEnqueuePropertiesAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderEnqueuePropertiesAMDX` + public VkPhysicalDeviceShaderEnqueuePropertiesAMDX asSlice(long index, long count) { return new VkPhysicalDeviceShaderEnqueuePropertiesAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -345,33 +358,33 @@ public final class VkPhysicalDeviceShaderEnqueuePropertiesAMDX extends Struct { /// {@return `maxExecutionGraphWorkgroupCount` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxExecutionGraphWorkgroupCount(MemorySegment segment, long index) { return (int) VH_maxExecutionGraphWorkgroupCount.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxExecutionGraphWorkgroupCount(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxExecutionGraphWorkgroupCount, index), ML_maxExecutionGraphWorkgroupCount); } /// {@return `maxExecutionGraphWorkgroupCount`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxExecutionGraphWorkgroupCount(MemorySegment segment) { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxExecutionGraphWorkgroupCount(MemorySegment segment) { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(segment, 0L); } /// {@return `maxExecutionGraphWorkgroupCount` at the given index} /// @param index the index - public @CType("uint32_t") int maxExecutionGraphWorkgroupCountAt(long index) { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxExecutionGraphWorkgroupCountAt(long index) { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(this.segment(), index); } /// {@return `maxExecutionGraphWorkgroupCount`} - public @CType("uint32_t") int maxExecutionGraphWorkgroupCount() { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxExecutionGraphWorkgroupCount() { return VkPhysicalDeviceShaderEnqueuePropertiesAMDX.get_maxExecutionGraphWorkgroupCount(this.segment()); } /// Sets `maxExecutionGraphWorkgroupCount` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxExecutionGraphWorkgroupCount(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxExecutionGraphWorkgroupCount.set(segment, 0L, index, value); } + public static void set_maxExecutionGraphWorkgroupCount(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxExecutionGraphWorkgroupCount, index), ML_maxExecutionGraphWorkgroupCount.byteSize()); } /// Sets `maxExecutionGraphWorkgroupCount` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxExecutionGraphWorkgroupCount(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(segment, 0L, value); } + public static void set_maxExecutionGraphWorkgroupCount(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(segment, 0L, value); } /// Sets `maxExecutionGraphWorkgroupCount` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderEnqueuePropertiesAMDX maxExecutionGraphWorkgroupCountAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(this.segment(), index, value); return this; } + public VkPhysicalDeviceShaderEnqueuePropertiesAMDX maxExecutionGraphWorkgroupCountAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(this.segment(), index, value); return this; } /// Sets `maxExecutionGraphWorkgroupCount` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderEnqueuePropertiesAMDX maxExecutionGraphWorkgroupCount(@CType("uint32_t") int value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(this.segment(), value); return this; } + public VkPhysicalDeviceShaderEnqueuePropertiesAMDX maxExecutionGraphWorkgroupCount(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderEnqueuePropertiesAMDX.set_maxExecutionGraphWorkgroupCount(this.segment(), value); return this; } /// {@return `maxExecutionGraphWorkgroups` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPipelineShaderStageNodeCreateInfoAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPipelineShaderStageNodeCreateInfoAMDX.java index 72499852..8c03e1d3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPipelineShaderStageNodeCreateInfoAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/struct/VkPipelineShaderStageNodeCreateInfoAMDX.java @@ -95,6 +95,17 @@ public final class VkPipelineShaderStageNodeCreateInfoAMDX extends Struct { /// @return the allocated `VkPipelineShaderStageNodeCreateInfoAMDX` public static VkPipelineShaderStageNodeCreateInfoAMDX alloc(SegmentAllocator allocator, long count) { return new VkPipelineShaderStageNodeCreateInfoAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineShaderStageNodeCreateInfoAMDX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineShaderStageNodeCreateInfoAMDX` + public VkPipelineShaderStageNodeCreateInfoAMDX asSlice(long index) { return new VkPipelineShaderStageNodeCreateInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineShaderStageNodeCreateInfoAMDX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineShaderStageNodeCreateInfoAMDX` + public VkPipelineShaderStageNodeCreateInfoAMDX asSlice(long index, long count) { return new VkPipelineShaderStageNodeCreateInfoAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/union/VkDeviceOrHostAddressConstAMDX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/union/VkDeviceOrHostAddressConstAMDX.java index 14cc4dc1..02193760 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/union/VkDeviceOrHostAddressConstAMDX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/amdx/union/VkDeviceOrHostAddressConstAMDX.java @@ -83,12 +83,23 @@ public final class VkDeviceOrHostAddressConstAMDX extends Union { /// @return the allocated `VkDeviceOrHostAddressConstAMDX` public static VkDeviceOrHostAddressConstAMDX alloc(SegmentAllocator allocator, long count) { return new VkDeviceOrHostAddressConstAMDX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceOrHostAddressConstAMDX`. + /// @param index the index of the union buffer + /// @return the slice of `VkDeviceOrHostAddressConstAMDX` + public VkDeviceOrHostAddressConstAMDX asSlice(long index) { return new VkDeviceOrHostAddressConstAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceOrHostAddressConstAMDX`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkDeviceOrHostAddressConstAMDX` + public VkDeviceOrHostAddressConstAMDX asSlice(long index, long count) { return new VkDeviceOrHostAddressConstAMDX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `deviceAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment, long index) { return (long) VH_deviceAddress.get(segment, 0L, index); } /// {@return `deviceAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment) { return VkDeviceOrHostAddressConstAMDX.get_deviceAddress(segment, 0L); } /// {@return `deviceAddress` at the given index} /// @param index the index @@ -96,12 +107,12 @@ public final class VkDeviceOrHostAddressConstAMDX extends Union { /// {@return `deviceAddress`} public @CType("VkDeviceAddress") long deviceAddress() { return VkDeviceOrHostAddressConstAMDX.get_deviceAddress(this.segment()); } /// Sets `deviceAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_deviceAddress(MemorySegment segment, long index, @CType("VkDeviceAddress") long value) { VH_deviceAddress.set(segment, 0L, index, value); } /// Sets `deviceAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_deviceAddress(MemorySegment segment, @CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressConstAMDX.set_deviceAddress(segment, 0L, value); } /// Sets `deviceAddress` with the given value at the given index. @@ -115,11 +126,11 @@ public final class VkDeviceOrHostAddressConstAMDX extends Union { public VkDeviceOrHostAddressConstAMDX deviceAddress(@CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressConstAMDX.set_deviceAddress(this.segment(), value); return this; } /// {@return `hostAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_hostAddress.get(segment, 0L, index); } /// {@return `hostAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment) { return VkDeviceOrHostAddressConstAMDX.get_hostAddress(segment, 0L); } /// {@return `hostAddress` at the given index} /// @param index the index @@ -127,12 +138,12 @@ public final class VkDeviceOrHostAddressConstAMDX extends Union { /// {@return `hostAddress`} public @CType("const void *") java.lang.foreign.MemorySegment hostAddress() { return VkDeviceOrHostAddressConstAMDX.get_hostAddress(this.segment()); } /// Sets `hostAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_hostAddress(MemorySegment segment, long index, @CType("const void *") java.lang.foreign.MemorySegment value) { VH_hostAddress.set(segment, 0L, index, value); } /// Sets `hostAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_hostAddress(MemorySegment segment, @CType("const void *") java.lang.foreign.MemorySegment value) { VkDeviceOrHostAddressConstAMDX.set_hostAddress(segment, 0L, value); } /// Sets `hostAddress` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/VKANDROIDExternalFormatResolve.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/VKANDROIDExternalFormatResolve.java index eee92121..806303e7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/VKANDROIDExternalFormatResolve.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/VKANDROIDExternalFormatResolve.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKANDROIDExternalFormatResolve { +public final class VKANDROIDExternalFormatResolve { public static final int VK_ANDROID_EXTERNAL_FORMAT_RESOLVE_SPEC_VERSION = 1; public static final String VK_ANDROID_EXTERNAL_FORMAT_RESOLVE_EXTENSION_NAME = "VK_ANDROID_external_format_resolve"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID = 1000468000; @@ -30,7 +30,6 @@ public class VKANDROIDExternalFormatResolve { public static final int VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_RESOLVE_PROPERTIES_ANDROID = 1000468002; public static final int VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID = 0x00000010; - public VKANDROIDExternalFormatResolve(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKANDROIDExternalFormatResolve() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatProperties2ANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatProperties2ANDROID.java index 50814ab8..3b9fbe0c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatProperties2ANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatProperties2ANDROID.java @@ -133,6 +133,17 @@ public final class VkAndroidHardwareBufferFormatProperties2ANDROID extends Struc /// @return the allocated `VkAndroidHardwareBufferFormatProperties2ANDROID` public static VkAndroidHardwareBufferFormatProperties2ANDROID alloc(SegmentAllocator allocator, long count) { return new VkAndroidHardwareBufferFormatProperties2ANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidHardwareBufferFormatProperties2ANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidHardwareBufferFormatProperties2ANDROID` + public VkAndroidHardwareBufferFormatProperties2ANDROID asSlice(long index) { return new VkAndroidHardwareBufferFormatProperties2ANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidHardwareBufferFormatProperties2ANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidHardwareBufferFormatProperties2ANDROID` + public VkAndroidHardwareBufferFormatProperties2ANDROID asSlice(long index, long count) { return new VkAndroidHardwareBufferFormatProperties2ANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatPropertiesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatPropertiesANDROID.java index 4eab119e..38bdbe5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatPropertiesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatPropertiesANDROID.java @@ -133,6 +133,17 @@ public final class VkAndroidHardwareBufferFormatPropertiesANDROID extends Struct /// @return the allocated `VkAndroidHardwareBufferFormatPropertiesANDROID` public static VkAndroidHardwareBufferFormatPropertiesANDROID alloc(SegmentAllocator allocator, long count) { return new VkAndroidHardwareBufferFormatPropertiesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidHardwareBufferFormatPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidHardwareBufferFormatPropertiesANDROID` + public VkAndroidHardwareBufferFormatPropertiesANDROID asSlice(long index) { return new VkAndroidHardwareBufferFormatPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidHardwareBufferFormatPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidHardwareBufferFormatPropertiesANDROID` + public VkAndroidHardwareBufferFormatPropertiesANDROID asSlice(long index, long count) { return new VkAndroidHardwareBufferFormatPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatResolvePropertiesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatResolvePropertiesANDROID.java index 92dd0cad..833865bd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatResolvePropertiesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferFormatResolvePropertiesANDROID.java @@ -89,6 +89,17 @@ public final class VkAndroidHardwareBufferFormatResolvePropertiesANDROID extends /// @return the allocated `VkAndroidHardwareBufferFormatResolvePropertiesANDROID` public static VkAndroidHardwareBufferFormatResolvePropertiesANDROID alloc(SegmentAllocator allocator, long count) { return new VkAndroidHardwareBufferFormatResolvePropertiesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidHardwareBufferFormatResolvePropertiesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidHardwareBufferFormatResolvePropertiesANDROID` + public VkAndroidHardwareBufferFormatResolvePropertiesANDROID asSlice(long index) { return new VkAndroidHardwareBufferFormatResolvePropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidHardwareBufferFormatResolvePropertiesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidHardwareBufferFormatResolvePropertiesANDROID` + public VkAndroidHardwareBufferFormatResolvePropertiesANDROID asSlice(long index, long count) { return new VkAndroidHardwareBufferFormatResolvePropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferPropertiesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferPropertiesANDROID.java index c6110193..9ad56a38 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferPropertiesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferPropertiesANDROID.java @@ -95,6 +95,17 @@ public final class VkAndroidHardwareBufferPropertiesANDROID extends Struct { /// @return the allocated `VkAndroidHardwareBufferPropertiesANDROID` public static VkAndroidHardwareBufferPropertiesANDROID alloc(SegmentAllocator allocator, long count) { return new VkAndroidHardwareBufferPropertiesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidHardwareBufferPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidHardwareBufferPropertiesANDROID` + public VkAndroidHardwareBufferPropertiesANDROID asSlice(long index) { return new VkAndroidHardwareBufferPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidHardwareBufferPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidHardwareBufferPropertiesANDROID` + public VkAndroidHardwareBufferPropertiesANDROID asSlice(long index, long count) { return new VkAndroidHardwareBufferPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferUsageANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferUsageANDROID.java index 76e2490d..6b030c49 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferUsageANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkAndroidHardwareBufferUsageANDROID.java @@ -89,6 +89,17 @@ public final class VkAndroidHardwareBufferUsageANDROID extends Struct { /// @return the allocated `VkAndroidHardwareBufferUsageANDROID` public static VkAndroidHardwareBufferUsageANDROID alloc(SegmentAllocator allocator, long count) { return new VkAndroidHardwareBufferUsageANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidHardwareBufferUsageANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidHardwareBufferUsageANDROID` + public VkAndroidHardwareBufferUsageANDROID asSlice(long index) { return new VkAndroidHardwareBufferUsageANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidHardwareBufferUsageANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidHardwareBufferUsageANDROID` + public VkAndroidHardwareBufferUsageANDROID asSlice(long index, long count) { return new VkAndroidHardwareBufferUsageANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkExternalFormatANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkExternalFormatANDROID.java index 321cbdaf..980ceb2e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkExternalFormatANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkExternalFormatANDROID.java @@ -89,6 +89,17 @@ public final class VkExternalFormatANDROID extends Struct { /// @return the allocated `VkExternalFormatANDROID` public static VkExternalFormatANDROID alloc(SegmentAllocator allocator, long count) { return new VkExternalFormatANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalFormatANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalFormatANDROID` + public VkExternalFormatANDROID asSlice(long index) { return new VkExternalFormatANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalFormatANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalFormatANDROID` + public VkExternalFormatANDROID asSlice(long index, long count) { return new VkExternalFormatANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkImportAndroidHardwareBufferInfoANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkImportAndroidHardwareBufferInfoANDROID.java index 87172264..0a00c4df 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkImportAndroidHardwareBufferInfoANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkImportAndroidHardwareBufferInfoANDROID.java @@ -89,6 +89,17 @@ public final class VkImportAndroidHardwareBufferInfoANDROID extends Struct { /// @return the allocated `VkImportAndroidHardwareBufferInfoANDROID` public static VkImportAndroidHardwareBufferInfoANDROID alloc(SegmentAllocator allocator, long count) { return new VkImportAndroidHardwareBufferInfoANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportAndroidHardwareBufferInfoANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportAndroidHardwareBufferInfoANDROID` + public VkImportAndroidHardwareBufferInfoANDROID asSlice(long index) { return new VkImportAndroidHardwareBufferInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportAndroidHardwareBufferInfoANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportAndroidHardwareBufferInfoANDROID` + public VkImportAndroidHardwareBufferInfoANDROID asSlice(long index, long count) { return new VkImportAndroidHardwareBufferInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkMemoryGetAndroidHardwareBufferInfoANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkMemoryGetAndroidHardwareBufferInfoANDROID.java index 4378bc90..7bfce67e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkMemoryGetAndroidHardwareBufferInfoANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkMemoryGetAndroidHardwareBufferInfoANDROID.java @@ -89,6 +89,17 @@ public final class VkMemoryGetAndroidHardwareBufferInfoANDROID extends Struct { /// @return the allocated `VkMemoryGetAndroidHardwareBufferInfoANDROID` public static VkMemoryGetAndroidHardwareBufferInfoANDROID alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetAndroidHardwareBufferInfoANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetAndroidHardwareBufferInfoANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetAndroidHardwareBufferInfoANDROID` + public VkMemoryGetAndroidHardwareBufferInfoANDROID asSlice(long index) { return new VkMemoryGetAndroidHardwareBufferInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetAndroidHardwareBufferInfoANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetAndroidHardwareBufferInfoANDROID` + public VkMemoryGetAndroidHardwareBufferInfoANDROID asSlice(long index, long count) { return new VkMemoryGetAndroidHardwareBufferInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferANDROID.java index f7b3e677..75f7cb65 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferANDROID.java @@ -115,6 +115,17 @@ public final class VkNativeBufferANDROID extends Struct { /// @return the allocated `VkNativeBufferANDROID` public static VkNativeBufferANDROID alloc(SegmentAllocator allocator, long count) { return new VkNativeBufferANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkNativeBufferANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkNativeBufferANDROID` + public VkNativeBufferANDROID asSlice(long index) { return new VkNativeBufferANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkNativeBufferANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkNativeBufferANDROID` + public VkNativeBufferANDROID asSlice(long index, long count) { return new VkNativeBufferANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferUsage2ANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferUsage2ANDROID.java index 9538933e..55f90d49 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferUsage2ANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkNativeBufferUsage2ANDROID.java @@ -83,6 +83,17 @@ public final class VkNativeBufferUsage2ANDROID extends Struct { /// @return the allocated `VkNativeBufferUsage2ANDROID` public static VkNativeBufferUsage2ANDROID alloc(SegmentAllocator allocator, long count) { return new VkNativeBufferUsage2ANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkNativeBufferUsage2ANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkNativeBufferUsage2ANDROID` + public VkNativeBufferUsage2ANDROID asSlice(long index) { return new VkNativeBufferUsage2ANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkNativeBufferUsage2ANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkNativeBufferUsage2ANDROID` + public VkNativeBufferUsage2ANDROID asSlice(long index, long count) { return new VkNativeBufferUsage2ANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `consumer` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolveFeaturesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolveFeaturesANDROID.java index eba06e70..ad786907 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolveFeaturesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolveFeaturesANDROID.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalFormatResolveFeaturesANDROID extends /// @return the allocated `VkPhysicalDeviceExternalFormatResolveFeaturesANDROID` public static VkPhysicalDeviceExternalFormatResolveFeaturesANDROID alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalFormatResolveFeaturesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalFormatResolveFeaturesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalFormatResolveFeaturesANDROID` + public VkPhysicalDeviceExternalFormatResolveFeaturesANDROID asSlice(long index) { return new VkPhysicalDeviceExternalFormatResolveFeaturesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalFormatResolveFeaturesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalFormatResolveFeaturesANDROID` + public VkPhysicalDeviceExternalFormatResolveFeaturesANDROID asSlice(long index, long count) { return new VkPhysicalDeviceExternalFormatResolveFeaturesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolvePropertiesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolvePropertiesANDROID.java index 0fe767f8..42b435d8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolvePropertiesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDeviceExternalFormatResolvePropertiesANDROID.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceExternalFormatResolvePropertiesANDROID extend /// @return the allocated `VkPhysicalDeviceExternalFormatResolvePropertiesANDROID` public static VkPhysicalDeviceExternalFormatResolvePropertiesANDROID alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalFormatResolvePropertiesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalFormatResolvePropertiesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalFormatResolvePropertiesANDROID` + public VkPhysicalDeviceExternalFormatResolvePropertiesANDROID asSlice(long index) { return new VkPhysicalDeviceExternalFormatResolvePropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalFormatResolvePropertiesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalFormatResolvePropertiesANDROID` + public VkPhysicalDeviceExternalFormatResolvePropertiesANDROID asSlice(long index, long count) { return new VkPhysicalDeviceExternalFormatResolvePropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDevicePresentationPropertiesANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDevicePresentationPropertiesANDROID.java index ddcb2699..3afcbc46 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDevicePresentationPropertiesANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkPhysicalDevicePresentationPropertiesANDROID.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePresentationPropertiesANDROID extends Struct /// @return the allocated `VkPhysicalDevicePresentationPropertiesANDROID` public static VkPhysicalDevicePresentationPropertiesANDROID alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePresentationPropertiesANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePresentationPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePresentationPropertiesANDROID` + public VkPhysicalDevicePresentationPropertiesANDROID asSlice(long index) { return new VkPhysicalDevicePresentationPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePresentationPropertiesANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePresentationPropertiesANDROID` + public VkPhysicalDevicePresentationPropertiesANDROID asSlice(long index, long count) { return new VkPhysicalDevicePresentationPropertiesANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkSwapchainImageCreateInfoANDROID.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkSwapchainImageCreateInfoANDROID.java index 0d9c58d4..478675a8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkSwapchainImageCreateInfoANDROID.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/android/struct/VkSwapchainImageCreateInfoANDROID.java @@ -89,6 +89,17 @@ public final class VkSwapchainImageCreateInfoANDROID extends Struct { /// @return the allocated `VkSwapchainImageCreateInfoANDROID` public static VkSwapchainImageCreateInfoANDROID alloc(SegmentAllocator allocator, long count) { return new VkSwapchainImageCreateInfoANDROID(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainImageCreateInfoANDROID`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainImageCreateInfoANDROID` + public VkSwapchainImageCreateInfoANDROID asSlice(long index) { return new VkSwapchainImageCreateInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainImageCreateInfoANDROID`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainImageCreateInfoANDROID` + public VkSwapchainImageCreateInfoANDROID asSlice(long index, long count) { return new VkSwapchainImageCreateInfoANDROID(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRasterizationOrderAttachmentAccess.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRasterizationOrderAttachmentAccess.java index 20586d2d..24b147fe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRasterizationOrderAttachmentAccess.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRasterizationOrderAttachmentAccess.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.ext.VKEXTRasterizationOrderAttachmentAccess.*; -public class VKARMRasterizationOrderAttachmentAccess { +public final class VKARMRasterizationOrderAttachmentAccess { public static final int VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION = 1; public static final String VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME = "VK_ARM_rasterization_order_attachment_access"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_ARM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_EXT; @@ -34,7 +34,6 @@ public class VKARMRasterizationOrderAttachmentAccess { public static final int VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARM = VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT; public static final int VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM = VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT; - public VKARMRasterizationOrderAttachmentAccess(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKARMRasterizationOrderAttachmentAccess() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRenderPassStriped.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRenderPassStriped.java index b7ff5085..44139dcc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRenderPassStriped.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMRenderPassStriped.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKARMRenderPassStriped { +public final class VKARMRenderPassStriped { public static final int VK_ARM_RENDER_PASS_STRIPED_SPEC_VERSION = 1; public static final String VK_ARM_RENDER_PASS_STRIPED_EXTENSION_NAME = "VK_ARM_render_pass_striped"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RENDER_PASS_STRIPED_FEATURES_ARM = 1000424000; @@ -31,7 +31,6 @@ public class VKARMRenderPassStriped { public static final int VK_STRUCTURE_TYPE_RENDER_PASS_STRIPE_INFO_ARM = 1000424003; public static final int VK_STRUCTURE_TYPE_RENDER_PASS_STRIPE_SUBMIT_INFO_ARM = 1000424004; - public VKARMRenderPassStriped(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKARMRenderPassStriped() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMSchedulingControls.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMSchedulingControls.java index ebb150eb..3f63b957 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMSchedulingControls.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMSchedulingControls.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKARMSchedulingControls { +public final class VKARMSchedulingControls { public static final long VK_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_SHADER_CORE_COUNT_ARM = 0x00000001L; public static final int VK_ARM_SCHEDULING_CONTROLS_SPEC_VERSION = 1; public static final String VK_ARM_SCHEDULING_CONTROLS_EXTENSION_NAME = "VK_ARM_scheduling_controls"; @@ -30,7 +30,6 @@ public class VKARMSchedulingControls { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_FEATURES_ARM = 1000417001; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_PROPERTIES_ARM = 1000417002; - public VKARMSchedulingControls(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKARMSchedulingControls() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreBuiltins.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreBuiltins.java index 7bc0efc0..7a88aecd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreBuiltins.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreBuiltins.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKARMShaderCoreBuiltins { +public final class VKARMShaderCoreBuiltins { public static final int VK_ARM_SHADER_CORE_BUILTINS_SPEC_VERSION = 2; public static final String VK_ARM_SHADER_CORE_BUILTINS_EXTENSION_NAME = "VK_ARM_shader_core_builtins"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM = 1000497000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM = 1000497001; - public VKARMShaderCoreBuiltins(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKARMShaderCoreBuiltins() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreProperties.java index 02e781ad..48848ccf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/VKARMShaderCoreProperties.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKARMShaderCoreProperties { +public final class VKARMShaderCoreProperties { public static final int VK_ARM_SHADER_CORE_PROPERTIES_SPEC_VERSION = 1; public static final String VK_ARM_SHADER_CORE_PROPERTIES_EXTENSION_NAME = "VK_ARM_shader_core_properties"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_ARM = 1000415000; - public VKARMShaderCoreProperties(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKARMShaderCoreProperties() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkDeviceQueueShaderCoreControlCreateInfoARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkDeviceQueueShaderCoreControlCreateInfoARM.java index 093d498e..1f66ee8c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkDeviceQueueShaderCoreControlCreateInfoARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkDeviceQueueShaderCoreControlCreateInfoARM.java @@ -89,6 +89,17 @@ public final class VkDeviceQueueShaderCoreControlCreateInfoARM extends Struct { /// @return the allocated `VkDeviceQueueShaderCoreControlCreateInfoARM` public static VkDeviceQueueShaderCoreControlCreateInfoARM alloc(SegmentAllocator allocator, long count) { return new VkDeviceQueueShaderCoreControlCreateInfoARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceQueueShaderCoreControlCreateInfoARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceQueueShaderCoreControlCreateInfoARM` + public VkDeviceQueueShaderCoreControlCreateInfoARM asSlice(long index) { return new VkDeviceQueueShaderCoreControlCreateInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceQueueShaderCoreControlCreateInfoARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceQueueShaderCoreControlCreateInfoARM` + public VkDeviceQueueShaderCoreControlCreateInfoARM asSlice(long index, long count) { return new VkDeviceQueueShaderCoreControlCreateInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedFeaturesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedFeaturesARM.java index a49705d2..f76d0ea4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedFeaturesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedFeaturesARM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRenderPassStripedFeaturesARM extends Struct { /// @return the allocated `VkPhysicalDeviceRenderPassStripedFeaturesARM` public static VkPhysicalDeviceRenderPassStripedFeaturesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRenderPassStripedFeaturesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRenderPassStripedFeaturesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRenderPassStripedFeaturesARM` + public VkPhysicalDeviceRenderPassStripedFeaturesARM asSlice(long index) { return new VkPhysicalDeviceRenderPassStripedFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRenderPassStripedFeaturesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRenderPassStripedFeaturesARM` + public VkPhysicalDeviceRenderPassStripedFeaturesARM asSlice(long index, long count) { return new VkPhysicalDeviceRenderPassStripedFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedPropertiesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedPropertiesARM.java index f696f7b8..c124135c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedPropertiesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceRenderPassStripedPropertiesARM.java @@ -97,6 +97,17 @@ public final class VkPhysicalDeviceRenderPassStripedPropertiesARM extends Struct /// @return the allocated `VkPhysicalDeviceRenderPassStripedPropertiesARM` public static VkPhysicalDeviceRenderPassStripedPropertiesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRenderPassStripedPropertiesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRenderPassStripedPropertiesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRenderPassStripedPropertiesARM` + public VkPhysicalDeviceRenderPassStripedPropertiesARM asSlice(long index) { return new VkPhysicalDeviceRenderPassStripedPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRenderPassStripedPropertiesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRenderPassStripedPropertiesARM` + public VkPhysicalDeviceRenderPassStripedPropertiesARM asSlice(long index, long count) { return new VkPhysicalDeviceRenderPassStripedPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsFeaturesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsFeaturesARM.java index ce064c8e..d3531f56 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsFeaturesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsFeaturesARM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSchedulingControlsFeaturesARM extends Struct /// @return the allocated `VkPhysicalDeviceSchedulingControlsFeaturesARM` public static VkPhysicalDeviceSchedulingControlsFeaturesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSchedulingControlsFeaturesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSchedulingControlsFeaturesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSchedulingControlsFeaturesARM` + public VkPhysicalDeviceSchedulingControlsFeaturesARM asSlice(long index) { return new VkPhysicalDeviceSchedulingControlsFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSchedulingControlsFeaturesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSchedulingControlsFeaturesARM` + public VkPhysicalDeviceSchedulingControlsFeaturesARM asSlice(long index, long count) { return new VkPhysicalDeviceSchedulingControlsFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsPropertiesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsPropertiesARM.java index 8eed8f6d..ffb799e5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsPropertiesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceSchedulingControlsPropertiesARM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSchedulingControlsPropertiesARM extends Struc /// @return the allocated `VkPhysicalDeviceSchedulingControlsPropertiesARM` public static VkPhysicalDeviceSchedulingControlsPropertiesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSchedulingControlsPropertiesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSchedulingControlsPropertiesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSchedulingControlsPropertiesARM` + public VkPhysicalDeviceSchedulingControlsPropertiesARM asSlice(long index) { return new VkPhysicalDeviceSchedulingControlsPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSchedulingControlsPropertiesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSchedulingControlsPropertiesARM` + public VkPhysicalDeviceSchedulingControlsPropertiesARM asSlice(long index, long count) { return new VkPhysicalDeviceSchedulingControlsPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.java index 815863c5..0a3ba304 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM extends Struct /// @return the allocated `VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM` public static VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM` + public VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM asSlice(long index) { return new VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM` + public VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM asSlice(long index, long count) { return new VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM.java index 0223650c..de088ab9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM extends Struc /// @return the allocated `VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM` public static VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM` + public VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM asSlice(long index) { return new VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM` + public VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM asSlice(long index, long count) { return new VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCorePropertiesARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCorePropertiesARM.java index 713b3275..8fc5304a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCorePropertiesARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkPhysicalDeviceShaderCorePropertiesARM.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceShaderCorePropertiesARM extends Struct { /// @return the allocated `VkPhysicalDeviceShaderCorePropertiesARM` public static VkPhysicalDeviceShaderCorePropertiesARM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderCorePropertiesARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderCorePropertiesARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderCorePropertiesARM` + public VkPhysicalDeviceShaderCorePropertiesARM asSlice(long index) { return new VkPhysicalDeviceShaderCorePropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderCorePropertiesARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderCorePropertiesARM` + public VkPhysicalDeviceShaderCorePropertiesARM asSlice(long index, long count) { return new VkPhysicalDeviceShaderCorePropertiesARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeBeginInfoARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeBeginInfoARM.java index f918e9f4..f67ecc5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeBeginInfoARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeBeginInfoARM.java @@ -95,6 +95,17 @@ public final class VkRenderPassStripeBeginInfoARM extends Struct { /// @return the allocated `VkRenderPassStripeBeginInfoARM` public static VkRenderPassStripeBeginInfoARM alloc(SegmentAllocator allocator, long count) { return new VkRenderPassStripeBeginInfoARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassStripeBeginInfoARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassStripeBeginInfoARM` + public VkRenderPassStripeBeginInfoARM asSlice(long index) { return new VkRenderPassStripeBeginInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassStripeBeginInfoARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassStripeBeginInfoARM` + public VkRenderPassStripeBeginInfoARM asSlice(long index, long count) { return new VkRenderPassStripeBeginInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeInfoARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeInfoARM.java index 6218c822..5cf87405 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeInfoARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeInfoARM.java @@ -91,6 +91,17 @@ public final class VkRenderPassStripeInfoARM extends Struct { /// @return the allocated `VkRenderPassStripeInfoARM` public static VkRenderPassStripeInfoARM alloc(SegmentAllocator allocator, long count) { return new VkRenderPassStripeInfoARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassStripeInfoARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassStripeInfoARM` + public VkRenderPassStripeInfoARM asSlice(long index) { return new VkRenderPassStripeInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassStripeInfoARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassStripeInfoARM` + public VkRenderPassStripeInfoARM asSlice(long index, long count) { return new VkRenderPassStripeInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeSubmitInfoARM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeSubmitInfoARM.java index 6ef088e2..ec4bbdb6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeSubmitInfoARM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/arm/struct/VkRenderPassStripeSubmitInfoARM.java @@ -95,6 +95,17 @@ public final class VkRenderPassStripeSubmitInfoARM extends Struct { /// @return the allocated `VkRenderPassStripeSubmitInfoARM` public static VkRenderPassStripeSubmitInfoARM alloc(SegmentAllocator allocator, long count) { return new VkRenderPassStripeSubmitInfoARM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassStripeSubmitInfoARM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassStripeSubmitInfoARM` + public VkRenderPassStripeSubmitInfoARM asSlice(long index) { return new VkRenderPassStripeSubmitInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassStripeSubmitInfoARM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassStripeSubmitInfoARM` + public VkRenderPassStripeSubmitInfoARM asSlice(long index, long count) { return new VkRenderPassStripeSubmitInfoARM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXT4444Formats.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXT4444Formats.java index 0b0766ee..58bae744 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXT4444Formats.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXT4444Formats.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXT4444Formats { +public final class VKEXT4444Formats { public static final int VK_EXT_4444_FORMATS_SPEC_VERSION = 1; public static final String VK_EXT_4444_FORMATS_EXTENSION_NAME = "VK_EXT_4444_formats"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT = 1000340000; public static final int VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT = VK_FORMAT_A4R4G4B4_UNORM_PACK16; public static final int VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT = VK_FORMAT_A4B4G4R4_UNORM_PACK16; - public VKEXT4444Formats(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXT4444Formats() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAstcDecodeMode.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAstcDecodeMode.java index 04066500..f83003e7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAstcDecodeMode.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAstcDecodeMode.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTAstcDecodeMode { +public final class VKEXTAstcDecodeMode { public static final int VK_EXT_ASTC_DECODE_MODE_SPEC_VERSION = 1; public static final String VK_EXT_ASTC_DECODE_MODE_EXTENSION_NAME = "VK_EXT_astc_decode_mode"; public static final int VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT = 1000067000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT = 1000067001; - public VKEXTAstcDecodeMode(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTAstcDecodeMode() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAttachmentFeedbackLoopLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAttachmentFeedbackLoopLayout.java index fddd90b4..0b5c611f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAttachmentFeedbackLoopLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTAttachmentFeedbackLoopLayout.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTAttachmentFeedbackLoopLayout { +public final class VKEXTAttachmentFeedbackLoopLayout { public static final int VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_SPEC_VERSION = 2; public static final String VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_EXTENSION_NAME = "VK_EXT_attachment_feedback_loop_layout"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_FEATURES_EXT = 1000339000; @@ -32,7 +32,6 @@ public class VKEXTAttachmentFeedbackLoopLayout { public static final int VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x04000000; public static final int VK_DEPENDENCY_FEEDBACK_LOOP_BIT_EXT = 0x00000008; - public VKEXTAttachmentFeedbackLoopLayout(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTAttachmentFeedbackLoopLayout() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBlendOperationAdvanced.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBlendOperationAdvanced.java index e6d7b861..e17a954f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBlendOperationAdvanced.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBlendOperationAdvanced.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTBlendOperationAdvanced { +public final class VKEXTBlendOperationAdvanced { public static final int VK_BLEND_OVERLAP_UNCORRELATED_EXT = 0; public static final int VK_BLEND_OVERLAP_DISJOINT_EXT = 1; public static final int VK_BLEND_OVERLAP_CONJOINT_EXT = 2; @@ -79,7 +79,6 @@ public class VKEXTBlendOperationAdvanced { public static final int VK_BLEND_OP_BLUE_EXT = 1000148045; public static final int VK_ACCESS_COLOR_ATTACHMENT_READ_NONCOHERENT_BIT_EXT = 0x00080000; - public VKEXTBlendOperationAdvanced(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTBlendOperationAdvanced() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBorderColorSwizzle.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBorderColorSwizzle.java index c9776342..4b307397 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBorderColorSwizzle.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTBorderColorSwizzle.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTBorderColorSwizzle { +public final class VKEXTBorderColorSwizzle { public static final int VK_EXT_BORDER_COLOR_SWIZZLE_SPEC_VERSION = 1; public static final String VK_EXT_BORDER_COLOR_SWIZZLE_EXTENSION_NAME = "VK_EXT_border_color_swizzle"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT = 1000411000; public static final int VK_STRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT = 1000411001; - public VKEXTBorderColorSwizzle(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTBorderColorSwizzle() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTConservativeRasterization.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTConservativeRasterization.java index 65105164..12a8ba0b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTConservativeRasterization.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTConservativeRasterization.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTConservativeRasterization { +public final class VKEXTConservativeRasterization { public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT = 0; public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT = 1; public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXT = 2; @@ -31,7 +31,6 @@ public class VKEXTConservativeRasterization { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT = 1000101000; public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT = 1000101001; - public VKEXTConservativeRasterization(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTConservativeRasterization() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTCustomBorderColor.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTCustomBorderColor.java index 4c0b0d20..e9de5b92 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTCustomBorderColor.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTCustomBorderColor.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTCustomBorderColor { +public final class VKEXTCustomBorderColor { public static final int VK_EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION = 12; public static final String VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME = "VK_EXT_custom_border_color"; public static final int VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT = 1000287000; @@ -31,7 +31,6 @@ public class VKEXTCustomBorderColor { public static final int VK_BORDER_COLOR_FLOAT_CUSTOM_EXT = 1000287003; public static final int VK_BORDER_COLOR_INT_CUSTOM_EXT = 1000287004; - public VKEXTCustomBorderColor(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTCustomBorderColor() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClampZeroOne.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClampZeroOne.java index ab45a7d8..51ad6d50 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClampZeroOne.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClampZeroOne.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDepthClampZeroOne { +public final class VKEXTDepthClampZeroOne { public static final int VK_EXT_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION = 1; public static final String VK_EXT_DEPTH_CLAMP_ZERO_ONE_EXTENSION_NAME = "VK_EXT_depth_clamp_zero_one"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_EXT = 1000421000; - public VKEXTDepthClampZeroOne(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDepthClampZeroOne() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipControl.java index 896a5975..5004ad1f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipControl.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDepthClipControl { +public final class VKEXTDepthClipControl { public static final int VK_EXT_DEPTH_CLIP_CONTROL_SPEC_VERSION = 1; public static final String VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME = "VK_EXT_depth_clip_control"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT = 1000355000; public static final int VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT = 1000355001; - public VKEXTDepthClipControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDepthClipControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipEnable.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipEnable.java index 1d2723ad..36abd15f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipEnable.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthClipEnable.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDepthClipEnable { +public final class VKEXTDepthClipEnable { public static final int VK_EXT_DEPTH_CLIP_ENABLE_SPEC_VERSION = 1; public static final String VK_EXT_DEPTH_CLIP_ENABLE_EXTENSION_NAME = "VK_EXT_depth_clip_enable"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT = 1000102000; public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT = 1000102001; - public VKEXTDepthClipEnable(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDepthClipEnable() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthRangeUnrestricted.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthRangeUnrestricted.java index 9f816ba2..623da24e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthRangeUnrestricted.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDepthRangeUnrestricted.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDepthRangeUnrestricted { +public final class VKEXTDepthRangeUnrestricted { public static final int VK_EXT_DEPTH_RANGE_UNRESTRICTED_SPEC_VERSION = 1; public static final String VK_EXT_DEPTH_RANGE_UNRESTRICTED_EXTENSION_NAME = "VK_EXT_depth_range_unrestricted"; - public VKEXTDepthRangeUnrestricted(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDepthRangeUnrestricted() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDescriptorIndexing.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDescriptorIndexing.java index 36f45b18..99b1c61c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDescriptorIndexing.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDescriptorIndexing.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKEXTDescriptorIndexing { +public final class VKEXTDescriptorIndexing { public static final int VK_EXT_DESCRIPTOR_INDEXING_SPEC_VERSION = 2; public static final String VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME = "VK_EXT_descriptor_indexing"; public static final int VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO; @@ -39,7 +39,6 @@ public class VKEXTDescriptorIndexing { public static final int VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT = VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT; public static final int VK_ERROR_FRAGMENTATION_EXT = VK_ERROR_FRAGMENTATION; - public VKEXTDescriptorIndexing(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDescriptorIndexing() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceAddressBindingReport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceAddressBindingReport.java index 7b0c6626..a2de8133 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceAddressBindingReport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceAddressBindingReport.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDeviceAddressBindingReport { +public final class VKEXTDeviceAddressBindingReport { public static final int VK_DEVICE_ADDRESS_BINDING_INTERNAL_OBJECT_BIT_EXT = 0x00000001; public static final int VK_DEVICE_ADDRESS_BINDING_TYPE_BIND_EXT = 0; public static final int VK_DEVICE_ADDRESS_BINDING_TYPE_UNBIND_EXT = 1; @@ -32,7 +32,6 @@ public class VKEXTDeviceAddressBindingReport { public static final int VK_STRUCTURE_TYPE_DEVICE_ADDRESS_BINDING_CALLBACK_DATA_EXT = 1000354001; public static final int VK_DEBUG_UTILS_MESSAGE_TYPE_DEVICE_ADDRESS_BINDING_BIT_EXT = 0x00000008; - public VKEXTDeviceAddressBindingReport(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDeviceAddressBindingReport() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceMemoryReport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceMemoryReport.java index f2183d35..abb55453 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceMemoryReport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDeviceMemoryReport.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDeviceMemoryReport { +public final class VKEXTDeviceMemoryReport { public static final int VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATE_EXT = 0; public static final int VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_FREE_EXT = 1; public static final int VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_IMPORT_EXT = 2; @@ -34,7 +34,6 @@ public class VKEXTDeviceMemoryReport { public static final int VK_STRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT = 1000284001; public static final int VK_STRUCTURE_TYPE_DEVICE_MEMORY_REPORT_CALLBACK_DATA_EXT = 1000284002; - public VKEXTDeviceMemoryReport(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDeviceMemoryReport() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDynamicRenderingUnusedAttachments.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDynamicRenderingUnusedAttachments.java index a8c25455..a58bf335 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDynamicRenderingUnusedAttachments.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTDynamicRenderingUnusedAttachments.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTDynamicRenderingUnusedAttachments { +public final class VKEXTDynamicRenderingUnusedAttachments { public static final int VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_SPEC_VERSION = 1; public static final String VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_EXTENSION_NAME = "VK_EXT_dynamic_rendering_unused_attachments"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_FEATURES_EXT = 1000499000; - public VKEXTDynamicRenderingUnusedAttachments(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTDynamicRenderingUnusedAttachments() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryAcquireUnmodified.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryAcquireUnmodified.java index 98e084c8..8f5c3f45 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryAcquireUnmodified.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryAcquireUnmodified.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTExternalMemoryAcquireUnmodified { +public final class VKEXTExternalMemoryAcquireUnmodified { public static final int VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_SPEC_VERSION = 1; public static final String VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXTENSION_NAME = "VK_EXT_external_memory_acquire_unmodified"; public static final int VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXT = 1000453000; - public VKEXTExternalMemoryAcquireUnmodified(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTExternalMemoryAcquireUnmodified() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryDmaBuf.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryDmaBuf.java index 24398d2f..cd8a067e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryDmaBuf.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTExternalMemoryDmaBuf.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTExternalMemoryDmaBuf { +public final class VKEXTExternalMemoryDmaBuf { public static final int VK_EXT_EXTERNAL_MEMORY_DMA_BUF_SPEC_VERSION = 1; public static final String VK_EXT_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME = "VK_EXT_external_memory_dma_buf"; public static final int VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT = 0x00000200; - public VKEXTExternalMemoryDmaBuf(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTExternalMemoryDmaBuf() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFilterCubic.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFilterCubic.java index 4546144c..c70b5a87 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFilterCubic.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFilterCubic.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTFilterCubic { +public final class VKEXTFilterCubic { public static final int VK_EXT_FILTER_CUBIC_SPEC_VERSION = 3; public static final String VK_EXT_FILTER_CUBIC_EXTENSION_NAME = "VK_EXT_filter_cubic"; public static final int VK_FILTER_CUBIC_EXT = 1000170000; @@ -30,7 +30,6 @@ public class VKEXTFilterCubic { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT = 1000170000; public static final int VK_STRUCTURE_TYPE_FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT = 1000170001; - public VKEXTFilterCubic(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTFilterCubic() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap.java index 9ba9fbcc..abbbd1a7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.ext.VKEXTFragmentDensityMap.*; -public class VKEXTFragmentDensityMap { +public final class VKEXTFragmentDensityMap { public static final int VK_EXT_FRAGMENT_DENSITY_MAP_SPEC_VERSION = 2; public static final String VK_EXT_FRAGMENT_DENSITY_MAP_EXTENSION_NAME = "VK_EXT_fragment_density_map"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT = 1000218000; @@ -43,7 +43,6 @@ public class VKEXTFragmentDensityMap { public static final int VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT = 1000218007; public static final int VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT; - public VKEXTFragmentDensityMap(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTFragmentDensityMap() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap2.java index 839208ba..f2db0ffc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentDensityMap2.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTFragmentDensityMap2 { +public final class VKEXTFragmentDensityMap2 { public static final int VK_EXT_FRAGMENT_DENSITY_MAP_2_SPEC_VERSION = 1; public static final String VK_EXT_FRAGMENT_DENSITY_MAP_2_EXTENSION_NAME = "VK_EXT_fragment_density_map2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT = 1000332000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT = 1000332001; public static final int VK_IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT = 0x00000002; - public VKEXTFragmentDensityMap2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTFragmentDensityMap2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentShaderInterlock.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentShaderInterlock.java index b781a016..e1faaa16 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentShaderInterlock.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFragmentShaderInterlock.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTFragmentShaderInterlock { +public final class VKEXTFragmentShaderInterlock { public static final int VK_EXT_FRAGMENT_SHADER_INTERLOCK_SPEC_VERSION = 1; public static final String VK_EXT_FRAGMENT_SHADER_INTERLOCK_EXTENSION_NAME = "VK_EXT_fragment_shader_interlock"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT = 1000251000; - public VKEXTFragmentShaderInterlock(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTFragmentShaderInterlock() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFrameBoundary.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFrameBoundary.java index 13cd8ced..5e2c9e12 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFrameBoundary.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTFrameBoundary.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTFrameBoundary { +public final class VKEXTFrameBoundary { public static final int VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT = 0x00000001; public static final int VK_EXT_FRAME_BOUNDARY_SPEC_VERSION = 1; public static final String VK_EXT_FRAME_BOUNDARY_EXTENSION_NAME = "VK_EXT_frame_boundary"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAME_BOUNDARY_FEATURES_EXT = 1000375000; public static final int VK_STRUCTURE_TYPE_FRAME_BOUNDARY_EXT = 1000375001; - public VKEXTFrameBoundary(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTFrameBoundary() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriority.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriority.java index 8fac1ba6..e87b2f11 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriority.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriority.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTGlobalPriority { +public final class VKEXTGlobalPriority { public static final int VK_EXT_GLOBAL_PRIORITY_SPEC_VERSION = 2; public static final String VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME = "VK_EXT_global_priority"; public static final int VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO; @@ -33,7 +33,6 @@ public class VKEXTGlobalPriority { public static final int VK_QUEUE_GLOBAL_PRIORITY_HIGH_EXT = VK_QUEUE_GLOBAL_PRIORITY_HIGH; public static final int VK_QUEUE_GLOBAL_PRIORITY_REALTIME_EXT = VK_QUEUE_GLOBAL_PRIORITY_REALTIME; - public VKEXTGlobalPriority(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTGlobalPriority() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriorityQuery.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriorityQuery.java index 0dc9b805..b935a788 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriorityQuery.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGlobalPriorityQuery.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTGlobalPriorityQuery { +public final class VKEXTGlobalPriorityQuery { public static final int VK_EXT_GLOBAL_PRIORITY_QUERY_SPEC_VERSION = 1; public static final String VK_EXT_GLOBAL_PRIORITY_QUERY_EXTENSION_NAME = "VK_EXT_global_priority_query"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES; public static final int VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES; public static final int VK_MAX_GLOBAL_PRIORITY_SIZE_EXT = VK_MAX_GLOBAL_PRIORITY_SIZE; - public VKEXTGlobalPriorityQuery(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTGlobalPriorityQuery() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGraphicsPipelineLibrary.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGraphicsPipelineLibrary.java index 067db11b..0a702881 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGraphicsPipelineLibrary.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTGraphicsPipelineLibrary.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTGraphicsPipelineLibrary { +public final class VKEXTGraphicsPipelineLibrary { public static final int VK_GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT = 0x00000001; public static final int VK_GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT = 0x00000002; public static final int VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT = 0x00000004; @@ -36,7 +36,6 @@ public class VKEXTGraphicsPipelineLibrary { public static final int VK_PIPELINE_CREATE_LINK_TIME_OPTIMIZATION_BIT_EXT = 0x00000400; public static final int VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT = 0x00000002; - public VKEXTGraphicsPipelineLibrary(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTGraphicsPipelineLibrary() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImage2dViewOf3d.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImage2dViewOf3d.java index a8ea421b..e51e8535 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImage2dViewOf3d.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImage2dViewOf3d.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTImage2dViewOf3d { +public final class VKEXTImage2dViewOf3d { public static final int VK_EXT_IMAGE_2D_VIEW_OF_3D_SPEC_VERSION = 1; public static final String VK_EXT_IMAGE_2D_VIEW_OF_3D_EXTENSION_NAME = "VK_EXT_image_2d_view_of_3d"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT = 1000393000; public static final int VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT = 0x00020000; - public VKEXTImage2dViewOf3d(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTImage2dViewOf3d() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageCompressionControlSwapchain.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageCompressionControlSwapchain.java index 57d9cc8a..b99c84b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageCompressionControlSwapchain.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageCompressionControlSwapchain.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTImageCompressionControlSwapchain { +public final class VKEXTImageCompressionControlSwapchain { public static final int VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_SPEC_VERSION = 1; public static final String VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_EXTENSION_NAME = "VK_EXT_image_compression_control_swapchain"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_FEATURES_EXT = 1000437000; - public VKEXTImageCompressionControlSwapchain(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTImageCompressionControlSwapchain() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageRobustness.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageRobustness.java index 2c57a724..c54c8bd6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageRobustness.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageRobustness.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTImageRobustness { +public final class VKEXTImageRobustness { public static final int VK_EXT_IMAGE_ROBUSTNESS_SPEC_VERSION = 1; public static final String VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME = "VK_EXT_image_robustness"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES; - public VKEXTImageRobustness(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTImageRobustness() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageSlicedViewOf3d.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageSlicedViewOf3d.java index dffe4ece..851cf47d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageSlicedViewOf3d.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageSlicedViewOf3d.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTImageSlicedViewOf3d { +public final class VKEXTImageSlicedViewOf3d { public static final int VK_EXT_IMAGE_SLICED_VIEW_OF_3D_SPEC_VERSION = 1; public static final String VK_EXT_IMAGE_SLICED_VIEW_OF_3D_EXTENSION_NAME = "VK_EXT_image_sliced_view_of_3d"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_SLICED_VIEW_OF_3D_FEATURES_EXT = 1000418000; public static final int VK_STRUCTURE_TYPE_IMAGE_VIEW_SLICED_CREATE_INFO_EXT = 1000418001; public static final int VK_REMAINING_3D_SLICES_EXT = (~0); - public VKEXTImageSlicedViewOf3d(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTImageSlicedViewOf3d() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageViewMinLod.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageViewMinLod.java index 2c2573f9..605a2f16 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageViewMinLod.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTImageViewMinLod.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTImageViewMinLod { +public final class VKEXTImageViewMinLod { public static final int VK_EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION = 1; public static final String VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME = "VK_EXT_image_view_min_lod"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT = 1000391000; public static final int VK_STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT = 1000391001; - public VKEXTImageViewMinLod(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTImageViewMinLod() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTIndexTypeUint8.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTIndexTypeUint8.java index 902de74e..899f2bfb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTIndexTypeUint8.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTIndexTypeUint8.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTIndexTypeUint8 { +public final class VKEXTIndexTypeUint8 { public static final int VK_EXT_INDEX_TYPE_UINT8_SPEC_VERSION = 1; public static final String VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME = "VK_EXT_index_type_uint8"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES; public static final int VK_INDEX_TYPE_UINT8_EXT = VK_INDEX_TYPE_UINT8; - public VKEXTIndexTypeUint8(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTIndexTypeUint8() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTInlineUniformBlock.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTInlineUniformBlock.java index b561ff97..ae6910a7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTInlineUniformBlock.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTInlineUniformBlock.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTInlineUniformBlock { +public final class VKEXTInlineUniformBlock { public static final int VK_EXT_INLINE_UNIFORM_BLOCK_SPEC_VERSION = 1; public static final String VK_EXT_INLINE_UNIFORM_BLOCK_EXTENSION_NAME = "VK_EXT_inline_uniform_block"; public static final int VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT = VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK; @@ -32,7 +32,6 @@ public class VKEXTInlineUniformBlock { public static final int VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK; public static final int VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO; - public VKEXTInlineUniformBlock(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTInlineUniformBlock() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLayerSettings.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLayerSettings.java index 64a962f0..5003b1b3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLayerSettings.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLayerSettings.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTLayerSettings { +public final class VKEXTLayerSettings { public static final int VK_LAYER_SETTING_TYPE_BOOL32_EXT = 0; public static final int VK_LAYER_SETTING_TYPE_INT32_EXT = 1; public static final int VK_LAYER_SETTING_TYPE_INT64_EXT = 2; @@ -35,7 +35,6 @@ public class VKEXTLayerSettings { public static final String VK_EXT_LAYER_SETTINGS_EXTENSION_NAME = "VK_EXT_layer_settings"; public static final int VK_STRUCTURE_TYPE_LAYER_SETTINGS_CREATE_INFO_EXT = 1000496000; - public VKEXTLayerSettings(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKEXTLayerSettings() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyDithering.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyDithering.java index 28fdc52b..d49b7181 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyDithering.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyDithering.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTLegacyDithering { +public final class VKEXTLegacyDithering { public static final int VK_EXT_LEGACY_DITHERING_SPEC_VERSION = 2; public static final String VK_EXT_LEGACY_DITHERING_EXTENSION_NAME = "VK_EXT_legacy_dithering"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_DITHERING_FEATURES_EXT = 1000465000; @@ -30,7 +30,6 @@ public class VKEXTLegacyDithering { public static final int VK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT = 0x00000008; public static final long VK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT = 0x400000000L; - public VKEXTLegacyDithering(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTLegacyDithering() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyVertexAttributes.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyVertexAttributes.java index c24b7af1..4b405671 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyVertexAttributes.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLegacyVertexAttributes.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTLegacyVertexAttributes { +public final class VKEXTLegacyVertexAttributes { public static final int VK_EXT_LEGACY_VERTEX_ATTRIBUTES_SPEC_VERSION = 1; public static final String VK_EXT_LEGACY_VERTEX_ATTRIBUTES_EXTENSION_NAME = "VK_EXT_legacy_vertex_attributes"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_VERTEX_ATTRIBUTES_FEATURES_EXT = 1000495000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_VERTEX_ATTRIBUTES_PROPERTIES_EXT = 1000495001; - public VKEXTLegacyVertexAttributes(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTLegacyVertexAttributes() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLoadStoreOpNone.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLoadStoreOpNone.java index 2eee7c7d..97c5ded4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLoadStoreOpNone.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTLoadStoreOpNone.java @@ -24,13 +24,12 @@ import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; import static overrungl.vulkan.VK14.*; -public class VKEXTLoadStoreOpNone { +public final class VKEXTLoadStoreOpNone { public static final int VK_EXT_LOAD_STORE_OP_NONE_SPEC_VERSION = 1; public static final String VK_EXT_LOAD_STORE_OP_NONE_EXTENSION_NAME = "VK_EXT_load_store_op_none"; public static final int VK_ATTACHMENT_LOAD_OP_NONE_EXT = VK_ATTACHMENT_LOAD_OP_NONE; public static final int VK_ATTACHMENT_STORE_OP_NONE_EXT = VK_ATTACHMENT_STORE_OP_NONE; - public VKEXTLoadStoreOpNone(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTLoadStoreOpNone() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMapMemoryPlaced.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMapMemoryPlaced.java index 4aec7fa3..d5634d64 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMapMemoryPlaced.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMapMemoryPlaced.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTMapMemoryPlaced { +public final class VKEXTMapMemoryPlaced { public static final int VK_EXT_MAP_MEMORY_PLACED_SPEC_VERSION = 1; public static final String VK_EXT_MAP_MEMORY_PLACED_EXTENSION_NAME = "VK_EXT_map_memory_placed"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAP_MEMORY_PLACED_FEATURES_EXT = 1000272000; @@ -31,7 +31,6 @@ public class VKEXTMapMemoryPlaced { public static final int VK_MEMORY_MAP_PLACED_BIT_EXT = 0x00000001; public static final int VK_MEMORY_UNMAP_RESERVE_BIT_EXT = 0x00000001; - public VKEXTMapMemoryPlaced(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTMapMemoryPlaced() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryBudget.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryBudget.java index a4cec693..1cd3e164 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryBudget.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryBudget.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTMemoryBudget { +public final class VKEXTMemoryBudget { public static final int VK_EXT_MEMORY_BUDGET_SPEC_VERSION = 1; public static final String VK_EXT_MEMORY_BUDGET_EXTENSION_NAME = "VK_EXT_memory_budget"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT = 1000237000; - public VKEXTMemoryBudget(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTMemoryBudget() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryPriority.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryPriority.java index a908258b..cdd1ac76 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryPriority.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMemoryPriority.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTMemoryPriority { +public final class VKEXTMemoryPriority { public static final int VK_EXT_MEMORY_PRIORITY_SPEC_VERSION = 1; public static final String VK_EXT_MEMORY_PRIORITY_EXTENSION_NAME = "VK_EXT_memory_priority"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT = 1000238000; public static final int VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT = 1000238001; - public VKEXTMemoryPriority(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTMemoryPriority() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMultisampledRenderToSingleSampled.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMultisampledRenderToSingleSampled.java index ce5fc60c..54ceec0b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMultisampledRenderToSingleSampled.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMultisampledRenderToSingleSampled.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTMultisampledRenderToSingleSampled { +public final class VKEXTMultisampledRenderToSingleSampled { public static final int VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_SPEC_VERSION = 1; public static final String VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_EXTENSION_NAME = "VK_EXT_multisampled_render_to_single_sampled"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_FEATURES_EXT = 1000376000; @@ -30,7 +30,6 @@ public class VKEXTMultisampledRenderToSingleSampled { public static final int VK_STRUCTURE_TYPE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_INFO_EXT = 1000376002; public static final int VK_IMAGE_CREATE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_BIT_EXT = 0x00040000; - public VKEXTMultisampledRenderToSingleSampled(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTMultisampledRenderToSingleSampled() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMutableDescriptorType.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMutableDescriptorType.java index cb979cfd..1151dd8b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMutableDescriptorType.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTMutableDescriptorType.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTMutableDescriptorType { +public final class VKEXTMutableDescriptorType { public static final int VK_EXT_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION = 1; public static final String VK_EXT_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME = "VK_EXT_mutable_descriptor_type"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_EXT = 1000494000; @@ -31,7 +31,6 @@ public class VKEXTMutableDescriptorType { public static final int VK_DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_EXT = 0x00000004; public static final int VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT = 0x00000004; - public VKEXTMutableDescriptorType(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTMutableDescriptorType() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNestedCommandBuffer.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNestedCommandBuffer.java index b7993962..5b860457 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNestedCommandBuffer.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNestedCommandBuffer.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.khr.VKKHRMaintenance7.*; -public class VKEXTNestedCommandBuffer { +public final class VKEXTNestedCommandBuffer { public static final int VK_EXT_NESTED_COMMAND_BUFFER_SPEC_VERSION = 1; public static final String VK_EXT_NESTED_COMMAND_BUFFER_EXTENSION_NAME = "VK_EXT_nested_command_buffer"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_NESTED_COMMAND_BUFFER_FEATURES_EXT = 1000451000; @@ -31,7 +31,6 @@ public class VKEXTNestedCommandBuffer { public static final int VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT = VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_KHR; public static final int VK_RENDERING_CONTENTS_INLINE_BIT_EXT = VK_RENDERING_CONTENTS_INLINE_BIT_KHR; - public VKEXTNestedCommandBuffer(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTNestedCommandBuffer() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNonSeamlessCubeMap.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNonSeamlessCubeMap.java index 90843bfc..e5d7dad8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNonSeamlessCubeMap.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTNonSeamlessCubeMap.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTNonSeamlessCubeMap { +public final class VKEXTNonSeamlessCubeMap { public static final int VK_EXT_NON_SEAMLESS_CUBE_MAP_SPEC_VERSION = 1; public static final String VK_EXT_NON_SEAMLESS_CUBE_MAP_EXTENSION_NAME = "VK_EXT_non_seamless_cube_map"; public static final int VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT = 0x00000004; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_NON_SEAMLESS_CUBE_MAP_FEATURES_EXT = 1000422000; - public VKEXTNonSeamlessCubeMap(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTNonSeamlessCubeMap() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPciBusInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPciBusInfo.java index f9ee91b4..8d60c6f9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPciBusInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPciBusInfo.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPciBusInfo { +public final class VKEXTPciBusInfo { public static final int VK_EXT_PCI_BUS_INFO_SPEC_VERSION = 2; public static final String VK_EXT_PCI_BUS_INFO_EXTENSION_NAME = "VK_EXT_pci_bus_info"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT = 1000212000; - public VKEXTPciBusInfo(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPciBusInfo() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPhysicalDeviceDrm.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPhysicalDeviceDrm.java index 3761c9e0..cdd764a2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPhysicalDeviceDrm.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPhysicalDeviceDrm.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPhysicalDeviceDrm { +public final class VKEXTPhysicalDeviceDrm { public static final int VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION = 1; public static final String VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME = "VK_EXT_physical_device_drm"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT = 1000353000; - public VKEXTPhysicalDeviceDrm(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPhysicalDeviceDrm() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationCacheControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationCacheControl.java index 6ddde4b4..9b4795e5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationCacheControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationCacheControl.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTPipelineCreationCacheControl { +public final class VKEXTPipelineCreationCacheControl { public static final int VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_SPEC_VERSION = 3; public static final String VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_EXTENSION_NAME = "VK_EXT_pipeline_creation_cache_control"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES; @@ -33,7 +33,6 @@ public class VKEXTPipelineCreationCacheControl { public static final int VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT = VK_PIPELINE_COMPILE_REQUIRED; public static final int VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT_EXT = VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT; - public VKEXTPipelineCreationCacheControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPipelineCreationCacheControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationFeedback.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationFeedback.java index e18fd221..cda9e2bb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationFeedback.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineCreationFeedback.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTPipelineCreationFeedback { +public final class VKEXTPipelineCreationFeedback { public static final int VK_EXT_PIPELINE_CREATION_FEEDBACK_SPEC_VERSION = 1; public static final String VK_EXT_PIPELINE_CREATION_FEEDBACK_EXTENSION_NAME = "VK_EXT_pipeline_creation_feedback"; public static final int VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO; @@ -31,7 +31,6 @@ public class VKEXTPipelineCreationFeedback { public static final int VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT = VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT; public static final int VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT_EXT = VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT; - public VKEXTPipelineCreationFeedback(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPipelineCreationFeedback() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineLibraryGroupHandles.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineLibraryGroupHandles.java index 50c7b0ca..2d1c5cf9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineLibraryGroupHandles.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineLibraryGroupHandles.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPipelineLibraryGroupHandles { +public final class VKEXTPipelineLibraryGroupHandles { public static final int VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_SPEC_VERSION = 1; public static final String VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_EXTENSION_NAME = "VK_EXT_pipeline_library_group_handles"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_LIBRARY_GROUP_HANDLES_FEATURES_EXT = 1000498000; - public VKEXTPipelineLibraryGroupHandles(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPipelineLibraryGroupHandles() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineProtectedAccess.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineProtectedAccess.java index 495f22eb..219acc11 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineProtectedAccess.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineProtectedAccess.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTPipelineProtectedAccess { +public final class VKEXTPipelineProtectedAccess { public static final int VK_EXT_PIPELINE_PROTECTED_ACCESS_SPEC_VERSION = 1; public static final String VK_EXT_PIPELINE_PROTECTED_ACCESS_EXTENSION_NAME = "VK_EXT_pipeline_protected_access"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES; public static final int VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT_EXT = VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT; public static final int VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT_EXT = VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT; - public VKEXTPipelineProtectedAccess(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPipelineProtectedAccess() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineRobustness.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineRobustness.java index 7b12f695..e2195bc3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineRobustness.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPipelineRobustness.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTPipelineRobustness { +public final class VKEXTPipelineRobustness { public static final int VK_EXT_PIPELINE_ROBUSTNESS_SPEC_VERSION = 1; public static final String VK_EXT_PIPELINE_ROBUSTNESS_EXTENSION_NAME = "VK_EXT_pipeline_robustness"; public static final int VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO; @@ -38,7 +38,6 @@ public class VKEXTPipelineRobustness { public static final int VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS; public static final int VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2; - public VKEXTPipelineRobustness(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPipelineRobustness() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPostDepthCoverage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPostDepthCoverage.java index 3532d740..cba8c726 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPostDepthCoverage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPostDepthCoverage.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPostDepthCoverage { +public final class VKEXTPostDepthCoverage { public static final int VK_EXT_POST_DEPTH_COVERAGE_SPEC_VERSION = 1; public static final String VK_EXT_POST_DEPTH_COVERAGE_EXTENSION_NAME = "VK_EXT_post_depth_coverage"; - public VKEXTPostDepthCoverage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPostDepthCoverage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPresentModeFifoLatestReady.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPresentModeFifoLatestReady.java index f58ea813..c51096b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPresentModeFifoLatestReady.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPresentModeFifoLatestReady.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPresentModeFifoLatestReady { +public final class VKEXTPresentModeFifoLatestReady { public static final int VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_SPEC_VERSION = 1; public static final String VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_EXTENSION_NAME = "VK_EXT_present_mode_fifo_latest_ready"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT = 1000361000; public static final int VK_PRESENT_MODE_FIFO_LATEST_READY_EXT = 1000361000; - public VKEXTPresentModeFifoLatestReady(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPresentModeFifoLatestReady() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitiveTopologyListRestart.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitiveTopologyListRestart.java index 78db03a6..452487d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitiveTopologyListRestart.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitiveTopologyListRestart.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPrimitiveTopologyListRestart { +public final class VKEXTPrimitiveTopologyListRestart { public static final int VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_SPEC_VERSION = 1; public static final String VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_EXTENSION_NAME = "VK_EXT_primitive_topology_list_restart"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT = 1000356000; - public VKEXTPrimitiveTopologyListRestart(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPrimitiveTopologyListRestart() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitivesGeneratedQuery.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitivesGeneratedQuery.java index 5bbf33c9..a6ea87d8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitivesGeneratedQuery.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTPrimitivesGeneratedQuery.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTPrimitivesGeneratedQuery { +public final class VKEXTPrimitivesGeneratedQuery { public static final int VK_EXT_PRIMITIVES_GENERATED_QUERY_SPEC_VERSION = 1; public static final String VK_EXT_PRIMITIVES_GENERATED_QUERY_EXTENSION_NAME = "VK_EXT_primitives_generated_query"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVES_GENERATED_QUERY_FEATURES_EXT = 1000382000; public static final int VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT = 1000382000; - public VKEXTPrimitivesGeneratedQuery(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTPrimitivesGeneratedQuery() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTProvokingVertex.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTProvokingVertex.java index 8aeef5ee..1ccfe9a6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTProvokingVertex.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTProvokingVertex.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTProvokingVertex { +public final class VKEXTProvokingVertex { public static final int VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT = 0; public static final int VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT = 1; public static final int VK_EXT_PROVOKING_VERTEX_SPEC_VERSION = 1; @@ -31,7 +31,6 @@ public class VKEXTProvokingVertex { public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT = 1000254001; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT = 1000254002; - public VKEXTProvokingVertex(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTProvokingVertex() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTQueueFamilyForeign.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTQueueFamilyForeign.java index 4c78f651..5ab21bcb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTQueueFamilyForeign.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTQueueFamilyForeign.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTQueueFamilyForeign { +public final class VKEXTQueueFamilyForeign { public static final int VK_EXT_QUEUE_FAMILY_FOREIGN_SPEC_VERSION = 1; public static final String VK_EXT_QUEUE_FAMILY_FOREIGN_EXTENSION_NAME = "VK_EXT_queue_family_foreign"; public static final int VK_QUEUE_FAMILY_FOREIGN_EXT = (~2); - public VKEXTQueueFamilyForeign(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTQueueFamilyForeign() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRasterizationOrderAttachmentAccess.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRasterizationOrderAttachmentAccess.java index c1915c71..053e61ae 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRasterizationOrderAttachmentAccess.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRasterizationOrderAttachmentAccess.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTRasterizationOrderAttachmentAccess { +public final class VKEXTRasterizationOrderAttachmentAccess { public static final int VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION = 1; public static final String VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME = "VK_EXT_rasterization_order_attachment_access"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_EXT = 1000463000; @@ -33,7 +33,6 @@ public class VKEXTRasterizationOrderAttachmentAccess { public static final int VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT = 0x00000020; public static final int VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT = 0x00000040; - public VKEXTRasterizationOrderAttachmentAccess(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTRasterizationOrderAttachmentAccess() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRgba10x6Formats.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRgba10x6Formats.java index 3615822b..c966e77b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRgba10x6Formats.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRgba10x6Formats.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTRgba10x6Formats { +public final class VKEXTRgba10x6Formats { public static final int VK_EXT_RGBA10X6_FORMATS_SPEC_VERSION = 1; public static final String VK_EXT_RGBA10X6_FORMATS_EXTENSION_NAME = "VK_EXT_rgba10x6_formats"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT = 1000344000; - public VKEXTRgba10x6Formats(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTRgba10x6Formats() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRobustness2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRobustness2.java index af01bab3..0f50c867 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRobustness2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTRobustness2.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTRobustness2 { +public final class VKEXTRobustness2 { public static final int VK_EXT_ROBUSTNESS_2_SPEC_VERSION = 1; public static final String VK_EXT_ROBUSTNESS_2_EXTENSION_NAME = "VK_EXT_robustness2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT = 1000286000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT = 1000286001; - public VKEXTRobustness2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTRobustness2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSamplerFilterMinmax.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSamplerFilterMinmax.java index 34de68ae..053d1bba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSamplerFilterMinmax.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSamplerFilterMinmax.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKEXTSamplerFilterMinmax { +public final class VKEXTSamplerFilterMinmax { public static final int VK_EXT_SAMPLER_FILTER_MINMAX_SPEC_VERSION = 2; public static final String VK_EXT_SAMPLER_FILTER_MINMAX_EXTENSION_NAME = "VK_EXT_sampler_filter_minmax"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES; @@ -33,7 +33,6 @@ public class VKEXTSamplerFilterMinmax { public static final int VK_SAMPLER_REDUCTION_MODE_MIN_EXT = VK_SAMPLER_REDUCTION_MODE_MIN; public static final int VK_SAMPLER_REDUCTION_MODE_MAX_EXT = VK_SAMPLER_REDUCTION_MODE_MAX; - public VKEXTSamplerFilterMinmax(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTSamplerFilterMinmax() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTScalarBlockLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTScalarBlockLayout.java index 30b9e788..cd4fb0d7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTScalarBlockLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTScalarBlockLayout.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKEXTScalarBlockLayout { +public final class VKEXTScalarBlockLayout { public static final int VK_EXT_SCALAR_BLOCK_LAYOUT_SPEC_VERSION = 1; public static final String VK_EXT_SCALAR_BLOCK_LAYOUT_EXTENSION_NAME = "VK_EXT_scalar_block_layout"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES; - public VKEXTScalarBlockLayout(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTScalarBlockLayout() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSeparateStencilUsage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSeparateStencilUsage.java index 848de80d..f51a2149 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSeparateStencilUsage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSeparateStencilUsage.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKEXTSeparateStencilUsage { +public final class VKEXTSeparateStencilUsage { public static final int VK_EXT_SEPARATE_STENCIL_USAGE_SPEC_VERSION = 1; public static final String VK_EXT_SEPARATE_STENCIL_USAGE_EXTENSION_NAME = "VK_EXT_separate_stencil_usage"; public static final int VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO; - public VKEXTSeparateStencilUsage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTSeparateStencilUsage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat.java index 3fe61db4..01a6bc59 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderAtomicFloat { +public final class VKEXTShaderAtomicFloat { public static final int VK_EXT_SHADER_ATOMIC_FLOAT_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME = "VK_EXT_shader_atomic_float"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT = 1000260000; - public VKEXTShaderAtomicFloat(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderAtomicFloat() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat2.java index e8293c04..6825e5a4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderAtomicFloat2.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderAtomicFloat2 { +public final class VKEXTShaderAtomicFloat2 { public static final int VK_EXT_SHADER_ATOMIC_FLOAT_2_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_ATOMIC_FLOAT_2_EXTENSION_NAME = "VK_EXT_shader_atomic_float2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT = 1000273000; - public VKEXTShaderAtomicFloat2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderAtomicFloat2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderDemoteToHelperInvocation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderDemoteToHelperInvocation.java index 07028c7a..0a7ec464 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderDemoteToHelperInvocation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderDemoteToHelperInvocation.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTShaderDemoteToHelperInvocation { +public final class VKEXTShaderDemoteToHelperInvocation { public static final int VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME = "VK_EXT_shader_demote_to_helper_invocation"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES; - public VKEXTShaderDemoteToHelperInvocation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderDemoteToHelperInvocation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderImageAtomicInt64.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderImageAtomicInt64.java index 07271b83..31014e02 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderImageAtomicInt64.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderImageAtomicInt64.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderImageAtomicInt64 { +public final class VKEXTShaderImageAtomicInt64 { public static final int VK_EXT_SHADER_IMAGE_ATOMIC_INT64_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_IMAGE_ATOMIC_INT64_EXTENSION_NAME = "VK_EXT_shader_image_atomic_int64"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT = 1000234000; - public VKEXTShaderImageAtomicInt64(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderImageAtomicInt64() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderReplicatedComposites.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderReplicatedComposites.java index 09172d75..a677f101 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderReplicatedComposites.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderReplicatedComposites.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderReplicatedComposites { +public final class VKEXTShaderReplicatedComposites { public static final int VK_EXT_SHADER_REPLICATED_COMPOSITES_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_REPLICATED_COMPOSITES_EXTENSION_NAME = "VK_EXT_shader_replicated_composites"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT = 1000564000; - public VKEXTShaderReplicatedComposites(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderReplicatedComposites() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderStencilExport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderStencilExport.java index cc07ad5c..9a235ecb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderStencilExport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderStencilExport.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderStencilExport { +public final class VKEXTShaderStencilExport { public static final int VK_EXT_SHADER_STENCIL_EXPORT_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_STENCIL_EXPORT_EXTENSION_NAME = "VK_EXT_shader_stencil_export"; - public VKEXTShaderStencilExport(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderStencilExport() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupBallot.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupBallot.java index 1fa390f1..ad3a05aa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupBallot.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupBallot.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderSubgroupBallot { +public final class VKEXTShaderSubgroupBallot { public static final int VK_EXT_SHADER_SUBGROUP_BALLOT_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_SUBGROUP_BALLOT_EXTENSION_NAME = "VK_EXT_shader_subgroup_ballot"; - public VKEXTShaderSubgroupBallot(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderSubgroupBallot() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupVote.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupVote.java index bad08771..70d62507 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupVote.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderSubgroupVote.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderSubgroupVote { +public final class VKEXTShaderSubgroupVote { public static final int VK_EXT_SHADER_SUBGROUP_VOTE_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_SUBGROUP_VOTE_EXTENSION_NAME = "VK_EXT_shader_subgroup_vote"; - public VKEXTShaderSubgroupVote(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderSubgroupVote() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderTileImage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderTileImage.java index 7cae43e1..05d4e370 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderTileImage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderTileImage.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderTileImage { +public final class VKEXTShaderTileImage { public static final int VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME = "VK_EXT_shader_tile_image"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_FEATURES_EXT = 1000395000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXT = 1000395001; - public VKEXTShaderTileImage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderTileImage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderViewportIndexLayer.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderViewportIndexLayer.java index 132f9e0f..013a4a6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderViewportIndexLayer.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTShaderViewportIndexLayer.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTShaderViewportIndexLayer { +public final class VKEXTShaderViewportIndexLayer { public static final int VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION = 1; public static final String VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME = "VK_EXT_shader_viewport_index_layer"; - public VKEXTShaderViewportIndexLayer(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTShaderViewportIndexLayer() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubgroupSizeControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubgroupSizeControl.java index ac596eba..27188dbd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubgroupSizeControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubgroupSizeControl.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTSubgroupSizeControl { +public final class VKEXTSubgroupSizeControl { public static final int VK_EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION = 2; public static final String VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME = "VK_EXT_subgroup_size_control"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES; @@ -32,7 +32,6 @@ public class VKEXTSubgroupSizeControl { public static final int VK_PIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT = VK_PIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT; public static final int VK_PIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT = VK_PIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT; - public VKEXTSubgroupSizeControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTSubgroupSizeControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubpassMergeFeedback.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubpassMergeFeedback.java index 9d87851d..82cd8d3b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubpassMergeFeedback.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSubpassMergeFeedback.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTSubpassMergeFeedback { +public final class VKEXTSubpassMergeFeedback { public static final int VK_SUBPASS_MERGE_STATUS_MERGED_EXT = 0; public static final int VK_SUBPASS_MERGE_STATUS_DISALLOWED_EXT = 1; public static final int VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SIDE_EFFECTS_EXT = 2; @@ -44,7 +44,6 @@ public class VKEXTSubpassMergeFeedback { public static final int VK_STRUCTURE_TYPE_RENDER_PASS_CREATION_FEEDBACK_CREATE_INFO_EXT = 1000458002; public static final int VK_STRUCTURE_TYPE_RENDER_PASS_SUBPASS_FEEDBACK_CREATE_INFO_EXT = 1000458003; - public VKEXTSubpassMergeFeedback(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTSubpassMergeFeedback() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSurfaceMaintenance1.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSurfaceMaintenance1.java index fba91859..03e2f783 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSurfaceMaintenance1.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSurfaceMaintenance1.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTSurfaceMaintenance1 { +public final class VKEXTSurfaceMaintenance1 { public static final int VK_PRESENT_SCALING_ONE_TO_ONE_BIT_EXT = 0x00000001; public static final int VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_EXT = 0x00000002; public static final int VK_PRESENT_SCALING_STRETCH_BIT_EXT = 0x00000004; @@ -35,7 +35,6 @@ public class VKEXTSurfaceMaintenance1 { public static final int VK_STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXT = 1000274001; public static final int VK_STRUCTURE_TYPE_SURFACE_PRESENT_MODE_COMPATIBILITY_EXT = 1000274002; - public VKEXTSurfaceMaintenance1(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKEXTSurfaceMaintenance1() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSwapchainColorspace.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSwapchainColorspace.java index a95ab07c..de04b675 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSwapchainColorspace.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTSwapchainColorspace.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.ext.VKEXTSwapchainColorspace.*; -public class VKEXTSwapchainColorspace { +public final class VKEXTSwapchainColorspace { public static final int VK_EXT_SWAPCHAIN_COLOR_SPACE_SPEC_VERSION = 5; public static final String VK_EXT_SWAPCHAIN_COLOR_SPACE_EXTENSION_NAME = "VK_EXT_swapchain_colorspace"; public static final int VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104001; @@ -42,7 +42,6 @@ public class VKEXTSwapchainColorspace { public static final int VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT = 1000104014; public static final int VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT; - public VKEXTSwapchainColorspace(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKEXTSwapchainColorspace() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTexelBufferAlignment.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTexelBufferAlignment.java index a446a12b..5881f927 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTexelBufferAlignment.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTexelBufferAlignment.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTTexelBufferAlignment { +public final class VKEXTTexelBufferAlignment { public static final int VK_EXT_TEXEL_BUFFER_ALIGNMENT_SPEC_VERSION = 1; public static final String VK_EXT_TEXEL_BUFFER_ALIGNMENT_EXTENSION_NAME = "VK_EXT_texel_buffer_alignment"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT = 1000281000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES; - public VKEXTTexelBufferAlignment(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTTexelBufferAlignment() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTextureCompressionAstcHdr.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTextureCompressionAstcHdr.java index ce56b042..f5375f70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTextureCompressionAstcHdr.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTTextureCompressionAstcHdr.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTTextureCompressionAstcHdr { +public final class VKEXTTextureCompressionAstcHdr { public static final int VK_EXT_TEXTURE_COMPRESSION_ASTC_HDR_SPEC_VERSION = 1; public static final String VK_EXT_TEXTURE_COMPRESSION_ASTC_HDR_EXTENSION_NAME = "VK_EXT_texture_compression_astc_hdr"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES; @@ -42,7 +42,6 @@ public class VKEXTTextureCompressionAstcHdr { public static final int VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT = VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK; public static final int VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT = VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK; - public VKEXTTextureCompressionAstcHdr(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTTextureCompressionAstcHdr() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFeatures.java index d76f4786..38afa929 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFeatures.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTValidationFeatures { +public final class VKEXTValidationFeatures { public static final int VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT = 0; public static final int VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT = 1; public static final int VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT = 2; @@ -40,7 +40,6 @@ public class VKEXTValidationFeatures { public static final String VK_EXT_VALIDATION_FEATURES_EXTENSION_NAME = "VK_EXT_validation_features"; public static final int VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT = 1000247000; - public VKEXTValidationFeatures(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKEXTValidationFeatures() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFlags.java index 4123d948..45bfd276 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTValidationFlags.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTValidationFlags { +public final class VKEXTValidationFlags { public static final int VK_VALIDATION_CHECK_ALL_EXT = 0; public static final int VK_VALIDATION_CHECK_SHADERS_EXT = 1; public static final int VK_EXT_VALIDATION_FLAGS_SPEC_VERSION = 3; public static final String VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME = "VK_EXT_validation_flags"; public static final int VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000; - public VKEXTValidationFlags(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKEXTValidationFlags() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeDivisor.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeDivisor.java index c918ba2c..588d8090 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeDivisor.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeDivisor.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKEXTVertexAttributeDivisor { +public final class VKEXTVertexAttributeDivisor { public static final int VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION = 3; public static final String VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME = "VK_EXT_vertex_attribute_divisor"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT = 1000190000; public static final int VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES; - public VKEXTVertexAttributeDivisor(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTVertexAttributeDivisor() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeRobustness.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeRobustness.java index 445a346f..52ec0803 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeRobustness.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTVertexAttributeRobustness.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTVertexAttributeRobustness { +public final class VKEXTVertexAttributeRobustness { public static final int VK_EXT_VERTEX_ATTRIBUTE_ROBUSTNESS_SPEC_VERSION = 1; public static final String VK_EXT_VERTEX_ATTRIBUTE_ROBUSTNESS_EXTENSION_NAME = "VK_EXT_vertex_attribute_robustness"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_ROBUSTNESS_FEATURES_EXT = 1000608000; - public VKEXTVertexAttributeRobustness(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTVertexAttributeRobustness() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcr2plane444Formats.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcr2plane444Formats.java index 5e07466c..03223ffb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcr2plane444Formats.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcr2plane444Formats.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKEXTYcbcr2plane444Formats { +public final class VKEXTYcbcr2plane444Formats { public static final int VK_EXT_YCBCR_2PLANE_444_FORMATS_SPEC_VERSION = 1; public static final String VK_EXT_YCBCR_2PLANE_444_FORMATS_EXTENSION_NAME = "VK_EXT_ycbcr_2plane_444_formats"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT = 1000330000; @@ -32,7 +32,6 @@ public class VKEXTYcbcr2plane444Formats { public static final int VK_FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16_EXT = VK_FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16; public static final int VK_FORMAT_G16_B16R16_2PLANE_444_UNORM_EXT = VK_FORMAT_G16_B16R16_2PLANE_444_UNORM; - public VKEXTYcbcr2plane444Formats(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTYcbcr2plane444Formats() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcrImageArrays.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcrImageArrays.java index db1afbba..80865bcb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcrImageArrays.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/VKEXTYcbcrImageArrays.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKEXTYcbcrImageArrays { +public final class VKEXTYcbcrImageArrays { public static final int VK_EXT_YCBCR_IMAGE_ARRAYS_SPEC_VERSION = 1; public static final String VK_EXT_YCBCR_IMAGE_ARRAYS_EXTENSION_NAME = "VK_EXT_ycbcr_image_arrays"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT = 1000252000; - public VKEXTYcbcrImageArrays(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKEXTYcbcrImageArrays() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureCaptureDescriptorDataInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureCaptureDescriptorDataInfoEXT.java index 8b452a1f..dce61a33 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureCaptureDescriptorDataInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureCaptureDescriptorDataInfoEXT.java @@ -95,6 +95,17 @@ public final class VkAccelerationStructureCaptureDescriptorDataInfoEXT extends S /// @return the allocated `VkAccelerationStructureCaptureDescriptorDataInfoEXT` public static VkAccelerationStructureCaptureDescriptorDataInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureCaptureDescriptorDataInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureCaptureDescriptorDataInfoEXT` + public VkAccelerationStructureCaptureDescriptorDataInfoEXT asSlice(long index) { return new VkAccelerationStructureCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureCaptureDescriptorDataInfoEXT` + public VkAccelerationStructureCaptureDescriptorDataInfoEXT asSlice(long index, long count) { return new VkAccelerationStructureCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureTrianglesOpacityMicromapEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureTrianglesOpacityMicromapEXT.java index f352610e..27c5cf6a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureTrianglesOpacityMicromapEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAccelerationStructureTrianglesOpacityMicromapEXT.java @@ -133,6 +133,17 @@ public final class VkAccelerationStructureTrianglesOpacityMicromapEXT extends St /// @return the allocated `VkAccelerationStructureTrianglesOpacityMicromapEXT` public static VkAccelerationStructureTrianglesOpacityMicromapEXT alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureTrianglesOpacityMicromapEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureTrianglesOpacityMicromapEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureTrianglesOpacityMicromapEXT` + public VkAccelerationStructureTrianglesOpacityMicromapEXT asSlice(long index) { return new VkAccelerationStructureTrianglesOpacityMicromapEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureTrianglesOpacityMicromapEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureTrianglesOpacityMicromapEXT` + public VkAccelerationStructureTrianglesOpacityMicromapEXT asSlice(long index, long count) { return new VkAccelerationStructureTrianglesOpacityMicromapEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkApplicationParametersEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkApplicationParametersEXT.java index 83179d00..5eae05ec 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkApplicationParametersEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkApplicationParametersEXT.java @@ -107,6 +107,17 @@ public final class VkApplicationParametersEXT extends Struct { /// @return the allocated `VkApplicationParametersEXT` public static VkApplicationParametersEXT alloc(SegmentAllocator allocator, long count) { return new VkApplicationParametersEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkApplicationParametersEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkApplicationParametersEXT` + public VkApplicationParametersEXT asSlice(long index) { return new VkApplicationParametersEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkApplicationParametersEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkApplicationParametersEXT` + public VkApplicationParametersEXT asSlice(long index, long count) { return new VkApplicationParametersEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAttachmentSampleLocationsEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAttachmentSampleLocationsEXT.java index d5f4b066..6135eda9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAttachmentSampleLocationsEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkAttachmentSampleLocationsEXT.java @@ -85,6 +85,17 @@ public final class VkAttachmentSampleLocationsEXT extends Struct { /// @return the allocated `VkAttachmentSampleLocationsEXT` public static VkAttachmentSampleLocationsEXT alloc(SegmentAllocator allocator, long count) { return new VkAttachmentSampleLocationsEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentSampleLocationsEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentSampleLocationsEXT` + public VkAttachmentSampleLocationsEXT asSlice(long index) { return new VkAttachmentSampleLocationsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentSampleLocationsEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentSampleLocationsEXT` + public VkAttachmentSampleLocationsEXT asSlice(long index, long count) { return new VkAttachmentSampleLocationsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `attachmentIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindDescriptorBufferEmbeddedSamplersInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindDescriptorBufferEmbeddedSamplersInfoEXT.java index ae509b71..3bbc4c9d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindDescriptorBufferEmbeddedSamplersInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindDescriptorBufferEmbeddedSamplersInfoEXT.java @@ -101,6 +101,17 @@ public final class VkBindDescriptorBufferEmbeddedSamplersInfoEXT extends Struct /// @return the allocated `VkBindDescriptorBufferEmbeddedSamplersInfoEXT` public static VkBindDescriptorBufferEmbeddedSamplersInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkBindDescriptorBufferEmbeddedSamplersInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindDescriptorBufferEmbeddedSamplersInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindDescriptorBufferEmbeddedSamplersInfoEXT` + public VkBindDescriptorBufferEmbeddedSamplersInfoEXT asSlice(long index) { return new VkBindDescriptorBufferEmbeddedSamplersInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindDescriptorBufferEmbeddedSamplersInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindDescriptorBufferEmbeddedSamplersInfoEXT` + public VkBindDescriptorBufferEmbeddedSamplersInfoEXT asSlice(long index, long count) { return new VkBindDescriptorBufferEmbeddedSamplersInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindIndexBufferIndirectCommandEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindIndexBufferIndirectCommandEXT.java index dbefb545..a22ea335 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindIndexBufferIndirectCommandEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindIndexBufferIndirectCommandEXT.java @@ -89,6 +89,17 @@ public final class VkBindIndexBufferIndirectCommandEXT extends Struct { /// @return the allocated `VkBindIndexBufferIndirectCommandEXT` public static VkBindIndexBufferIndirectCommandEXT alloc(SegmentAllocator allocator, long count) { return new VkBindIndexBufferIndirectCommandEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindIndexBufferIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindIndexBufferIndirectCommandEXT` + public VkBindIndexBufferIndirectCommandEXT asSlice(long index) { return new VkBindIndexBufferIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindIndexBufferIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindIndexBufferIndirectCommandEXT` + public VkBindIndexBufferIndirectCommandEXT asSlice(long index, long count) { return new VkBindIndexBufferIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindVertexBufferIndirectCommandEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindVertexBufferIndirectCommandEXT.java index 8ecdb37b..9ef97075 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindVertexBufferIndirectCommandEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBindVertexBufferIndirectCommandEXT.java @@ -89,6 +89,17 @@ public final class VkBindVertexBufferIndirectCommandEXT extends Struct { /// @return the allocated `VkBindVertexBufferIndirectCommandEXT` public static VkBindVertexBufferIndirectCommandEXT alloc(SegmentAllocator allocator, long count) { return new VkBindVertexBufferIndirectCommandEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindVertexBufferIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindVertexBufferIndirectCommandEXT` + public VkBindVertexBufferIndirectCommandEXT asSlice(long index) { return new VkBindVertexBufferIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindVertexBufferIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindVertexBufferIndirectCommandEXT` + public VkBindVertexBufferIndirectCommandEXT asSlice(long index, long count) { return new VkBindVertexBufferIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferCaptureDescriptorDataInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferCaptureDescriptorDataInfoEXT.java index 5db6606f..62e15525 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferCaptureDescriptorDataInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferCaptureDescriptorDataInfoEXT.java @@ -89,6 +89,17 @@ public final class VkBufferCaptureDescriptorDataInfoEXT extends Struct { /// @return the allocated `VkBufferCaptureDescriptorDataInfoEXT` public static VkBufferCaptureDescriptorDataInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkBufferCaptureDescriptorDataInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCaptureDescriptorDataInfoEXT` + public VkBufferCaptureDescriptorDataInfoEXT asSlice(long index) { return new VkBufferCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCaptureDescriptorDataInfoEXT` + public VkBufferCaptureDescriptorDataInfoEXT asSlice(long index, long count) { return new VkBufferCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferDeviceAddressCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferDeviceAddressCreateInfoEXT.java index 79fccef4..369fac20 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferDeviceAddressCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkBufferDeviceAddressCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkBufferDeviceAddressCreateInfoEXT extends Struct { /// @return the allocated `VkBufferDeviceAddressCreateInfoEXT` public static VkBufferDeviceAddressCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkBufferDeviceAddressCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferDeviceAddressCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferDeviceAddressCreateInfoEXT` + public VkBufferDeviceAddressCreateInfoEXT asSlice(long index) { return new VkBufferDeviceAddressCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferDeviceAddressCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferDeviceAddressCreateInfoEXT` + public VkBufferDeviceAddressCreateInfoEXT asSlice(long index, long count) { return new VkBufferDeviceAddressCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendAdvancedEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendAdvancedEXT.java index 9bc23eb7..702d279f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendAdvancedEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendAdvancedEXT.java @@ -101,6 +101,17 @@ public final class VkColorBlendAdvancedEXT extends Struct { /// @return the allocated `VkColorBlendAdvancedEXT` public static VkColorBlendAdvancedEXT alloc(SegmentAllocator allocator, long count) { return new VkColorBlendAdvancedEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkColorBlendAdvancedEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkColorBlendAdvancedEXT` + public VkColorBlendAdvancedEXT asSlice(long index) { return new VkColorBlendAdvancedEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkColorBlendAdvancedEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkColorBlendAdvancedEXT` + public VkColorBlendAdvancedEXT asSlice(long index, long count) { return new VkColorBlendAdvancedEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `advancedBlendOp` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendEquationEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendEquationEXT.java index 19289cbf..a800bce7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendEquationEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkColorBlendEquationEXT.java @@ -107,6 +107,17 @@ public final class VkColorBlendEquationEXT extends Struct { /// @return the allocated `VkColorBlendEquationEXT` public static VkColorBlendEquationEXT alloc(SegmentAllocator allocator, long count) { return new VkColorBlendEquationEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkColorBlendEquationEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkColorBlendEquationEXT` + public VkColorBlendEquationEXT asSlice(long index) { return new VkColorBlendEquationEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkColorBlendEquationEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkColorBlendEquationEXT` + public VkColorBlendEquationEXT asSlice(long index, long count) { return new VkColorBlendEquationEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcColorBlendFactor` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCommandBufferInheritanceConditionalRenderingInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCommandBufferInheritanceConditionalRenderingInfoEXT.java index 4b462b1b..db480fb8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCommandBufferInheritanceConditionalRenderingInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCommandBufferInheritanceConditionalRenderingInfoEXT.java @@ -89,6 +89,17 @@ public final class VkCommandBufferInheritanceConditionalRenderingInfoEXT extends /// @return the allocated `VkCommandBufferInheritanceConditionalRenderingInfoEXT` public static VkCommandBufferInheritanceConditionalRenderingInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferInheritanceConditionalRenderingInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferInheritanceConditionalRenderingInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferInheritanceConditionalRenderingInfoEXT` + public VkCommandBufferInheritanceConditionalRenderingInfoEXT asSlice(long index) { return new VkCommandBufferInheritanceConditionalRenderingInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferInheritanceConditionalRenderingInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferInheritanceConditionalRenderingInfoEXT` + public VkCommandBufferInheritanceConditionalRenderingInfoEXT asSlice(long index, long count) { return new VkCommandBufferInheritanceConditionalRenderingInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkConditionalRenderingBeginInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkConditionalRenderingBeginInfoEXT.java index b8e185d3..5b48193e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkConditionalRenderingBeginInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkConditionalRenderingBeginInfoEXT.java @@ -101,6 +101,17 @@ public final class VkConditionalRenderingBeginInfoEXT extends Struct { /// @return the allocated `VkConditionalRenderingBeginInfoEXT` public static VkConditionalRenderingBeginInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkConditionalRenderingBeginInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkConditionalRenderingBeginInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkConditionalRenderingBeginInfoEXT` + public VkConditionalRenderingBeginInfoEXT asSlice(long index) { return new VkConditionalRenderingBeginInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkConditionalRenderingBeginInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkConditionalRenderingBeginInfoEXT` + public VkConditionalRenderingBeginInfoEXT asSlice(long index, long count) { return new VkConditionalRenderingBeginInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMemoryToMicromapInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMemoryToMicromapInfoEXT.java index 94ad2fd2..0edbca80 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMemoryToMicromapInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMemoryToMicromapInfoEXT.java @@ -103,6 +103,17 @@ public final class VkCopyMemoryToMicromapInfoEXT extends Struct { /// @return the allocated `VkCopyMemoryToMicromapInfoEXT` public static VkCopyMemoryToMicromapInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkCopyMemoryToMicromapInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMemoryToMicromapInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMemoryToMicromapInfoEXT` + public VkCopyMemoryToMicromapInfoEXT asSlice(long index) { return new VkCopyMemoryToMicromapInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMemoryToMicromapInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMemoryToMicromapInfoEXT` + public VkCopyMemoryToMicromapInfoEXT asSlice(long index, long count) { return new VkCopyMemoryToMicromapInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapInfoEXT.java index 994b565c..30e7168e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapInfoEXT.java @@ -101,6 +101,17 @@ public final class VkCopyMicromapInfoEXT extends Struct { /// @return the allocated `VkCopyMicromapInfoEXT` public static VkCopyMicromapInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkCopyMicromapInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMicromapInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMicromapInfoEXT` + public VkCopyMicromapInfoEXT asSlice(long index) { return new VkCopyMicromapInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMicromapInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMicromapInfoEXT` + public VkCopyMicromapInfoEXT asSlice(long index, long count) { return new VkCopyMicromapInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapToMemoryInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapToMemoryInfoEXT.java index f89661cb..1475cf80 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapToMemoryInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkCopyMicromapToMemoryInfoEXT.java @@ -103,6 +103,17 @@ public final class VkCopyMicromapToMemoryInfoEXT extends Struct { /// @return the allocated `VkCopyMicromapToMemoryInfoEXT` public static VkCopyMicromapToMemoryInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkCopyMicromapToMemoryInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMicromapToMemoryInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMicromapToMemoryInfoEXT` + public VkCopyMicromapToMemoryInfoEXT asSlice(long index) { return new VkCopyMicromapToMemoryInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMicromapToMemoryInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMicromapToMemoryInfoEXT` + public VkCopyMicromapToMemoryInfoEXT asSlice(long index, long count) { return new VkCopyMicromapToMemoryInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerMarkerInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerMarkerInfoEXT.java index 1a3828e0..985cafa5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerMarkerInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerMarkerInfoEXT.java @@ -32,7 +32,7 @@ /// ### pMarkerName /// [VarHandle][#VH_pMarkerName] - [Getter][#pMarkerName()] - [Setter][#pMarkerName(java.lang.foreign.MemorySegment)] /// ### color -/// [Byte offset handle][#MH_color] - [Memory layout][#ML_color] - [Getter][#color(long)] - [Setter][#color(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_color] - [Memory layout][#ML_color] - [Getter][#color()] - [Setter][#color(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -57,8 +57,8 @@ public final class VkDebugMarkerMarkerInfoEXT extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `pMarkerName` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pMarkerName = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pMarkerName")); - /// The byte offset handle of `color` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_color = LAYOUT.byteOffsetHandle(PathElement.groupElement("color"), PathElement.sequenceElement()); + /// The byte offset of `color`. + public static final long OFFSET_color = LAYOUT.byteOffset(PathElement.groupElement("color")); /// The memory layout of `color`. public static final MemoryLayout ML_color = LAYOUT.select(PathElement.groupElement("color")); @@ -97,6 +97,17 @@ public final class VkDebugMarkerMarkerInfoEXT extends Struct { /// @return the allocated `VkDebugMarkerMarkerInfoEXT` public static VkDebugMarkerMarkerInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugMarkerMarkerInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugMarkerMarkerInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugMarkerMarkerInfoEXT` + public VkDebugMarkerMarkerInfoEXT asSlice(long index) { return new VkDebugMarkerMarkerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugMarkerMarkerInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugMarkerMarkerInfoEXT` + public VkDebugMarkerMarkerInfoEXT asSlice(long index, long count) { return new VkDebugMarkerMarkerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -191,48 +202,34 @@ public final class VkDebugMarkerMarkerInfoEXT extends Struct { public VkDebugMarkerMarkerInfoEXT pMarkerName(@CType("const char *") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_pMarkerName(this.segment(), value); return this; } /// {@return `color` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_color.invokeExact(0L, elementIndex), index), ML_color); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_color, index), ML_color); } /// {@return `color`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment, long elementIndex) { return VkDebugMarkerMarkerInfoEXT.get_color(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment) { return VkDebugMarkerMarkerInfoEXT.get_color(segment, 0L); } /// {@return `color` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("float[4]") java.lang.foreign.MemorySegment colorAt(long index, long elementIndex) { return VkDebugMarkerMarkerInfoEXT.get_color(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("float[4]") java.lang.foreign.MemorySegment colorAt(long index) { return VkDebugMarkerMarkerInfoEXT.get_color(this.segment(), index); } /// {@return `color`} - /// @param elementIndex the index of the element - public @CType("float[4]") java.lang.foreign.MemorySegment color(long elementIndex) { return VkDebugMarkerMarkerInfoEXT.get_color(this.segment(), elementIndex); } + public @CType("float[4]") java.lang.foreign.MemorySegment color() { return VkDebugMarkerMarkerInfoEXT.get_color(this.segment()); } /// Sets `color` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_color(MemorySegment segment, long index, long elementIndex, @CType("float[4]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_color.invokeExact(0L, elementIndex), index), ML_color.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_color(MemorySegment segment, long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_color, index), ML_color.byteSize()); } /// Sets `color` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_color(MemorySegment segment, long elementIndex, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_color(MemorySegment segment, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(segment, 0L, value); } /// Sets `color` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkDebugMarkerMarkerInfoEXT colorAt(long index, long elementIndex, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(this.segment(), index, elementIndex, value); return this; } + public VkDebugMarkerMarkerInfoEXT colorAt(long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(this.segment(), index, value); return this; } /// Sets `color` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkDebugMarkerMarkerInfoEXT color(long elementIndex, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(this.segment(), elementIndex, value); return this; } + public VkDebugMarkerMarkerInfoEXT color(@CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugMarkerMarkerInfoEXT.set_color(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectNameInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectNameInfoEXT.java index cda37b24..9dda9601 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectNameInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectNameInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDebugMarkerObjectNameInfoEXT extends Struct { /// @return the allocated `VkDebugMarkerObjectNameInfoEXT` public static VkDebugMarkerObjectNameInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugMarkerObjectNameInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugMarkerObjectNameInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugMarkerObjectNameInfoEXT` + public VkDebugMarkerObjectNameInfoEXT asSlice(long index) { return new VkDebugMarkerObjectNameInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugMarkerObjectNameInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugMarkerObjectNameInfoEXT` + public VkDebugMarkerObjectNameInfoEXT asSlice(long index, long count) { return new VkDebugMarkerObjectNameInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectTagInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectTagInfoEXT.java index 99957823..a58cc669 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectTagInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugMarkerObjectTagInfoEXT.java @@ -113,6 +113,17 @@ public final class VkDebugMarkerObjectTagInfoEXT extends Struct { /// @return the allocated `VkDebugMarkerObjectTagInfoEXT` public static VkDebugMarkerObjectTagInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugMarkerObjectTagInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugMarkerObjectTagInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugMarkerObjectTagInfoEXT` + public VkDebugMarkerObjectTagInfoEXT asSlice(long index) { return new VkDebugMarkerObjectTagInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugMarkerObjectTagInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugMarkerObjectTagInfoEXT` + public VkDebugMarkerObjectTagInfoEXT asSlice(long index, long count) { return new VkDebugMarkerObjectTagInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugReportCallbackCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugReportCallbackCreateInfoEXT.java index 2a30d617..a87ef54d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugReportCallbackCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugReportCallbackCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDebugReportCallbackCreateInfoEXT extends Struct { /// @return the allocated `VkDebugReportCallbackCreateInfoEXT` public static VkDebugReportCallbackCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugReportCallbackCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugReportCallbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugReportCallbackCreateInfoEXT` + public VkDebugReportCallbackCreateInfoEXT asSlice(long index) { return new VkDebugReportCallbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugReportCallbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugReportCallbackCreateInfoEXT` + public VkDebugReportCallbackCreateInfoEXT asSlice(long index, long count) { return new VkDebugReportCallbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsLabelEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsLabelEXT.java index 8c4f4ee1..c3805506 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsLabelEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsLabelEXT.java @@ -32,7 +32,7 @@ /// ### pLabelName /// [VarHandle][#VH_pLabelName] - [Getter][#pLabelName()] - [Setter][#pLabelName(java.lang.foreign.MemorySegment)] /// ### color -/// [VarHandle][#VH_color] - [Getter][#color()] - [Setter][#color(float)] +/// [Byte offset][#OFFSET_color] - [Memory layout][#ML_color] - [Getter][#color()] - [Setter][#color(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -40,7 +40,7 @@ /// VkStructureType sType; /// const void * pNext; /// const char * pLabelName; -/// float color; +/// float[4] color; /// } VkDebugUtilsLabelEXT; /// ``` public final class VkDebugUtilsLabelEXT extends Struct { @@ -49,7 +49,7 @@ public final class VkDebugUtilsLabelEXT extends Struct { ValueLayout.JAVA_INT.withName("sType"), ValueLayout.ADDRESS.withName("pNext"), ValueLayout.ADDRESS.withName("pLabelName"), - ValueLayout.JAVA_FLOAT.withName("color") + MemoryLayout.sequenceLayout(4, ValueLayout.JAVA_FLOAT).withName("color") ); /// The [VarHandle] of `sType` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); @@ -57,8 +57,10 @@ public final class VkDebugUtilsLabelEXT extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `pLabelName` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pLabelName = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pLabelName")); - /// The [VarHandle] of `color` of type `(MemorySegment base, long baseOffset, long index)float`. - public static final VarHandle VH_color = LAYOUT.arrayElementVarHandle(PathElement.groupElement("color")); + /// The byte offset of `color`. + public static final long OFFSET_color = LAYOUT.byteOffset(PathElement.groupElement("color")); + /// The memory layout of `color`. + public static final MemoryLayout ML_color = LAYOUT.select(PathElement.groupElement("color")); /// Creates `VkDebugUtilsLabelEXT` with the given segment. /// @param segment the memory segment @@ -95,6 +97,17 @@ public final class VkDebugUtilsLabelEXT extends Struct { /// @return the allocated `VkDebugUtilsLabelEXT` public static VkDebugUtilsLabelEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugUtilsLabelEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugUtilsLabelEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugUtilsLabelEXT` + public VkDebugUtilsLabelEXT asSlice(long index) { return new VkDebugUtilsLabelEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugUtilsLabelEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugUtilsLabelEXT` + public VkDebugUtilsLabelEXT asSlice(long index, long count) { return new VkDebugUtilsLabelEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -191,32 +204,32 @@ public final class VkDebugUtilsLabelEXT extends Struct { /// {@return `color` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("float") float get_color(MemorySegment segment, long index) { return (float) VH_color.get(segment, 0L, index); } + public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_color, index), ML_color); } /// {@return `color`} /// @param segment the segment of the struct - public static @CType("float") float get_color(MemorySegment segment) { return VkDebugUtilsLabelEXT.get_color(segment, 0L); } + public static @CType("float[4]") java.lang.foreign.MemorySegment get_color(MemorySegment segment) { return VkDebugUtilsLabelEXT.get_color(segment, 0L); } /// {@return `color` at the given index} /// @param index the index - public @CType("float") float colorAt(long index) { return VkDebugUtilsLabelEXT.get_color(this.segment(), index); } + public @CType("float[4]") java.lang.foreign.MemorySegment colorAt(long index) { return VkDebugUtilsLabelEXT.get_color(this.segment(), index); } /// {@return `color`} - public @CType("float") float color() { return VkDebugUtilsLabelEXT.get_color(this.segment()); } + public @CType("float[4]") java.lang.foreign.MemorySegment color() { return VkDebugUtilsLabelEXT.get_color(this.segment()); } /// Sets `color` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_color(MemorySegment segment, long index, @CType("float") float value) { VH_color.set(segment, 0L, index, value); } + public static void set_color(MemorySegment segment, long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_color, index), ML_color.byteSize()); } /// Sets `color` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_color(MemorySegment segment, @CType("float") float value) { VkDebugUtilsLabelEXT.set_color(segment, 0L, value); } + public static void set_color(MemorySegment segment, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugUtilsLabelEXT.set_color(segment, 0L, value); } /// Sets `color` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkDebugUtilsLabelEXT colorAt(long index, @CType("float") float value) { VkDebugUtilsLabelEXT.set_color(this.segment(), index, value); return this; } + public VkDebugUtilsLabelEXT colorAt(long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugUtilsLabelEXT.set_color(this.segment(), index, value); return this; } /// Sets `color` with the given value. /// @param value the value /// @return `this` - public VkDebugUtilsLabelEXT color(@CType("float") float value) { VkDebugUtilsLabelEXT.set_color(this.segment(), value); return this; } + public VkDebugUtilsLabelEXT color(@CType("float[4]") java.lang.foreign.MemorySegment value) { VkDebugUtilsLabelEXT.set_color(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCallbackDataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCallbackDataEXT.java index d04d5ccf..f098fff0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCallbackDataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCallbackDataEXT.java @@ -143,6 +143,17 @@ public final class VkDebugUtilsMessengerCallbackDataEXT extends Struct { /// @return the allocated `VkDebugUtilsMessengerCallbackDataEXT` public static VkDebugUtilsMessengerCallbackDataEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugUtilsMessengerCallbackDataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugUtilsMessengerCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugUtilsMessengerCallbackDataEXT` + public VkDebugUtilsMessengerCallbackDataEXT asSlice(long index) { return new VkDebugUtilsMessengerCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugUtilsMessengerCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugUtilsMessengerCallbackDataEXT` + public VkDebugUtilsMessengerCallbackDataEXT asSlice(long index, long count) { return new VkDebugUtilsMessengerCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCreateInfoEXT.java index 7b0c1c8e..a6dd5484 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsMessengerCreateInfoEXT.java @@ -113,6 +113,17 @@ public final class VkDebugUtilsMessengerCreateInfoEXT extends Struct { /// @return the allocated `VkDebugUtilsMessengerCreateInfoEXT` public static VkDebugUtilsMessengerCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugUtilsMessengerCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugUtilsMessengerCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugUtilsMessengerCreateInfoEXT` + public VkDebugUtilsMessengerCreateInfoEXT asSlice(long index) { return new VkDebugUtilsMessengerCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugUtilsMessengerCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugUtilsMessengerCreateInfoEXT` + public VkDebugUtilsMessengerCreateInfoEXT asSlice(long index, long count) { return new VkDebugUtilsMessengerCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectNameInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectNameInfoEXT.java index 9ab3e792..657e54c7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectNameInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectNameInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDebugUtilsObjectNameInfoEXT extends Struct { /// @return the allocated `VkDebugUtilsObjectNameInfoEXT` public static VkDebugUtilsObjectNameInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugUtilsObjectNameInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugUtilsObjectNameInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugUtilsObjectNameInfoEXT` + public VkDebugUtilsObjectNameInfoEXT asSlice(long index) { return new VkDebugUtilsObjectNameInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugUtilsObjectNameInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugUtilsObjectNameInfoEXT` + public VkDebugUtilsObjectNameInfoEXT asSlice(long index, long count) { return new VkDebugUtilsObjectNameInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectTagInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectTagInfoEXT.java index 4187a33f..f74b926b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectTagInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDebugUtilsObjectTagInfoEXT.java @@ -113,6 +113,17 @@ public final class VkDebugUtilsObjectTagInfoEXT extends Struct { /// @return the allocated `VkDebugUtilsObjectTagInfoEXT` public static VkDebugUtilsObjectTagInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDebugUtilsObjectTagInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDebugUtilsObjectTagInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDebugUtilsObjectTagInfoEXT` + public VkDebugUtilsObjectTagInfoEXT asSlice(long index) { return new VkDebugUtilsObjectTagInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDebugUtilsObjectTagInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDebugUtilsObjectTagInfoEXT` + public VkDebugUtilsObjectTagInfoEXT asSlice(long index, long count) { return new VkDebugUtilsObjectTagInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasInfoEXT.java index 06957e91..20550713 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDepthBiasInfoEXT extends Struct { /// @return the allocated `VkDepthBiasInfoEXT` public static VkDepthBiasInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDepthBiasInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDepthBiasInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDepthBiasInfoEXT` + public VkDepthBiasInfoEXT asSlice(long index) { return new VkDepthBiasInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDepthBiasInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDepthBiasInfoEXT` + public VkDepthBiasInfoEXT asSlice(long index, long count) { return new VkDepthBiasInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasRepresentationInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasRepresentationInfoEXT.java index 44239bc5..c656d629 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasRepresentationInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthBiasRepresentationInfoEXT.java @@ -95,6 +95,17 @@ public final class VkDepthBiasRepresentationInfoEXT extends Struct { /// @return the allocated `VkDepthBiasRepresentationInfoEXT` public static VkDepthBiasRepresentationInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDepthBiasRepresentationInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDepthBiasRepresentationInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDepthBiasRepresentationInfoEXT` + public VkDepthBiasRepresentationInfoEXT asSlice(long index) { return new VkDepthBiasRepresentationInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDepthBiasRepresentationInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDepthBiasRepresentationInfoEXT` + public VkDepthBiasRepresentationInfoEXT asSlice(long index, long count) { return new VkDepthBiasRepresentationInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthClampRangeEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthClampRangeEXT.java index 3756c7ca..29999c19 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthClampRangeEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDepthClampRangeEXT.java @@ -83,6 +83,17 @@ public final class VkDepthClampRangeEXT extends Struct { /// @return the allocated `VkDepthClampRangeEXT` public static VkDepthClampRangeEXT alloc(SegmentAllocator allocator, long count) { return new VkDepthClampRangeEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDepthClampRangeEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDepthClampRangeEXT` + public VkDepthClampRangeEXT asSlice(long index) { return new VkDepthClampRangeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDepthClampRangeEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDepthClampRangeEXT` + public VkDepthClampRangeEXT asSlice(long index, long count) { return new VkDepthClampRangeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `minDepthClamp` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorAddressInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorAddressInfoEXT.java index 9a16bcfd..e007a07c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorAddressInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorAddressInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDescriptorAddressInfoEXT extends Struct { /// @return the allocated `VkDescriptorAddressInfoEXT` public static VkDescriptorAddressInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDescriptorAddressInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorAddressInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorAddressInfoEXT` + public VkDescriptorAddressInfoEXT asSlice(long index) { return new VkDescriptorAddressInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorAddressInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorAddressInfoEXT` + public VkDescriptorAddressInfoEXT asSlice(long index, long count) { return new VkDescriptorAddressInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingInfoEXT.java index 75021f5b..cc9e20f2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingInfoEXT.java @@ -95,6 +95,17 @@ public final class VkDescriptorBufferBindingInfoEXT extends Struct { /// @return the allocated `VkDescriptorBufferBindingInfoEXT` public static VkDescriptorBufferBindingInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDescriptorBufferBindingInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorBufferBindingInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorBufferBindingInfoEXT` + public VkDescriptorBufferBindingInfoEXT asSlice(long index) { return new VkDescriptorBufferBindingInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorBufferBindingInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorBufferBindingInfoEXT` + public VkDescriptorBufferBindingInfoEXT asSlice(long index, long count) { return new VkDescriptorBufferBindingInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.java index 6ed4e0fb..cf0cad65 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.java @@ -89,6 +89,17 @@ public final class VkDescriptorBufferBindingPushDescriptorBufferHandleEXT extend /// @return the allocated `VkDescriptorBufferBindingPushDescriptorBufferHandleEXT` public static VkDescriptorBufferBindingPushDescriptorBufferHandleEXT alloc(SegmentAllocator allocator, long count) { return new VkDescriptorBufferBindingPushDescriptorBufferHandleEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorBufferBindingPushDescriptorBufferHandleEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorBufferBindingPushDescriptorBufferHandleEXT` + public VkDescriptorBufferBindingPushDescriptorBufferHandleEXT asSlice(long index) { return new VkDescriptorBufferBindingPushDescriptorBufferHandleEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorBufferBindingPushDescriptorBufferHandleEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorBufferBindingPushDescriptorBufferHandleEXT` + public VkDescriptorBufferBindingPushDescriptorBufferHandleEXT asSlice(long index, long count) { return new VkDescriptorBufferBindingPushDescriptorBufferHandleEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorGetInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorGetInfoEXT.java index bb652781..89353f87 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorGetInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDescriptorGetInfoEXT.java @@ -97,6 +97,17 @@ public final class VkDescriptorGetInfoEXT extends Struct { /// @return the allocated `VkDescriptorGetInfoEXT` public static VkDescriptorGetInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDescriptorGetInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorGetInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorGetInfoEXT` + public VkDescriptorGetInfoEXT asSlice(long index) { return new VkDescriptorGetInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorGetInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorGetInfoEXT` + public VkDescriptorGetInfoEXT asSlice(long index, long count) { return new VkDescriptorGetInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceAddressBindingCallbackDataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceAddressBindingCallbackDataEXT.java index fc5a0ae6..f7dba173 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceAddressBindingCallbackDataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceAddressBindingCallbackDataEXT.java @@ -107,6 +107,17 @@ public final class VkDeviceAddressBindingCallbackDataEXT extends Struct { /// @return the allocated `VkDeviceAddressBindingCallbackDataEXT` public static VkDeviceAddressBindingCallbackDataEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceAddressBindingCallbackDataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceAddressBindingCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceAddressBindingCallbackDataEXT` + public VkDeviceAddressBindingCallbackDataEXT asSlice(long index) { return new VkDeviceAddressBindingCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceAddressBindingCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceAddressBindingCallbackDataEXT` + public VkDeviceAddressBindingCallbackDataEXT asSlice(long index, long count) { return new VkDeviceAddressBindingCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceDeviceMemoryReportCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceDeviceMemoryReportCreateInfoEXT.java index 5b1de599..d5769948 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceDeviceMemoryReportCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceDeviceMemoryReportCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDeviceDeviceMemoryReportCreateInfoEXT extends Struct { /// @return the allocated `VkDeviceDeviceMemoryReportCreateInfoEXT` public static VkDeviceDeviceMemoryReportCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceDeviceMemoryReportCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceDeviceMemoryReportCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceDeviceMemoryReportCreateInfoEXT` + public VkDeviceDeviceMemoryReportCreateInfoEXT asSlice(long index) { return new VkDeviceDeviceMemoryReportCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceDeviceMemoryReportCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceDeviceMemoryReportCreateInfoEXT` + public VkDeviceDeviceMemoryReportCreateInfoEXT asSlice(long index, long count) { return new VkDeviceDeviceMemoryReportCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceEventInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceEventInfoEXT.java index 6b1ae38f..64590d0a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceEventInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceEventInfoEXT.java @@ -89,6 +89,17 @@ public final class VkDeviceEventInfoEXT extends Struct { /// @return the allocated `VkDeviceEventInfoEXT` public static VkDeviceEventInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceEventInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceEventInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceEventInfoEXT` + public VkDeviceEventInfoEXT asSlice(long index) { return new VkDeviceEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceEventInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceEventInfoEXT` + public VkDeviceEventInfoEXT asSlice(long index, long count) { return new VkDeviceEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultAddressInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultAddressInfoEXT.java index a1fad7bc..81c3f524 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultAddressInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultAddressInfoEXT.java @@ -89,6 +89,17 @@ public final class VkDeviceFaultAddressInfoEXT extends Struct { /// @return the allocated `VkDeviceFaultAddressInfoEXT` public static VkDeviceFaultAddressInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceFaultAddressInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceFaultAddressInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceFaultAddressInfoEXT` + public VkDeviceFaultAddressInfoEXT asSlice(long index) { return new VkDeviceFaultAddressInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceFaultAddressInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceFaultAddressInfoEXT` + public VkDeviceFaultAddressInfoEXT asSlice(long index, long count) { return new VkDeviceFaultAddressInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `addressType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultCountsEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultCountsEXT.java index 780bf548..f99a9b1c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultCountsEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultCountsEXT.java @@ -101,6 +101,17 @@ public final class VkDeviceFaultCountsEXT extends Struct { /// @return the allocated `VkDeviceFaultCountsEXT` public static VkDeviceFaultCountsEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceFaultCountsEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceFaultCountsEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceFaultCountsEXT` + public VkDeviceFaultCountsEXT asSlice(long index) { return new VkDeviceFaultCountsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceFaultCountsEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceFaultCountsEXT` + public VkDeviceFaultCountsEXT asSlice(long index, long count) { return new VkDeviceFaultCountsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultInfoEXT.java index ab4ff1f8..77fd90c0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultInfoEXT.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### pAddressInfos /// [VarHandle][#VH_pAddressInfos] - [Getter][#pAddressInfos()] - [Setter][#pAddressInfos(java.lang.foreign.MemorySegment)] /// ### pVendorInfos @@ -64,8 +64,8 @@ public final class VkDeviceFaultInfoEXT extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `pAddressInfos` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. @@ -110,6 +110,17 @@ public final class VkDeviceFaultInfoEXT extends Struct { /// @return the allocated `VkDeviceFaultInfoEXT` public static VkDeviceFaultInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceFaultInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceFaultInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceFaultInfoEXT` + public VkDeviceFaultInfoEXT asSlice(long index) { return new VkDeviceFaultInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceFaultInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceFaultInfoEXT` + public VkDeviceFaultInfoEXT asSlice(long index, long count) { return new VkDeviceFaultInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -173,49 +184,35 @@ public final class VkDeviceFaultInfoEXT extends Struct { public VkDeviceFaultInfoEXT pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_pNext(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkDeviceFaultInfoEXT.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkDeviceFaultInfoEXT.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkDeviceFaultInfoEXT.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkDeviceFaultInfoEXT.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkDeviceFaultInfoEXT.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkDeviceFaultInfoEXT.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkDeviceFaultInfoEXT descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(this.segment(), index, elementIndex, value); return this; } + public VkDeviceFaultInfoEXT descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkDeviceFaultInfoEXT description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(this.segment(), elementIndex, value); return this; } + public VkDeviceFaultInfoEXT description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultInfoEXT.set_description(this.segment(), value); return this; } /// {@return `pAddressInfos` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorBinaryHeaderVersionOneEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorBinaryHeaderVersionOneEXT.java index acba065f..cef93ab0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorBinaryHeaderVersionOneEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorBinaryHeaderVersionOneEXT.java @@ -37,7 +37,7 @@ /// ### driverVersion /// [VarHandle][#VH_driverVersion] - [Getter][#driverVersion()] - [Setter][#driverVersion(int)] /// ### pipelineCacheUUID -/// [Byte offset handle][#MH_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID(long)] - [Setter][#pipelineCacheUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID()] - [Setter][#pipelineCacheUUID(java.lang.foreign.MemorySegment)] /// ### applicationNameOffset /// [VarHandle][#VH_applicationNameOffset] - [Getter][#applicationNameOffset()] - [Setter][#applicationNameOffset(int)] /// ### applicationVersion @@ -90,8 +90,8 @@ public final class VkDeviceFaultVendorBinaryHeaderVersionOneEXT extends Struct { public static final VarHandle VH_deviceID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("deviceID")); /// The [VarHandle] of `driverVersion` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_driverVersion = LAYOUT.arrayElementVarHandle(PathElement.groupElement("driverVersion")); - /// The byte offset handle of `pipelineCacheUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineCacheUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineCacheUUID"), PathElement.sequenceElement()); + /// The byte offset of `pipelineCacheUUID`. + public static final long OFFSET_pipelineCacheUUID = LAYOUT.byteOffset(PathElement.groupElement("pipelineCacheUUID")); /// The memory layout of `pipelineCacheUUID`. public static final MemoryLayout ML_pipelineCacheUUID = LAYOUT.select(PathElement.groupElement("pipelineCacheUUID")); /// The [VarHandle] of `applicationNameOffset` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -140,6 +140,17 @@ public final class VkDeviceFaultVendorBinaryHeaderVersionOneEXT extends Struct { /// @return the allocated `VkDeviceFaultVendorBinaryHeaderVersionOneEXT` public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceFaultVendorBinaryHeaderVersionOneEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceFaultVendorBinaryHeaderVersionOneEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceFaultVendorBinaryHeaderVersionOneEXT` + public VkDeviceFaultVendorBinaryHeaderVersionOneEXT asSlice(long index) { return new VkDeviceFaultVendorBinaryHeaderVersionOneEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceFaultVendorBinaryHeaderVersionOneEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceFaultVendorBinaryHeaderVersionOneEXT` + public VkDeviceFaultVendorBinaryHeaderVersionOneEXT asSlice(long index, long count) { return new VkDeviceFaultVendorBinaryHeaderVersionOneEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `headerSize` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -296,49 +307,35 @@ public final class VkDeviceFaultVendorBinaryHeaderVersionOneEXT extends Struct { public VkDeviceFaultVendorBinaryHeaderVersionOneEXT driverVersion(@CType("uint32_t") int value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_driverVersion(this.segment(), value); return this; } /// {@return `pipelineCacheUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID); } /// {@return `pipelineCacheUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long elementIndex) { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment) { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(segment, 0L); } /// {@return `pipelineCacheUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index, long elementIndex) { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index) { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(this.segment(), index); } /// {@return `pipelineCacheUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID(long elementIndex) { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID() { return VkDeviceFaultVendorBinaryHeaderVersionOneEXT.get_pipelineCacheUUID(this.segment()); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID.byteSize()); } /// Sets `pipelineCacheUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(segment, 0L, value); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkDeviceFaultVendorBinaryHeaderVersionOneEXT pipelineCacheUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(this.segment(), index, elementIndex, value); return this; } + public VkDeviceFaultVendorBinaryHeaderVersionOneEXT pipelineCacheUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(this.segment(), index, value); return this; } /// Sets `pipelineCacheUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkDeviceFaultVendorBinaryHeaderVersionOneEXT pipelineCacheUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(this.segment(), elementIndex, value); return this; } + public VkDeviceFaultVendorBinaryHeaderVersionOneEXT pipelineCacheUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorBinaryHeaderVersionOneEXT.set_pipelineCacheUUID(this.segment(), value); return this; } /// {@return `applicationNameOffset` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorInfoEXT.java index aa9acc22..b5f9046c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceFaultVendorInfoEXT.java @@ -27,7 +27,7 @@ /// ## Members /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### vendorFaultCode /// [VarHandle][#VH_vendorFaultCode] - [Getter][#vendorFaultCode()] - [Setter][#vendorFaultCode(long)] /// ### vendorFaultData @@ -48,8 +48,8 @@ public final class VkDeviceFaultVendorInfoEXT extends Struct { ValueLayout.JAVA_LONG.withName("vendorFaultCode"), ValueLayout.JAVA_LONG.withName("vendorFaultData") ); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `vendorFaultCode` of type `(MemorySegment base, long baseOffset, long index)long`. @@ -92,50 +92,47 @@ public final class VkDeviceFaultVendorInfoEXT extends Struct { /// @return the allocated `VkDeviceFaultVendorInfoEXT` public static VkDeviceFaultVendorInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceFaultVendorInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceFaultVendorInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceFaultVendorInfoEXT` + public VkDeviceFaultVendorInfoEXT asSlice(long index) { return new VkDeviceFaultVendorInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceFaultVendorInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceFaultVendorInfoEXT` + public VkDeviceFaultVendorInfoEXT asSlice(long index, long count) { return new VkDeviceFaultVendorInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkDeviceFaultVendorInfoEXT.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkDeviceFaultVendorInfoEXT.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkDeviceFaultVendorInfoEXT.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkDeviceFaultVendorInfoEXT.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkDeviceFaultVendorInfoEXT.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkDeviceFaultVendorInfoEXT.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkDeviceFaultVendorInfoEXT descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(this.segment(), index, elementIndex, value); return this; } + public VkDeviceFaultVendorInfoEXT descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkDeviceFaultVendorInfoEXT description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(this.segment(), elementIndex, value); return this; } + public VkDeviceFaultVendorInfoEXT description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceFaultVendorInfoEXT.set_description(this.segment(), value); return this; } /// {@return `vendorFaultCode` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceMemoryReportCallbackDataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceMemoryReportCallbackDataEXT.java index 708d092a..1064739c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceMemoryReportCallbackDataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDeviceMemoryReportCallbackDataEXT.java @@ -125,6 +125,17 @@ public final class VkDeviceMemoryReportCallbackDataEXT extends Struct { /// @return the allocated `VkDeviceMemoryReportCallbackDataEXT` public static VkDeviceMemoryReportCallbackDataEXT alloc(SegmentAllocator allocator, long count) { return new VkDeviceMemoryReportCallbackDataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceMemoryReportCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceMemoryReportCallbackDataEXT` + public VkDeviceMemoryReportCallbackDataEXT asSlice(long index) { return new VkDeviceMemoryReportCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceMemoryReportCallbackDataEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceMemoryReportCallbackDataEXT` + public VkDeviceMemoryReportCallbackDataEXT asSlice(long index, long count) { return new VkDeviceMemoryReportCallbackDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDirectFBSurfaceCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDirectFBSurfaceCreateInfoEXT.java index b6cd9e86..bdbf4481 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDirectFBSurfaceCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDirectFBSurfaceCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkDirectFBSurfaceCreateInfoEXT extends Struct { /// @return the allocated `VkDirectFBSurfaceCreateInfoEXT` public static VkDirectFBSurfaceCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDirectFBSurfaceCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDirectFBSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDirectFBSurfaceCreateInfoEXT` + public VkDirectFBSurfaceCreateInfoEXT asSlice(long index) { return new VkDirectFBSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDirectFBSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDirectFBSurfaceCreateInfoEXT` + public VkDirectFBSurfaceCreateInfoEXT asSlice(long index, long count) { return new VkDirectFBSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayEventInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayEventInfoEXT.java index c5a4e069..44ad67bb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayEventInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayEventInfoEXT.java @@ -89,6 +89,17 @@ public final class VkDisplayEventInfoEXT extends Struct { /// @return the allocated `VkDisplayEventInfoEXT` public static VkDisplayEventInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDisplayEventInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayEventInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayEventInfoEXT` + public VkDisplayEventInfoEXT asSlice(long index) { return new VkDisplayEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayEventInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayEventInfoEXT` + public VkDisplayEventInfoEXT asSlice(long index, long count) { return new VkDisplayEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayPowerInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayPowerInfoEXT.java index d3f1ac1a..aa1485b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayPowerInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDisplayPowerInfoEXT.java @@ -89,6 +89,17 @@ public final class VkDisplayPowerInfoEXT extends Struct { /// @return the allocated `VkDisplayPowerInfoEXT` public static VkDisplayPowerInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkDisplayPowerInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPowerInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPowerInfoEXT` + public VkDisplayPowerInfoEXT asSlice(long index) { return new VkDisplayPowerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPowerInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPowerInfoEXT` + public VkDisplayPowerInfoEXT asSlice(long index, long count) { return new VkDisplayPowerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawIndirectCountIndirectCommandEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawIndirectCountIndirectCommandEXT.java index a96bbbc3..b3b0f7be 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawIndirectCountIndirectCommandEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawIndirectCountIndirectCommandEXT.java @@ -89,6 +89,17 @@ public final class VkDrawIndirectCountIndirectCommandEXT extends Struct { /// @return the allocated `VkDrawIndirectCountIndirectCommandEXT` public static VkDrawIndirectCountIndirectCommandEXT alloc(SegmentAllocator allocator, long count) { return new VkDrawIndirectCountIndirectCommandEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrawIndirectCountIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrawIndirectCountIndirectCommandEXT` + public VkDrawIndirectCountIndirectCommandEXT asSlice(long index) { return new VkDrawIndirectCountIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrawIndirectCountIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrawIndirectCountIndirectCommandEXT` + public VkDrawIndirectCountIndirectCommandEXT asSlice(long index, long count) { return new VkDrawIndirectCountIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawMeshTasksIndirectCommandEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawMeshTasksIndirectCommandEXT.java index d2b7d38b..95450ec5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawMeshTasksIndirectCommandEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrawMeshTasksIndirectCommandEXT.java @@ -89,6 +89,17 @@ public final class VkDrawMeshTasksIndirectCommandEXT extends Struct { /// @return the allocated `VkDrawMeshTasksIndirectCommandEXT` public static VkDrawMeshTasksIndirectCommandEXT alloc(SegmentAllocator allocator, long count) { return new VkDrawMeshTasksIndirectCommandEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrawMeshTasksIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrawMeshTasksIndirectCommandEXT` + public VkDrawMeshTasksIndirectCommandEXT asSlice(long index) { return new VkDrawMeshTasksIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrawMeshTasksIndirectCommandEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrawMeshTasksIndirectCommandEXT` + public VkDrawMeshTasksIndirectCommandEXT asSlice(long index, long count) { return new VkDrawMeshTasksIndirectCommandEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `groupCountX` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierProperties2EXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierProperties2EXT.java index d0f2e130..16da3e6e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierProperties2EXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierProperties2EXT.java @@ -89,6 +89,17 @@ public final class VkDrmFormatModifierProperties2EXT extends Struct { /// @return the allocated `VkDrmFormatModifierProperties2EXT` public static VkDrmFormatModifierProperties2EXT alloc(SegmentAllocator allocator, long count) { return new VkDrmFormatModifierProperties2EXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrmFormatModifierProperties2EXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrmFormatModifierProperties2EXT` + public VkDrmFormatModifierProperties2EXT asSlice(long index) { return new VkDrmFormatModifierProperties2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrmFormatModifierProperties2EXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrmFormatModifierProperties2EXT` + public VkDrmFormatModifierProperties2EXT asSlice(long index, long count) { return new VkDrmFormatModifierProperties2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `drmFormatModifier` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesEXT.java index bc06886d..491cf26f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkDrmFormatModifierPropertiesEXT extends Struct { /// @return the allocated `VkDrmFormatModifierPropertiesEXT` public static VkDrmFormatModifierPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkDrmFormatModifierPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrmFormatModifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrmFormatModifierPropertiesEXT` + public VkDrmFormatModifierPropertiesEXT asSlice(long index) { return new VkDrmFormatModifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrmFormatModifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrmFormatModifierPropertiesEXT` + public VkDrmFormatModifierPropertiesEXT asSlice(long index, long count) { return new VkDrmFormatModifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `drmFormatModifier` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesList2EXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesList2EXT.java index 9d469bfd..623ba8e9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesList2EXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesList2EXT.java @@ -95,6 +95,17 @@ public final class VkDrmFormatModifierPropertiesList2EXT extends Struct { /// @return the allocated `VkDrmFormatModifierPropertiesList2EXT` public static VkDrmFormatModifierPropertiesList2EXT alloc(SegmentAllocator allocator, long count) { return new VkDrmFormatModifierPropertiesList2EXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrmFormatModifierPropertiesList2EXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrmFormatModifierPropertiesList2EXT` + public VkDrmFormatModifierPropertiesList2EXT asSlice(long index) { return new VkDrmFormatModifierPropertiesList2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrmFormatModifierPropertiesList2EXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrmFormatModifierPropertiesList2EXT` + public VkDrmFormatModifierPropertiesList2EXT asSlice(long index, long count) { return new VkDrmFormatModifierPropertiesList2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesListEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesListEXT.java index da34ff76..43f229e9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesListEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkDrmFormatModifierPropertiesListEXT.java @@ -95,6 +95,17 @@ public final class VkDrmFormatModifierPropertiesListEXT extends Struct { /// @return the allocated `VkDrmFormatModifierPropertiesListEXT` public static VkDrmFormatModifierPropertiesListEXT alloc(SegmentAllocator allocator, long count) { return new VkDrmFormatModifierPropertiesListEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrmFormatModifierPropertiesListEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrmFormatModifierPropertiesListEXT` + public VkDrmFormatModifierPropertiesListEXT asSlice(long index) { return new VkDrmFormatModifierPropertiesListEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrmFormatModifierPropertiesListEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrmFormatModifierPropertiesListEXT` + public VkDrmFormatModifierPropertiesListEXT asSlice(long index, long count) { return new VkDrmFormatModifierPropertiesListEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalBufferInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalBufferInfoEXT.java index 974d31ac..480a1460 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalBufferInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalBufferInfoEXT.java @@ -95,6 +95,17 @@ public final class VkExportMetalBufferInfoEXT extends Struct { /// @return the allocated `VkExportMetalBufferInfoEXT` public static VkExportMetalBufferInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalBufferInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalBufferInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalBufferInfoEXT` + public VkExportMetalBufferInfoEXT asSlice(long index) { return new VkExportMetalBufferInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalBufferInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalBufferInfoEXT` + public VkExportMetalBufferInfoEXT asSlice(long index, long count) { return new VkExportMetalBufferInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalCommandQueueInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalCommandQueueInfoEXT.java index c03e743b..1470a76d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalCommandQueueInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalCommandQueueInfoEXT.java @@ -95,6 +95,17 @@ public final class VkExportMetalCommandQueueInfoEXT extends Struct { /// @return the allocated `VkExportMetalCommandQueueInfoEXT` public static VkExportMetalCommandQueueInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalCommandQueueInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalCommandQueueInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalCommandQueueInfoEXT` + public VkExportMetalCommandQueueInfoEXT asSlice(long index) { return new VkExportMetalCommandQueueInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalCommandQueueInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalCommandQueueInfoEXT` + public VkExportMetalCommandQueueInfoEXT asSlice(long index, long count) { return new VkExportMetalCommandQueueInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalDeviceInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalDeviceInfoEXT.java index d0db5055..d99faa48 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalDeviceInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalDeviceInfoEXT.java @@ -89,6 +89,17 @@ public final class VkExportMetalDeviceInfoEXT extends Struct { /// @return the allocated `VkExportMetalDeviceInfoEXT` public static VkExportMetalDeviceInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalDeviceInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalDeviceInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalDeviceInfoEXT` + public VkExportMetalDeviceInfoEXT asSlice(long index) { return new VkExportMetalDeviceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalDeviceInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalDeviceInfoEXT` + public VkExportMetalDeviceInfoEXT asSlice(long index, long count) { return new VkExportMetalDeviceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalIOSurfaceInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalIOSurfaceInfoEXT.java index d7df42ed..6e90a07c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalIOSurfaceInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalIOSurfaceInfoEXT.java @@ -95,6 +95,17 @@ public final class VkExportMetalIOSurfaceInfoEXT extends Struct { /// @return the allocated `VkExportMetalIOSurfaceInfoEXT` public static VkExportMetalIOSurfaceInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalIOSurfaceInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalIOSurfaceInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalIOSurfaceInfoEXT` + public VkExportMetalIOSurfaceInfoEXT asSlice(long index) { return new VkExportMetalIOSurfaceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalIOSurfaceInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalIOSurfaceInfoEXT` + public VkExportMetalIOSurfaceInfoEXT asSlice(long index, long count) { return new VkExportMetalIOSurfaceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectCreateInfoEXT.java index 3ea46e88..fdc5108a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkExportMetalObjectCreateInfoEXT extends Struct { /// @return the allocated `VkExportMetalObjectCreateInfoEXT` public static VkExportMetalObjectCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalObjectCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalObjectCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalObjectCreateInfoEXT` + public VkExportMetalObjectCreateInfoEXT asSlice(long index) { return new VkExportMetalObjectCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalObjectCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalObjectCreateInfoEXT` + public VkExportMetalObjectCreateInfoEXT asSlice(long index, long count) { return new VkExportMetalObjectCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectsInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectsInfoEXT.java index f873173e..ae6517f6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectsInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalObjectsInfoEXT.java @@ -83,6 +83,17 @@ public final class VkExportMetalObjectsInfoEXT extends Struct { /// @return the allocated `VkExportMetalObjectsInfoEXT` public static VkExportMetalObjectsInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalObjectsInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalObjectsInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalObjectsInfoEXT` + public VkExportMetalObjectsInfoEXT asSlice(long index) { return new VkExportMetalObjectsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalObjectsInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalObjectsInfoEXT` + public VkExportMetalObjectsInfoEXT asSlice(long index, long count) { return new VkExportMetalObjectsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalSharedEventInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalSharedEventInfoEXT.java index 1f83e8ad..b68c8367 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalSharedEventInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalSharedEventInfoEXT.java @@ -101,6 +101,17 @@ public final class VkExportMetalSharedEventInfoEXT extends Struct { /// @return the allocated `VkExportMetalSharedEventInfoEXT` public static VkExportMetalSharedEventInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalSharedEventInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalSharedEventInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalSharedEventInfoEXT` + public VkExportMetalSharedEventInfoEXT asSlice(long index) { return new VkExportMetalSharedEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalSharedEventInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalSharedEventInfoEXT` + public VkExportMetalSharedEventInfoEXT asSlice(long index, long count) { return new VkExportMetalSharedEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalTextureInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalTextureInfoEXT.java index a660b1bd..be3bd24b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalTextureInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExportMetalTextureInfoEXT.java @@ -113,6 +113,17 @@ public final class VkExportMetalTextureInfoEXT extends Struct { /// @return the allocated `VkExportMetalTextureInfoEXT` public static VkExportMetalTextureInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkExportMetalTextureInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMetalTextureInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMetalTextureInfoEXT` + public VkExportMetalTextureInfoEXT asSlice(long index) { return new VkExportMetalTextureInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMetalTextureInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMetalTextureInfoEXT` + public VkExportMetalTextureInfoEXT asSlice(long index, long count) { return new VkExportMetalTextureInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExternalMemoryAcquireUnmodifiedEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExternalMemoryAcquireUnmodifiedEXT.java index 9c9eba52..ae35a507 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExternalMemoryAcquireUnmodifiedEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkExternalMemoryAcquireUnmodifiedEXT.java @@ -89,6 +89,17 @@ public final class VkExternalMemoryAcquireUnmodifiedEXT extends Struct { /// @return the allocated `VkExternalMemoryAcquireUnmodifiedEXT` public static VkExternalMemoryAcquireUnmodifiedEXT alloc(SegmentAllocator allocator, long count) { return new VkExternalMemoryAcquireUnmodifiedEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalMemoryAcquireUnmodifiedEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalMemoryAcquireUnmodifiedEXT` + public VkExternalMemoryAcquireUnmodifiedEXT asSlice(long index) { return new VkExternalMemoryAcquireUnmodifiedEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalMemoryAcquireUnmodifiedEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalMemoryAcquireUnmodifiedEXT` + public VkExternalMemoryAcquireUnmodifiedEXT asSlice(long index, long count) { return new VkExternalMemoryAcquireUnmodifiedEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFilterCubicImageViewImageFormatPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFilterCubicImageViewImageFormatPropertiesEXT.java index 6ac4096e..609b4829 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFilterCubicImageViewImageFormatPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFilterCubicImageViewImageFormatPropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkFilterCubicImageViewImageFormatPropertiesEXT extends Struct /// @return the allocated `VkFilterCubicImageViewImageFormatPropertiesEXT` public static VkFilterCubicImageViewImageFormatPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkFilterCubicImageViewImageFormatPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFilterCubicImageViewImageFormatPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFilterCubicImageViewImageFormatPropertiesEXT` + public VkFilterCubicImageViewImageFormatPropertiesEXT asSlice(long index) { return new VkFilterCubicImageViewImageFormatPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFilterCubicImageViewImageFormatPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFilterCubicImageViewImageFormatPropertiesEXT` + public VkFilterCubicImageViewImageFormatPropertiesEXT asSlice(long index, long count) { return new VkFilterCubicImageViewImageFormatPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFrameBoundaryEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFrameBoundaryEXT.java index 343d2282..f7689143 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFrameBoundaryEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkFrameBoundaryEXT.java @@ -137,6 +137,17 @@ public final class VkFrameBoundaryEXT extends Struct { /// @return the allocated `VkFrameBoundaryEXT` public static VkFrameBoundaryEXT alloc(SegmentAllocator allocator, long count) { return new VkFrameBoundaryEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFrameBoundaryEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFrameBoundaryEXT` + public VkFrameBoundaryEXT asSlice(long index) { return new VkFrameBoundaryEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFrameBoundaryEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFrameBoundaryEXT` + public VkFrameBoundaryEXT asSlice(long index, long count) { return new VkFrameBoundaryEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsInfoEXT.java index 8f580f9f..c17c90b9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsInfoEXT.java @@ -143,6 +143,17 @@ public final class VkGeneratedCommandsInfoEXT extends Struct { /// @return the allocated `VkGeneratedCommandsInfoEXT` public static VkGeneratedCommandsInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsInfoEXT` + public VkGeneratedCommandsInfoEXT asSlice(long index) { return new VkGeneratedCommandsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsInfoEXT` + public VkGeneratedCommandsInfoEXT asSlice(long index, long count) { return new VkGeneratedCommandsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsMemoryRequirementsInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsMemoryRequirementsInfoEXT.java index 858230dd..4c059547 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsMemoryRequirementsInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsMemoryRequirementsInfoEXT.java @@ -107,6 +107,17 @@ public final class VkGeneratedCommandsMemoryRequirementsInfoEXT extends Struct { /// @return the allocated `VkGeneratedCommandsMemoryRequirementsInfoEXT` public static VkGeneratedCommandsMemoryRequirementsInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsMemoryRequirementsInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsMemoryRequirementsInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsMemoryRequirementsInfoEXT` + public VkGeneratedCommandsMemoryRequirementsInfoEXT asSlice(long index) { return new VkGeneratedCommandsMemoryRequirementsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsMemoryRequirementsInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsMemoryRequirementsInfoEXT` + public VkGeneratedCommandsMemoryRequirementsInfoEXT asSlice(long index, long count) { return new VkGeneratedCommandsMemoryRequirementsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsPipelineInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsPipelineInfoEXT.java index 267e7004..08dd8921 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsPipelineInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsPipelineInfoEXT.java @@ -89,6 +89,17 @@ public final class VkGeneratedCommandsPipelineInfoEXT extends Struct { /// @return the allocated `VkGeneratedCommandsPipelineInfoEXT` public static VkGeneratedCommandsPipelineInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsPipelineInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsPipelineInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsPipelineInfoEXT` + public VkGeneratedCommandsPipelineInfoEXT asSlice(long index) { return new VkGeneratedCommandsPipelineInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsPipelineInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsPipelineInfoEXT` + public VkGeneratedCommandsPipelineInfoEXT asSlice(long index, long count) { return new VkGeneratedCommandsPipelineInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsShaderInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsShaderInfoEXT.java index 3d9ab4f6..e89dffc5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsShaderInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGeneratedCommandsShaderInfoEXT.java @@ -95,6 +95,17 @@ public final class VkGeneratedCommandsShaderInfoEXT extends Struct { /// @return the allocated `VkGeneratedCommandsShaderInfoEXT` public static VkGeneratedCommandsShaderInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsShaderInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsShaderInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsShaderInfoEXT` + public VkGeneratedCommandsShaderInfoEXT asSlice(long index) { return new VkGeneratedCommandsShaderInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsShaderInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsShaderInfoEXT` + public VkGeneratedCommandsShaderInfoEXT asSlice(long index, long count) { return new VkGeneratedCommandsShaderInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGraphicsPipelineLibraryCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGraphicsPipelineLibraryCreateInfoEXT.java index 636b3179..3f95219c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGraphicsPipelineLibraryCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkGraphicsPipelineLibraryCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkGraphicsPipelineLibraryCreateInfoEXT extends Struct { /// @return the allocated `VkGraphicsPipelineLibraryCreateInfoEXT` public static VkGraphicsPipelineLibraryCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkGraphicsPipelineLibraryCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGraphicsPipelineLibraryCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGraphicsPipelineLibraryCreateInfoEXT` + public VkGraphicsPipelineLibraryCreateInfoEXT asSlice(long index) { return new VkGraphicsPipelineLibraryCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGraphicsPipelineLibraryCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGraphicsPipelineLibraryCreateInfoEXT` + public VkGraphicsPipelineLibraryCreateInfoEXT asSlice(long index, long count) { return new VkGraphicsPipelineLibraryCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHdrMetadataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHdrMetadataEXT.java index 035b4fba..58c70202 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHdrMetadataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHdrMetadataEXT.java @@ -139,6 +139,17 @@ public final class VkHdrMetadataEXT extends Struct { /// @return the allocated `VkHdrMetadataEXT` public static VkHdrMetadataEXT alloc(SegmentAllocator allocator, long count) { return new VkHdrMetadataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkHdrMetadataEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkHdrMetadataEXT` + public VkHdrMetadataEXT asSlice(long index) { return new VkHdrMetadataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkHdrMetadataEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkHdrMetadataEXT` + public VkHdrMetadataEXT asSlice(long index, long count) { return new VkHdrMetadataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHeadlessSurfaceCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHeadlessSurfaceCreateInfoEXT.java index 2fa74dcd..dabe1612 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHeadlessSurfaceCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkHeadlessSurfaceCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkHeadlessSurfaceCreateInfoEXT extends Struct { /// @return the allocated `VkHeadlessSurfaceCreateInfoEXT` public static VkHeadlessSurfaceCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkHeadlessSurfaceCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkHeadlessSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkHeadlessSurfaceCreateInfoEXT` + public VkHeadlessSurfaceCreateInfoEXT asSlice(long index) { return new VkHeadlessSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkHeadlessSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkHeadlessSurfaceCreateInfoEXT` + public VkHeadlessSurfaceCreateInfoEXT asSlice(long index, long count) { return new VkHeadlessSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCaptureDescriptorDataInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCaptureDescriptorDataInfoEXT.java index 76700e87..fb2221b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCaptureDescriptorDataInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCaptureDescriptorDataInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImageCaptureDescriptorDataInfoEXT extends Struct { /// @return the allocated `VkImageCaptureDescriptorDataInfoEXT` public static VkImageCaptureDescriptorDataInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageCaptureDescriptorDataInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCaptureDescriptorDataInfoEXT` + public VkImageCaptureDescriptorDataInfoEXT asSlice(long index) { return new VkImageCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCaptureDescriptorDataInfoEXT` + public VkImageCaptureDescriptorDataInfoEXT asSlice(long index, long count) { return new VkImageCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionControlEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionControlEXT.java index e5d3c0bf..0f7aec2d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionControlEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionControlEXT.java @@ -101,6 +101,17 @@ public final class VkImageCompressionControlEXT extends Struct { /// @return the allocated `VkImageCompressionControlEXT` public static VkImageCompressionControlEXT alloc(SegmentAllocator allocator, long count) { return new VkImageCompressionControlEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCompressionControlEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCompressionControlEXT` + public VkImageCompressionControlEXT asSlice(long index) { return new VkImageCompressionControlEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCompressionControlEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCompressionControlEXT` + public VkImageCompressionControlEXT asSlice(long index, long count) { return new VkImageCompressionControlEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionPropertiesEXT.java index 97999afa..6f11115f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageCompressionPropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkImageCompressionPropertiesEXT extends Struct { /// @return the allocated `VkImageCompressionPropertiesEXT` public static VkImageCompressionPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkImageCompressionPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCompressionPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCompressionPropertiesEXT` + public VkImageCompressionPropertiesEXT asSlice(long index) { return new VkImageCompressionPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCompressionPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCompressionPropertiesEXT` + public VkImageCompressionPropertiesEXT asSlice(long index, long count) { return new VkImageCompressionPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierExplicitCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierExplicitCreateInfoEXT.java index 5f3ae09c..c1558424 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierExplicitCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierExplicitCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkImageDrmFormatModifierExplicitCreateInfoEXT extends Struct /// @return the allocated `VkImageDrmFormatModifierExplicitCreateInfoEXT` public static VkImageDrmFormatModifierExplicitCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageDrmFormatModifierExplicitCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageDrmFormatModifierExplicitCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageDrmFormatModifierExplicitCreateInfoEXT` + public VkImageDrmFormatModifierExplicitCreateInfoEXT asSlice(long index) { return new VkImageDrmFormatModifierExplicitCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageDrmFormatModifierExplicitCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageDrmFormatModifierExplicitCreateInfoEXT` + public VkImageDrmFormatModifierExplicitCreateInfoEXT asSlice(long index, long count) { return new VkImageDrmFormatModifierExplicitCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierListCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierListCreateInfoEXT.java index ef0fbc63..a9666b0d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierListCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierListCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkImageDrmFormatModifierListCreateInfoEXT extends Struct { /// @return the allocated `VkImageDrmFormatModifierListCreateInfoEXT` public static VkImageDrmFormatModifierListCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageDrmFormatModifierListCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageDrmFormatModifierListCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageDrmFormatModifierListCreateInfoEXT` + public VkImageDrmFormatModifierListCreateInfoEXT asSlice(long index) { return new VkImageDrmFormatModifierListCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageDrmFormatModifierListCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageDrmFormatModifierListCreateInfoEXT` + public VkImageDrmFormatModifierListCreateInfoEXT asSlice(long index, long count) { return new VkImageDrmFormatModifierListCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierPropertiesEXT.java index b8b5b64a..fed01d2f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageDrmFormatModifierPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkImageDrmFormatModifierPropertiesEXT extends Struct { /// @return the allocated `VkImageDrmFormatModifierPropertiesEXT` public static VkImageDrmFormatModifierPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkImageDrmFormatModifierPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageDrmFormatModifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageDrmFormatModifierPropertiesEXT` + public VkImageDrmFormatModifierPropertiesEXT asSlice(long index) { return new VkImageDrmFormatModifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageDrmFormatModifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageDrmFormatModifierPropertiesEXT` + public VkImageDrmFormatModifierPropertiesEXT asSlice(long index, long count) { return new VkImageDrmFormatModifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewASTCDecodeModeEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewASTCDecodeModeEXT.java index eb2c24cf..2802f7c6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewASTCDecodeModeEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewASTCDecodeModeEXT.java @@ -89,6 +89,17 @@ public final class VkImageViewASTCDecodeModeEXT extends Struct { /// @return the allocated `VkImageViewASTCDecodeModeEXT` public static VkImageViewASTCDecodeModeEXT alloc(SegmentAllocator allocator, long count) { return new VkImageViewASTCDecodeModeEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewASTCDecodeModeEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewASTCDecodeModeEXT` + public VkImageViewASTCDecodeModeEXT asSlice(long index) { return new VkImageViewASTCDecodeModeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewASTCDecodeModeEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewASTCDecodeModeEXT` + public VkImageViewASTCDecodeModeEXT asSlice(long index, long count) { return new VkImageViewASTCDecodeModeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewCaptureDescriptorDataInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewCaptureDescriptorDataInfoEXT.java index 4ebcb700..ce0248cd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewCaptureDescriptorDataInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewCaptureDescriptorDataInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImageViewCaptureDescriptorDataInfoEXT extends Struct { /// @return the allocated `VkImageViewCaptureDescriptorDataInfoEXT` public static VkImageViewCaptureDescriptorDataInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageViewCaptureDescriptorDataInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewCaptureDescriptorDataInfoEXT` + public VkImageViewCaptureDescriptorDataInfoEXT asSlice(long index) { return new VkImageViewCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewCaptureDescriptorDataInfoEXT` + public VkImageViewCaptureDescriptorDataInfoEXT asSlice(long index, long count) { return new VkImageViewCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewMinLodCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewMinLodCreateInfoEXT.java index eee1d6f8..60f244e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewMinLodCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewMinLodCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImageViewMinLodCreateInfoEXT extends Struct { /// @return the allocated `VkImageViewMinLodCreateInfoEXT` public static VkImageViewMinLodCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageViewMinLodCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewMinLodCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewMinLodCreateInfoEXT` + public VkImageViewMinLodCreateInfoEXT asSlice(long index) { return new VkImageViewMinLodCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewMinLodCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewMinLodCreateInfoEXT` + public VkImageViewMinLodCreateInfoEXT asSlice(long index, long count) { return new VkImageViewMinLodCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewSlicedCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewSlicedCreateInfoEXT.java index db28eb59..a2d03bc0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewSlicedCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImageViewSlicedCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkImageViewSlicedCreateInfoEXT extends Struct { /// @return the allocated `VkImageViewSlicedCreateInfoEXT` public static VkImageViewSlicedCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImageViewSlicedCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewSlicedCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewSlicedCreateInfoEXT` + public VkImageViewSlicedCreateInfoEXT asSlice(long index) { return new VkImageViewSlicedCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewSlicedCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewSlicedCreateInfoEXT` + public VkImageViewSlicedCreateInfoEXT asSlice(long index, long count) { return new VkImageViewSlicedCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMemoryHostPointerInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMemoryHostPointerInfoEXT.java index 6c118542..99f46963 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMemoryHostPointerInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMemoryHostPointerInfoEXT.java @@ -95,6 +95,17 @@ public final class VkImportMemoryHostPointerInfoEXT extends Struct { /// @return the allocated `VkImportMemoryHostPointerInfoEXT` public static VkImportMemoryHostPointerInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryHostPointerInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryHostPointerInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryHostPointerInfoEXT` + public VkImportMemoryHostPointerInfoEXT asSlice(long index) { return new VkImportMemoryHostPointerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryHostPointerInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryHostPointerInfoEXT` + public VkImportMemoryHostPointerInfoEXT asSlice(long index, long count) { return new VkImportMemoryHostPointerInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalBufferInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalBufferInfoEXT.java index 496b1239..a4340b05 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalBufferInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalBufferInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImportMetalBufferInfoEXT extends Struct { /// @return the allocated `VkImportMetalBufferInfoEXT` public static VkImportMetalBufferInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImportMetalBufferInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMetalBufferInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMetalBufferInfoEXT` + public VkImportMetalBufferInfoEXT asSlice(long index) { return new VkImportMetalBufferInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMetalBufferInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMetalBufferInfoEXT` + public VkImportMetalBufferInfoEXT asSlice(long index, long count) { return new VkImportMetalBufferInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalIOSurfaceInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalIOSurfaceInfoEXT.java index 4bf56a5c..8b1b4fcb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalIOSurfaceInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalIOSurfaceInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImportMetalIOSurfaceInfoEXT extends Struct { /// @return the allocated `VkImportMetalIOSurfaceInfoEXT` public static VkImportMetalIOSurfaceInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImportMetalIOSurfaceInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMetalIOSurfaceInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMetalIOSurfaceInfoEXT` + public VkImportMetalIOSurfaceInfoEXT asSlice(long index) { return new VkImportMetalIOSurfaceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMetalIOSurfaceInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMetalIOSurfaceInfoEXT` + public VkImportMetalIOSurfaceInfoEXT asSlice(long index, long count) { return new VkImportMetalIOSurfaceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalSharedEventInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalSharedEventInfoEXT.java index 866eab21..91b80fd6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalSharedEventInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalSharedEventInfoEXT.java @@ -89,6 +89,17 @@ public final class VkImportMetalSharedEventInfoEXT extends Struct { /// @return the allocated `VkImportMetalSharedEventInfoEXT` public static VkImportMetalSharedEventInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImportMetalSharedEventInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMetalSharedEventInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMetalSharedEventInfoEXT` + public VkImportMetalSharedEventInfoEXT asSlice(long index) { return new VkImportMetalSharedEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMetalSharedEventInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMetalSharedEventInfoEXT` + public VkImportMetalSharedEventInfoEXT asSlice(long index, long count) { return new VkImportMetalSharedEventInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalTextureInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalTextureInfoEXT.java index b66b1b38..ca54e41c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalTextureInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkImportMetalTextureInfoEXT.java @@ -95,6 +95,17 @@ public final class VkImportMetalTextureInfoEXT extends Struct { /// @return the allocated `VkImportMetalTextureInfoEXT` public static VkImportMetalTextureInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkImportMetalTextureInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMetalTextureInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMetalTextureInfoEXT` + public VkImportMetalTextureInfoEXT asSlice(long index) { return new VkImportMetalTextureInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMetalTextureInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMetalTextureInfoEXT` + public VkImportMetalTextureInfoEXT asSlice(long index, long count) { return new VkImportMetalTextureInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsExecutionSetTokenEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsExecutionSetTokenEXT.java index 0ac7d226..924e7a54 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsExecutionSetTokenEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsExecutionSetTokenEXT.java @@ -83,6 +83,17 @@ public final class VkIndirectCommandsExecutionSetTokenEXT extends Struct { /// @return the allocated `VkIndirectCommandsExecutionSetTokenEXT` public static VkIndirectCommandsExecutionSetTokenEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsExecutionSetTokenEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsExecutionSetTokenEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsExecutionSetTokenEXT` + public VkIndirectCommandsExecutionSetTokenEXT asSlice(long index) { return new VkIndirectCommandsExecutionSetTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsExecutionSetTokenEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsExecutionSetTokenEXT` + public VkIndirectCommandsExecutionSetTokenEXT asSlice(long index, long count) { return new VkIndirectCommandsExecutionSetTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `type` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsIndexBufferTokenEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsIndexBufferTokenEXT.java index 2b3f8011..ad608ba9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsIndexBufferTokenEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsIndexBufferTokenEXT.java @@ -77,6 +77,17 @@ public final class VkIndirectCommandsIndexBufferTokenEXT extends Struct { /// @return the allocated `VkIndirectCommandsIndexBufferTokenEXT` public static VkIndirectCommandsIndexBufferTokenEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsIndexBufferTokenEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsIndexBufferTokenEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsIndexBufferTokenEXT` + public VkIndirectCommandsIndexBufferTokenEXT asSlice(long index) { return new VkIndirectCommandsIndexBufferTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsIndexBufferTokenEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsIndexBufferTokenEXT` + public VkIndirectCommandsIndexBufferTokenEXT asSlice(long index, long count) { return new VkIndirectCommandsIndexBufferTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `mode` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutCreateInfoEXT.java index b4330266..26e8a07a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutCreateInfoEXT.java @@ -119,6 +119,17 @@ public final class VkIndirectCommandsLayoutCreateInfoEXT extends Struct { /// @return the allocated `VkIndirectCommandsLayoutCreateInfoEXT` public static VkIndirectCommandsLayoutCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsLayoutCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsLayoutCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsLayoutCreateInfoEXT` + public VkIndirectCommandsLayoutCreateInfoEXT asSlice(long index) { return new VkIndirectCommandsLayoutCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsLayoutCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsLayoutCreateInfoEXT` + public VkIndirectCommandsLayoutCreateInfoEXT asSlice(long index, long count) { return new VkIndirectCommandsLayoutCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutTokenEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutTokenEXT.java index c4345308..92229e51 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutTokenEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsLayoutTokenEXT.java @@ -103,6 +103,17 @@ public final class VkIndirectCommandsLayoutTokenEXT extends Struct { /// @return the allocated `VkIndirectCommandsLayoutTokenEXT` public static VkIndirectCommandsLayoutTokenEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsLayoutTokenEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsLayoutTokenEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsLayoutTokenEXT` + public VkIndirectCommandsLayoutTokenEXT asSlice(long index) { return new VkIndirectCommandsLayoutTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsLayoutTokenEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsLayoutTokenEXT` + public VkIndirectCommandsLayoutTokenEXT asSlice(long index, long count) { return new VkIndirectCommandsLayoutTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsPushConstantTokenEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsPushConstantTokenEXT.java index a424cf54..bc56f3ce 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsPushConstantTokenEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsPushConstantTokenEXT.java @@ -79,6 +79,17 @@ public final class VkIndirectCommandsPushConstantTokenEXT extends Struct { /// @return the allocated `VkIndirectCommandsPushConstantTokenEXT` public static VkIndirectCommandsPushConstantTokenEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsPushConstantTokenEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsPushConstantTokenEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsPushConstantTokenEXT` + public VkIndirectCommandsPushConstantTokenEXT asSlice(long index) { return new VkIndirectCommandsPushConstantTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsPushConstantTokenEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsPushConstantTokenEXT` + public VkIndirectCommandsPushConstantTokenEXT asSlice(long index, long count) { return new VkIndirectCommandsPushConstantTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `updateRange` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsVertexBufferTokenEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsVertexBufferTokenEXT.java index 03d1916d..8509956a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsVertexBufferTokenEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectCommandsVertexBufferTokenEXT.java @@ -77,6 +77,17 @@ public final class VkIndirectCommandsVertexBufferTokenEXT extends Struct { /// @return the allocated `VkIndirectCommandsVertexBufferTokenEXT` public static VkIndirectCommandsVertexBufferTokenEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsVertexBufferTokenEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsVertexBufferTokenEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsVertexBufferTokenEXT` + public VkIndirectCommandsVertexBufferTokenEXT asSlice(long index) { return new VkIndirectCommandsVertexBufferTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsVertexBufferTokenEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsVertexBufferTokenEXT` + public VkIndirectCommandsVertexBufferTokenEXT asSlice(long index, long count) { return new VkIndirectCommandsVertexBufferTokenEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `vertexBindingUnit` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetCreateInfoEXT.java index 958f8053..ac411e41 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetCreateInfoEXT.java @@ -97,6 +97,17 @@ public final class VkIndirectExecutionSetCreateInfoEXT extends Struct { /// @return the allocated `VkIndirectExecutionSetCreateInfoEXT` public static VkIndirectExecutionSetCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectExecutionSetCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectExecutionSetCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectExecutionSetCreateInfoEXT` + public VkIndirectExecutionSetCreateInfoEXT asSlice(long index) { return new VkIndirectExecutionSetCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectExecutionSetCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectExecutionSetCreateInfoEXT` + public VkIndirectExecutionSetCreateInfoEXT asSlice(long index, long count) { return new VkIndirectExecutionSetCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetPipelineInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetPipelineInfoEXT.java index 4099505f..b80baf97 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetPipelineInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetPipelineInfoEXT.java @@ -95,6 +95,17 @@ public final class VkIndirectExecutionSetPipelineInfoEXT extends Struct { /// @return the allocated `VkIndirectExecutionSetPipelineInfoEXT` public static VkIndirectExecutionSetPipelineInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectExecutionSetPipelineInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectExecutionSetPipelineInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectExecutionSetPipelineInfoEXT` + public VkIndirectExecutionSetPipelineInfoEXT asSlice(long index) { return new VkIndirectExecutionSetPipelineInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectExecutionSetPipelineInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectExecutionSetPipelineInfoEXT` + public VkIndirectExecutionSetPipelineInfoEXT asSlice(long index, long count) { return new VkIndirectExecutionSetPipelineInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderInfoEXT.java index 124bd508..f5d26f14 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderInfoEXT.java @@ -119,6 +119,17 @@ public final class VkIndirectExecutionSetShaderInfoEXT extends Struct { /// @return the allocated `VkIndirectExecutionSetShaderInfoEXT` public static VkIndirectExecutionSetShaderInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectExecutionSetShaderInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectExecutionSetShaderInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectExecutionSetShaderInfoEXT` + public VkIndirectExecutionSetShaderInfoEXT asSlice(long index) { return new VkIndirectExecutionSetShaderInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectExecutionSetShaderInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectExecutionSetShaderInfoEXT` + public VkIndirectExecutionSetShaderInfoEXT asSlice(long index, long count) { return new VkIndirectExecutionSetShaderInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderLayoutInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderLayoutInfoEXT.java index 91c47b15..2c3ad272 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderLayoutInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkIndirectExecutionSetShaderLayoutInfoEXT.java @@ -95,6 +95,17 @@ public final class VkIndirectExecutionSetShaderLayoutInfoEXT extends Struct { /// @return the allocated `VkIndirectExecutionSetShaderLayoutInfoEXT` public static VkIndirectExecutionSetShaderLayoutInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectExecutionSetShaderLayoutInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectExecutionSetShaderLayoutInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectExecutionSetShaderLayoutInfoEXT` + public VkIndirectExecutionSetShaderLayoutInfoEXT asSlice(long index) { return new VkIndirectExecutionSetShaderLayoutInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectExecutionSetShaderLayoutInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectExecutionSetShaderLayoutInfoEXT` + public VkIndirectExecutionSetShaderLayoutInfoEXT asSlice(long index, long count) { return new VkIndirectExecutionSetShaderLayoutInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingEXT.java index 022c45a1..f8475f84 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingEXT.java @@ -101,6 +101,17 @@ public final class VkLayerSettingEXT extends Struct { /// @return the allocated `VkLayerSettingEXT` public static VkLayerSettingEXT alloc(SegmentAllocator allocator, long count) { return new VkLayerSettingEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLayerSettingEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLayerSettingEXT` + public VkLayerSettingEXT asSlice(long index) { return new VkLayerSettingEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLayerSettingEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLayerSettingEXT` + public VkLayerSettingEXT asSlice(long index, long count) { return new VkLayerSettingEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pLayerName` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingsCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingsCreateInfoEXT.java index 83696163..c9e32e39 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingsCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkLayerSettingsCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkLayerSettingsCreateInfoEXT extends Struct { /// @return the allocated `VkLayerSettingsCreateInfoEXT` public static VkLayerSettingsCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkLayerSettingsCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLayerSettingsCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLayerSettingsCreateInfoEXT` + public VkLayerSettingsCreateInfoEXT asSlice(long index) { return new VkLayerSettingsCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLayerSettingsCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLayerSettingsCreateInfoEXT` + public VkLayerSettingsCreateInfoEXT asSlice(long index, long count) { return new VkLayerSettingsCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryHostPointerPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryHostPointerPropertiesEXT.java index 886c41d6..45b789d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryHostPointerPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryHostPointerPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkMemoryHostPointerPropertiesEXT extends Struct { /// @return the allocated `VkMemoryHostPointerPropertiesEXT` public static VkMemoryHostPointerPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkMemoryHostPointerPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryHostPointerPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryHostPointerPropertiesEXT` + public VkMemoryHostPointerPropertiesEXT asSlice(long index) { return new VkMemoryHostPointerPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryHostPointerPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryHostPointerPropertiesEXT` + public VkMemoryHostPointerPropertiesEXT asSlice(long index, long count) { return new VkMemoryHostPointerPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryMapPlacedInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryMapPlacedInfoEXT.java index 5e3725c9..104c90ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryMapPlacedInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryMapPlacedInfoEXT.java @@ -89,6 +89,17 @@ public final class VkMemoryMapPlacedInfoEXT extends Struct { /// @return the allocated `VkMemoryMapPlacedInfoEXT` public static VkMemoryMapPlacedInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMemoryMapPlacedInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryMapPlacedInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryMapPlacedInfoEXT` + public VkMemoryMapPlacedInfoEXT asSlice(long index) { return new VkMemoryMapPlacedInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryMapPlacedInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryMapPlacedInfoEXT` + public VkMemoryMapPlacedInfoEXT asSlice(long index, long count) { return new VkMemoryMapPlacedInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryPriorityAllocateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryPriorityAllocateInfoEXT.java index a4740617..1d2f7614 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryPriorityAllocateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMemoryPriorityAllocateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkMemoryPriorityAllocateInfoEXT extends Struct { /// @return the allocated `VkMemoryPriorityAllocateInfoEXT` public static VkMemoryPriorityAllocateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMemoryPriorityAllocateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryPriorityAllocateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryPriorityAllocateInfoEXT` + public VkMemoryPriorityAllocateInfoEXT asSlice(long index) { return new VkMemoryPriorityAllocateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryPriorityAllocateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryPriorityAllocateInfoEXT` + public VkMemoryPriorityAllocateInfoEXT asSlice(long index, long count) { return new VkMemoryPriorityAllocateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMetalSurfaceCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMetalSurfaceCreateInfoEXT.java index 7f5e10be..c7603fd0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMetalSurfaceCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMetalSurfaceCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkMetalSurfaceCreateInfoEXT extends Struct { /// @return the allocated `VkMetalSurfaceCreateInfoEXT` public static VkMetalSurfaceCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMetalSurfaceCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMetalSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMetalSurfaceCreateInfoEXT` + public VkMetalSurfaceCreateInfoEXT asSlice(long index) { return new VkMetalSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMetalSurfaceCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMetalSurfaceCreateInfoEXT` + public VkMetalSurfaceCreateInfoEXT asSlice(long index, long count) { return new VkMetalSurfaceCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildInfoEXT.java index a1bb1aae..8274cc9c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildInfoEXT.java @@ -155,6 +155,17 @@ public final class VkMicromapBuildInfoEXT extends Struct { /// @return the allocated `VkMicromapBuildInfoEXT` public static VkMicromapBuildInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapBuildInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapBuildInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapBuildInfoEXT` + public VkMicromapBuildInfoEXT asSlice(long index) { return new VkMicromapBuildInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapBuildInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapBuildInfoEXT` + public VkMicromapBuildInfoEXT asSlice(long index, long count) { return new VkMicromapBuildInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildSizesInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildSizesInfoEXT.java index ceaa1960..1b7bc02c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildSizesInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapBuildSizesInfoEXT.java @@ -101,6 +101,17 @@ public final class VkMicromapBuildSizesInfoEXT extends Struct { /// @return the allocated `VkMicromapBuildSizesInfoEXT` public static VkMicromapBuildSizesInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapBuildSizesInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapBuildSizesInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapBuildSizesInfoEXT` + public VkMicromapBuildSizesInfoEXT asSlice(long index) { return new VkMicromapBuildSizesInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapBuildSizesInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapBuildSizesInfoEXT` + public VkMicromapBuildSizesInfoEXT asSlice(long index, long count) { return new VkMicromapBuildSizesInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapCreateInfoEXT.java index 9a31c632..12558207 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapCreateInfoEXT.java @@ -119,6 +119,17 @@ public final class VkMicromapCreateInfoEXT extends Struct { /// @return the allocated `VkMicromapCreateInfoEXT` public static VkMicromapCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapCreateInfoEXT` + public VkMicromapCreateInfoEXT asSlice(long index) { return new VkMicromapCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapCreateInfoEXT` + public VkMicromapCreateInfoEXT asSlice(long index, long count) { return new VkMicromapCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapTriangleEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapTriangleEXT.java index c4dfd11a..58d0f927 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapTriangleEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapTriangleEXT.java @@ -89,6 +89,17 @@ public final class VkMicromapTriangleEXT extends Struct { /// @return the allocated `VkMicromapTriangleEXT` public static VkMicromapTriangleEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapTriangleEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapTriangleEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapTriangleEXT` + public VkMicromapTriangleEXT asSlice(long index) { return new VkMicromapTriangleEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapTriangleEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapTriangleEXT` + public VkMicromapTriangleEXT asSlice(long index, long count) { return new VkMicromapTriangleEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `dataOffset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapUsageEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapUsageEXT.java index e141ece3..7e6164af 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapUsageEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapUsageEXT.java @@ -89,6 +89,17 @@ public final class VkMicromapUsageEXT extends Struct { /// @return the allocated `VkMicromapUsageEXT` public static VkMicromapUsageEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapUsageEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapUsageEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapUsageEXT` + public VkMicromapUsageEXT asSlice(long index) { return new VkMicromapUsageEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapUsageEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapUsageEXT` + public VkMicromapUsageEXT asSlice(long index, long count) { return new VkMicromapUsageEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `count` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapVersionInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapVersionInfoEXT.java index 46ce37c6..690911b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapVersionInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMicromapVersionInfoEXT.java @@ -89,6 +89,17 @@ public final class VkMicromapVersionInfoEXT extends Struct { /// @return the allocated `VkMicromapVersionInfoEXT` public static VkMicromapVersionInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMicromapVersionInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMicromapVersionInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMicromapVersionInfoEXT` + public VkMicromapVersionInfoEXT asSlice(long index) { return new VkMicromapVersionInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMicromapVersionInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMicromapVersionInfoEXT` + public VkMicromapVersionInfoEXT asSlice(long index, long count) { return new VkMicromapVersionInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawIndexedInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawIndexedInfoEXT.java index 9521887e..baf4adac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawIndexedInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawIndexedInfoEXT.java @@ -89,6 +89,17 @@ public final class VkMultiDrawIndexedInfoEXT extends Struct { /// @return the allocated `VkMultiDrawIndexedInfoEXT` public static VkMultiDrawIndexedInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMultiDrawIndexedInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultiDrawIndexedInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultiDrawIndexedInfoEXT` + public VkMultiDrawIndexedInfoEXT asSlice(long index) { return new VkMultiDrawIndexedInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultiDrawIndexedInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultiDrawIndexedInfoEXT` + public VkMultiDrawIndexedInfoEXT asSlice(long index, long count) { return new VkMultiDrawIndexedInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `firstIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawInfoEXT.java index 0a5222a9..b048e432 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultiDrawInfoEXT.java @@ -83,6 +83,17 @@ public final class VkMultiDrawInfoEXT extends Struct { /// @return the allocated `VkMultiDrawInfoEXT` public static VkMultiDrawInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMultiDrawInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultiDrawInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultiDrawInfoEXT` + public VkMultiDrawInfoEXT asSlice(long index) { return new VkMultiDrawInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultiDrawInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultiDrawInfoEXT` + public VkMultiDrawInfoEXT asSlice(long index, long count) { return new VkMultiDrawInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `firstVertex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisamplePropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisamplePropertiesEXT.java index 02a7648b..b50ea72d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisamplePropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisamplePropertiesEXT.java @@ -91,6 +91,17 @@ public final class VkMultisamplePropertiesEXT extends Struct { /// @return the allocated `VkMultisamplePropertiesEXT` public static VkMultisamplePropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkMultisamplePropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultisamplePropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultisamplePropertiesEXT` + public VkMultisamplePropertiesEXT asSlice(long index) { return new VkMultisamplePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultisamplePropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultisamplePropertiesEXT` + public VkMultisamplePropertiesEXT asSlice(long index, long count) { return new VkMultisamplePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisampledRenderToSingleSampledInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisampledRenderToSingleSampledInfoEXT.java index 58cf34fd..257fe780 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisampledRenderToSingleSampledInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMultisampledRenderToSingleSampledInfoEXT.java @@ -95,6 +95,17 @@ public final class VkMultisampledRenderToSingleSampledInfoEXT extends Struct { /// @return the allocated `VkMultisampledRenderToSingleSampledInfoEXT` public static VkMultisampledRenderToSingleSampledInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMultisampledRenderToSingleSampledInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultisampledRenderToSingleSampledInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultisampledRenderToSingleSampledInfoEXT` + public VkMultisampledRenderToSingleSampledInfoEXT asSlice(long index) { return new VkMultisampledRenderToSingleSampledInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultisampledRenderToSingleSampledInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultisampledRenderToSingleSampledInfoEXT` + public VkMultisampledRenderToSingleSampledInfoEXT asSlice(long index, long count) { return new VkMultisampledRenderToSingleSampledInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeCreateInfoEXT.java index ce3a01e3..e61f5428 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkMutableDescriptorTypeCreateInfoEXT extends Struct { /// @return the allocated `VkMutableDescriptorTypeCreateInfoEXT` public static VkMutableDescriptorTypeCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkMutableDescriptorTypeCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMutableDescriptorTypeCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMutableDescriptorTypeCreateInfoEXT` + public VkMutableDescriptorTypeCreateInfoEXT asSlice(long index) { return new VkMutableDescriptorTypeCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMutableDescriptorTypeCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMutableDescriptorTypeCreateInfoEXT` + public VkMutableDescriptorTypeCreateInfoEXT asSlice(long index, long count) { return new VkMutableDescriptorTypeCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeListEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeListEXT.java index 7a191d82..0651dd5d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeListEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkMutableDescriptorTypeListEXT.java @@ -83,6 +83,17 @@ public final class VkMutableDescriptorTypeListEXT extends Struct { /// @return the allocated `VkMutableDescriptorTypeListEXT` public static VkMutableDescriptorTypeListEXT alloc(SegmentAllocator allocator, long count) { return new VkMutableDescriptorTypeListEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMutableDescriptorTypeListEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMutableDescriptorTypeListEXT` + public VkMutableDescriptorTypeListEXT asSlice(long index) { return new VkMutableDescriptorTypeListEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMutableDescriptorTypeListEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMutableDescriptorTypeListEXT` + public VkMutableDescriptorTypeListEXT asSlice(long index, long count) { return new VkMutableDescriptorTypeListEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `descriptorTypeCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkOpaqueCaptureDescriptorDataCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkOpaqueCaptureDescriptorDataCreateInfoEXT.java index 7d3cc41c..d02a61e0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkOpaqueCaptureDescriptorDataCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkOpaqueCaptureDescriptorDataCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkOpaqueCaptureDescriptorDataCreateInfoEXT extends Struct { /// @return the allocated `VkOpaqueCaptureDescriptorDataCreateInfoEXT` public static VkOpaqueCaptureDescriptorDataCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkOpaqueCaptureDescriptorDataCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpaqueCaptureDescriptorDataCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpaqueCaptureDescriptorDataCreateInfoEXT` + public VkOpaqueCaptureDescriptorDataCreateInfoEXT asSlice(long index) { return new VkOpaqueCaptureDescriptorDataCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpaqueCaptureDescriptorDataCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpaqueCaptureDescriptorDataCreateInfoEXT` + public VkOpaqueCaptureDescriptorDataCreateInfoEXT asSlice(long index, long count) { return new VkOpaqueCaptureDescriptorDataCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevice4444FormatsFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevice4444FormatsFeaturesEXT.java index 413bf23d..6677ec85 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevice4444FormatsFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevice4444FormatsFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDevice4444FormatsFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDevice4444FormatsFeaturesEXT` public static VkPhysicalDevice4444FormatsFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevice4444FormatsFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevice4444FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevice4444FormatsFeaturesEXT` + public VkPhysicalDevice4444FormatsFeaturesEXT asSlice(long index) { return new VkPhysicalDevice4444FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevice4444FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevice4444FormatsFeaturesEXT` + public VkPhysicalDevice4444FormatsFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevice4444FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceASTCDecodeFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceASTCDecodeFeaturesEXT.java index e3985c29..bb49a6ac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceASTCDecodeFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceASTCDecodeFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceASTCDecodeFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceASTCDecodeFeaturesEXT` public static VkPhysicalDeviceASTCDecodeFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceASTCDecodeFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceASTCDecodeFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceASTCDecodeFeaturesEXT` + public VkPhysicalDeviceASTCDecodeFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceASTCDecodeFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceASTCDecodeFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceASTCDecodeFeaturesEXT` + public VkPhysicalDeviceASTCDecodeFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceASTCDecodeFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAddressBindingReportFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAddressBindingReportFeaturesEXT.java index c80c80d8..9ca28d6b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAddressBindingReportFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAddressBindingReportFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceAddressBindingReportFeaturesEXT extends Struc /// @return the allocated `VkPhysicalDeviceAddressBindingReportFeaturesEXT` public static VkPhysicalDeviceAddressBindingReportFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAddressBindingReportFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAddressBindingReportFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAddressBindingReportFeaturesEXT` + public VkPhysicalDeviceAddressBindingReportFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceAddressBindingReportFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAddressBindingReportFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAddressBindingReportFeaturesEXT` + public VkPhysicalDeviceAddressBindingReportFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceAddressBindingReportFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT.java index 098b1dd4..5068888c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT /// @return the allocated `VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT` public static VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT` + public VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT` + public VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.java index 26a16334..dafaa54f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT exten /// @return the allocated `VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT` public static VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT` + public VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT` + public VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT.java index 042550d4..98cb5802 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT extends Str /// @return the allocated `VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT` public static VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT` + public VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT` + public VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.java index ce665b32..37f7eef2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.java @@ -119,6 +119,17 @@ public final class VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT extends S /// @return the allocated `VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT` public static VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT` + public VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT` + public VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.java index da8777e7..4cd82a37 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceBorderColorSwizzleFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceBorderColorSwizzleFeaturesEXT` public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceBorderColorSwizzleFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceBorderColorSwizzleFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceBorderColorSwizzleFeaturesEXT` + public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceBorderColorSwizzleFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceBorderColorSwizzleFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceBorderColorSwizzleFeaturesEXT` + public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceBorderColorSwizzleFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.java index a48002dd..37fbb64d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceBufferDeviceAddressFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceBufferDeviceAddressFeaturesEXT` public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceBufferDeviceAddressFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceBufferDeviceAddressFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceBufferDeviceAddressFeaturesEXT` + public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceBufferDeviceAddressFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceBufferDeviceAddressFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceBufferDeviceAddressFeaturesEXT` + public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceBufferDeviceAddressFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceColorWriteEnableFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceColorWriteEnableFeaturesEXT.java index 16a97568..da42fe64 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceColorWriteEnableFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceColorWriteEnableFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceColorWriteEnableFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceColorWriteEnableFeaturesEXT` public static VkPhysicalDeviceColorWriteEnableFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceColorWriteEnableFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceColorWriteEnableFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceColorWriteEnableFeaturesEXT` + public VkPhysicalDeviceColorWriteEnableFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceColorWriteEnableFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceColorWriteEnableFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceColorWriteEnableFeaturesEXT` + public VkPhysicalDeviceColorWriteEnableFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceColorWriteEnableFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConditionalRenderingFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConditionalRenderingFeaturesEXT.java index 989494b6..627cdc4b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConditionalRenderingFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConditionalRenderingFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceConditionalRenderingFeaturesEXT extends Struc /// @return the allocated `VkPhysicalDeviceConditionalRenderingFeaturesEXT` public static VkPhysicalDeviceConditionalRenderingFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceConditionalRenderingFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceConditionalRenderingFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceConditionalRenderingFeaturesEXT` + public VkPhysicalDeviceConditionalRenderingFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceConditionalRenderingFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceConditionalRenderingFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceConditionalRenderingFeaturesEXT` + public VkPhysicalDeviceConditionalRenderingFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceConditionalRenderingFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConservativeRasterizationPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConservativeRasterizationPropertiesEXT.java index e712e8eb..136c7f0a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConservativeRasterizationPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceConservativeRasterizationPropertiesEXT.java @@ -137,6 +137,17 @@ public final class VkPhysicalDeviceConservativeRasterizationPropertiesEXT extend /// @return the allocated `VkPhysicalDeviceConservativeRasterizationPropertiesEXT` public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceConservativeRasterizationPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceConservativeRasterizationPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceConservativeRasterizationPropertiesEXT` + public VkPhysicalDeviceConservativeRasterizationPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceConservativeRasterizationPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceConservativeRasterizationPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceConservativeRasterizationPropertiesEXT` + public VkPhysicalDeviceConservativeRasterizationPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceConservativeRasterizationPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorFeaturesEXT.java index 9fbbb95f..28bbab6c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceCustomBorderColorFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceCustomBorderColorFeaturesEXT` public static VkPhysicalDeviceCustomBorderColorFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCustomBorderColorFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCustomBorderColorFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCustomBorderColorFeaturesEXT` + public VkPhysicalDeviceCustomBorderColorFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceCustomBorderColorFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCustomBorderColorFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCustomBorderColorFeaturesEXT` + public VkPhysicalDeviceCustomBorderColorFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceCustomBorderColorFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorPropertiesEXT.java index cdd82e1d..95f81f00 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceCustomBorderColorPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCustomBorderColorPropertiesEXT extends Struct /// @return the allocated `VkPhysicalDeviceCustomBorderColorPropertiesEXT` public static VkPhysicalDeviceCustomBorderColorPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCustomBorderColorPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCustomBorderColorPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCustomBorderColorPropertiesEXT` + public VkPhysicalDeviceCustomBorderColorPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceCustomBorderColorPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCustomBorderColorPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCustomBorderColorPropertiesEXT` + public VkPhysicalDeviceCustomBorderColorPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceCustomBorderColorPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthBiasControlFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthBiasControlFeaturesEXT.java index 9ef35fe9..d3355b41 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthBiasControlFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthBiasControlFeaturesEXT.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceDepthBiasControlFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDepthBiasControlFeaturesEXT` public static VkPhysicalDeviceDepthBiasControlFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthBiasControlFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthBiasControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthBiasControlFeaturesEXT` + public VkPhysicalDeviceDepthBiasControlFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDepthBiasControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthBiasControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthBiasControlFeaturesEXT` + public VkPhysicalDeviceDepthBiasControlFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDepthBiasControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampControlFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampControlFeaturesEXT.java index ecfcebfd..e300fffb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampControlFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampControlFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDepthClampControlFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDepthClampControlFeaturesEXT` public static VkPhysicalDeviceDepthClampControlFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthClampControlFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthClampControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthClampControlFeaturesEXT` + public VkPhysicalDeviceDepthClampControlFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDepthClampControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthClampControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthClampControlFeaturesEXT` + public VkPhysicalDeviceDepthClampControlFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDepthClampControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampZeroOneFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampZeroOneFeaturesEXT.java index afdd56b0..40d43571 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampZeroOneFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClampZeroOneFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDepthClampZeroOneFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDepthClampZeroOneFeaturesEXT` public static VkPhysicalDeviceDepthClampZeroOneFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthClampZeroOneFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthClampZeroOneFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthClampZeroOneFeaturesEXT` + public VkPhysicalDeviceDepthClampZeroOneFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDepthClampZeroOneFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthClampZeroOneFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthClampZeroOneFeaturesEXT` + public VkPhysicalDeviceDepthClampZeroOneFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDepthClampZeroOneFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipControlFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipControlFeaturesEXT.java index baf13750..b908320e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipControlFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipControlFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDepthClipControlFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDepthClipControlFeaturesEXT` public static VkPhysicalDeviceDepthClipControlFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthClipControlFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthClipControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthClipControlFeaturesEXT` + public VkPhysicalDeviceDepthClipControlFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDepthClipControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthClipControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthClipControlFeaturesEXT` + public VkPhysicalDeviceDepthClipControlFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDepthClipControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipEnableFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipEnableFeaturesEXT.java index ed65f7b2..785b8746 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipEnableFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDepthClipEnableFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDepthClipEnableFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDepthClipEnableFeaturesEXT` public static VkPhysicalDeviceDepthClipEnableFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthClipEnableFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthClipEnableFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthClipEnableFeaturesEXT` + public VkPhysicalDeviceDepthClipEnableFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDepthClipEnableFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthClipEnableFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthClipEnableFeaturesEXT` + public VkPhysicalDeviceDepthClipEnableFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDepthClipEnableFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT.java index ffbaf951..25f594f9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT exten /// @return the allocated `VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT` public static VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT` + public VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT` + public VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferFeaturesEXT.java index 96db542f..c82e1dda 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferFeaturesEXT.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceDescriptorBufferFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDescriptorBufferFeaturesEXT` public static VkPhysicalDeviceDescriptorBufferFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorBufferFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorBufferFeaturesEXT` + public VkPhysicalDeviceDescriptorBufferFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDescriptorBufferFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorBufferFeaturesEXT` + public VkPhysicalDeviceDescriptorBufferFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorBufferFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferPropertiesEXT.java index e7abf69c..4caeb33d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDescriptorBufferPropertiesEXT.java @@ -281,6 +281,17 @@ public final class VkPhysicalDeviceDescriptorBufferPropertiesEXT extends Struct /// @return the allocated `VkPhysicalDeviceDescriptorBufferPropertiesEXT` public static VkPhysicalDeviceDescriptorBufferPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorBufferPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorBufferPropertiesEXT` + public VkPhysicalDeviceDescriptorBufferPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceDescriptorBufferPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorBufferPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorBufferPropertiesEXT` + public VkPhysicalDeviceDescriptorBufferPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorBufferPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT.java index 9f8263c4..75ded132 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT extends St /// @return the allocated `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT` public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT` + public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT` + public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.java index 2608e15e..1024d4d6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.java @@ -155,6 +155,17 @@ public final class VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT extends /// @return the allocated `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT` public static VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT` + public VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT` + public VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceMemoryReportFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceMemoryReportFeaturesEXT.java index ae1fb89e..4366ee3a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceMemoryReportFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDeviceMemoryReportFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDeviceMemoryReportFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceDeviceMemoryReportFeaturesEXT` public static VkPhysicalDeviceDeviceMemoryReportFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceMemoryReportFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceMemoryReportFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceMemoryReportFeaturesEXT` + public VkPhysicalDeviceDeviceMemoryReportFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDeviceMemoryReportFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceMemoryReportFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceMemoryReportFeaturesEXT` + public VkPhysicalDeviceDeviceMemoryReportFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDeviceMemoryReportFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDiscardRectanglePropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDiscardRectanglePropertiesEXT.java index a9318c15..22d2f4bd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDiscardRectanglePropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDiscardRectanglePropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDiscardRectanglePropertiesEXT extends Struct /// @return the allocated `VkPhysicalDeviceDiscardRectanglePropertiesEXT` public static VkPhysicalDeviceDiscardRectanglePropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDiscardRectanglePropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDiscardRectanglePropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDiscardRectanglePropertiesEXT` + public VkPhysicalDeviceDiscardRectanglePropertiesEXT asSlice(long index) { return new VkPhysicalDeviceDiscardRectanglePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDiscardRectanglePropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDiscardRectanglePropertiesEXT` + public VkPhysicalDeviceDiscardRectanglePropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDiscardRectanglePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDrmPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDrmPropertiesEXT.java index d684b7d9..167a67fd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDrmPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDrmPropertiesEXT.java @@ -119,6 +119,17 @@ public final class VkPhysicalDeviceDrmPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceDrmPropertiesEXT` public static VkPhysicalDeviceDrmPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDrmPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDrmPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDrmPropertiesEXT` + public VkPhysicalDeviceDrmPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceDrmPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDrmPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDrmPropertiesEXT` + public VkPhysicalDeviceDrmPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDrmPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT.java index 1b268c32..2622e56d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT /// @return the allocated `VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT` public static VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT` + public VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT` + public VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState2FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState2FeaturesEXT.java index a7641cb3..cc3ac876 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState2FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState2FeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceExtendedDynamicState2FeaturesEXT extends Stru /// @return the allocated `VkPhysicalDeviceExtendedDynamicState2FeaturesEXT` public static VkPhysicalDeviceExtendedDynamicState2FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedDynamicState2FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState2FeaturesEXT` + public VkPhysicalDeviceExtendedDynamicState2FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceExtendedDynamicState2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState2FeaturesEXT` + public VkPhysicalDeviceExtendedDynamicState2FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceExtendedDynamicState2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3FeaturesEXT.java index b134f6d5..573d8443 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3FeaturesEXT.java @@ -269,6 +269,17 @@ public final class VkPhysicalDeviceExtendedDynamicState3FeaturesEXT extends Stru /// @return the allocated `VkPhysicalDeviceExtendedDynamicState3FeaturesEXT` public static VkPhysicalDeviceExtendedDynamicState3FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedDynamicState3FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState3FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState3FeaturesEXT` + public VkPhysicalDeviceExtendedDynamicState3FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceExtendedDynamicState3FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState3FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState3FeaturesEXT` + public VkPhysicalDeviceExtendedDynamicState3FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceExtendedDynamicState3FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3PropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3PropertiesEXT.java index 2fd382cb..7dfccbb5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3PropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicState3PropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExtendedDynamicState3PropertiesEXT extends St /// @return the allocated `VkPhysicalDeviceExtendedDynamicState3PropertiesEXT` public static VkPhysicalDeviceExtendedDynamicState3PropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedDynamicState3PropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState3PropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState3PropertiesEXT` + public VkPhysicalDeviceExtendedDynamicState3PropertiesEXT asSlice(long index) { return new VkPhysicalDeviceExtendedDynamicState3PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicState3PropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedDynamicState3PropertiesEXT` + public VkPhysicalDeviceExtendedDynamicState3PropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceExtendedDynamicState3PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicStateFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicStateFeaturesEXT.java index 195910bb..f29b1996 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicStateFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExtendedDynamicStateFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExtendedDynamicStateFeaturesEXT extends Struc /// @return the allocated `VkPhysicalDeviceExtendedDynamicStateFeaturesEXT` public static VkPhysicalDeviceExtendedDynamicStateFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedDynamicStateFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedDynamicStateFeaturesEXT` + public VkPhysicalDeviceExtendedDynamicStateFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceExtendedDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedDynamicStateFeaturesEXT` + public VkPhysicalDeviceExtendedDynamicStateFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceExtendedDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExternalMemoryHostPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExternalMemoryHostPropertiesEXT.java index 87b0a425..059dca17 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExternalMemoryHostPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceExternalMemoryHostPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalMemoryHostPropertiesEXT extends Struc /// @return the allocated `VkPhysicalDeviceExternalMemoryHostPropertiesEXT` public static VkPhysicalDeviceExternalMemoryHostPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalMemoryHostPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalMemoryHostPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalMemoryHostPropertiesEXT` + public VkPhysicalDeviceExternalMemoryHostPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceExternalMemoryHostPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalMemoryHostPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalMemoryHostPropertiesEXT` + public VkPhysicalDeviceExternalMemoryHostPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceExternalMemoryHostPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFaultFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFaultFeaturesEXT.java index a747d57a..7a36a3ce 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFaultFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFaultFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceFaultFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceFaultFeaturesEXT` public static VkPhysicalDeviceFaultFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFaultFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFaultFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFaultFeaturesEXT` + public VkPhysicalDeviceFaultFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceFaultFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFaultFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFaultFeaturesEXT` + public VkPhysicalDeviceFaultFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFaultFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2FeaturesEXT.java index 533da89d..a7311aed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2FeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFragmentDensityMap2FeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceFragmentDensityMap2FeaturesEXT` public static VkPhysicalDeviceFragmentDensityMap2FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMap2FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMap2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMap2FeaturesEXT` + public VkPhysicalDeviceFragmentDensityMap2FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMap2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMap2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMap2FeaturesEXT` + public VkPhysicalDeviceFragmentDensityMap2FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMap2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2PropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2PropertiesEXT.java index 9e2d7cc5..bda9c01d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2PropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMap2PropertiesEXT.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceFragmentDensityMap2PropertiesEXT extends Stru /// @return the allocated `VkPhysicalDeviceFragmentDensityMap2PropertiesEXT` public static VkPhysicalDeviceFragmentDensityMap2PropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMap2PropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMap2PropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMap2PropertiesEXT` + public VkPhysicalDeviceFragmentDensityMap2PropertiesEXT asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMap2PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMap2PropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMap2PropertiesEXT` + public VkPhysicalDeviceFragmentDensityMap2PropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMap2PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapFeaturesEXT.java index 3c79c8f7..6b220c11 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceFragmentDensityMapFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceFragmentDensityMapFeaturesEXT` public static VkPhysicalDeviceFragmentDensityMapFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMapFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapFeaturesEXT` + public VkPhysicalDeviceFragmentDensityMapFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapFeaturesEXT` + public VkPhysicalDeviceFragmentDensityMapFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapPropertiesEXT.java index e9cc4360..4870c782 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentDensityMapPropertiesEXT.java @@ -105,6 +105,17 @@ public final class VkPhysicalDeviceFragmentDensityMapPropertiesEXT extends Struc /// @return the allocated `VkPhysicalDeviceFragmentDensityMapPropertiesEXT` public static VkPhysicalDeviceFragmentDensityMapPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMapPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapPropertiesEXT` + public VkPhysicalDeviceFragmentDensityMapPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapPropertiesEXT` + public VkPhysicalDeviceFragmentDensityMapPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT.java index de2d4096..4a2dc9e0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT extends St /// @return the allocated `VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT` public static VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT` + public VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT` + public VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFrameBoundaryFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFrameBoundaryFeaturesEXT.java index 94d7cd91..e77f1dc9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFrameBoundaryFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceFrameBoundaryFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFrameBoundaryFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceFrameBoundaryFeaturesEXT` public static VkPhysicalDeviceFrameBoundaryFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFrameBoundaryFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFrameBoundaryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFrameBoundaryFeaturesEXT` + public VkPhysicalDeviceFrameBoundaryFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceFrameBoundaryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFrameBoundaryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFrameBoundaryFeaturesEXT` + public VkPhysicalDeviceFrameBoundaryFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceFrameBoundaryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT.java index 10772a3e..762e8262 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT extends St /// @return the allocated `VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT` public static VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT` + public VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT` + public VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.java index 3c041b77..0a6ee833 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT extends /// @return the allocated `VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT` public static VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT` + public VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT` + public VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImage2DViewOf3DFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImage2DViewOf3DFeaturesEXT.java index 236005b0..34f742b9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImage2DViewOf3DFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImage2DViewOf3DFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceImage2DViewOf3DFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceImage2DViewOf3DFeaturesEXT` public static VkPhysicalDeviceImage2DViewOf3DFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImage2DViewOf3DFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImage2DViewOf3DFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImage2DViewOf3DFeaturesEXT` + public VkPhysicalDeviceImage2DViewOf3DFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceImage2DViewOf3DFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImage2DViewOf3DFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImage2DViewOf3DFeaturesEXT` + public VkPhysicalDeviceImage2DViewOf3DFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceImage2DViewOf3DFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlFeaturesEXT.java index 8a078aa5..e246a7a6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageCompressionControlFeaturesEXT extends St /// @return the allocated `VkPhysicalDeviceImageCompressionControlFeaturesEXT` public static VkPhysicalDeviceImageCompressionControlFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageCompressionControlFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageCompressionControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageCompressionControlFeaturesEXT` + public VkPhysicalDeviceImageCompressionControlFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceImageCompressionControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageCompressionControlFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageCompressionControlFeaturesEXT` + public VkPhysicalDeviceImageCompressionControlFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageCompressionControlFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT.java index 0f281666..b5ff626d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT e /// @return the allocated `VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT` public static VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT` + public VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT` + public VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageDrmFormatModifierInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageDrmFormatModifierInfoEXT.java index 42498d58..ffda30af 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageDrmFormatModifierInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageDrmFormatModifierInfoEXT.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceImageDrmFormatModifierInfoEXT extends Struct /// @return the allocated `VkPhysicalDeviceImageDrmFormatModifierInfoEXT` public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageDrmFormatModifierInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageDrmFormatModifierInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageDrmFormatModifierInfoEXT` + public VkPhysicalDeviceImageDrmFormatModifierInfoEXT asSlice(long index) { return new VkPhysicalDeviceImageDrmFormatModifierInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageDrmFormatModifierInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageDrmFormatModifierInfoEXT` + public VkPhysicalDeviceImageDrmFormatModifierInfoEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageDrmFormatModifierInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT.java index 2b730d9e..984bb980 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT` public static VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT` + public VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT` + public VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewImageFormatInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewImageFormatInfoEXT.java index 0d2c25be..86156009 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewImageFormatInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewImageFormatInfoEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageViewImageFormatInfoEXT extends Struct { /// @return the allocated `VkPhysicalDeviceImageViewImageFormatInfoEXT` public static VkPhysicalDeviceImageViewImageFormatInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageViewImageFormatInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageViewImageFormatInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageViewImageFormatInfoEXT` + public VkPhysicalDeviceImageViewImageFormatInfoEXT asSlice(long index) { return new VkPhysicalDeviceImageViewImageFormatInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageViewImageFormatInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageViewImageFormatInfoEXT` + public VkPhysicalDeviceImageViewImageFormatInfoEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageViewImageFormatInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewMinLodFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewMinLodFeaturesEXT.java index 7ae3c545..d87e307c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewMinLodFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceImageViewMinLodFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageViewMinLodFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceImageViewMinLodFeaturesEXT` public static VkPhysicalDeviceImageViewMinLodFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageViewMinLodFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageViewMinLodFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageViewMinLodFeaturesEXT` + public VkPhysicalDeviceImageViewMinLodFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceImageViewMinLodFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageViewMinLodFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageViewMinLodFeaturesEXT` + public VkPhysicalDeviceImageViewMinLodFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceImageViewMinLodFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyDitheringFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyDitheringFeaturesEXT.java index 96435387..ca2ecc06 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyDitheringFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyDitheringFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLegacyDitheringFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceLegacyDitheringFeaturesEXT` public static VkPhysicalDeviceLegacyDitheringFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLegacyDitheringFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLegacyDitheringFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLegacyDitheringFeaturesEXT` + public VkPhysicalDeviceLegacyDitheringFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceLegacyDitheringFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLegacyDitheringFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLegacyDitheringFeaturesEXT` + public VkPhysicalDeviceLegacyDitheringFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceLegacyDitheringFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT.java index 69f9137f..134da723 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT extends Str /// @return the allocated `VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT` public static VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT` + public VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT` + public VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT.java index 4b285096..a46ed5b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT extends S /// @return the allocated `VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT` public static VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT` + public VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT` + public VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedFeaturesEXT.java index 03df1c6e..b46ad39f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceMapMemoryPlacedFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMapMemoryPlacedFeaturesEXT` public static VkPhysicalDeviceMapMemoryPlacedFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMapMemoryPlacedFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMapMemoryPlacedFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMapMemoryPlacedFeaturesEXT` + public VkPhysicalDeviceMapMemoryPlacedFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMapMemoryPlacedFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMapMemoryPlacedFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMapMemoryPlacedFeaturesEXT` + public VkPhysicalDeviceMapMemoryPlacedFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMapMemoryPlacedFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedPropertiesEXT.java index 8e13e255..4d47c16b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMapMemoryPlacedPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMapMemoryPlacedPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMapMemoryPlacedPropertiesEXT` public static VkPhysicalDeviceMapMemoryPlacedPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMapMemoryPlacedPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMapMemoryPlacedPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMapMemoryPlacedPropertiesEXT` + public VkPhysicalDeviceMapMemoryPlacedPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceMapMemoryPlacedPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMapMemoryPlacedPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMapMemoryPlacedPropertiesEXT` + public VkPhysicalDeviceMapMemoryPlacedPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMapMemoryPlacedPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryBudgetPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryBudgetPropertiesEXT.java index 135a05a3..e2d66c12 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryBudgetPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryBudgetPropertiesEXT.java @@ -32,9 +32,9 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### heapBudget -/// [Byte offset handle][#MH_heapBudget] - [Memory layout][#ML_heapBudget] - [Getter][#heapBudget(long)] - [Setter][#heapBudget(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_heapBudget] - [Memory layout][#ML_heapBudget] - [Getter][#heapBudget()] - [Setter][#heapBudget(java.lang.foreign.MemorySegment)] /// ### heapUsage -/// [Byte offset handle][#MH_heapUsage] - [Memory layout][#ML_heapUsage] - [Getter][#heapUsage(long)] - [Setter][#heapUsage(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_heapUsage] - [Memory layout][#ML_heapUsage] - [Getter][#heapUsage()] - [Setter][#heapUsage(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -57,12 +57,12 @@ public final class VkPhysicalDeviceMemoryBudgetPropertiesEXT extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `heapBudget` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_heapBudget = LAYOUT.byteOffsetHandle(PathElement.groupElement("heapBudget"), PathElement.sequenceElement()); + /// The byte offset of `heapBudget`. + public static final long OFFSET_heapBudget = LAYOUT.byteOffset(PathElement.groupElement("heapBudget")); /// The memory layout of `heapBudget`. public static final MemoryLayout ML_heapBudget = LAYOUT.select(PathElement.groupElement("heapBudget")); - /// The byte offset handle of `heapUsage` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_heapUsage = LAYOUT.byteOffsetHandle(PathElement.groupElement("heapUsage"), PathElement.sequenceElement()); + /// The byte offset of `heapUsage`. + public static final long OFFSET_heapUsage = LAYOUT.byteOffset(PathElement.groupElement("heapUsage")); /// The memory layout of `heapUsage`. public static final MemoryLayout ML_heapUsage = LAYOUT.select(PathElement.groupElement("heapUsage")); @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceMemoryBudgetPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMemoryBudgetPropertiesEXT` public static VkPhysicalDeviceMemoryBudgetPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryBudgetPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryBudgetPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryBudgetPropertiesEXT` + public VkPhysicalDeviceMemoryBudgetPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceMemoryBudgetPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryBudgetPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryBudgetPropertiesEXT` + public VkPhysicalDeviceMemoryBudgetPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMemoryBudgetPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -164,93 +175,65 @@ public final class VkPhysicalDeviceMemoryBudgetPropertiesEXT extends Struct { public VkPhysicalDeviceMemoryBudgetPropertiesEXT pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_pNext(this.segment(), value); return this; } /// {@return `heapBudget` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapBudget(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_heapBudget.invokeExact(0L, elementIndex), index), ML_heapBudget); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapBudget(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_heapBudget, index), ML_heapBudget); } /// {@return `heapBudget`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapBudget(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapBudget(MemorySegment segment) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(segment, 0L); } /// {@return `heapBudget` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapBudgetAt(long index, long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapBudgetAt(long index) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(this.segment(), index); } /// {@return `heapBudget`} - /// @param elementIndex the index of the element - public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapBudget(long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(this.segment(), elementIndex); } + public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapBudget() { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapBudget(this.segment()); } /// Sets `heapBudget` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_heapBudget(MemorySegment segment, long index, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_heapBudget.invokeExact(0L, elementIndex), index), ML_heapBudget.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_heapBudget(MemorySegment segment, long index, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_heapBudget, index), ML_heapBudget.byteSize()); } /// Sets `heapBudget` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_heapBudget(MemorySegment segment, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_heapBudget(MemorySegment segment, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(segment, 0L, value); } /// Sets `heapBudget` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapBudgetAt(long index, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapBudgetAt(long index, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(this.segment(), index, value); return this; } /// Sets `heapBudget` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapBudget(long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapBudget(@CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapBudget(this.segment(), value); return this; } /// {@return `heapUsage` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapUsage(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_heapUsage.invokeExact(0L, elementIndex), index), ML_heapUsage); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapUsage(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_heapUsage, index), ML_heapUsage); } /// {@return `heapUsage`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapUsage(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_heapUsage(MemorySegment segment) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(segment, 0L); } /// {@return `heapUsage` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapUsageAt(long index, long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapUsageAt(long index) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(this.segment(), index); } /// {@return `heapUsage`} - /// @param elementIndex the index of the element - public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapUsage(long elementIndex) { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(this.segment(), elementIndex); } + public @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment heapUsage() { return VkPhysicalDeviceMemoryBudgetPropertiesEXT.get_heapUsage(this.segment()); } /// Sets `heapUsage` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_heapUsage(MemorySegment segment, long index, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_heapUsage.invokeExact(0L, elementIndex), index), ML_heapUsage.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_heapUsage(MemorySegment segment, long index, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_heapUsage, index), ML_heapUsage.byteSize()); } /// Sets `heapUsage` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_heapUsage(MemorySegment segment, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_heapUsage(MemorySegment segment, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(segment, 0L, value); } /// Sets `heapUsage` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapUsageAt(long index, long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapUsageAt(long index, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(this.segment(), index, value); return this; } /// Sets `heapUsage` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapUsage(long elementIndex, @CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceMemoryBudgetPropertiesEXT heapUsage(@CType("VkDeviceSize[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryBudgetPropertiesEXT.set_heapUsage(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryPriorityFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryPriorityFeaturesEXT.java index e8ef7670..92be03c9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryPriorityFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMemoryPriorityFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMemoryPriorityFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMemoryPriorityFeaturesEXT` public static VkPhysicalDeviceMemoryPriorityFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryPriorityFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryPriorityFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryPriorityFeaturesEXT` + public VkPhysicalDeviceMemoryPriorityFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMemoryPriorityFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryPriorityFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryPriorityFeaturesEXT` + public VkPhysicalDeviceMemoryPriorityFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMemoryPriorityFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderFeaturesEXT.java index 6faa308f..fa3b2da3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderFeaturesEXT.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceMeshShaderFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMeshShaderFeaturesEXT` public static VkPhysicalDeviceMeshShaderFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMeshShaderFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMeshShaderFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMeshShaderFeaturesEXT` + public VkPhysicalDeviceMeshShaderFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMeshShaderFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMeshShaderFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMeshShaderFeaturesEXT` + public VkPhysicalDeviceMeshShaderFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMeshShaderFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderPropertiesEXT.java index 54e83af8..f7ddcab2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMeshShaderPropertiesEXT.java @@ -32,11 +32,11 @@ /// ### maxTaskWorkGroupTotalCount /// [VarHandle][#VH_maxTaskWorkGroupTotalCount] - [Getter][#maxTaskWorkGroupTotalCount()] - [Setter][#maxTaskWorkGroupTotalCount(int)] /// ### maxTaskWorkGroupCount -/// [VarHandle][#VH_maxTaskWorkGroupCount] - [Getter][#maxTaskWorkGroupCount()] - [Setter][#maxTaskWorkGroupCount(int)] +/// [Byte offset][#OFFSET_maxTaskWorkGroupCount] - [Memory layout][#ML_maxTaskWorkGroupCount] - [Getter][#maxTaskWorkGroupCount()] - [Setter][#maxTaskWorkGroupCount(java.lang.foreign.MemorySegment)] /// ### maxTaskWorkGroupInvocations /// [VarHandle][#VH_maxTaskWorkGroupInvocations] - [Getter][#maxTaskWorkGroupInvocations()] - [Setter][#maxTaskWorkGroupInvocations(int)] /// ### maxTaskWorkGroupSize -/// [VarHandle][#VH_maxTaskWorkGroupSize] - [Getter][#maxTaskWorkGroupSize()] - [Setter][#maxTaskWorkGroupSize(int)] +/// [Byte offset][#OFFSET_maxTaskWorkGroupSize] - [Memory layout][#ML_maxTaskWorkGroupSize] - [Getter][#maxTaskWorkGroupSize()] - [Setter][#maxTaskWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### maxTaskPayloadSize /// [VarHandle][#VH_maxTaskPayloadSize] - [Getter][#maxTaskPayloadSize()] - [Setter][#maxTaskPayloadSize(int)] /// ### maxTaskSharedMemorySize @@ -46,11 +46,11 @@ /// ### maxMeshWorkGroupTotalCount /// [VarHandle][#VH_maxMeshWorkGroupTotalCount] - [Getter][#maxMeshWorkGroupTotalCount()] - [Setter][#maxMeshWorkGroupTotalCount(int)] /// ### maxMeshWorkGroupCount -/// [VarHandle][#VH_maxMeshWorkGroupCount] - [Getter][#maxMeshWorkGroupCount()] - [Setter][#maxMeshWorkGroupCount(int)] +/// [Byte offset][#OFFSET_maxMeshWorkGroupCount] - [Memory layout][#ML_maxMeshWorkGroupCount] - [Getter][#maxMeshWorkGroupCount()] - [Setter][#maxMeshWorkGroupCount(java.lang.foreign.MemorySegment)] /// ### maxMeshWorkGroupInvocations /// [VarHandle][#VH_maxMeshWorkGroupInvocations] - [Getter][#maxMeshWorkGroupInvocations()] - [Setter][#maxMeshWorkGroupInvocations(int)] /// ### maxMeshWorkGroupSize -/// [VarHandle][#VH_maxMeshWorkGroupSize] - [Getter][#maxMeshWorkGroupSize()] - [Setter][#maxMeshWorkGroupSize(int)] +/// [Byte offset][#OFFSET_maxMeshWorkGroupSize] - [Memory layout][#ML_maxMeshWorkGroupSize] - [Getter][#maxMeshWorkGroupSize()] - [Setter][#maxMeshWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### maxMeshSharedMemorySize /// [VarHandle][#VH_maxMeshSharedMemorySize] - [Getter][#maxMeshSharedMemorySize()] - [Setter][#maxMeshSharedMemorySize(int)] /// ### maxMeshPayloadAndSharedMemorySize @@ -92,16 +92,16 @@ /// VkStructureType sType; /// void * pNext; /// uint32_t maxTaskWorkGroupTotalCount; -/// uint32_t maxTaskWorkGroupCount; +/// uint32_t[3] maxTaskWorkGroupCount; /// uint32_t maxTaskWorkGroupInvocations; -/// uint32_t maxTaskWorkGroupSize; +/// uint32_t[3] maxTaskWorkGroupSize; /// uint32_t maxTaskPayloadSize; /// uint32_t maxTaskSharedMemorySize; /// uint32_t maxTaskPayloadAndSharedMemorySize; /// uint32_t maxMeshWorkGroupTotalCount; -/// uint32_t maxMeshWorkGroupCount; +/// uint32_t[3] maxMeshWorkGroupCount; /// uint32_t maxMeshWorkGroupInvocations; -/// uint32_t maxMeshWorkGroupSize; +/// uint32_t[3] maxMeshWorkGroupSize; /// uint32_t maxMeshSharedMemorySize; /// uint32_t maxMeshPayloadAndSharedMemorySize; /// uint32_t maxMeshOutputMemorySize; @@ -127,16 +127,16 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { ValueLayout.JAVA_INT.withName("sType"), ValueLayout.ADDRESS.withName("pNext"), ValueLayout.JAVA_INT.withName("maxTaskWorkGroupTotalCount"), - ValueLayout.JAVA_INT.withName("maxTaskWorkGroupCount"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxTaskWorkGroupCount"), ValueLayout.JAVA_INT.withName("maxTaskWorkGroupInvocations"), - ValueLayout.JAVA_INT.withName("maxTaskWorkGroupSize"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxTaskWorkGroupSize"), ValueLayout.JAVA_INT.withName("maxTaskPayloadSize"), ValueLayout.JAVA_INT.withName("maxTaskSharedMemorySize"), ValueLayout.JAVA_INT.withName("maxTaskPayloadAndSharedMemorySize"), ValueLayout.JAVA_INT.withName("maxMeshWorkGroupTotalCount"), - ValueLayout.JAVA_INT.withName("maxMeshWorkGroupCount"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxMeshWorkGroupCount"), ValueLayout.JAVA_INT.withName("maxMeshWorkGroupInvocations"), - ValueLayout.JAVA_INT.withName("maxMeshWorkGroupSize"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxMeshWorkGroupSize"), ValueLayout.JAVA_INT.withName("maxMeshSharedMemorySize"), ValueLayout.JAVA_INT.withName("maxMeshPayloadAndSharedMemorySize"), ValueLayout.JAVA_INT.withName("maxMeshOutputMemorySize"), @@ -161,12 +161,16 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `maxTaskWorkGroupTotalCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskWorkGroupTotalCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupTotalCount")); - /// The [VarHandle] of `maxTaskWorkGroupCount` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxTaskWorkGroupCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupCount")); + /// The byte offset of `maxTaskWorkGroupCount`. + public static final long OFFSET_maxTaskWorkGroupCount = LAYOUT.byteOffset(PathElement.groupElement("maxTaskWorkGroupCount")); + /// The memory layout of `maxTaskWorkGroupCount`. + public static final MemoryLayout ML_maxTaskWorkGroupCount = LAYOUT.select(PathElement.groupElement("maxTaskWorkGroupCount")); /// The [VarHandle] of `maxTaskWorkGroupInvocations` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskWorkGroupInvocations = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupInvocations")); - /// The [VarHandle] of `maxTaskWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxTaskWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupSize")); + /// The byte offset of `maxTaskWorkGroupSize`. + public static final long OFFSET_maxTaskWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxTaskWorkGroupSize")); + /// The memory layout of `maxTaskWorkGroupSize`. + public static final MemoryLayout ML_maxTaskWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxTaskWorkGroupSize")); /// The [VarHandle] of `maxTaskPayloadSize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskPayloadSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskPayloadSize")); /// The [VarHandle] of `maxTaskSharedMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -175,12 +179,16 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { public static final VarHandle VH_maxTaskPayloadAndSharedMemorySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskPayloadAndSharedMemorySize")); /// The [VarHandle] of `maxMeshWorkGroupTotalCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxMeshWorkGroupTotalCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupTotalCount")); - /// The [VarHandle] of `maxMeshWorkGroupCount` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxMeshWorkGroupCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupCount")); + /// The byte offset of `maxMeshWorkGroupCount`. + public static final long OFFSET_maxMeshWorkGroupCount = LAYOUT.byteOffset(PathElement.groupElement("maxMeshWorkGroupCount")); + /// The memory layout of `maxMeshWorkGroupCount`. + public static final MemoryLayout ML_maxMeshWorkGroupCount = LAYOUT.select(PathElement.groupElement("maxMeshWorkGroupCount")); /// The [VarHandle] of `maxMeshWorkGroupInvocations` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxMeshWorkGroupInvocations = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupInvocations")); - /// The [VarHandle] of `maxMeshWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxMeshWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupSize")); + /// The byte offset of `maxMeshWorkGroupSize`. + public static final long OFFSET_maxMeshWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxMeshWorkGroupSize")); + /// The memory layout of `maxMeshWorkGroupSize`. + public static final MemoryLayout ML_maxMeshWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxMeshWorkGroupSize")); /// The [VarHandle] of `maxMeshSharedMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxMeshSharedMemorySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshSharedMemorySize")); /// The [VarHandle] of `maxMeshPayloadAndSharedMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -251,6 +259,17 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMeshShaderPropertiesEXT` public static VkPhysicalDeviceMeshShaderPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMeshShaderPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMeshShaderPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMeshShaderPropertiesEXT` + public VkPhysicalDeviceMeshShaderPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceMeshShaderPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMeshShaderPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMeshShaderPropertiesEXT` + public VkPhysicalDeviceMeshShaderPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMeshShaderPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -347,33 +366,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { /// {@return `maxTaskWorkGroupCount` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxTaskWorkGroupCount(MemorySegment segment, long index) { return (int) VH_maxTaskWorkGroupCount.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupCount(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxTaskWorkGroupCount, index), ML_maxTaskWorkGroupCount); } /// {@return `maxTaskWorkGroupCount`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxTaskWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(segment, 0L); } /// {@return `maxTaskWorkGroupCount` at the given index} /// @param index the index - public @CType("uint32_t") int maxTaskWorkGroupCountAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupCountAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(this.segment(), index); } /// {@return `maxTaskWorkGroupCount`} - public @CType("uint32_t") int maxTaskWorkGroupCount() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupCount() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupCount(this.segment()); } /// Sets `maxTaskWorkGroupCount` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxTaskWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxTaskWorkGroupCount.set(segment, 0L, index, value); } + public static void set_maxTaskWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxTaskWorkGroupCount, index), ML_maxTaskWorkGroupCount.byteSize()); } /// Sets `maxTaskWorkGroupCount` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxTaskWorkGroupCount(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(segment, 0L, value); } + public static void set_maxTaskWorkGroupCount(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(segment, 0L, value); } /// Sets `maxTaskWorkGroupCount` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupCountAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupCountAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(this.segment(), index, value); return this; } /// Sets `maxTaskWorkGroupCount` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupCount(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupCount(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupCount(this.segment(), value); return this; } /// {@return `maxTaskWorkGroupInvocations` at the given index} /// @param segment the segment of the struct @@ -409,33 +428,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { /// {@return `maxTaskWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxTaskWorkGroupSize(MemorySegment segment, long index) { return (int) VH_maxTaskWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxTaskWorkGroupSize, index), ML_maxTaskWorkGroupSize); } /// {@return `maxTaskWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxTaskWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(segment, 0L); } /// {@return `maxTaskWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int maxTaskWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(this.segment(), index); } /// {@return `maxTaskWorkGroupSize`} - public @CType("uint32_t") int maxTaskWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxTaskWorkGroupSize(this.segment()); } /// Sets `maxTaskWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxTaskWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxTaskWorkGroupSize.set(segment, 0L, index, value); } + public static void set_maxTaskWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxTaskWorkGroupSize, index), ML_maxTaskWorkGroupSize.byteSize()); } /// Sets `maxTaskWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxTaskWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(segment, 0L, value); } + public static void set_maxTaskWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(segment, 0L, value); } /// Sets `maxTaskWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxTaskWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupSize(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxTaskWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxTaskWorkGroupSize(this.segment(), value); return this; } /// {@return `maxTaskPayloadSize` at the given index} /// @param segment the segment of the struct @@ -564,33 +583,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { /// {@return `maxMeshWorkGroupCount` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxMeshWorkGroupCount(MemorySegment segment, long index) { return (int) VH_maxMeshWorkGroupCount.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupCount(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxMeshWorkGroupCount, index), ML_maxMeshWorkGroupCount); } /// {@return `maxMeshWorkGroupCount`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxMeshWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(segment, 0L); } /// {@return `maxMeshWorkGroupCount` at the given index} /// @param index the index - public @CType("uint32_t") int maxMeshWorkGroupCountAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupCountAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(this.segment(), index); } /// {@return `maxMeshWorkGroupCount`} - public @CType("uint32_t") int maxMeshWorkGroupCount() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupCount() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupCount(this.segment()); } /// Sets `maxMeshWorkGroupCount` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxMeshWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxMeshWorkGroupCount.set(segment, 0L, index, value); } + public static void set_maxMeshWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxMeshWorkGroupCount, index), ML_maxMeshWorkGroupCount.byteSize()); } /// Sets `maxMeshWorkGroupCount` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxMeshWorkGroupCount(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(segment, 0L, value); } + public static void set_maxMeshWorkGroupCount(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(segment, 0L, value); } /// Sets `maxMeshWorkGroupCount` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupCountAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupCountAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(this.segment(), index, value); return this; } /// Sets `maxMeshWorkGroupCount` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupCount(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupCount(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupCount(this.segment(), value); return this; } /// {@return `maxMeshWorkGroupInvocations` at the given index} /// @param segment the segment of the struct @@ -626,33 +645,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesEXT extends Struct { /// {@return `maxMeshWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxMeshWorkGroupSize(MemorySegment segment, long index) { return (int) VH_maxMeshWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxMeshWorkGroupSize, index), ML_maxMeshWorkGroupSize); } /// {@return `maxMeshWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxMeshWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(segment, 0L); } /// {@return `maxMeshWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int maxMeshWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(this.segment(), index); } /// {@return `maxMeshWorkGroupSize`} - public @CType("uint32_t") int maxMeshWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesEXT.get_maxMeshWorkGroupSize(this.segment()); } /// Sets `maxMeshWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxMeshWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxMeshWorkGroupSize.set(segment, 0L, index, value); } + public static void set_maxMeshWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxMeshWorkGroupSize, index), ML_maxMeshWorkGroupSize.byteSize()); } /// Sets `maxMeshWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxMeshWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(segment, 0L, value); } + public static void set_maxMeshWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(segment, 0L, value); } /// Sets `maxMeshWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxMeshWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupSize(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesEXT maxMeshWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesEXT.set_maxMeshWorkGroupSize(this.segment(), value); return this; } /// {@return `maxMeshSharedMemorySize` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawFeaturesEXT.java index 37803e05..ea156be4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultiDrawFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMultiDrawFeaturesEXT` public static VkPhysicalDeviceMultiDrawFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiDrawFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiDrawFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiDrawFeaturesEXT` + public VkPhysicalDeviceMultiDrawFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMultiDrawFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiDrawFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiDrawFeaturesEXT` + public VkPhysicalDeviceMultiDrawFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMultiDrawFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawPropertiesEXT.java index bd43097e..5b67230e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultiDrawPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultiDrawPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceMultiDrawPropertiesEXT` public static VkPhysicalDeviceMultiDrawPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiDrawPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiDrawPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiDrawPropertiesEXT` + public VkPhysicalDeviceMultiDrawPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceMultiDrawPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiDrawPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiDrawPropertiesEXT` + public VkPhysicalDeviceMultiDrawPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMultiDrawPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT.java index 5614ec1f..016b8b17 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT /// @return the allocated `VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT` public static VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT` + public VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT` + public VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT.java index 31edcfa2..4e091640 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT extends Stru /// @return the allocated `VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT` public static VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT` + public VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT` + public VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferFeaturesEXT.java index 330eb837..1244ea29 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceNestedCommandBufferFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceNestedCommandBufferFeaturesEXT` public static VkPhysicalDeviceNestedCommandBufferFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceNestedCommandBufferFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceNestedCommandBufferFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceNestedCommandBufferFeaturesEXT` + public VkPhysicalDeviceNestedCommandBufferFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceNestedCommandBufferFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceNestedCommandBufferFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceNestedCommandBufferFeaturesEXT` + public VkPhysicalDeviceNestedCommandBufferFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceNestedCommandBufferFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferPropertiesEXT.java index 4c508a7f..444e8ff3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNestedCommandBufferPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceNestedCommandBufferPropertiesEXT extends Stru /// @return the allocated `VkPhysicalDeviceNestedCommandBufferPropertiesEXT` public static VkPhysicalDeviceNestedCommandBufferPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceNestedCommandBufferPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceNestedCommandBufferPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceNestedCommandBufferPropertiesEXT` + public VkPhysicalDeviceNestedCommandBufferPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceNestedCommandBufferPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceNestedCommandBufferPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceNestedCommandBufferPropertiesEXT` + public VkPhysicalDeviceNestedCommandBufferPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceNestedCommandBufferPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT.java index 3181b8c4..81fb5e80 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT` public static VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT` + public VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT` + public VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapFeaturesEXT.java index 4214c616..f6a85cef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceOpacityMicromapFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceOpacityMicromapFeaturesEXT` public static VkPhysicalDeviceOpacityMicromapFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceOpacityMicromapFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceOpacityMicromapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceOpacityMicromapFeaturesEXT` + public VkPhysicalDeviceOpacityMicromapFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceOpacityMicromapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceOpacityMicromapFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceOpacityMicromapFeaturesEXT` + public VkPhysicalDeviceOpacityMicromapFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceOpacityMicromapFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapPropertiesEXT.java index 1c6f22d4..cf819b1d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceOpacityMicromapPropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceOpacityMicromapPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceOpacityMicromapPropertiesEXT` public static VkPhysicalDeviceOpacityMicromapPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceOpacityMicromapPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceOpacityMicromapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceOpacityMicromapPropertiesEXT` + public VkPhysicalDeviceOpacityMicromapPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceOpacityMicromapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceOpacityMicromapPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceOpacityMicromapPropertiesEXT` + public VkPhysicalDeviceOpacityMicromapPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceOpacityMicromapPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePCIBusInfoPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePCIBusInfoPropertiesEXT.java index 7c3410be..ca027a36 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePCIBusInfoPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePCIBusInfoPropertiesEXT.java @@ -107,6 +107,17 @@ public final class VkPhysicalDevicePCIBusInfoPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDevicePCIBusInfoPropertiesEXT` public static VkPhysicalDevicePCIBusInfoPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePCIBusInfoPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePCIBusInfoPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePCIBusInfoPropertiesEXT` + public VkPhysicalDevicePCIBusInfoPropertiesEXT asSlice(long index) { return new VkPhysicalDevicePCIBusInfoPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePCIBusInfoPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePCIBusInfoPropertiesEXT` + public VkPhysicalDevicePCIBusInfoPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDevicePCIBusInfoPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.java index 90dbb283..bcdc9972 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT extends /// @return the allocated `VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT` public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT` + public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT` + public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.java index f8e68c54..ae586d3b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT extend /// @return the allocated `VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT` public static VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT` + public VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT` + public VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelinePropertiesFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelinePropertiesFeaturesEXT.java index aeb9605f..658f97cb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelinePropertiesFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePipelinePropertiesFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelinePropertiesFeaturesEXT extends Struct /// @return the allocated `VkPhysicalDevicePipelinePropertiesFeaturesEXT` public static VkPhysicalDevicePipelinePropertiesFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelinePropertiesFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelinePropertiesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelinePropertiesFeaturesEXT` + public VkPhysicalDevicePipelinePropertiesFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePipelinePropertiesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelinePropertiesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelinePropertiesFeaturesEXT` + public VkPhysicalDevicePipelinePropertiesFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePipelinePropertiesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT.java index aa76ed7d..8a740c64 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT extends /// @return the allocated `VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT` public static VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT` + public VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT` + public VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT.java index 42fc0b50..c36a4159 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT exten /// @return the allocated `VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT` public static VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT` + public VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT` + public VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT.java index 03485628..830a32db 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT extends S /// @return the allocated `VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT` public static VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT` + public VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT asSlice(long index) { return new VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT` + public VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexFeaturesEXT.java index 4e57e0d5..631fcfc4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceProvokingVertexFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceProvokingVertexFeaturesEXT` public static VkPhysicalDeviceProvokingVertexFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProvokingVertexFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProvokingVertexFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProvokingVertexFeaturesEXT` + public VkPhysicalDeviceProvokingVertexFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceProvokingVertexFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProvokingVertexFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProvokingVertexFeaturesEXT` + public VkPhysicalDeviceProvokingVertexFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceProvokingVertexFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexPropertiesEXT.java index 709371f7..10204649 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceProvokingVertexPropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceProvokingVertexPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceProvokingVertexPropertiesEXT` public static VkPhysicalDeviceProvokingVertexPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProvokingVertexPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProvokingVertexPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProvokingVertexPropertiesEXT` + public VkPhysicalDeviceProvokingVertexPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceProvokingVertexPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProvokingVertexPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProvokingVertexPropertiesEXT` + public VkPhysicalDeviceProvokingVertexPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceProvokingVertexPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT.java index 26c8d7a9..77775fd4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT` public static VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT` + public VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT` + public VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT.java index c471c599..847ca119 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT /// @return the allocated `VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT` public static VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT` + public VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT` + public VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2FeaturesEXT.java index aa30663d..c4be8d25 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2FeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceRobustness2FeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceRobustness2FeaturesEXT` public static VkPhysicalDeviceRobustness2FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRobustness2FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRobustness2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRobustness2FeaturesEXT` + public VkPhysicalDeviceRobustness2FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceRobustness2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRobustness2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRobustness2FeaturesEXT` + public VkPhysicalDeviceRobustness2FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceRobustness2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2PropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2PropertiesEXT.java index 846998d8..66b58b45 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2PropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceRobustness2PropertiesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceRobustness2PropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceRobustness2PropertiesEXT` public static VkPhysicalDeviceRobustness2PropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRobustness2PropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRobustness2PropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRobustness2PropertiesEXT` + public VkPhysicalDeviceRobustness2PropertiesEXT asSlice(long index) { return new VkPhysicalDeviceRobustness2PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRobustness2PropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRobustness2PropertiesEXT` + public VkPhysicalDeviceRobustness2PropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceRobustness2PropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSampleLocationsPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSampleLocationsPropertiesEXT.java index ed5a457b..76598d88 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSampleLocationsPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSampleLocationsPropertiesEXT.java @@ -34,7 +34,7 @@ /// ### maxSampleLocationGridSize /// [Byte offset][#OFFSET_maxSampleLocationGridSize] - [Memory layout][#ML_maxSampleLocationGridSize] - [Getter][#maxSampleLocationGridSize()] - [Setter][#maxSampleLocationGridSize(java.lang.foreign.MemorySegment)] /// ### sampleLocationCoordinateRange -/// [VarHandle][#VH_sampleLocationCoordinateRange] - [Getter][#sampleLocationCoordinateRange()] - [Setter][#sampleLocationCoordinateRange(float)] +/// [Byte offset][#OFFSET_sampleLocationCoordinateRange] - [Memory layout][#ML_sampleLocationCoordinateRange] - [Getter][#sampleLocationCoordinateRange()] - [Setter][#sampleLocationCoordinateRange(java.lang.foreign.MemorySegment)] /// ### sampleLocationSubPixelBits /// [VarHandle][#VH_sampleLocationSubPixelBits] - [Getter][#sampleLocationSubPixelBits()] - [Setter][#sampleLocationSubPixelBits(int)] /// ### variableSampleLocations @@ -47,7 +47,7 @@ /// void * pNext; /// VkSampleCountFlags sampleLocationSampleCounts; /// VkExtent2D maxSampleLocationGridSize; -/// float sampleLocationCoordinateRange; +/// float[2] sampleLocationCoordinateRange; /// uint32_t sampleLocationSubPixelBits; /// VkBool32 variableSampleLocations; /// } VkPhysicalDeviceSampleLocationsPropertiesEXT; @@ -59,7 +59,7 @@ public final class VkPhysicalDeviceSampleLocationsPropertiesEXT extends Struct { ValueLayout.ADDRESS.withName("pNext"), ValueLayout.JAVA_INT.withName("sampleLocationSampleCounts"), overrungl.vulkan.struct.VkExtent2D.LAYOUT.withName("maxSampleLocationGridSize"), - ValueLayout.JAVA_FLOAT.withName("sampleLocationCoordinateRange"), + MemoryLayout.sequenceLayout(2, ValueLayout.JAVA_FLOAT).withName("sampleLocationCoordinateRange"), ValueLayout.JAVA_INT.withName("sampleLocationSubPixelBits"), ValueLayout.JAVA_INT.withName("variableSampleLocations") ); @@ -73,8 +73,10 @@ public final class VkPhysicalDeviceSampleLocationsPropertiesEXT extends Struct { public static final long OFFSET_maxSampleLocationGridSize = LAYOUT.byteOffset(PathElement.groupElement("maxSampleLocationGridSize")); /// The memory layout of `maxSampleLocationGridSize`. public static final MemoryLayout ML_maxSampleLocationGridSize = LAYOUT.select(PathElement.groupElement("maxSampleLocationGridSize")); - /// The [VarHandle] of `sampleLocationCoordinateRange` of type `(MemorySegment base, long baseOffset, long index)float`. - public static final VarHandle VH_sampleLocationCoordinateRange = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sampleLocationCoordinateRange")); + /// The byte offset of `sampleLocationCoordinateRange`. + public static final long OFFSET_sampleLocationCoordinateRange = LAYOUT.byteOffset(PathElement.groupElement("sampleLocationCoordinateRange")); + /// The memory layout of `sampleLocationCoordinateRange`. + public static final MemoryLayout ML_sampleLocationCoordinateRange = LAYOUT.select(PathElement.groupElement("sampleLocationCoordinateRange")); /// The [VarHandle] of `sampleLocationSubPixelBits` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_sampleLocationSubPixelBits = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sampleLocationSubPixelBits")); /// The [VarHandle] of `variableSampleLocations` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -115,6 +117,17 @@ public final class VkPhysicalDeviceSampleLocationsPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceSampleLocationsPropertiesEXT` public static VkPhysicalDeviceSampleLocationsPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSampleLocationsPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSampleLocationsPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSampleLocationsPropertiesEXT` + public VkPhysicalDeviceSampleLocationsPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceSampleLocationsPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSampleLocationsPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSampleLocationsPropertiesEXT` + public VkPhysicalDeviceSampleLocationsPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceSampleLocationsPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -242,33 +255,33 @@ public final class VkPhysicalDeviceSampleLocationsPropertiesEXT extends Struct { /// {@return `sampleLocationCoordinateRange` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("float") float get_sampleLocationCoordinateRange(MemorySegment segment, long index) { return (float) VH_sampleLocationCoordinateRange.get(segment, 0L, index); } + public static @CType("float[2]") java.lang.foreign.MemorySegment get_sampleLocationCoordinateRange(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_sampleLocationCoordinateRange, index), ML_sampleLocationCoordinateRange); } /// {@return `sampleLocationCoordinateRange`} /// @param segment the segment of the struct - public static @CType("float") float get_sampleLocationCoordinateRange(MemorySegment segment) { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(segment, 0L); } + public static @CType("float[2]") java.lang.foreign.MemorySegment get_sampleLocationCoordinateRange(MemorySegment segment) { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(segment, 0L); } /// {@return `sampleLocationCoordinateRange` at the given index} /// @param index the index - public @CType("float") float sampleLocationCoordinateRangeAt(long index) { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(this.segment(), index); } + public @CType("float[2]") java.lang.foreign.MemorySegment sampleLocationCoordinateRangeAt(long index) { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(this.segment(), index); } /// {@return `sampleLocationCoordinateRange`} - public @CType("float") float sampleLocationCoordinateRange() { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(this.segment()); } + public @CType("float[2]") java.lang.foreign.MemorySegment sampleLocationCoordinateRange() { return VkPhysicalDeviceSampleLocationsPropertiesEXT.get_sampleLocationCoordinateRange(this.segment()); } /// Sets `sampleLocationCoordinateRange` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_sampleLocationCoordinateRange(MemorySegment segment, long index, @CType("float") float value) { VH_sampleLocationCoordinateRange.set(segment, 0L, index, value); } + public static void set_sampleLocationCoordinateRange(MemorySegment segment, long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_sampleLocationCoordinateRange, index), ML_sampleLocationCoordinateRange.byteSize()); } /// Sets `sampleLocationCoordinateRange` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_sampleLocationCoordinateRange(MemorySegment segment, @CType("float") float value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(segment, 0L, value); } + public static void set_sampleLocationCoordinateRange(MemorySegment segment, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(segment, 0L, value); } /// Sets `sampleLocationCoordinateRange` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceSampleLocationsPropertiesEXT sampleLocationCoordinateRangeAt(long index, @CType("float") float value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(this.segment(), index, value); return this; } + public VkPhysicalDeviceSampleLocationsPropertiesEXT sampleLocationCoordinateRangeAt(long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(this.segment(), index, value); return this; } /// Sets `sampleLocationCoordinateRange` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceSampleLocationsPropertiesEXT sampleLocationCoordinateRange(@CType("float") float value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(this.segment(), value); return this; } + public VkPhysicalDeviceSampleLocationsPropertiesEXT sampleLocationCoordinateRange(@CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceSampleLocationsPropertiesEXT.set_sampleLocationCoordinateRange(this.segment(), value); return this; } /// {@return `sampleLocationSubPixelBits` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT.java index 04ded3fb..79277490 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT.java @@ -155,6 +155,17 @@ public final class VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT extends Struct /// @return the allocated `VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT` public static VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT` + public VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT` + public VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.java index cdce999b..3f575d1a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.java @@ -155,6 +155,17 @@ public final class VkPhysicalDeviceShaderAtomicFloatFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceShaderAtomicFloatFeaturesEXT` public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderAtomicFloatFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloatFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloatFeaturesEXT` + public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderAtomicFloatFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloatFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloatFeaturesEXT` + public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderAtomicFloatFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT.java index b340221a..577832b3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT extends Str /// @return the allocated `VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT` public static VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT` + public VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT` + public VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT.java index 0f97a646..96def674 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT extends Str /// @return the allocated `VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT` public static VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT` + public VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT` + public VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.java index ea25eade..5f3275d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### shaderModuleIdentifierAlgorithmUUID -/// [Byte offset handle][#MH_shaderModuleIdentifierAlgorithmUUID] - [Memory layout][#ML_shaderModuleIdentifierAlgorithmUUID] - [Getter][#shaderModuleIdentifierAlgorithmUUID(long)] - [Setter][#shaderModuleIdentifierAlgorithmUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_shaderModuleIdentifierAlgorithmUUID] - [Memory layout][#ML_shaderModuleIdentifierAlgorithmUUID] - [Getter][#shaderModuleIdentifierAlgorithmUUID()] - [Setter][#shaderModuleIdentifierAlgorithmUUID(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -52,8 +52,8 @@ public final class VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT extends S public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `shaderModuleIdentifierAlgorithmUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_shaderModuleIdentifierAlgorithmUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("shaderModuleIdentifierAlgorithmUUID"), PathElement.sequenceElement()); + /// The byte offset of `shaderModuleIdentifierAlgorithmUUID`. + public static final long OFFSET_shaderModuleIdentifierAlgorithmUUID = LAYOUT.byteOffset(PathElement.groupElement("shaderModuleIdentifierAlgorithmUUID")); /// The memory layout of `shaderModuleIdentifierAlgorithmUUID`. public static final MemoryLayout ML_shaderModuleIdentifierAlgorithmUUID = LAYOUT.select(PathElement.groupElement("shaderModuleIdentifierAlgorithmUUID")); @@ -92,6 +92,17 @@ public final class VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT extends S /// @return the allocated `VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT` public static VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT` + public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT` + public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -155,48 +166,34 @@ public final class VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT extends S public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_pNext(this.segment(), value); return this; } /// {@return `shaderModuleIdentifierAlgorithmUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_shaderModuleIdentifierAlgorithmUUID.invokeExact(0L, elementIndex), index), ML_shaderModuleIdentifierAlgorithmUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_shaderModuleIdentifierAlgorithmUUID, index), ML_shaderModuleIdentifierAlgorithmUUID); } /// {@return `shaderModuleIdentifierAlgorithmUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment) { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(segment, 0L); } /// {@return `shaderModuleIdentifierAlgorithmUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderModuleIdentifierAlgorithmUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderModuleIdentifierAlgorithmUUIDAt(long index) { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(this.segment(), index); } /// {@return `shaderModuleIdentifierAlgorithmUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderModuleIdentifierAlgorithmUUID(long elementIndex) { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderModuleIdentifierAlgorithmUUID() { return VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.get_shaderModuleIdentifierAlgorithmUUID(this.segment()); } /// Sets `shaderModuleIdentifierAlgorithmUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_shaderModuleIdentifierAlgorithmUUID.invokeExact(0L, elementIndex), index), ML_shaderModuleIdentifierAlgorithmUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_shaderModuleIdentifierAlgorithmUUID, index), ML_shaderModuleIdentifierAlgorithmUUID.byteSize()); } /// Sets `shaderModuleIdentifierAlgorithmUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_shaderModuleIdentifierAlgorithmUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(segment, 0L, value); } /// Sets `shaderModuleIdentifierAlgorithmUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT shaderModuleIdentifierAlgorithmUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT shaderModuleIdentifierAlgorithmUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(this.segment(), index, value); return this; } /// Sets `shaderModuleIdentifierAlgorithmUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT shaderModuleIdentifierAlgorithmUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT shaderModuleIdentifierAlgorithmUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT.set_shaderModuleIdentifierAlgorithmUUID(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectFeaturesEXT.java index f59df117..e38a99b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderObjectFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceShaderObjectFeaturesEXT` public static VkPhysicalDeviceShaderObjectFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderObjectFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderObjectFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderObjectFeaturesEXT` + public VkPhysicalDeviceShaderObjectFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderObjectFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderObjectFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderObjectFeaturesEXT` + public VkPhysicalDeviceShaderObjectFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderObjectFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectPropertiesEXT.java index 949322b9..843e59e6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderObjectPropertiesEXT.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### shaderBinaryUUID -/// [Byte offset handle][#MH_shaderBinaryUUID] - [Memory layout][#ML_shaderBinaryUUID] - [Getter][#shaderBinaryUUID(long)] - [Setter][#shaderBinaryUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_shaderBinaryUUID] - [Memory layout][#ML_shaderBinaryUUID] - [Getter][#shaderBinaryUUID()] - [Setter][#shaderBinaryUUID(java.lang.foreign.MemorySegment)] /// ### shaderBinaryVersion /// [VarHandle][#VH_shaderBinaryVersion] - [Getter][#shaderBinaryVersion()] - [Setter][#shaderBinaryVersion(int)] /// ## Layout @@ -56,8 +56,8 @@ public final class VkPhysicalDeviceShaderObjectPropertiesEXT extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `shaderBinaryUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_shaderBinaryUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("shaderBinaryUUID"), PathElement.sequenceElement()); + /// The byte offset of `shaderBinaryUUID`. + public static final long OFFSET_shaderBinaryUUID = LAYOUT.byteOffset(PathElement.groupElement("shaderBinaryUUID")); /// The memory layout of `shaderBinaryUUID`. public static final MemoryLayout ML_shaderBinaryUUID = LAYOUT.select(PathElement.groupElement("shaderBinaryUUID")); /// The [VarHandle] of `shaderBinaryVersion` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -98,6 +98,17 @@ public final class VkPhysicalDeviceShaderObjectPropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceShaderObjectPropertiesEXT` public static VkPhysicalDeviceShaderObjectPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderObjectPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderObjectPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderObjectPropertiesEXT` + public VkPhysicalDeviceShaderObjectPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceShaderObjectPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderObjectPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderObjectPropertiesEXT` + public VkPhysicalDeviceShaderObjectPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderObjectPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -161,49 +172,35 @@ public final class VkPhysicalDeviceShaderObjectPropertiesEXT extends Struct { public VkPhysicalDeviceShaderObjectPropertiesEXT pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_pNext(this.segment(), value); return this; } /// {@return `shaderBinaryUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderBinaryUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_shaderBinaryUUID.invokeExact(0L, elementIndex), index), ML_shaderBinaryUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderBinaryUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_shaderBinaryUUID, index), ML_shaderBinaryUUID); } /// {@return `shaderBinaryUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderBinaryUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_shaderBinaryUUID(MemorySegment segment) { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(segment, 0L); } /// {@return `shaderBinaryUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderBinaryUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderBinaryUUIDAt(long index) { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(this.segment(), index); } /// {@return `shaderBinaryUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderBinaryUUID(long elementIndex) { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment shaderBinaryUUID() { return VkPhysicalDeviceShaderObjectPropertiesEXT.get_shaderBinaryUUID(this.segment()); } /// Sets `shaderBinaryUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_shaderBinaryUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_shaderBinaryUUID.invokeExact(0L, elementIndex), index), ML_shaderBinaryUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_shaderBinaryUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_shaderBinaryUUID, index), ML_shaderBinaryUUID.byteSize()); } /// Sets `shaderBinaryUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_shaderBinaryUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_shaderBinaryUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(segment, 0L, value); } /// Sets `shaderBinaryUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderObjectPropertiesEXT shaderBinaryUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceShaderObjectPropertiesEXT shaderBinaryUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(this.segment(), index, value); return this; } /// Sets `shaderBinaryUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceShaderObjectPropertiesEXT shaderBinaryUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceShaderObjectPropertiesEXT shaderBinaryUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceShaderObjectPropertiesEXT.set_shaderBinaryUUID(this.segment(), value); return this; } /// {@return `shaderBinaryVersion` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.java index eaca86d7..81df23b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT extends /// @return the allocated `VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT` public static VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT` + public VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT` + public VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImageFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImageFeaturesEXT.java index 3112cbec..8c2bd995 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImageFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImageFeaturesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceShaderTileImageFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceShaderTileImageFeaturesEXT` public static VkPhysicalDeviceShaderTileImageFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderTileImageFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderTileImageFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderTileImageFeaturesEXT` + public VkPhysicalDeviceShaderTileImageFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceShaderTileImageFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderTileImageFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderTileImageFeaturesEXT` + public VkPhysicalDeviceShaderTileImageFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderTileImageFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImagePropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImagePropertiesEXT.java index a7d843aa..d7b8595a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImagePropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceShaderTileImagePropertiesEXT.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceShaderTileImagePropertiesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceShaderTileImagePropertiesEXT` public static VkPhysicalDeviceShaderTileImagePropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderTileImagePropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderTileImagePropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderTileImagePropertiesEXT` + public VkPhysicalDeviceShaderTileImagePropertiesEXT asSlice(long index) { return new VkPhysicalDeviceShaderTileImagePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderTileImagePropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderTileImagePropertiesEXT` + public VkPhysicalDeviceShaderTileImagePropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceShaderTileImagePropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT.java index 1f890166..406bc6d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT extends Struc /// @return the allocated `VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT` public static VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT` + public VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT` + public VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT.java index 1d4f0599..fbdfcd7a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT extends Stru /// @return the allocated `VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT` public static VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT` + public VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT asSlice(long index) { return new VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT` + public VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.java index 628bc2c1..cfeb3332 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT extends Struc /// @return the allocated `VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT` public static VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT` + public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT` + public VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackFeaturesEXT.java index 6d7be16e..73d89e98 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackFeaturesEXT.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceTransformFeedbackFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceTransformFeedbackFeaturesEXT` public static VkPhysicalDeviceTransformFeedbackFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTransformFeedbackFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTransformFeedbackFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTransformFeedbackFeaturesEXT` + public VkPhysicalDeviceTransformFeedbackFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceTransformFeedbackFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTransformFeedbackFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTransformFeedbackFeaturesEXT` + public VkPhysicalDeviceTransformFeedbackFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceTransformFeedbackFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackPropertiesEXT.java index 1eff88f7..5afb0050 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceTransformFeedbackPropertiesEXT.java @@ -143,6 +143,17 @@ public final class VkPhysicalDeviceTransformFeedbackPropertiesEXT extends Struct /// @return the allocated `VkPhysicalDeviceTransformFeedbackPropertiesEXT` public static VkPhysicalDeviceTransformFeedbackPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTransformFeedbackPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTransformFeedbackPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTransformFeedbackPropertiesEXT` + public VkPhysicalDeviceTransformFeedbackPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceTransformFeedbackPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTransformFeedbackPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTransformFeedbackPropertiesEXT` + public VkPhysicalDeviceTransformFeedbackPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceTransformFeedbackPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT.java index dcb38203..0004da6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT extends S /// @return the allocated `VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT` public static VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT` + public VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT asSlice(long index) { return new VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT` + public VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT asSlice(long index, long count) { return new VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT.java index cddd706c..7e0c6837 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT extends /// @return the allocated `VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT` public static VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT` + public VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT` + public VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT.java index 2db0e68d..bcd01cca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT extends St /// @return the allocated `VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT` public static VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT` + public VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT` + public VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.java index e53c3b7f..214240cc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT extends Stru /// @return the allocated `VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT` public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT` + public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT` + public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcrImageArraysFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcrImageArraysFeaturesEXT.java index ebd6004d..6a71f325 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcrImageArraysFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPhysicalDeviceYcbcrImageArraysFeaturesEXT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceYcbcrImageArraysFeaturesEXT extends Struct { /// @return the allocated `VkPhysicalDeviceYcbcrImageArraysFeaturesEXT` public static VkPhysicalDeviceYcbcrImageArraysFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceYcbcrImageArraysFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceYcbcrImageArraysFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceYcbcrImageArraysFeaturesEXT` + public VkPhysicalDeviceYcbcrImageArraysFeaturesEXT asSlice(long index) { return new VkPhysicalDeviceYcbcrImageArraysFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceYcbcrImageArraysFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceYcbcrImageArraysFeaturesEXT` + public VkPhysicalDeviceYcbcrImageArraysFeaturesEXT asSlice(long index, long count) { return new VkPhysicalDeviceYcbcrImageArraysFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorBlendAdvancedStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorBlendAdvancedStateCreateInfoEXT.java index 0e54ad35..36024842 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorBlendAdvancedStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorBlendAdvancedStateCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkPipelineColorBlendAdvancedStateCreateInfoEXT extends Struct /// @return the allocated `VkPipelineColorBlendAdvancedStateCreateInfoEXT` public static VkPipelineColorBlendAdvancedStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineColorBlendAdvancedStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineColorBlendAdvancedStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineColorBlendAdvancedStateCreateInfoEXT` + public VkPipelineColorBlendAdvancedStateCreateInfoEXT asSlice(long index) { return new VkPipelineColorBlendAdvancedStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineColorBlendAdvancedStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineColorBlendAdvancedStateCreateInfoEXT` + public VkPipelineColorBlendAdvancedStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineColorBlendAdvancedStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorWriteCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorWriteCreateInfoEXT.java index ee010d7a..42adf156 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorWriteCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineColorWriteCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkPipelineColorWriteCreateInfoEXT extends Struct { /// @return the allocated `VkPipelineColorWriteCreateInfoEXT` public static VkPipelineColorWriteCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineColorWriteCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineColorWriteCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineColorWriteCreateInfoEXT` + public VkPipelineColorWriteCreateInfoEXT asSlice(long index) { return new VkPipelineColorWriteCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineColorWriteCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineColorWriteCreateInfoEXT` + public VkPipelineColorWriteCreateInfoEXT asSlice(long index, long count) { return new VkPipelineColorWriteCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineDiscardRectangleStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineDiscardRectangleStateCreateInfoEXT.java index 8f2c1f8a..59b82104 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineDiscardRectangleStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineDiscardRectangleStateCreateInfoEXT.java @@ -107,6 +107,17 @@ public final class VkPipelineDiscardRectangleStateCreateInfoEXT extends Struct { /// @return the allocated `VkPipelineDiscardRectangleStateCreateInfoEXT` public static VkPipelineDiscardRectangleStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineDiscardRectangleStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineDiscardRectangleStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineDiscardRectangleStateCreateInfoEXT` + public VkPipelineDiscardRectangleStateCreateInfoEXT asSlice(long index) { return new VkPipelineDiscardRectangleStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineDiscardRectangleStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineDiscardRectangleStateCreateInfoEXT` + public VkPipelineDiscardRectangleStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineDiscardRectangleStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelinePropertiesIdentifierEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelinePropertiesIdentifierEXT.java index 342c55f0..339b0ee1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelinePropertiesIdentifierEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelinePropertiesIdentifierEXT.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### pipelineIdentifier -/// [Byte offset handle][#MH_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier(long)] - [Setter][#pipelineIdentifier(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier()] - [Setter][#pipelineIdentifier(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -52,8 +52,8 @@ public final class VkPipelinePropertiesIdentifierEXT extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `pipelineIdentifier` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineIdentifier = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineIdentifier"), PathElement.sequenceElement()); + /// The byte offset of `pipelineIdentifier`. + public static final long OFFSET_pipelineIdentifier = LAYOUT.byteOffset(PathElement.groupElement("pipelineIdentifier")); /// The memory layout of `pipelineIdentifier`. public static final MemoryLayout ML_pipelineIdentifier = LAYOUT.select(PathElement.groupElement("pipelineIdentifier")); @@ -92,6 +92,17 @@ public final class VkPipelinePropertiesIdentifierEXT extends Struct { /// @return the allocated `VkPipelinePropertiesIdentifierEXT` public static VkPipelinePropertiesIdentifierEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelinePropertiesIdentifierEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelinePropertiesIdentifierEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelinePropertiesIdentifierEXT` + public VkPipelinePropertiesIdentifierEXT asSlice(long index) { return new VkPipelinePropertiesIdentifierEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelinePropertiesIdentifierEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelinePropertiesIdentifierEXT` + public VkPipelinePropertiesIdentifierEXT asSlice(long index, long count) { return new VkPipelinePropertiesIdentifierEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -155,48 +166,34 @@ public final class VkPipelinePropertiesIdentifierEXT extends Struct { public VkPipelinePropertiesIdentifierEXT pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pNext(this.segment(), value); return this; } /// {@return `pipelineIdentifier` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier); } /// {@return `pipelineIdentifier`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long elementIndex) { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment) { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(segment, 0L); } /// {@return `pipelineIdentifier` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index, long elementIndex) { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index) { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(this.segment(), index); } /// {@return `pipelineIdentifier`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier(long elementIndex) { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier() { return VkPipelinePropertiesIdentifierEXT.get_pipelineIdentifier(this.segment()); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier.byteSize()); } /// Sets `pipelineIdentifier` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(segment, 0L, value); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelinePropertiesIdentifierEXT pipelineIdentifierAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(this.segment(), index, elementIndex, value); return this; } + public VkPipelinePropertiesIdentifierEXT pipelineIdentifierAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(this.segment(), index, value); return this; } /// Sets `pipelineIdentifier` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelinePropertiesIdentifierEXT pipelineIdentifier(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(this.segment(), elementIndex, value); return this; } + public VkPipelinePropertiesIdentifierEXT pipelineIdentifier(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelinePropertiesIdentifierEXT.set_pipelineIdentifier(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationConservativeStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationConservativeStateCreateInfoEXT.java index c1887b47..b548c82b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationConservativeStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationConservativeStateCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkPipelineRasterizationConservativeStateCreateInfoEXT extends /// @return the allocated `VkPipelineRasterizationConservativeStateCreateInfoEXT` public static VkPipelineRasterizationConservativeStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationConservativeStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationConservativeStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationConservativeStateCreateInfoEXT` + public VkPipelineRasterizationConservativeStateCreateInfoEXT asSlice(long index) { return new VkPipelineRasterizationConservativeStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationConservativeStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationConservativeStateCreateInfoEXT` + public VkPipelineRasterizationConservativeStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineRasterizationConservativeStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationDepthClipStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationDepthClipStateCreateInfoEXT.java index b4de00e8..30d70ebb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationDepthClipStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationDepthClipStateCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkPipelineRasterizationDepthClipStateCreateInfoEXT extends St /// @return the allocated `VkPipelineRasterizationDepthClipStateCreateInfoEXT` public static VkPipelineRasterizationDepthClipStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationDepthClipStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationDepthClipStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationDepthClipStateCreateInfoEXT` + public VkPipelineRasterizationDepthClipStateCreateInfoEXT asSlice(long index) { return new VkPipelineRasterizationDepthClipStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationDepthClipStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationDepthClipStateCreateInfoEXT` + public VkPipelineRasterizationDepthClipStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineRasterizationDepthClipStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.java index 9b3015e2..720b2e0e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkPipelineRasterizationProvokingVertexStateCreateInfoEXT exte /// @return the allocated `VkPipelineRasterizationProvokingVertexStateCreateInfoEXT` public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationProvokingVertexStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationProvokingVertexStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationProvokingVertexStateCreateInfoEXT` + public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT asSlice(long index) { return new VkPipelineRasterizationProvokingVertexStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationProvokingVertexStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationProvokingVertexStateCreateInfoEXT` + public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineRasterizationProvokingVertexStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationStateStreamCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationStateStreamCreateInfoEXT.java index e42cb60d..2122c022 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationStateStreamCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineRasterizationStateStreamCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkPipelineRasterizationStateStreamCreateInfoEXT extends Struc /// @return the allocated `VkPipelineRasterizationStateStreamCreateInfoEXT` public static VkPipelineRasterizationStateStreamCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationStateStreamCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationStateStreamCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationStateStreamCreateInfoEXT` + public VkPipelineRasterizationStateStreamCreateInfoEXT asSlice(long index) { return new VkPipelineRasterizationStateStreamCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationStateStreamCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationStateStreamCreateInfoEXT` + public VkPipelineRasterizationStateStreamCreateInfoEXT asSlice(long index, long count) { return new VkPipelineRasterizationStateStreamCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineSampleLocationsStateCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineSampleLocationsStateCreateInfoEXT.java index fe07b103..bfac878f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineSampleLocationsStateCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineSampleLocationsStateCreateInfoEXT.java @@ -97,6 +97,17 @@ public final class VkPipelineSampleLocationsStateCreateInfoEXT extends Struct { /// @return the allocated `VkPipelineSampleLocationsStateCreateInfoEXT` public static VkPipelineSampleLocationsStateCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineSampleLocationsStateCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineSampleLocationsStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineSampleLocationsStateCreateInfoEXT` + public VkPipelineSampleLocationsStateCreateInfoEXT asSlice(long index) { return new VkPipelineSampleLocationsStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineSampleLocationsStateCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineSampleLocationsStateCreateInfoEXT` + public VkPipelineSampleLocationsStateCreateInfoEXT asSlice(long index, long count) { return new VkPipelineSampleLocationsStateCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineShaderStageModuleIdentifierCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineShaderStageModuleIdentifierCreateInfoEXT.java index 3178df96..66a39b6e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineShaderStageModuleIdentifierCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineShaderStageModuleIdentifierCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkPipelineShaderStageModuleIdentifierCreateInfoEXT extends St /// @return the allocated `VkPipelineShaderStageModuleIdentifierCreateInfoEXT` public static VkPipelineShaderStageModuleIdentifierCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineShaderStageModuleIdentifierCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineShaderStageModuleIdentifierCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineShaderStageModuleIdentifierCreateInfoEXT` + public VkPipelineShaderStageModuleIdentifierCreateInfoEXT asSlice(long index) { return new VkPipelineShaderStageModuleIdentifierCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineShaderStageModuleIdentifierCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineShaderStageModuleIdentifierCreateInfoEXT` + public VkPipelineShaderStageModuleIdentifierCreateInfoEXT asSlice(long index, long count) { return new VkPipelineShaderStageModuleIdentifierCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClampControlCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClampControlCreateInfoEXT.java index ffd112f3..a3261753 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClampControlCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClampControlCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkPipelineViewportDepthClampControlCreateInfoEXT extends Stru /// @return the allocated `VkPipelineViewportDepthClampControlCreateInfoEXT` public static VkPipelineViewportDepthClampControlCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportDepthClampControlCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportDepthClampControlCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportDepthClampControlCreateInfoEXT` + public VkPipelineViewportDepthClampControlCreateInfoEXT asSlice(long index) { return new VkPipelineViewportDepthClampControlCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportDepthClampControlCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportDepthClampControlCreateInfoEXT` + public VkPipelineViewportDepthClampControlCreateInfoEXT asSlice(long index, long count) { return new VkPipelineViewportDepthClampControlCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClipControlCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClipControlCreateInfoEXT.java index f30067f2..f58a51e6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClipControlCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkPipelineViewportDepthClipControlCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkPipelineViewportDepthClipControlCreateInfoEXT extends Struc /// @return the allocated `VkPipelineViewportDepthClipControlCreateInfoEXT` public static VkPipelineViewportDepthClipControlCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportDepthClipControlCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportDepthClipControlCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportDepthClipControlCreateInfoEXT` + public VkPipelineViewportDepthClipControlCreateInfoEXT asSlice(long index) { return new VkPipelineViewportDepthClipControlCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportDepthClipControlCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportDepthClipControlCreateInfoEXT` + public VkPipelineViewportDepthClipControlCreateInfoEXT asSlice(long index, long count) { return new VkPipelineViewportDepthClipControlCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkReleaseSwapchainImagesInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkReleaseSwapchainImagesInfoEXT.java index 6e757050..c25a36cf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkReleaseSwapchainImagesInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkReleaseSwapchainImagesInfoEXT.java @@ -101,6 +101,17 @@ public final class VkReleaseSwapchainImagesInfoEXT extends Struct { /// @return the allocated `VkReleaseSwapchainImagesInfoEXT` public static VkReleaseSwapchainImagesInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkReleaseSwapchainImagesInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkReleaseSwapchainImagesInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkReleaseSwapchainImagesInfoEXT` + public VkReleaseSwapchainImagesInfoEXT asSlice(long index) { return new VkReleaseSwapchainImagesInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkReleaseSwapchainImagesInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkReleaseSwapchainImagesInfoEXT` + public VkReleaseSwapchainImagesInfoEXT asSlice(long index, long count) { return new VkReleaseSwapchainImagesInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationControlEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationControlEXT.java index 158bca23..6641b729 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationControlEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationControlEXT.java @@ -89,6 +89,17 @@ public final class VkRenderPassCreationControlEXT extends Struct { /// @return the allocated `VkRenderPassCreationControlEXT` public static VkRenderPassCreationControlEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassCreationControlEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassCreationControlEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassCreationControlEXT` + public VkRenderPassCreationControlEXT asSlice(long index) { return new VkRenderPassCreationControlEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassCreationControlEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassCreationControlEXT` + public VkRenderPassCreationControlEXT asSlice(long index, long count) { return new VkRenderPassCreationControlEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackCreateInfoEXT.java index 6416e63e..1626b252 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkRenderPassCreationFeedbackCreateInfoEXT extends Struct { /// @return the allocated `VkRenderPassCreationFeedbackCreateInfoEXT` public static VkRenderPassCreationFeedbackCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassCreationFeedbackCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassCreationFeedbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassCreationFeedbackCreateInfoEXT` + public VkRenderPassCreationFeedbackCreateInfoEXT asSlice(long index) { return new VkRenderPassCreationFeedbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassCreationFeedbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassCreationFeedbackCreateInfoEXT` + public VkRenderPassCreationFeedbackCreateInfoEXT asSlice(long index, long count) { return new VkRenderPassCreationFeedbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackInfoEXT.java index d0132ac3..c721e45d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassCreationFeedbackInfoEXT.java @@ -77,6 +77,17 @@ public final class VkRenderPassCreationFeedbackInfoEXT extends Struct { /// @return the allocated `VkRenderPassCreationFeedbackInfoEXT` public static VkRenderPassCreationFeedbackInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassCreationFeedbackInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassCreationFeedbackInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassCreationFeedbackInfoEXT` + public VkRenderPassCreationFeedbackInfoEXT asSlice(long index) { return new VkRenderPassCreationFeedbackInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassCreationFeedbackInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassCreationFeedbackInfoEXT` + public VkRenderPassCreationFeedbackInfoEXT asSlice(long index, long count) { return new VkRenderPassCreationFeedbackInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `postMergeSubpassCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassFragmentDensityMapCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassFragmentDensityMapCreateInfoEXT.java index ed1a1362..641f7135 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassFragmentDensityMapCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassFragmentDensityMapCreateInfoEXT.java @@ -91,6 +91,17 @@ public final class VkRenderPassFragmentDensityMapCreateInfoEXT extends Struct { /// @return the allocated `VkRenderPassFragmentDensityMapCreateInfoEXT` public static VkRenderPassFragmentDensityMapCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassFragmentDensityMapCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassFragmentDensityMapCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassFragmentDensityMapCreateInfoEXT` + public VkRenderPassFragmentDensityMapCreateInfoEXT asSlice(long index) { return new VkRenderPassFragmentDensityMapCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassFragmentDensityMapCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassFragmentDensityMapCreateInfoEXT` + public VkRenderPassFragmentDensityMapCreateInfoEXT asSlice(long index, long count) { return new VkRenderPassFragmentDensityMapCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSampleLocationsBeginInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSampleLocationsBeginInfoEXT.java index 82ca7aa3..cdaece47 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSampleLocationsBeginInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSampleLocationsBeginInfoEXT.java @@ -107,6 +107,17 @@ public final class VkRenderPassSampleLocationsBeginInfoEXT extends Struct { /// @return the allocated `VkRenderPassSampleLocationsBeginInfoEXT` public static VkRenderPassSampleLocationsBeginInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassSampleLocationsBeginInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassSampleLocationsBeginInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassSampleLocationsBeginInfoEXT` + public VkRenderPassSampleLocationsBeginInfoEXT asSlice(long index) { return new VkRenderPassSampleLocationsBeginInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassSampleLocationsBeginInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassSampleLocationsBeginInfoEXT` + public VkRenderPassSampleLocationsBeginInfoEXT asSlice(long index, long count) { return new VkRenderPassSampleLocationsBeginInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackCreateInfoEXT.java index ed027611..11ac2f73 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkRenderPassSubpassFeedbackCreateInfoEXT extends Struct { /// @return the allocated `VkRenderPassSubpassFeedbackCreateInfoEXT` public static VkRenderPassSubpassFeedbackCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassSubpassFeedbackCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassSubpassFeedbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassSubpassFeedbackCreateInfoEXT` + public VkRenderPassSubpassFeedbackCreateInfoEXT asSlice(long index) { return new VkRenderPassSubpassFeedbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassSubpassFeedbackCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassSubpassFeedbackCreateInfoEXT` + public VkRenderPassSubpassFeedbackCreateInfoEXT asSlice(long index, long count) { return new VkRenderPassSubpassFeedbackCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackInfoEXT.java index 3b9182b8..da8deca6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderPassSubpassFeedbackInfoEXT.java @@ -29,7 +29,7 @@ /// ### subpassMergeStatus /// [VarHandle][#VH_subpassMergeStatus] - [Getter][#subpassMergeStatus()] - [Setter][#subpassMergeStatus(int)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### postMergeIndex /// [VarHandle][#VH_postMergeIndex] - [Getter][#postMergeIndex()] - [Setter][#postMergeIndex(int)] /// ## Layout @@ -50,8 +50,8 @@ public final class VkRenderPassSubpassFeedbackInfoEXT extends Struct { ); /// The [VarHandle] of `subpassMergeStatus` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_subpassMergeStatus = LAYOUT.arrayElementVarHandle(PathElement.groupElement("subpassMergeStatus")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `postMergeIndex` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -92,6 +92,17 @@ public final class VkRenderPassSubpassFeedbackInfoEXT extends Struct { /// @return the allocated `VkRenderPassSubpassFeedbackInfoEXT` public static VkRenderPassSubpassFeedbackInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderPassSubpassFeedbackInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassSubpassFeedbackInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassSubpassFeedbackInfoEXT` + public VkRenderPassSubpassFeedbackInfoEXT asSlice(long index) { return new VkRenderPassSubpassFeedbackInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassSubpassFeedbackInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassSubpassFeedbackInfoEXT` + public VkRenderPassSubpassFeedbackInfoEXT asSlice(long index, long count) { return new VkRenderPassSubpassFeedbackInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `subpassMergeStatus` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -124,49 +135,35 @@ public final class VkRenderPassSubpassFeedbackInfoEXT extends Struct { public VkRenderPassSubpassFeedbackInfoEXT subpassMergeStatus(@CType("VkSubpassMergeStatusEXT") int value) { VkRenderPassSubpassFeedbackInfoEXT.set_subpassMergeStatus(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkRenderPassSubpassFeedbackInfoEXT.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkRenderPassSubpassFeedbackInfoEXT.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkRenderPassSubpassFeedbackInfoEXT.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkRenderPassSubpassFeedbackInfoEXT.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkRenderPassSubpassFeedbackInfoEXT.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkRenderPassSubpassFeedbackInfoEXT.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkRenderPassSubpassFeedbackInfoEXT descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(this.segment(), index, elementIndex, value); return this; } + public VkRenderPassSubpassFeedbackInfoEXT descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkRenderPassSubpassFeedbackInfoEXT description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(this.segment(), elementIndex, value); return this; } + public VkRenderPassSubpassFeedbackInfoEXT description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkRenderPassSubpassFeedbackInfoEXT.set_description(this.segment(), value); return this; } /// {@return `postMergeIndex` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderingFragmentDensityMapAttachmentInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderingFragmentDensityMapAttachmentInfoEXT.java index f77b0bc4..965abafd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderingFragmentDensityMapAttachmentInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkRenderingFragmentDensityMapAttachmentInfoEXT.java @@ -95,6 +95,17 @@ public final class VkRenderingFragmentDensityMapAttachmentInfoEXT extends Struct /// @return the allocated `VkRenderingFragmentDensityMapAttachmentInfoEXT` public static VkRenderingFragmentDensityMapAttachmentInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkRenderingFragmentDensityMapAttachmentInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingFragmentDensityMapAttachmentInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingFragmentDensityMapAttachmentInfoEXT` + public VkRenderingFragmentDensityMapAttachmentInfoEXT asSlice(long index) { return new VkRenderingFragmentDensityMapAttachmentInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingFragmentDensityMapAttachmentInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingFragmentDensityMapAttachmentInfoEXT` + public VkRenderingFragmentDensityMapAttachmentInfoEXT asSlice(long index, long count) { return new VkRenderingFragmentDensityMapAttachmentInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationEXT.java index 77a2845b..d02cb0cd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationEXT.java @@ -83,6 +83,17 @@ public final class VkSampleLocationEXT extends Struct { /// @return the allocated `VkSampleLocationEXT` public static VkSampleLocationEXT alloc(SegmentAllocator allocator, long count) { return new VkSampleLocationEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSampleLocationEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSampleLocationEXT` + public VkSampleLocationEXT asSlice(long index) { return new VkSampleLocationEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSampleLocationEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSampleLocationEXT` + public VkSampleLocationEXT asSlice(long index, long count) { return new VkSampleLocationEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationsInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationsInfoEXT.java index 458e11af..36cfcc1f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationsInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSampleLocationsInfoEXT.java @@ -109,6 +109,17 @@ public final class VkSampleLocationsInfoEXT extends Struct { /// @return the allocated `VkSampleLocationsInfoEXT` public static VkSampleLocationsInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSampleLocationsInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSampleLocationsInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSampleLocationsInfoEXT` + public VkSampleLocationsInfoEXT asSlice(long index) { return new VkSampleLocationsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSampleLocationsInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSampleLocationsInfoEXT` + public VkSampleLocationsInfoEXT asSlice(long index, long count) { return new VkSampleLocationsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerBorderColorComponentMappingCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerBorderColorComponentMappingCreateInfoEXT.java index ffb54ca2..e3c6c08b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerBorderColorComponentMappingCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerBorderColorComponentMappingCreateInfoEXT.java @@ -97,6 +97,17 @@ public final class VkSamplerBorderColorComponentMappingCreateInfoEXT extends Str /// @return the allocated `VkSamplerBorderColorComponentMappingCreateInfoEXT` public static VkSamplerBorderColorComponentMappingCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSamplerBorderColorComponentMappingCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerBorderColorComponentMappingCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerBorderColorComponentMappingCreateInfoEXT` + public VkSamplerBorderColorComponentMappingCreateInfoEXT asSlice(long index) { return new VkSamplerBorderColorComponentMappingCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerBorderColorComponentMappingCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerBorderColorComponentMappingCreateInfoEXT` + public VkSamplerBorderColorComponentMappingCreateInfoEXT asSlice(long index, long count) { return new VkSamplerBorderColorComponentMappingCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCaptureDescriptorDataInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCaptureDescriptorDataInfoEXT.java index be53446b..2a337c93 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCaptureDescriptorDataInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCaptureDescriptorDataInfoEXT.java @@ -89,6 +89,17 @@ public final class VkSamplerCaptureDescriptorDataInfoEXT extends Struct { /// @return the allocated `VkSamplerCaptureDescriptorDataInfoEXT` public static VkSamplerCaptureDescriptorDataInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSamplerCaptureDescriptorDataInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerCaptureDescriptorDataInfoEXT` + public VkSamplerCaptureDescriptorDataInfoEXT asSlice(long index) { return new VkSamplerCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerCaptureDescriptorDataInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerCaptureDescriptorDataInfoEXT` + public VkSamplerCaptureDescriptorDataInfoEXT asSlice(long index, long count) { return new VkSamplerCaptureDescriptorDataInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCustomBorderColorCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCustomBorderColorCreateInfoEXT.java index 2d6fadc6..2ff21073 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCustomBorderColorCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSamplerCustomBorderColorCreateInfoEXT.java @@ -97,6 +97,17 @@ public final class VkSamplerCustomBorderColorCreateInfoEXT extends Struct { /// @return the allocated `VkSamplerCustomBorderColorCreateInfoEXT` public static VkSamplerCustomBorderColorCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSamplerCustomBorderColorCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerCustomBorderColorCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerCustomBorderColorCreateInfoEXT` + public VkSamplerCustomBorderColorCreateInfoEXT asSlice(long index) { return new VkSamplerCustomBorderColorCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerCustomBorderColorCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerCustomBorderColorCreateInfoEXT` + public VkSamplerCustomBorderColorCreateInfoEXT asSlice(long index, long count) { return new VkSamplerCustomBorderColorCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSetDescriptorBufferOffsetsInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSetDescriptorBufferOffsetsInfoEXT.java index a0b44f4e..804b9e2f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSetDescriptorBufferOffsetsInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSetDescriptorBufferOffsetsInfoEXT.java @@ -119,6 +119,17 @@ public final class VkSetDescriptorBufferOffsetsInfoEXT extends Struct { /// @return the allocated `VkSetDescriptorBufferOffsetsInfoEXT` public static VkSetDescriptorBufferOffsetsInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSetDescriptorBufferOffsetsInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSetDescriptorBufferOffsetsInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSetDescriptorBufferOffsetsInfoEXT` + public VkSetDescriptorBufferOffsetsInfoEXT asSlice(long index) { return new VkSetDescriptorBufferOffsetsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSetDescriptorBufferOffsetsInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSetDescriptorBufferOffsetsInfoEXT` + public VkSetDescriptorBufferOffsetsInfoEXT asSlice(long index, long count) { return new VkSetDescriptorBufferOffsetsInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderCreateInfoEXT.java index 597f01f8..996bf57e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderCreateInfoEXT.java @@ -155,6 +155,17 @@ public final class VkShaderCreateInfoEXT extends Struct { /// @return the allocated `VkShaderCreateInfoEXT` public static VkShaderCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkShaderCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderCreateInfoEXT` + public VkShaderCreateInfoEXT asSlice(long index) { return new VkShaderCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderCreateInfoEXT` + public VkShaderCreateInfoEXT asSlice(long index, long count) { return new VkShaderCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleIdentifierEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleIdentifierEXT.java index 23f2373f..b9fad2c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleIdentifierEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleIdentifierEXT.java @@ -33,7 +33,7 @@ /// ### identifierSize /// [VarHandle][#VH_identifierSize] - [Getter][#identifierSize()] - [Setter][#identifierSize(int)] /// ### identifier -/// [Byte offset handle][#MH_identifier] - [Memory layout][#ML_identifier] - [Getter][#identifier(long)] - [Setter][#identifier(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_identifier] - [Memory layout][#ML_identifier] - [Getter][#identifier()] - [Setter][#identifier(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -58,8 +58,8 @@ public final class VkShaderModuleIdentifierEXT extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `identifierSize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_identifierSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("identifierSize")); - /// The byte offset handle of `identifier` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_identifier = LAYOUT.byteOffsetHandle(PathElement.groupElement("identifier"), PathElement.sequenceElement()); + /// The byte offset of `identifier`. + public static final long OFFSET_identifier = LAYOUT.byteOffset(PathElement.groupElement("identifier")); /// The memory layout of `identifier`. public static final MemoryLayout ML_identifier = LAYOUT.select(PathElement.groupElement("identifier")); @@ -98,6 +98,17 @@ public final class VkShaderModuleIdentifierEXT extends Struct { /// @return the allocated `VkShaderModuleIdentifierEXT` public static VkShaderModuleIdentifierEXT alloc(SegmentAllocator allocator, long count) { return new VkShaderModuleIdentifierEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderModuleIdentifierEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderModuleIdentifierEXT` + public VkShaderModuleIdentifierEXT asSlice(long index) { return new VkShaderModuleIdentifierEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderModuleIdentifierEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderModuleIdentifierEXT` + public VkShaderModuleIdentifierEXT asSlice(long index, long count) { return new VkShaderModuleIdentifierEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -192,48 +203,34 @@ public final class VkShaderModuleIdentifierEXT extends Struct { public VkShaderModuleIdentifierEXT identifierSize(@CType("uint32_t") int value) { VkShaderModuleIdentifierEXT.set_identifierSize(this.segment(), value); return this; } /// {@return `identifier` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment get_identifier(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_identifier.invokeExact(0L, elementIndex), index), ML_identifier); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment get_identifier(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_identifier, index), ML_identifier); } /// {@return `identifier`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment get_identifier(MemorySegment segment, long elementIndex) { return VkShaderModuleIdentifierEXT.get_identifier(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment get_identifier(MemorySegment segment) { return VkShaderModuleIdentifierEXT.get_identifier(segment, 0L); } /// {@return `identifier` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment identifierAt(long index, long elementIndex) { return VkShaderModuleIdentifierEXT.get_identifier(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment identifierAt(long index) { return VkShaderModuleIdentifierEXT.get_identifier(this.segment(), index); } /// {@return `identifier`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment identifier(long elementIndex) { return VkShaderModuleIdentifierEXT.get_identifier(this.segment(), elementIndex); } + public @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment identifier() { return VkShaderModuleIdentifierEXT.get_identifier(this.segment()); } /// Sets `identifier` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_identifier(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_identifier.invokeExact(0L, elementIndex), index), ML_identifier.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_identifier(MemorySegment segment, long index, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_identifier, index), ML_identifier.byteSize()); } /// Sets `identifier` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_identifier(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_identifier(MemorySegment segment, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(segment, 0L, value); } /// Sets `identifier` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkShaderModuleIdentifierEXT identifierAt(long index, long elementIndex, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(this.segment(), index, elementIndex, value); return this; } + public VkShaderModuleIdentifierEXT identifierAt(long index, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(this.segment(), index, value); return this; } /// Sets `identifier` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkShaderModuleIdentifierEXT identifier(long elementIndex, @CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(this.segment(), elementIndex, value); return this; } + public VkShaderModuleIdentifierEXT identifier(@CType("uint8_t[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT]") java.lang.foreign.MemorySegment value) { VkShaderModuleIdentifierEXT.set_identifier(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleValidationCacheCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleValidationCacheCreateInfoEXT.java index 8bcb4ca0..0d40c2b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleValidationCacheCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkShaderModuleValidationCacheCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkShaderModuleValidationCacheCreateInfoEXT extends Struct { /// @return the allocated `VkShaderModuleValidationCacheCreateInfoEXT` public static VkShaderModuleValidationCacheCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkShaderModuleValidationCacheCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderModuleValidationCacheCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderModuleValidationCacheCreateInfoEXT` + public VkShaderModuleValidationCacheCreateInfoEXT asSlice(long index) { return new VkShaderModuleValidationCacheCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderModuleValidationCacheCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderModuleValidationCacheCreateInfoEXT` + public VkShaderModuleValidationCacheCreateInfoEXT asSlice(long index, long count) { return new VkShaderModuleValidationCacheCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassResolvePerformanceQueryEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassResolvePerformanceQueryEXT.java index 56a58e50..a0c65456 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassResolvePerformanceQueryEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassResolvePerformanceQueryEXT.java @@ -89,6 +89,17 @@ public final class VkSubpassResolvePerformanceQueryEXT extends Struct { /// @return the allocated `VkSubpassResolvePerformanceQueryEXT` public static VkSubpassResolvePerformanceQueryEXT alloc(SegmentAllocator allocator, long count) { return new VkSubpassResolvePerformanceQueryEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassResolvePerformanceQueryEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassResolvePerformanceQueryEXT` + public VkSubpassResolvePerformanceQueryEXT asSlice(long index) { return new VkSubpassResolvePerformanceQueryEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassResolvePerformanceQueryEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassResolvePerformanceQueryEXT` + public VkSubpassResolvePerformanceQueryEXT asSlice(long index, long count) { return new VkSubpassResolvePerformanceQueryEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassSampleLocationsEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassSampleLocationsEXT.java index adb83444..b7bb975b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassSampleLocationsEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSubpassSampleLocationsEXT.java @@ -85,6 +85,17 @@ public final class VkSubpassSampleLocationsEXT extends Struct { /// @return the allocated `VkSubpassSampleLocationsEXT` public static VkSubpassSampleLocationsEXT alloc(SegmentAllocator allocator, long count) { return new VkSubpassSampleLocationsEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassSampleLocationsEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassSampleLocationsEXT` + public VkSubpassSampleLocationsEXT asSlice(long index) { return new VkSubpassSampleLocationsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassSampleLocationsEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassSampleLocationsEXT` + public VkSubpassSampleLocationsEXT asSlice(long index, long count) { return new VkSubpassSampleLocationsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `subpassIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilities2EXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilities2EXT.java index d3e62e88..1e5685fa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilities2EXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilities2EXT.java @@ -155,6 +155,17 @@ public final class VkSurfaceCapabilities2EXT extends Struct { /// @return the allocated `VkSurfaceCapabilities2EXT` public static VkSurfaceCapabilities2EXT alloc(SegmentAllocator allocator, long count) { return new VkSurfaceCapabilities2EXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceCapabilities2EXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceCapabilities2EXT` + public VkSurfaceCapabilities2EXT asSlice(long index) { return new VkSurfaceCapabilities2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceCapabilities2EXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceCapabilities2EXT` + public VkSurfaceCapabilities2EXT asSlice(long index, long count) { return new VkSurfaceCapabilities2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilitiesFullScreenExclusiveEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilitiesFullScreenExclusiveEXT.java index f85ccfc3..93fb3b36 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilitiesFullScreenExclusiveEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceCapabilitiesFullScreenExclusiveEXT.java @@ -89,6 +89,17 @@ public final class VkSurfaceCapabilitiesFullScreenExclusiveEXT extends Struct { /// @return the allocated `VkSurfaceCapabilitiesFullScreenExclusiveEXT` public static VkSurfaceCapabilitiesFullScreenExclusiveEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfaceCapabilitiesFullScreenExclusiveEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceCapabilitiesFullScreenExclusiveEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceCapabilitiesFullScreenExclusiveEXT` + public VkSurfaceCapabilitiesFullScreenExclusiveEXT asSlice(long index) { return new VkSurfaceCapabilitiesFullScreenExclusiveEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceCapabilitiesFullScreenExclusiveEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceCapabilitiesFullScreenExclusiveEXT` + public VkSurfaceCapabilitiesFullScreenExclusiveEXT asSlice(long index, long count) { return new VkSurfaceCapabilitiesFullScreenExclusiveEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveInfoEXT.java index d8de8ca2..e17c1ae4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveInfoEXT.java @@ -89,6 +89,17 @@ public final class VkSurfaceFullScreenExclusiveInfoEXT extends Struct { /// @return the allocated `VkSurfaceFullScreenExclusiveInfoEXT` public static VkSurfaceFullScreenExclusiveInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfaceFullScreenExclusiveInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceFullScreenExclusiveInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceFullScreenExclusiveInfoEXT` + public VkSurfaceFullScreenExclusiveInfoEXT asSlice(long index) { return new VkSurfaceFullScreenExclusiveInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceFullScreenExclusiveInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceFullScreenExclusiveInfoEXT` + public VkSurfaceFullScreenExclusiveInfoEXT asSlice(long index, long count) { return new VkSurfaceFullScreenExclusiveInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveWin32InfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveWin32InfoEXT.java index 7b711354..88f0fcc1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveWin32InfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfaceFullScreenExclusiveWin32InfoEXT.java @@ -89,6 +89,17 @@ public final class VkSurfaceFullScreenExclusiveWin32InfoEXT extends Struct { /// @return the allocated `VkSurfaceFullScreenExclusiveWin32InfoEXT` public static VkSurfaceFullScreenExclusiveWin32InfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfaceFullScreenExclusiveWin32InfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceFullScreenExclusiveWin32InfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceFullScreenExclusiveWin32InfoEXT` + public VkSurfaceFullScreenExclusiveWin32InfoEXT asSlice(long index) { return new VkSurfaceFullScreenExclusiveWin32InfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceFullScreenExclusiveWin32InfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceFullScreenExclusiveWin32InfoEXT` + public VkSurfaceFullScreenExclusiveWin32InfoEXT asSlice(long index, long count) { return new VkSurfaceFullScreenExclusiveWin32InfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeCompatibilityEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeCompatibilityEXT.java index f9fe73f1..a7bd9620 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeCompatibilityEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeCompatibilityEXT.java @@ -95,6 +95,17 @@ public final class VkSurfacePresentModeCompatibilityEXT extends Struct { /// @return the allocated `VkSurfacePresentModeCompatibilityEXT` public static VkSurfacePresentModeCompatibilityEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfacePresentModeCompatibilityEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfacePresentModeCompatibilityEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfacePresentModeCompatibilityEXT` + public VkSurfacePresentModeCompatibilityEXT asSlice(long index) { return new VkSurfacePresentModeCompatibilityEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfacePresentModeCompatibilityEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfacePresentModeCompatibilityEXT` + public VkSurfacePresentModeCompatibilityEXT asSlice(long index, long count) { return new VkSurfacePresentModeCompatibilityEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeEXT.java index 3d7d376f..34992ce0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentModeEXT.java @@ -89,6 +89,17 @@ public final class VkSurfacePresentModeEXT extends Struct { /// @return the allocated `VkSurfacePresentModeEXT` public static VkSurfacePresentModeEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfacePresentModeEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfacePresentModeEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfacePresentModeEXT` + public VkSurfacePresentModeEXT asSlice(long index) { return new VkSurfacePresentModeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfacePresentModeEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfacePresentModeEXT` + public VkSurfacePresentModeEXT asSlice(long index, long count) { return new VkSurfacePresentModeEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentScalingCapabilitiesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentScalingCapabilitiesEXT.java index 26124f4c..c295d324 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentScalingCapabilitiesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSurfacePresentScalingCapabilitiesEXT.java @@ -117,6 +117,17 @@ public final class VkSurfacePresentScalingCapabilitiesEXT extends Struct { /// @return the allocated `VkSurfacePresentScalingCapabilitiesEXT` public static VkSurfacePresentScalingCapabilitiesEXT alloc(SegmentAllocator allocator, long count) { return new VkSurfacePresentScalingCapabilitiesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfacePresentScalingCapabilitiesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfacePresentScalingCapabilitiesEXT` + public VkSurfacePresentScalingCapabilitiesEXT asSlice(long index) { return new VkSurfacePresentScalingCapabilitiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfacePresentScalingCapabilitiesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfacePresentScalingCapabilitiesEXT` + public VkSurfacePresentScalingCapabilitiesEXT asSlice(long index, long count) { return new VkSurfacePresentScalingCapabilitiesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainCounterCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainCounterCreateInfoEXT.java index 9d008b58..7efac414 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainCounterCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainCounterCreateInfoEXT.java @@ -89,6 +89,17 @@ public final class VkSwapchainCounterCreateInfoEXT extends Struct { /// @return the allocated `VkSwapchainCounterCreateInfoEXT` public static VkSwapchainCounterCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSwapchainCounterCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainCounterCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainCounterCreateInfoEXT` + public VkSwapchainCounterCreateInfoEXT asSlice(long index) { return new VkSwapchainCounterCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainCounterCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainCounterCreateInfoEXT` + public VkSwapchainCounterCreateInfoEXT asSlice(long index, long count) { return new VkSwapchainCounterCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentFenceInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentFenceInfoEXT.java index 3e8d3e4b..921f0158 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentFenceInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentFenceInfoEXT.java @@ -95,6 +95,17 @@ public final class VkSwapchainPresentFenceInfoEXT extends Struct { /// @return the allocated `VkSwapchainPresentFenceInfoEXT` public static VkSwapchainPresentFenceInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSwapchainPresentFenceInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainPresentFenceInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainPresentFenceInfoEXT` + public VkSwapchainPresentFenceInfoEXT asSlice(long index) { return new VkSwapchainPresentFenceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainPresentFenceInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainPresentFenceInfoEXT` + public VkSwapchainPresentFenceInfoEXT asSlice(long index, long count) { return new VkSwapchainPresentFenceInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModeInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModeInfoEXT.java index e9f78604..521d4668 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModeInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModeInfoEXT.java @@ -95,6 +95,17 @@ public final class VkSwapchainPresentModeInfoEXT extends Struct { /// @return the allocated `VkSwapchainPresentModeInfoEXT` public static VkSwapchainPresentModeInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSwapchainPresentModeInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainPresentModeInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainPresentModeInfoEXT` + public VkSwapchainPresentModeInfoEXT asSlice(long index) { return new VkSwapchainPresentModeInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainPresentModeInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainPresentModeInfoEXT` + public VkSwapchainPresentModeInfoEXT asSlice(long index, long count) { return new VkSwapchainPresentModeInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModesCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModesCreateInfoEXT.java index 9319ebc8..8cea1125 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModesCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentModesCreateInfoEXT.java @@ -95,6 +95,17 @@ public final class VkSwapchainPresentModesCreateInfoEXT extends Struct { /// @return the allocated `VkSwapchainPresentModesCreateInfoEXT` public static VkSwapchainPresentModesCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSwapchainPresentModesCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainPresentModesCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainPresentModesCreateInfoEXT` + public VkSwapchainPresentModesCreateInfoEXT asSlice(long index) { return new VkSwapchainPresentModesCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainPresentModesCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainPresentModesCreateInfoEXT` + public VkSwapchainPresentModesCreateInfoEXT asSlice(long index, long count) { return new VkSwapchainPresentModesCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentScalingCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentScalingCreateInfoEXT.java index 83125650..4f81f443 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentScalingCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkSwapchainPresentScalingCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkSwapchainPresentScalingCreateInfoEXT extends Struct { /// @return the allocated `VkSwapchainPresentScalingCreateInfoEXT` public static VkSwapchainPresentScalingCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkSwapchainPresentScalingCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainPresentScalingCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainPresentScalingCreateInfoEXT` + public VkSwapchainPresentScalingCreateInfoEXT asSlice(long index) { return new VkSwapchainPresentScalingCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainPresentScalingCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainPresentScalingCreateInfoEXT` + public VkSwapchainPresentScalingCreateInfoEXT asSlice(long index, long count) { return new VkSwapchainPresentScalingCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationCacheCreateInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationCacheCreateInfoEXT.java index bd3bc45d..de83c14d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationCacheCreateInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationCacheCreateInfoEXT.java @@ -101,6 +101,17 @@ public final class VkValidationCacheCreateInfoEXT extends Struct { /// @return the allocated `VkValidationCacheCreateInfoEXT` public static VkValidationCacheCreateInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkValidationCacheCreateInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkValidationCacheCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkValidationCacheCreateInfoEXT` + public VkValidationCacheCreateInfoEXT asSlice(long index) { return new VkValidationCacheCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkValidationCacheCreateInfoEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkValidationCacheCreateInfoEXT` + public VkValidationCacheCreateInfoEXT asSlice(long index, long count) { return new VkValidationCacheCreateInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFeaturesEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFeaturesEXT.java index fd6a90bd..e8bf6f2e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFeaturesEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFeaturesEXT.java @@ -107,6 +107,17 @@ public final class VkValidationFeaturesEXT extends Struct { /// @return the allocated `VkValidationFeaturesEXT` public static VkValidationFeaturesEXT alloc(SegmentAllocator allocator, long count) { return new VkValidationFeaturesEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkValidationFeaturesEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkValidationFeaturesEXT` + public VkValidationFeaturesEXT asSlice(long index) { return new VkValidationFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkValidationFeaturesEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkValidationFeaturesEXT` + public VkValidationFeaturesEXT asSlice(long index, long count) { return new VkValidationFeaturesEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFlagsEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFlagsEXT.java index a09b4edb..00c2fe19 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFlagsEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkValidationFlagsEXT.java @@ -95,6 +95,17 @@ public final class VkValidationFlagsEXT extends Struct { /// @return the allocated `VkValidationFlagsEXT` public static VkValidationFlagsEXT alloc(SegmentAllocator allocator, long count) { return new VkValidationFlagsEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkValidationFlagsEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkValidationFlagsEXT` + public VkValidationFlagsEXT asSlice(long index) { return new VkValidationFlagsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkValidationFlagsEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkValidationFlagsEXT` + public VkValidationFlagsEXT asSlice(long index, long count) { return new VkValidationFlagsEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputAttributeDescription2EXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputAttributeDescription2EXT.java index 10f13cf2..f928f076 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputAttributeDescription2EXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputAttributeDescription2EXT.java @@ -107,6 +107,17 @@ public final class VkVertexInputAttributeDescription2EXT extends Struct { /// @return the allocated `VkVertexInputAttributeDescription2EXT` public static VkVertexInputAttributeDescription2EXT alloc(SegmentAllocator allocator, long count) { return new VkVertexInputAttributeDescription2EXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVertexInputAttributeDescription2EXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVertexInputAttributeDescription2EXT` + public VkVertexInputAttributeDescription2EXT asSlice(long index) { return new VkVertexInputAttributeDescription2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVertexInputAttributeDescription2EXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVertexInputAttributeDescription2EXT` + public VkVertexInputAttributeDescription2EXT asSlice(long index, long count) { return new VkVertexInputAttributeDescription2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputBindingDescription2EXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputBindingDescription2EXT.java index a3cbe60c..f11c4111 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputBindingDescription2EXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkVertexInputBindingDescription2EXT.java @@ -107,6 +107,17 @@ public final class VkVertexInputBindingDescription2EXT extends Struct { /// @return the allocated `VkVertexInputBindingDescription2EXT` public static VkVertexInputBindingDescription2EXT alloc(SegmentAllocator allocator, long count) { return new VkVertexInputBindingDescription2EXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVertexInputBindingDescription2EXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVertexInputBindingDescription2EXT` + public VkVertexInputBindingDescription2EXT asSlice(long index) { return new VkVertexInputBindingDescription2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVertexInputBindingDescription2EXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVertexInputBindingDescription2EXT` + public VkVertexInputBindingDescription2EXT asSlice(long index, long count) { return new VkVertexInputBindingDescription2EXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetPipelineEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetPipelineEXT.java index b00ae21b..982b8049 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetPipelineEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetPipelineEXT.java @@ -95,6 +95,17 @@ public final class VkWriteIndirectExecutionSetPipelineEXT extends Struct { /// @return the allocated `VkWriteIndirectExecutionSetPipelineEXT` public static VkWriteIndirectExecutionSetPipelineEXT alloc(SegmentAllocator allocator, long count) { return new VkWriteIndirectExecutionSetPipelineEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteIndirectExecutionSetPipelineEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteIndirectExecutionSetPipelineEXT` + public VkWriteIndirectExecutionSetPipelineEXT asSlice(long index) { return new VkWriteIndirectExecutionSetPipelineEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteIndirectExecutionSetPipelineEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteIndirectExecutionSetPipelineEXT` + public VkWriteIndirectExecutionSetPipelineEXT asSlice(long index, long count) { return new VkWriteIndirectExecutionSetPipelineEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetShaderEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetShaderEXT.java index 23dd462b..8af819fa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetShaderEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkWriteIndirectExecutionSetShaderEXT.java @@ -95,6 +95,17 @@ public final class VkWriteIndirectExecutionSetShaderEXT extends Struct { /// @return the allocated `VkWriteIndirectExecutionSetShaderEXT` public static VkWriteIndirectExecutionSetShaderEXT alloc(SegmentAllocator allocator, long count) { return new VkWriteIndirectExecutionSetShaderEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteIndirectExecutionSetShaderEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteIndirectExecutionSetShaderEXT` + public VkWriteIndirectExecutionSetShaderEXT asSlice(long index) { return new VkWriteIndirectExecutionSetShaderEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteIndirectExecutionSetShaderEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteIndirectExecutionSetShaderEXT` + public VkWriteIndirectExecutionSetShaderEXT asSlice(long index, long count) { return new VkWriteIndirectExecutionSetShaderEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkXYColorEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkXYColorEXT.java index 1293e9d4..a42dabd7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkXYColorEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/struct/VkXYColorEXT.java @@ -83,6 +83,17 @@ public final class VkXYColorEXT extends Struct { /// @return the allocated `VkXYColorEXT` public static VkXYColorEXT alloc(SegmentAllocator allocator, long count) { return new VkXYColorEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkXYColorEXT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkXYColorEXT` + public VkXYColorEXT asSlice(long index) { return new VkXYColorEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkXYColorEXT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkXYColorEXT` + public VkXYColorEXT asSlice(long index, long count) { return new VkXYColorEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkDescriptorDataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkDescriptorDataEXT.java index f660e0db..0ba7726a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkDescriptorDataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkDescriptorDataEXT.java @@ -131,12 +131,23 @@ public final class VkDescriptorDataEXT extends Union { /// @return the allocated `VkDescriptorDataEXT` public static VkDescriptorDataEXT alloc(SegmentAllocator allocator, long count) { return new VkDescriptorDataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorDataEXT`. + /// @param index the index of the union buffer + /// @return the slice of `VkDescriptorDataEXT` + public VkDescriptorDataEXT asSlice(long index) { return new VkDescriptorDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorDataEXT`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkDescriptorDataEXT` + public VkDescriptorDataEXT asSlice(long index, long count) { return new VkDescriptorDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pSampler` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkSampler *") java.lang.foreign.MemorySegment get_pSampler(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pSampler.get(segment, 0L, index); } /// {@return `pSampler`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkSampler *") java.lang.foreign.MemorySegment get_pSampler(MemorySegment segment) { return VkDescriptorDataEXT.get_pSampler(segment, 0L); } /// {@return `pSampler` at the given index} /// @param index the index @@ -144,12 +155,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pSampler`} public @CType("const VkSampler *") java.lang.foreign.MemorySegment pSampler() { return VkDescriptorDataEXT.get_pSampler(this.segment()); } /// Sets `pSampler` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pSampler(MemorySegment segment, long index, @CType("const VkSampler *") java.lang.foreign.MemorySegment value) { VH_pSampler.set(segment, 0L, index, value); } /// Sets `pSampler` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pSampler(MemorySegment segment, @CType("const VkSampler *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pSampler(segment, 0L, value); } /// Sets `pSampler` with the given value at the given index. @@ -163,11 +174,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pSampler(@CType("const VkSampler *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pSampler(this.segment(), value); return this; } /// {@return `pCombinedImageSampler` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pCombinedImageSampler(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pCombinedImageSampler.get(segment, 0L, index); } /// {@return `pCombinedImageSampler`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pCombinedImageSampler(MemorySegment segment) { return VkDescriptorDataEXT.get_pCombinedImageSampler(segment, 0L); } /// {@return `pCombinedImageSampler` at the given index} /// @param index the index @@ -175,12 +186,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pCombinedImageSampler`} public @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment pCombinedImageSampler() { return VkDescriptorDataEXT.get_pCombinedImageSampler(this.segment()); } /// Sets `pCombinedImageSampler` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pCombinedImageSampler(MemorySegment segment, long index, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VH_pCombinedImageSampler.set(segment, 0L, index, value); } /// Sets `pCombinedImageSampler` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pCombinedImageSampler(MemorySegment segment, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pCombinedImageSampler(segment, 0L, value); } /// Sets `pCombinedImageSampler` with the given value at the given index. @@ -194,11 +205,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pCombinedImageSampler(@CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pCombinedImageSampler(this.segment(), value); return this; } /// {@return `pInputAttachmentImage` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pInputAttachmentImage(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pInputAttachmentImage.get(segment, 0L, index); } /// {@return `pInputAttachmentImage`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pInputAttachmentImage(MemorySegment segment) { return VkDescriptorDataEXT.get_pInputAttachmentImage(segment, 0L); } /// {@return `pInputAttachmentImage` at the given index} /// @param index the index @@ -206,12 +217,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pInputAttachmentImage`} public @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment pInputAttachmentImage() { return VkDescriptorDataEXT.get_pInputAttachmentImage(this.segment()); } /// Sets `pInputAttachmentImage` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pInputAttachmentImage(MemorySegment segment, long index, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VH_pInputAttachmentImage.set(segment, 0L, index, value); } /// Sets `pInputAttachmentImage` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pInputAttachmentImage(MemorySegment segment, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pInputAttachmentImage(segment, 0L, value); } /// Sets `pInputAttachmentImage` with the given value at the given index. @@ -225,11 +236,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pInputAttachmentImage(@CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pInputAttachmentImage(this.segment(), value); return this; } /// {@return `pSampledImage` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pSampledImage(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pSampledImage.get(segment, 0L, index); } /// {@return `pSampledImage`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pSampledImage(MemorySegment segment) { return VkDescriptorDataEXT.get_pSampledImage(segment, 0L); } /// {@return `pSampledImage` at the given index} /// @param index the index @@ -237,12 +248,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pSampledImage`} public @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment pSampledImage() { return VkDescriptorDataEXT.get_pSampledImage(this.segment()); } /// Sets `pSampledImage` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pSampledImage(MemorySegment segment, long index, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VH_pSampledImage.set(segment, 0L, index, value); } /// Sets `pSampledImage` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pSampledImage(MemorySegment segment, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pSampledImage(segment, 0L, value); } /// Sets `pSampledImage` with the given value at the given index. @@ -256,11 +267,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pSampledImage(@CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pSampledImage(this.segment(), value); return this; } /// {@return `pStorageImage` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pStorageImage(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pStorageImage.get(segment, 0L, index); } /// {@return `pStorageImage`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment get_pStorageImage(MemorySegment segment) { return VkDescriptorDataEXT.get_pStorageImage(segment, 0L); } /// {@return `pStorageImage` at the given index} /// @param index the index @@ -268,12 +279,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pStorageImage`} public @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment pStorageImage() { return VkDescriptorDataEXT.get_pStorageImage(this.segment()); } /// Sets `pStorageImage` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pStorageImage(MemorySegment segment, long index, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VH_pStorageImage.set(segment, 0L, index, value); } /// Sets `pStorageImage` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pStorageImage(MemorySegment segment, @CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageImage(segment, 0L, value); } /// Sets `pStorageImage` with the given value at the given index. @@ -287,11 +298,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pStorageImage(@CType("const VkDescriptorImageInfo *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageImage(this.segment(), value); return this; } /// {@return `pUniformTexelBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pUniformTexelBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pUniformTexelBuffer.get(segment, 0L, index); } /// {@return `pUniformTexelBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pUniformTexelBuffer(MemorySegment segment) { return VkDescriptorDataEXT.get_pUniformTexelBuffer(segment, 0L); } /// {@return `pUniformTexelBuffer` at the given index} /// @param index the index @@ -299,12 +310,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pUniformTexelBuffer`} public @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment pUniformTexelBuffer() { return VkDescriptorDataEXT.get_pUniformTexelBuffer(this.segment()); } /// Sets `pUniformTexelBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pUniformTexelBuffer(MemorySegment segment, long index, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pUniformTexelBuffer.set(segment, 0L, index, value); } /// Sets `pUniformTexelBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pUniformTexelBuffer(MemorySegment segment, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pUniformTexelBuffer(segment, 0L, value); } /// Sets `pUniformTexelBuffer` with the given value at the given index. @@ -318,11 +329,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pUniformTexelBuffer(@CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pUniformTexelBuffer(this.segment(), value); return this; } /// {@return `pStorageTexelBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pStorageTexelBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pStorageTexelBuffer.get(segment, 0L, index); } /// {@return `pStorageTexelBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pStorageTexelBuffer(MemorySegment segment) { return VkDescriptorDataEXT.get_pStorageTexelBuffer(segment, 0L); } /// {@return `pStorageTexelBuffer` at the given index} /// @param index the index @@ -330,12 +341,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pStorageTexelBuffer`} public @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment pStorageTexelBuffer() { return VkDescriptorDataEXT.get_pStorageTexelBuffer(this.segment()); } /// Sets `pStorageTexelBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pStorageTexelBuffer(MemorySegment segment, long index, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pStorageTexelBuffer.set(segment, 0L, index, value); } /// Sets `pStorageTexelBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pStorageTexelBuffer(MemorySegment segment, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageTexelBuffer(segment, 0L, value); } /// Sets `pStorageTexelBuffer` with the given value at the given index. @@ -349,11 +360,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pStorageTexelBuffer(@CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageTexelBuffer(this.segment(), value); return this; } /// {@return `pUniformBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pUniformBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pUniformBuffer.get(segment, 0L, index); } /// {@return `pUniformBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pUniformBuffer(MemorySegment segment) { return VkDescriptorDataEXT.get_pUniformBuffer(segment, 0L); } /// {@return `pUniformBuffer` at the given index} /// @param index the index @@ -361,12 +372,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pUniformBuffer`} public @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment pUniformBuffer() { return VkDescriptorDataEXT.get_pUniformBuffer(this.segment()); } /// Sets `pUniformBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pUniformBuffer(MemorySegment segment, long index, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pUniformBuffer.set(segment, 0L, index, value); } /// Sets `pUniformBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pUniformBuffer(MemorySegment segment, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pUniformBuffer(segment, 0L, value); } /// Sets `pUniformBuffer` with the given value at the given index. @@ -380,11 +391,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pUniformBuffer(@CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pUniformBuffer(this.segment(), value); return this; } /// {@return `pStorageBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pStorageBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pStorageBuffer.get(segment, 0L, index); } /// {@return `pStorageBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment get_pStorageBuffer(MemorySegment segment) { return VkDescriptorDataEXT.get_pStorageBuffer(segment, 0L); } /// {@return `pStorageBuffer` at the given index} /// @param index the index @@ -392,12 +403,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `pStorageBuffer`} public @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment pStorageBuffer() { return VkDescriptorDataEXT.get_pStorageBuffer(this.segment()); } /// Sets `pStorageBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pStorageBuffer(MemorySegment segment, long index, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pStorageBuffer.set(segment, 0L, index, value); } /// Sets `pStorageBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pStorageBuffer(MemorySegment segment, @CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageBuffer(segment, 0L, value); } /// Sets `pStorageBuffer` with the given value at the given index. @@ -411,11 +422,11 @@ public final class VkDescriptorDataEXT extends Union { public VkDescriptorDataEXT pStorageBuffer(@CType("const VkDescriptorAddressInfoEXT *") java.lang.foreign.MemorySegment value) { VkDescriptorDataEXT.set_pStorageBuffer(this.segment(), value); return this; } /// {@return `accelerationStructure` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkDeviceAddress") long get_accelerationStructure(MemorySegment segment, long index) { return (long) VH_accelerationStructure.get(segment, 0L, index); } /// {@return `accelerationStructure`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkDeviceAddress") long get_accelerationStructure(MemorySegment segment) { return VkDescriptorDataEXT.get_accelerationStructure(segment, 0L); } /// {@return `accelerationStructure` at the given index} /// @param index the index @@ -423,12 +434,12 @@ public final class VkDescriptorDataEXT extends Union { /// {@return `accelerationStructure`} public @CType("VkDeviceAddress") long accelerationStructure() { return VkDescriptorDataEXT.get_accelerationStructure(this.segment()); } /// Sets `accelerationStructure` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_accelerationStructure(MemorySegment segment, long index, @CType("VkDeviceAddress") long value) { VH_accelerationStructure.set(segment, 0L, index, value); } /// Sets `accelerationStructure` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_accelerationStructure(MemorySegment segment, @CType("VkDeviceAddress") long value) { VkDescriptorDataEXT.set_accelerationStructure(segment, 0L, value); } /// Sets `accelerationStructure` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectCommandsTokenDataEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectCommandsTokenDataEXT.java index 07721159..afb58b87 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectCommandsTokenDataEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectCommandsTokenDataEXT.java @@ -95,12 +95,23 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { /// @return the allocated `VkIndirectCommandsTokenDataEXT` public static VkIndirectCommandsTokenDataEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsTokenDataEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsTokenDataEXT`. + /// @param index the index of the union buffer + /// @return the slice of `VkIndirectCommandsTokenDataEXT` + public VkIndirectCommandsTokenDataEXT asSlice(long index) { return new VkIndirectCommandsTokenDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsTokenDataEXT`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsTokenDataEXT` + public VkIndirectCommandsTokenDataEXT asSlice(long index, long count) { return new VkIndirectCommandsTokenDataEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pPushConstant` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment get_pPushConstant(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pPushConstant.get(segment, 0L, index); } /// {@return `pPushConstant`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment get_pPushConstant(MemorySegment segment) { return VkIndirectCommandsTokenDataEXT.get_pPushConstant(segment, 0L); } /// {@return `pPushConstant` at the given index} /// @param index the index @@ -108,12 +119,12 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { /// {@return `pPushConstant`} public @CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment pPushConstant() { return VkIndirectCommandsTokenDataEXT.get_pPushConstant(this.segment()); } /// Sets `pPushConstant` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pPushConstant(MemorySegment segment, long index, @CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment value) { VH_pPushConstant.set(segment, 0L, index, value); } /// Sets `pPushConstant` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pPushConstant(MemorySegment segment, @CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pPushConstant(segment, 0L, value); } /// Sets `pPushConstant` with the given value at the given index. @@ -127,11 +138,11 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { public VkIndirectCommandsTokenDataEXT pPushConstant(@CType("const VkIndirectCommandsPushConstantTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pPushConstant(this.segment(), value); return this; } /// {@return `pVertexBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment get_pVertexBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pVertexBuffer.get(segment, 0L, index); } /// {@return `pVertexBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment get_pVertexBuffer(MemorySegment segment) { return VkIndirectCommandsTokenDataEXT.get_pVertexBuffer(segment, 0L); } /// {@return `pVertexBuffer` at the given index} /// @param index the index @@ -139,12 +150,12 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { /// {@return `pVertexBuffer`} public @CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment pVertexBuffer() { return VkIndirectCommandsTokenDataEXT.get_pVertexBuffer(this.segment()); } /// Sets `pVertexBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pVertexBuffer(MemorySegment segment, long index, @CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VH_pVertexBuffer.set(segment, 0L, index, value); } /// Sets `pVertexBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pVertexBuffer(MemorySegment segment, @CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pVertexBuffer(segment, 0L, value); } /// Sets `pVertexBuffer` with the given value at the given index. @@ -158,11 +169,11 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { public VkIndirectCommandsTokenDataEXT pVertexBuffer(@CType("const VkIndirectCommandsVertexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pVertexBuffer(this.segment(), value); return this; } /// {@return `pIndexBuffer` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment get_pIndexBuffer(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pIndexBuffer.get(segment, 0L, index); } /// {@return `pIndexBuffer`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment get_pIndexBuffer(MemorySegment segment) { return VkIndirectCommandsTokenDataEXT.get_pIndexBuffer(segment, 0L); } /// {@return `pIndexBuffer` at the given index} /// @param index the index @@ -170,12 +181,12 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { /// {@return `pIndexBuffer`} public @CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment pIndexBuffer() { return VkIndirectCommandsTokenDataEXT.get_pIndexBuffer(this.segment()); } /// Sets `pIndexBuffer` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pIndexBuffer(MemorySegment segment, long index, @CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VH_pIndexBuffer.set(segment, 0L, index, value); } /// Sets `pIndexBuffer` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pIndexBuffer(MemorySegment segment, @CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pIndexBuffer(segment, 0L, value); } /// Sets `pIndexBuffer` with the given value at the given index. @@ -189,11 +200,11 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { public VkIndirectCommandsTokenDataEXT pIndexBuffer(@CType("const VkIndirectCommandsIndexBufferTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pIndexBuffer(this.segment(), value); return this; } /// {@return `pExecutionSet` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectCommandsExecutionSetTokenEXT *") java.lang.foreign.MemorySegment get_pExecutionSet(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pExecutionSet.get(segment, 0L, index); } /// {@return `pExecutionSet`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectCommandsExecutionSetTokenEXT *") java.lang.foreign.MemorySegment get_pExecutionSet(MemorySegment segment) { return VkIndirectCommandsTokenDataEXT.get_pExecutionSet(segment, 0L); } /// {@return `pExecutionSet` at the given index} /// @param index the index @@ -201,12 +212,12 @@ public final class VkIndirectCommandsTokenDataEXT extends Union { /// {@return `pExecutionSet`} public @CType("const VkIndirectCommandsExecutionSetTokenEXT *") java.lang.foreign.MemorySegment pExecutionSet() { return VkIndirectCommandsTokenDataEXT.get_pExecutionSet(this.segment()); } /// Sets `pExecutionSet` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pExecutionSet(MemorySegment segment, long index, @CType("const VkIndirectCommandsExecutionSetTokenEXT *") java.lang.foreign.MemorySegment value) { VH_pExecutionSet.set(segment, 0L, index, value); } /// Sets `pExecutionSet` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pExecutionSet(MemorySegment segment, @CType("const VkIndirectCommandsExecutionSetTokenEXT *") java.lang.foreign.MemorySegment value) { VkIndirectCommandsTokenDataEXT.set_pExecutionSet(segment, 0L, value); } /// Sets `pExecutionSet` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectExecutionSetInfoEXT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectExecutionSetInfoEXT.java index 3726b480..d0139613 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectExecutionSetInfoEXT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ext/union/VkIndirectExecutionSetInfoEXT.java @@ -83,12 +83,23 @@ public final class VkIndirectExecutionSetInfoEXT extends Union { /// @return the allocated `VkIndirectExecutionSetInfoEXT` public static VkIndirectExecutionSetInfoEXT alloc(SegmentAllocator allocator, long count) { return new VkIndirectExecutionSetInfoEXT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectExecutionSetInfoEXT`. + /// @param index the index of the union buffer + /// @return the slice of `VkIndirectExecutionSetInfoEXT` + public VkIndirectExecutionSetInfoEXT asSlice(long index) { return new VkIndirectExecutionSetInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectExecutionSetInfoEXT`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkIndirectExecutionSetInfoEXT` + public VkIndirectExecutionSetInfoEXT asSlice(long index, long count) { return new VkIndirectExecutionSetInfoEXT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pPipelineInfo` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment get_pPipelineInfo(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pPipelineInfo.get(segment, 0L, index); } /// {@return `pPipelineInfo`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment get_pPipelineInfo(MemorySegment segment) { return VkIndirectExecutionSetInfoEXT.get_pPipelineInfo(segment, 0L); } /// {@return `pPipelineInfo` at the given index} /// @param index the index @@ -96,12 +107,12 @@ public final class VkIndirectExecutionSetInfoEXT extends Union { /// {@return `pPipelineInfo`} public @CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment pPipelineInfo() { return VkIndirectExecutionSetInfoEXT.get_pPipelineInfo(this.segment()); } /// Sets `pPipelineInfo` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pPipelineInfo(MemorySegment segment, long index, @CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pPipelineInfo.set(segment, 0L, index, value); } /// Sets `pPipelineInfo` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pPipelineInfo(MemorySegment segment, @CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment value) { VkIndirectExecutionSetInfoEXT.set_pPipelineInfo(segment, 0L, value); } /// Sets `pPipelineInfo` with the given value at the given index. @@ -115,11 +126,11 @@ public final class VkIndirectExecutionSetInfoEXT extends Union { public VkIndirectExecutionSetInfoEXT pPipelineInfo(@CType("const VkIndirectExecutionSetPipelineInfoEXT *") java.lang.foreign.MemorySegment value) { VkIndirectExecutionSetInfoEXT.set_pPipelineInfo(this.segment(), value); return this; } /// {@return `pShaderInfo` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const VkIndirectExecutionSetShaderInfoEXT *") java.lang.foreign.MemorySegment get_pShaderInfo(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_pShaderInfo.get(segment, 0L, index); } /// {@return `pShaderInfo`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const VkIndirectExecutionSetShaderInfoEXT *") java.lang.foreign.MemorySegment get_pShaderInfo(MemorySegment segment) { return VkIndirectExecutionSetInfoEXT.get_pShaderInfo(segment, 0L); } /// {@return `pShaderInfo` at the given index} /// @param index the index @@ -127,12 +138,12 @@ public final class VkIndirectExecutionSetInfoEXT extends Union { /// {@return `pShaderInfo`} public @CType("const VkIndirectExecutionSetShaderInfoEXT *") java.lang.foreign.MemorySegment pShaderInfo() { return VkIndirectExecutionSetInfoEXT.get_pShaderInfo(this.segment()); } /// Sets `pShaderInfo` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_pShaderInfo(MemorySegment segment, long index, @CType("const VkIndirectExecutionSetShaderInfoEXT *") java.lang.foreign.MemorySegment value) { VH_pShaderInfo.set(segment, 0L, index, value); } /// Sets `pShaderInfo` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_pShaderInfo(MemorySegment segment, @CType("const VkIndirectExecutionSetShaderInfoEXT *") java.lang.foreign.MemorySegment value) { VkIndirectExecutionSetInfoEXT.set_pShaderInfo(segment, 0L, value); } /// Sets `pShaderInfo` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionBufferCreateInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionBufferCreateInfoFUCHSIA.java index 4101d8ab..e3e8bc2c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionBufferCreateInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionBufferCreateInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkBufferCollectionBufferCreateInfoFUCHSIA extends Struct { /// @return the allocated `VkBufferCollectionBufferCreateInfoFUCHSIA` public static VkBufferCollectionBufferCreateInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferCollectionBufferCreateInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCollectionBufferCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCollectionBufferCreateInfoFUCHSIA` + public VkBufferCollectionBufferCreateInfoFUCHSIA asSlice(long index) { return new VkBufferCollectionBufferCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCollectionBufferCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCollectionBufferCreateInfoFUCHSIA` + public VkBufferCollectionBufferCreateInfoFUCHSIA asSlice(long index, long count) { return new VkBufferCollectionBufferCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionConstraintsInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionConstraintsInfoFUCHSIA.java index 0a703385..4acafea6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionConstraintsInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionConstraintsInfoFUCHSIA.java @@ -113,6 +113,17 @@ public final class VkBufferCollectionConstraintsInfoFUCHSIA extends Struct { /// @return the allocated `VkBufferCollectionConstraintsInfoFUCHSIA` public static VkBufferCollectionConstraintsInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferCollectionConstraintsInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCollectionConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCollectionConstraintsInfoFUCHSIA` + public VkBufferCollectionConstraintsInfoFUCHSIA asSlice(long index) { return new VkBufferCollectionConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCollectionConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCollectionConstraintsInfoFUCHSIA` + public VkBufferCollectionConstraintsInfoFUCHSIA asSlice(long index, long count) { return new VkBufferCollectionConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionCreateInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionCreateInfoFUCHSIA.java index 0b5d7a3d..d2b3a621 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionCreateInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionCreateInfoFUCHSIA.java @@ -89,6 +89,17 @@ public final class VkBufferCollectionCreateInfoFUCHSIA extends Struct { /// @return the allocated `VkBufferCollectionCreateInfoFUCHSIA` public static VkBufferCollectionCreateInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferCollectionCreateInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCollectionCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCollectionCreateInfoFUCHSIA` + public VkBufferCollectionCreateInfoFUCHSIA asSlice(long index) { return new VkBufferCollectionCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCollectionCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCollectionCreateInfoFUCHSIA` + public VkBufferCollectionCreateInfoFUCHSIA asSlice(long index, long count) { return new VkBufferCollectionCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionImageCreateInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionImageCreateInfoFUCHSIA.java index 22e3b1c4..d313e1eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionImageCreateInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionImageCreateInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkBufferCollectionImageCreateInfoFUCHSIA extends Struct { /// @return the allocated `VkBufferCollectionImageCreateInfoFUCHSIA` public static VkBufferCollectionImageCreateInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferCollectionImageCreateInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCollectionImageCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCollectionImageCreateInfoFUCHSIA` + public VkBufferCollectionImageCreateInfoFUCHSIA asSlice(long index) { return new VkBufferCollectionImageCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCollectionImageCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCollectionImageCreateInfoFUCHSIA` + public VkBufferCollectionImageCreateInfoFUCHSIA asSlice(long index, long count) { return new VkBufferCollectionImageCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionPropertiesFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionPropertiesFUCHSIA.java index 9799fbac..83ece8bb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionPropertiesFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferCollectionPropertiesFUCHSIA.java @@ -153,6 +153,17 @@ public final class VkBufferCollectionPropertiesFUCHSIA extends Struct { /// @return the allocated `VkBufferCollectionPropertiesFUCHSIA` public static VkBufferCollectionPropertiesFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferCollectionPropertiesFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCollectionPropertiesFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCollectionPropertiesFUCHSIA` + public VkBufferCollectionPropertiesFUCHSIA asSlice(long index) { return new VkBufferCollectionPropertiesFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCollectionPropertiesFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCollectionPropertiesFUCHSIA` + public VkBufferCollectionPropertiesFUCHSIA asSlice(long index, long count) { return new VkBufferCollectionPropertiesFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferConstraintsInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferConstraintsInfoFUCHSIA.java index 5b718248..bdbd1993 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferConstraintsInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkBufferConstraintsInfoFUCHSIA.java @@ -105,6 +105,17 @@ public final class VkBufferConstraintsInfoFUCHSIA extends Struct { /// @return the allocated `VkBufferConstraintsInfoFUCHSIA` public static VkBufferConstraintsInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkBufferConstraintsInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferConstraintsInfoFUCHSIA` + public VkBufferConstraintsInfoFUCHSIA asSlice(long index) { return new VkBufferConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferConstraintsInfoFUCHSIA` + public VkBufferConstraintsInfoFUCHSIA asSlice(long index, long count) { return new VkBufferConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageConstraintsInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageConstraintsInfoFUCHSIA.java index 94dac47d..12b0feee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageConstraintsInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageConstraintsInfoFUCHSIA.java @@ -109,6 +109,17 @@ public final class VkImageConstraintsInfoFUCHSIA extends Struct { /// @return the allocated `VkImageConstraintsInfoFUCHSIA` public static VkImageConstraintsInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImageConstraintsInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageConstraintsInfoFUCHSIA` + public VkImageConstraintsInfoFUCHSIA asSlice(long index) { return new VkImageConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageConstraintsInfoFUCHSIA` + public VkImageConstraintsInfoFUCHSIA asSlice(long index, long count) { return new VkImageConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageFormatConstraintsInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageFormatConstraintsInfoFUCHSIA.java index 1253daee..25f37e0f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageFormatConstraintsInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImageFormatConstraintsInfoFUCHSIA.java @@ -121,6 +121,17 @@ public final class VkImageFormatConstraintsInfoFUCHSIA extends Struct { /// @return the allocated `VkImageFormatConstraintsInfoFUCHSIA` public static VkImageFormatConstraintsInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImageFormatConstraintsInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageFormatConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageFormatConstraintsInfoFUCHSIA` + public VkImageFormatConstraintsInfoFUCHSIA asSlice(long index) { return new VkImageFormatConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageFormatConstraintsInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageFormatConstraintsInfoFUCHSIA` + public VkImageFormatConstraintsInfoFUCHSIA asSlice(long index, long count) { return new VkImageFormatConstraintsInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImagePipeSurfaceCreateInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImagePipeSurfaceCreateInfoFUCHSIA.java index 4bd6d42d..a5575936 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImagePipeSurfaceCreateInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImagePipeSurfaceCreateInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkImagePipeSurfaceCreateInfoFUCHSIA extends Struct { /// @return the allocated `VkImagePipeSurfaceCreateInfoFUCHSIA` public static VkImagePipeSurfaceCreateInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImagePipeSurfaceCreateInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImagePipeSurfaceCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImagePipeSurfaceCreateInfoFUCHSIA` + public VkImagePipeSurfaceCreateInfoFUCHSIA asSlice(long index) { return new VkImagePipeSurfaceCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImagePipeSurfaceCreateInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImagePipeSurfaceCreateInfoFUCHSIA` + public VkImagePipeSurfaceCreateInfoFUCHSIA asSlice(long index, long count) { return new VkImagePipeSurfaceCreateInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryBufferCollectionFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryBufferCollectionFUCHSIA.java index c1a87aa2..274cd83f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryBufferCollectionFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryBufferCollectionFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkImportMemoryBufferCollectionFUCHSIA extends Struct { /// @return the allocated `VkImportMemoryBufferCollectionFUCHSIA` public static VkImportMemoryBufferCollectionFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryBufferCollectionFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryBufferCollectionFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryBufferCollectionFUCHSIA` + public VkImportMemoryBufferCollectionFUCHSIA asSlice(long index) { return new VkImportMemoryBufferCollectionFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryBufferCollectionFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryBufferCollectionFUCHSIA` + public VkImportMemoryBufferCollectionFUCHSIA asSlice(long index, long count) { return new VkImportMemoryBufferCollectionFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryZirconHandleInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryZirconHandleInfoFUCHSIA.java index cf8b56ea..00d1c260 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryZirconHandleInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportMemoryZirconHandleInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkImportMemoryZirconHandleInfoFUCHSIA extends Struct { /// @return the allocated `VkImportMemoryZirconHandleInfoFUCHSIA` public static VkImportMemoryZirconHandleInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryZirconHandleInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryZirconHandleInfoFUCHSIA` + public VkImportMemoryZirconHandleInfoFUCHSIA asSlice(long index) { return new VkImportMemoryZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryZirconHandleInfoFUCHSIA` + public VkImportMemoryZirconHandleInfoFUCHSIA asSlice(long index, long count) { return new VkImportMemoryZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportSemaphoreZirconHandleInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportSemaphoreZirconHandleInfoFUCHSIA.java index a05532ed..92f20d4b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportSemaphoreZirconHandleInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkImportSemaphoreZirconHandleInfoFUCHSIA.java @@ -107,6 +107,17 @@ public final class VkImportSemaphoreZirconHandleInfoFUCHSIA extends Struct { /// @return the allocated `VkImportSemaphoreZirconHandleInfoFUCHSIA` public static VkImportSemaphoreZirconHandleInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkImportSemaphoreZirconHandleInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportSemaphoreZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportSemaphoreZirconHandleInfoFUCHSIA` + public VkImportSemaphoreZirconHandleInfoFUCHSIA asSlice(long index) { return new VkImportSemaphoreZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportSemaphoreZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportSemaphoreZirconHandleInfoFUCHSIA` + public VkImportSemaphoreZirconHandleInfoFUCHSIA asSlice(long index, long count) { return new VkImportSemaphoreZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryGetZirconHandleInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryGetZirconHandleInfoFUCHSIA.java index 9571dcc4..8822810e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryGetZirconHandleInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryGetZirconHandleInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkMemoryGetZirconHandleInfoFUCHSIA extends Struct { /// @return the allocated `VkMemoryGetZirconHandleInfoFUCHSIA` public static VkMemoryGetZirconHandleInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetZirconHandleInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetZirconHandleInfoFUCHSIA` + public VkMemoryGetZirconHandleInfoFUCHSIA asSlice(long index) { return new VkMemoryGetZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetZirconHandleInfoFUCHSIA` + public VkMemoryGetZirconHandleInfoFUCHSIA asSlice(long index, long count) { return new VkMemoryGetZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryZirconHandlePropertiesFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryZirconHandlePropertiesFUCHSIA.java index 378e6be2..a524ce3f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryZirconHandlePropertiesFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkMemoryZirconHandlePropertiesFUCHSIA.java @@ -89,6 +89,17 @@ public final class VkMemoryZirconHandlePropertiesFUCHSIA extends Struct { /// @return the allocated `VkMemoryZirconHandlePropertiesFUCHSIA` public static VkMemoryZirconHandlePropertiesFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkMemoryZirconHandlePropertiesFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryZirconHandlePropertiesFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryZirconHandlePropertiesFUCHSIA` + public VkMemoryZirconHandlePropertiesFUCHSIA asSlice(long index) { return new VkMemoryZirconHandlePropertiesFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryZirconHandlePropertiesFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryZirconHandlePropertiesFUCHSIA` + public VkMemoryZirconHandlePropertiesFUCHSIA asSlice(long index, long count) { return new VkMemoryZirconHandlePropertiesFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSemaphoreGetZirconHandleInfoFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSemaphoreGetZirconHandleInfoFUCHSIA.java index aae3cbf7..236a6145 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSemaphoreGetZirconHandleInfoFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSemaphoreGetZirconHandleInfoFUCHSIA.java @@ -95,6 +95,17 @@ public final class VkSemaphoreGetZirconHandleInfoFUCHSIA extends Struct { /// @return the allocated `VkSemaphoreGetZirconHandleInfoFUCHSIA` public static VkSemaphoreGetZirconHandleInfoFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreGetZirconHandleInfoFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreGetZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreGetZirconHandleInfoFUCHSIA` + public VkSemaphoreGetZirconHandleInfoFUCHSIA asSlice(long index) { return new VkSemaphoreGetZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreGetZirconHandleInfoFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreGetZirconHandleInfoFUCHSIA` + public VkSemaphoreGetZirconHandleInfoFUCHSIA asSlice(long index, long count) { return new VkSemaphoreGetZirconHandleInfoFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSysmemColorSpaceFUCHSIA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSysmemColorSpaceFUCHSIA.java index ebea46ba..99f6424c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSysmemColorSpaceFUCHSIA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/fuchsia/struct/VkSysmemColorSpaceFUCHSIA.java @@ -89,6 +89,17 @@ public final class VkSysmemColorSpaceFUCHSIA extends Struct { /// @return the allocated `VkSysmemColorSpaceFUCHSIA` public static VkSysmemColorSpaceFUCHSIA alloc(SegmentAllocator allocator, long count) { return new VkSysmemColorSpaceFUCHSIA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSysmemColorSpaceFUCHSIA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSysmemColorSpaceFUCHSIA` + public VkSysmemColorSpaceFUCHSIA asSlice(long index) { return new VkSysmemColorSpaceFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSysmemColorSpaceFUCHSIA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSysmemColorSpaceFUCHSIA` + public VkSysmemColorSpaceFUCHSIA asSlice(long index, long count) { return new VkSysmemColorSpaceFUCHSIA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/VKGGPFrameToken.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/VKGGPFrameToken.java index cbbdfd60..85af905d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/VKGGPFrameToken.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/VKGGPFrameToken.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKGGPFrameToken { +public final class VKGGPFrameToken { public static final int VK_GGP_FRAME_TOKEN_SPEC_VERSION = 1; public static final String VK_GGP_FRAME_TOKEN_EXTENSION_NAME = "VK_GGP_frame_token"; public static final int VK_STRUCTURE_TYPE_PRESENT_FRAME_TOKEN_GGP = 1000191000; - public VKGGPFrameToken(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKGGPFrameToken() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkPresentFrameTokenGGP.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkPresentFrameTokenGGP.java index 8ab334ef..0ba45232 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkPresentFrameTokenGGP.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkPresentFrameTokenGGP.java @@ -89,6 +89,17 @@ public final class VkPresentFrameTokenGGP extends Struct { /// @return the allocated `VkPresentFrameTokenGGP` public static VkPresentFrameTokenGGP alloc(SegmentAllocator allocator, long count) { return new VkPresentFrameTokenGGP(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentFrameTokenGGP`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentFrameTokenGGP` + public VkPresentFrameTokenGGP asSlice(long index) { return new VkPresentFrameTokenGGP(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentFrameTokenGGP`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentFrameTokenGGP` + public VkPresentFrameTokenGGP asSlice(long index, long count) { return new VkPresentFrameTokenGGP(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkStreamDescriptorSurfaceCreateInfoGGP.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkStreamDescriptorSurfaceCreateInfoGGP.java index c8d25303..c8c852a1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkStreamDescriptorSurfaceCreateInfoGGP.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/ggp/struct/VkStreamDescriptorSurfaceCreateInfoGGP.java @@ -95,6 +95,17 @@ public final class VkStreamDescriptorSurfaceCreateInfoGGP extends Struct { /// @return the allocated `VkStreamDescriptorSurfaceCreateInfoGGP` public static VkStreamDescriptorSurfaceCreateInfoGGP alloc(SegmentAllocator allocator, long count) { return new VkStreamDescriptorSurfaceCreateInfoGGP(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkStreamDescriptorSurfaceCreateInfoGGP`. + /// @param index the index of the struct buffer + /// @return the slice of `VkStreamDescriptorSurfaceCreateInfoGGP` + public VkStreamDescriptorSurfaceCreateInfoGGP asSlice(long index) { return new VkStreamDescriptorSurfaceCreateInfoGGP(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkStreamDescriptorSurfaceCreateInfoGGP`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkStreamDescriptorSurfaceCreateInfoGGP` + public VkStreamDescriptorSurfaceCreateInfoGGP asSlice(long index, long count) { return new VkStreamDescriptorSurfaceCreateInfoGGP(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEDecorateString.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEDecorateString.java index cdcb69d2..e20626fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEDecorateString.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEDecorateString.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKGOOGLEDecorateString { +public final class VKGOOGLEDecorateString { public static final int VK_GOOGLE_DECORATE_STRING_SPEC_VERSION = 1; public static final String VK_GOOGLE_DECORATE_STRING_EXTENSION_NAME = "VK_GOOGLE_decorate_string"; - public VKGOOGLEDecorateString(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKGOOGLEDecorateString() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEHlslFunctionality1.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEHlslFunctionality1.java index 87fafb4a..868e3da0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEHlslFunctionality1.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEHlslFunctionality1.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.google.VKGOOGLEHlslFunctionality1.*; -public class VKGOOGLEHlslFunctionality1 { +public final class VKGOOGLEHlslFunctionality1 { public static final int VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION = 1; public static final String VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME = "VK_GOOGLE_hlsl_functionality1"; public static final int VK_GOOGLE_HLSL_FUNCTIONALITY1_SPEC_VERSION = VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION; public static final String VK_GOOGLE_HLSL_FUNCTIONALITY1_EXTENSION_NAME = VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME; - public VKGOOGLEHlslFunctionality1(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKGOOGLEHlslFunctionality1() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLESurfacelessQuery.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLESurfacelessQuery.java index 6a299837..284f73b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLESurfacelessQuery.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLESurfacelessQuery.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKGOOGLESurfacelessQuery { +public final class VKGOOGLESurfacelessQuery { public static final int VK_GOOGLE_SURFACELESS_QUERY_SPEC_VERSION = 2; public static final String VK_GOOGLE_SURFACELESS_QUERY_EXTENSION_NAME = "VK_GOOGLE_surfaceless_query"; - public VKGOOGLESurfacelessQuery(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKGOOGLESurfacelessQuery() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEUserType.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEUserType.java index 92133e82..0ec7a97e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEUserType.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/VKGOOGLEUserType.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKGOOGLEUserType { +public final class VKGOOGLEUserType { public static final int VK_GOOGLE_USER_TYPE_SPEC_VERSION = 1; public static final String VK_GOOGLE_USER_TYPE_EXTENSION_NAME = "VK_GOOGLE_user_type"; - public VKGOOGLEUserType(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKGOOGLEUserType() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPastPresentationTimingGOOGLE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPastPresentationTimingGOOGLE.java index e7c1df95..9c35529e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPastPresentationTimingGOOGLE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPastPresentationTimingGOOGLE.java @@ -101,6 +101,17 @@ public final class VkPastPresentationTimingGOOGLE extends Struct { /// @return the allocated `VkPastPresentationTimingGOOGLE` public static VkPastPresentationTimingGOOGLE alloc(SegmentAllocator allocator, long count) { return new VkPastPresentationTimingGOOGLE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPastPresentationTimingGOOGLE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPastPresentationTimingGOOGLE` + public VkPastPresentationTimingGOOGLE asSlice(long index) { return new VkPastPresentationTimingGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPastPresentationTimingGOOGLE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPastPresentationTimingGOOGLE` + public VkPastPresentationTimingGOOGLE asSlice(long index, long count) { return new VkPastPresentationTimingGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `presentID` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimeGOOGLE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimeGOOGLE.java index 162b5ea9..9205f5d5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimeGOOGLE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimeGOOGLE.java @@ -83,6 +83,17 @@ public final class VkPresentTimeGOOGLE extends Struct { /// @return the allocated `VkPresentTimeGOOGLE` public static VkPresentTimeGOOGLE alloc(SegmentAllocator allocator, long count) { return new VkPresentTimeGOOGLE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentTimeGOOGLE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentTimeGOOGLE` + public VkPresentTimeGOOGLE asSlice(long index) { return new VkPresentTimeGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentTimeGOOGLE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentTimeGOOGLE` + public VkPresentTimeGOOGLE asSlice(long index, long count) { return new VkPresentTimeGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `presentID` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimesInfoGOOGLE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimesInfoGOOGLE.java index 3fc061e3..218368f1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimesInfoGOOGLE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkPresentTimesInfoGOOGLE.java @@ -95,6 +95,17 @@ public final class VkPresentTimesInfoGOOGLE extends Struct { /// @return the allocated `VkPresentTimesInfoGOOGLE` public static VkPresentTimesInfoGOOGLE alloc(SegmentAllocator allocator, long count) { return new VkPresentTimesInfoGOOGLE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentTimesInfoGOOGLE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentTimesInfoGOOGLE` + public VkPresentTimesInfoGOOGLE asSlice(long index) { return new VkPresentTimesInfoGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentTimesInfoGOOGLE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentTimesInfoGOOGLE` + public VkPresentTimesInfoGOOGLE asSlice(long index, long count) { return new VkPresentTimesInfoGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkRefreshCycleDurationGOOGLE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkRefreshCycleDurationGOOGLE.java index 3205c78d..b57813d2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkRefreshCycleDurationGOOGLE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/google/struct/VkRefreshCycleDurationGOOGLE.java @@ -77,6 +77,17 @@ public final class VkRefreshCycleDurationGOOGLE extends Struct { /// @return the allocated `VkRefreshCycleDurationGOOGLE` public static VkRefreshCycleDurationGOOGLE alloc(SegmentAllocator allocator, long count) { return new VkRefreshCycleDurationGOOGLE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRefreshCycleDurationGOOGLE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRefreshCycleDurationGOOGLE` + public VkRefreshCycleDurationGOOGLE asSlice(long index) { return new VkRefreshCycleDurationGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRefreshCycleDurationGOOGLE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRefreshCycleDurationGOOGLE` + public VkRefreshCycleDurationGOOGLE asSlice(long index, long count) { return new VkRefreshCycleDurationGOOGLE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `refreshDuration` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/VKHUAWEIHdrVivid.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/VKHUAWEIHdrVivid.java index 2adfcaf5..745421ca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/VKHUAWEIHdrVivid.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/VKHUAWEIHdrVivid.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKHUAWEIHdrVivid { +public final class VKHUAWEIHdrVivid { public static final int VK_HUAWEI_HDR_VIVID_SPEC_VERSION = 1; public static final String VK_HUAWEI_HDR_VIVID_EXTENSION_NAME = "VK_HUAWEI_hdr_vivid"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI = 1000590000; public static final int VK_STRUCTURE_TYPE_HDR_VIVID_DYNAMIC_METADATA_HUAWEI = 1000590001; - public VKHUAWEIHdrVivid(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKHUAWEIHdrVivid() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkHdrVividDynamicMetadataHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkHdrVividDynamicMetadataHUAWEI.java index 1636a70c..3270737d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkHdrVividDynamicMetadataHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkHdrVividDynamicMetadataHUAWEI.java @@ -95,6 +95,17 @@ public final class VkHdrVividDynamicMetadataHUAWEI extends Struct { /// @return the allocated `VkHdrVividDynamicMetadataHUAWEI` public static VkHdrVividDynamicMetadataHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkHdrVividDynamicMetadataHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkHdrVividDynamicMetadataHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkHdrVividDynamicMetadataHUAWEI` + public VkHdrVividDynamicMetadataHUAWEI asSlice(long index) { return new VkHdrVividDynamicMetadataHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkHdrVividDynamicMetadataHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkHdrVividDynamicMetadataHUAWEI` + public VkHdrVividDynamicMetadataHUAWEI asSlice(long index, long count) { return new VkHdrVividDynamicMetadataHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI.java index 5c7cad7d..0051ae36 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI extends St /// @return the allocated `VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI` public static VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI asSlice(long index) { return new VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.java index 374cb136..64f87686 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.java @@ -30,9 +30,9 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### maxWorkGroupCount -/// [VarHandle][#VH_maxWorkGroupCount] - [Getter][#maxWorkGroupCount()] - [Setter][#maxWorkGroupCount(int)] +/// [Byte offset][#OFFSET_maxWorkGroupCount] - [Memory layout][#ML_maxWorkGroupCount] - [Getter][#maxWorkGroupCount()] - [Setter][#maxWorkGroupCount(java.lang.foreign.MemorySegment)] /// ### maxWorkGroupSize -/// [VarHandle][#VH_maxWorkGroupSize] - [Getter][#maxWorkGroupSize()] - [Setter][#maxWorkGroupSize(int)] +/// [Byte offset][#OFFSET_maxWorkGroupSize] - [Memory layout][#ML_maxWorkGroupSize] - [Getter][#maxWorkGroupSize()] - [Setter][#maxWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### maxOutputClusterCount /// [VarHandle][#VH_maxOutputClusterCount] - [Getter][#maxOutputClusterCount()] - [Setter][#maxOutputClusterCount(int)] /// ### indirectBufferOffsetAlignment @@ -43,8 +43,8 @@ /// typedef struct VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI { /// VkStructureType sType; /// void * pNext; -/// uint32_t maxWorkGroupCount; -/// uint32_t maxWorkGroupSize; +/// uint32_t[3] maxWorkGroupCount; +/// uint32_t[3] maxWorkGroupSize; /// uint32_t maxOutputClusterCount; /// VkDeviceSize indirectBufferOffsetAlignment; /// } VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI; @@ -54,8 +54,8 @@ public final class VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI extends public static final StructLayout LAYOUT = LayoutBuilder.struct( ValueLayout.JAVA_INT.withName("sType"), ValueLayout.ADDRESS.withName("pNext"), - ValueLayout.JAVA_INT.withName("maxWorkGroupCount"), - ValueLayout.JAVA_INT.withName("maxWorkGroupSize"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxWorkGroupCount"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxWorkGroupSize"), ValueLayout.JAVA_INT.withName("maxOutputClusterCount"), ValueLayout.JAVA_LONG.withName("indirectBufferOffsetAlignment") ); @@ -63,10 +63,14 @@ public final class VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI extends public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The [VarHandle] of `maxWorkGroupCount` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxWorkGroupCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxWorkGroupCount")); - /// The [VarHandle] of `maxWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxWorkGroupSize")); + /// The byte offset of `maxWorkGroupCount`. + public static final long OFFSET_maxWorkGroupCount = LAYOUT.byteOffset(PathElement.groupElement("maxWorkGroupCount")); + /// The memory layout of `maxWorkGroupCount`. + public static final MemoryLayout ML_maxWorkGroupCount = LAYOUT.select(PathElement.groupElement("maxWorkGroupCount")); + /// The byte offset of `maxWorkGroupSize`. + public static final long OFFSET_maxWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxWorkGroupSize")); + /// The memory layout of `maxWorkGroupSize`. + public static final MemoryLayout ML_maxWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxWorkGroupSize")); /// The [VarHandle] of `maxOutputClusterCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxOutputClusterCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxOutputClusterCount")); /// The [VarHandle] of `indirectBufferOffsetAlignment` of type `(MemorySegment base, long baseOffset, long index)long`. @@ -107,6 +111,17 @@ public final class VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI extends /// @return the allocated `VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI` public static VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI asSlice(long index) { return new VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -172,64 +187,64 @@ public final class VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI extends /// {@return `maxWorkGroupCount` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxWorkGroupCount(MemorySegment segment, long index) { return (int) VH_maxWorkGroupCount.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxWorkGroupCount(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxWorkGroupCount, index), ML_maxWorkGroupCount); } /// {@return `maxWorkGroupCount`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(segment, 0L); } /// {@return `maxWorkGroupCount` at the given index} /// @param index the index - public @CType("uint32_t") int maxWorkGroupCountAt(long index) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxWorkGroupCountAt(long index) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(this.segment(), index); } /// {@return `maxWorkGroupCount`} - public @CType("uint32_t") int maxWorkGroupCount() { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxWorkGroupCount() { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupCount(this.segment()); } /// Sets `maxWorkGroupCount` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxWorkGroupCount.set(segment, 0L, index, value); } + public static void set_maxWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxWorkGroupCount, index), ML_maxWorkGroupCount.byteSize()); } /// Sets `maxWorkGroupCount` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxWorkGroupCount(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(segment, 0L, value); } + public static void set_maxWorkGroupCount(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(segment, 0L, value); } /// Sets `maxWorkGroupCount` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupCountAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(this.segment(), index, value); return this; } + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupCountAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(this.segment(), index, value); return this; } /// Sets `maxWorkGroupCount` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupCount(@CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(this.segment(), value); return this; } + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupCount(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupCount(this.segment(), value); return this; } /// {@return `maxWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxWorkGroupSize(MemorySegment segment, long index) { return (int) VH_maxWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxWorkGroupSize, index), ML_maxWorkGroupSize); } /// {@return `maxWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(segment, 0L); } /// {@return `maxWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int maxWorkGroupSizeAt(long index) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxWorkGroupSizeAt(long index) { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(this.segment(), index); } /// {@return `maxWorkGroupSize`} - public @CType("uint32_t") int maxWorkGroupSize() { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxWorkGroupSize() { return VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.get_maxWorkGroupSize(this.segment()); } /// Sets `maxWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxWorkGroupSize.set(segment, 0L, index, value); } + public static void set_maxWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxWorkGroupSize, index), ML_maxWorkGroupSize.byteSize()); } /// Sets `maxWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(segment, 0L, value); } + public static void set_maxWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(segment, 0L, value); } /// Sets `maxWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(this.segment(), index, value); return this; } + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupSize(@CType("uint32_t") int value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(this.segment(), value); return this; } + public VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI maxWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI.set_maxWorkGroupSize(this.segment(), value); return this; } /// {@return `maxOutputClusterCount` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.java index fbdbc5a4..96ad341f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI extends /// @return the allocated `VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI` public static VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI asSlice(long index) { return new VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI` + public VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceHdrVividFeaturesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceHdrVividFeaturesHUAWEI.java index 370d8786..889b02d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceHdrVividFeaturesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceHdrVividFeaturesHUAWEI.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceHdrVividFeaturesHUAWEI extends Struct { /// @return the allocated `VkPhysicalDeviceHdrVividFeaturesHUAWEI` public static VkPhysicalDeviceHdrVividFeaturesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceHdrVividFeaturesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceHdrVividFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceHdrVividFeaturesHUAWEI` + public VkPhysicalDeviceHdrVividFeaturesHUAWEI asSlice(long index) { return new VkPhysicalDeviceHdrVividFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceHdrVividFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceHdrVividFeaturesHUAWEI` + public VkPhysicalDeviceHdrVividFeaturesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceHdrVividFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceInvocationMaskFeaturesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceInvocationMaskFeaturesHUAWEI.java index f3fd5f74..673e3e31 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceInvocationMaskFeaturesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceInvocationMaskFeaturesHUAWEI.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceInvocationMaskFeaturesHUAWEI extends Struct { /// @return the allocated `VkPhysicalDeviceInvocationMaskFeaturesHUAWEI` public static VkPhysicalDeviceInvocationMaskFeaturesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceInvocationMaskFeaturesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceInvocationMaskFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceInvocationMaskFeaturesHUAWEI` + public VkPhysicalDeviceInvocationMaskFeaturesHUAWEI asSlice(long index) { return new VkPhysicalDeviceInvocationMaskFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceInvocationMaskFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceInvocationMaskFeaturesHUAWEI` + public VkPhysicalDeviceInvocationMaskFeaturesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceInvocationMaskFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.java index 811f40f4..92cc7d5c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSubpassShadingFeaturesHUAWEI extends Struct { /// @return the allocated `VkPhysicalDeviceSubpassShadingFeaturesHUAWEI` public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubpassShadingFeaturesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubpassShadingFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubpassShadingFeaturesHUAWEI` + public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI asSlice(long index) { return new VkPhysicalDeviceSubpassShadingFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubpassShadingFeaturesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubpassShadingFeaturesHUAWEI` + public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceSubpassShadingFeaturesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingPropertiesHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingPropertiesHUAWEI.java index c74841c1..1347354e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingPropertiesHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkPhysicalDeviceSubpassShadingPropertiesHUAWEI.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSubpassShadingPropertiesHUAWEI extends Struct /// @return the allocated `VkPhysicalDeviceSubpassShadingPropertiesHUAWEI` public static VkPhysicalDeviceSubpassShadingPropertiesHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubpassShadingPropertiesHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubpassShadingPropertiesHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubpassShadingPropertiesHUAWEI` + public VkPhysicalDeviceSubpassShadingPropertiesHUAWEI asSlice(long index) { return new VkPhysicalDeviceSubpassShadingPropertiesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubpassShadingPropertiesHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubpassShadingPropertiesHUAWEI` + public VkPhysicalDeviceSubpassShadingPropertiesHUAWEI asSlice(long index, long count) { return new VkPhysicalDeviceSubpassShadingPropertiesHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkSubpassShadingPipelineCreateInfoHUAWEI.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkSubpassShadingPipelineCreateInfoHUAWEI.java index ee621808..7580993e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkSubpassShadingPipelineCreateInfoHUAWEI.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/huawei/struct/VkSubpassShadingPipelineCreateInfoHUAWEI.java @@ -95,6 +95,17 @@ public final class VkSubpassShadingPipelineCreateInfoHUAWEI extends Struct { /// @return the allocated `VkSubpassShadingPipelineCreateInfoHUAWEI` public static VkSubpassShadingPipelineCreateInfoHUAWEI alloc(SegmentAllocator allocator, long count) { return new VkSubpassShadingPipelineCreateInfoHUAWEI(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassShadingPipelineCreateInfoHUAWEI`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassShadingPipelineCreateInfoHUAWEI` + public VkSubpassShadingPipelineCreateInfoHUAWEI asSlice(long index) { return new VkSubpassShadingPipelineCreateInfoHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassShadingPipelineCreateInfoHUAWEI`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassShadingPipelineCreateInfoHUAWEI` + public VkSubpassShadingPipelineCreateInfoHUAWEI asSlice(long index, long count) { return new VkSubpassShadingPipelineCreateInfoHUAWEI(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFilterCubic.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFilterCubic.java index b33995a7..7a728ede 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFilterCubic.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFilterCubic.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.ext.VKEXTFilterCubic.*; -public class VKIMGFilterCubic { +public final class VKIMGFilterCubic { public static final int VK_IMG_FILTER_CUBIC_SPEC_VERSION = 1; public static final String VK_IMG_FILTER_CUBIC_EXTENSION_NAME = "VK_IMG_filter_cubic"; public static final int VK_FILTER_CUBIC_IMG = VK_FILTER_CUBIC_EXT; public static final int VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT; - public VKIMGFilterCubic(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKIMGFilterCubic() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFormatPvrtc.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFormatPvrtc.java index 87d88d10..148859df 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFormatPvrtc.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGFormatPvrtc.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKIMGFormatPvrtc { +public final class VKIMGFormatPvrtc { public static final int VK_IMG_FORMAT_PVRTC_SPEC_VERSION = 1; public static final String VK_IMG_FORMAT_PVRTC_EXTENSION_NAME = "VK_IMG_format_pvrtc"; public static final int VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000; @@ -34,7 +34,6 @@ public class VKIMGFormatPvrtc { public static final int VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006; public static final int VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007; - public VKIMGFormatPvrtc(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKIMGFormatPvrtc() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGRelaxedLineRasterization.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGRelaxedLineRasterization.java index 883430a5..957d0498 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGRelaxedLineRasterization.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/VKIMGRelaxedLineRasterization.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKIMGRelaxedLineRasterization { +public final class VKIMGRelaxedLineRasterization { public static final int VK_IMG_RELAXED_LINE_RASTERIZATION_SPEC_VERSION = 1; public static final String VK_IMG_RELAXED_LINE_RASTERIZATION_EXTENSION_NAME = "VK_IMG_relaxed_line_rasterization"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RELAXED_LINE_RASTERIZATION_FEATURES_IMG = 1000110000; - public VKIMGRelaxedLineRasterization(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKIMGRelaxedLineRasterization() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/struct/VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/struct/VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG.java index c15cd16c..ff766c64 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/struct/VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/img/struct/VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG extends S /// @return the allocated `VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG` public static VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG` + public VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG asSlice(long index) { return new VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG` + public VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG asSlice(long index, long count) { return new VkPhysicalDeviceRelaxedLineRasterizationFeaturesIMG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/VKINTELShaderIntegerFunctions2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/VKINTELShaderIntegerFunctions2.java index e67ee861..14379266 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/VKINTELShaderIntegerFunctions2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/VKINTELShaderIntegerFunctions2.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKINTELShaderIntegerFunctions2 { +public final class VKINTELShaderIntegerFunctions2 { public static final int VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_SPEC_VERSION = 1; public static final String VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_EXTENSION_NAME = "VK_INTEL_shader_integer_functions2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL = 1000209000; - public VKINTELShaderIntegerFunctions2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKINTELShaderIntegerFunctions2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkInitializePerformanceApiInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkInitializePerformanceApiInfoINTEL.java index b8ed1ebd..9ad639df 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkInitializePerformanceApiInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkInitializePerformanceApiInfoINTEL.java @@ -89,6 +89,17 @@ public final class VkInitializePerformanceApiInfoINTEL extends Struct { /// @return the allocated `VkInitializePerformanceApiInfoINTEL` public static VkInitializePerformanceApiInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkInitializePerformanceApiInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkInitializePerformanceApiInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkInitializePerformanceApiInfoINTEL` + public VkInitializePerformanceApiInfoINTEL asSlice(long index) { return new VkInitializePerformanceApiInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkInitializePerformanceApiInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkInitializePerformanceApiInfoINTEL` + public VkInitializePerformanceApiInfoINTEL asSlice(long index, long count) { return new VkInitializePerformanceApiInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceConfigurationAcquireInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceConfigurationAcquireInfoINTEL.java index 296ae06a..00c24028 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceConfigurationAcquireInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceConfigurationAcquireInfoINTEL.java @@ -89,6 +89,17 @@ public final class VkPerformanceConfigurationAcquireInfoINTEL extends Struct { /// @return the allocated `VkPerformanceConfigurationAcquireInfoINTEL` public static VkPerformanceConfigurationAcquireInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceConfigurationAcquireInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceConfigurationAcquireInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceConfigurationAcquireInfoINTEL` + public VkPerformanceConfigurationAcquireInfoINTEL asSlice(long index) { return new VkPerformanceConfigurationAcquireInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceConfigurationAcquireInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceConfigurationAcquireInfoINTEL` + public VkPerformanceConfigurationAcquireInfoINTEL asSlice(long index, long count) { return new VkPerformanceConfigurationAcquireInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceMarkerInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceMarkerInfoINTEL.java index 377f7426..3838bc4c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceMarkerInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceMarkerInfoINTEL.java @@ -89,6 +89,17 @@ public final class VkPerformanceMarkerInfoINTEL extends Struct { /// @return the allocated `VkPerformanceMarkerInfoINTEL` public static VkPerformanceMarkerInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceMarkerInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceMarkerInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceMarkerInfoINTEL` + public VkPerformanceMarkerInfoINTEL asSlice(long index) { return new VkPerformanceMarkerInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceMarkerInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceMarkerInfoINTEL` + public VkPerformanceMarkerInfoINTEL asSlice(long index, long count) { return new VkPerformanceMarkerInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceOverrideInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceOverrideInfoINTEL.java index 91cbd4ac..feae60cb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceOverrideInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceOverrideInfoINTEL.java @@ -101,6 +101,17 @@ public final class VkPerformanceOverrideInfoINTEL extends Struct { /// @return the allocated `VkPerformanceOverrideInfoINTEL` public static VkPerformanceOverrideInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceOverrideInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceOverrideInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceOverrideInfoINTEL` + public VkPerformanceOverrideInfoINTEL asSlice(long index) { return new VkPerformanceOverrideInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceOverrideInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceOverrideInfoINTEL` + public VkPerformanceOverrideInfoINTEL asSlice(long index, long count) { return new VkPerformanceOverrideInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceStreamMarkerInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceStreamMarkerInfoINTEL.java index aa5821c9..beb203fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceStreamMarkerInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceStreamMarkerInfoINTEL.java @@ -89,6 +89,17 @@ public final class VkPerformanceStreamMarkerInfoINTEL extends Struct { /// @return the allocated `VkPerformanceStreamMarkerInfoINTEL` public static VkPerformanceStreamMarkerInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceStreamMarkerInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceStreamMarkerInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceStreamMarkerInfoINTEL` + public VkPerformanceStreamMarkerInfoINTEL asSlice(long index) { return new VkPerformanceStreamMarkerInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceStreamMarkerInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceStreamMarkerInfoINTEL` + public VkPerformanceStreamMarkerInfoINTEL asSlice(long index, long count) { return new VkPerformanceStreamMarkerInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceValueINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceValueINTEL.java index 16cf1e96..b5579558 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceValueINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPerformanceValueINTEL.java @@ -85,6 +85,17 @@ public final class VkPerformanceValueINTEL extends Struct { /// @return the allocated `VkPerformanceValueINTEL` public static VkPerformanceValueINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceValueINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceValueINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceValueINTEL` + public VkPerformanceValueINTEL asSlice(long index) { return new VkPerformanceValueINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceValueINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceValueINTEL` + public VkPerformanceValueINTEL asSlice(long index, long count) { return new VkPerformanceValueINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `type` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL.java index bae6773e..14ebf8ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL extends /// @return the allocated `VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL` public static VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL` + public VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL asSlice(long index) { return new VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL` + public VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL asSlice(long index, long count) { return new VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkQueryPoolPerformanceQueryCreateInfoINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkQueryPoolPerformanceQueryCreateInfoINTEL.java index 2fb3cb4d..89c3d9c1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkQueryPoolPerformanceQueryCreateInfoINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/struct/VkQueryPoolPerformanceQueryCreateInfoINTEL.java @@ -89,6 +89,17 @@ public final class VkQueryPoolPerformanceQueryCreateInfoINTEL extends Struct { /// @return the allocated `VkQueryPoolPerformanceQueryCreateInfoINTEL` public static VkQueryPoolPerformanceQueryCreateInfoINTEL alloc(SegmentAllocator allocator, long count) { return new VkQueryPoolPerformanceQueryCreateInfoINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueryPoolPerformanceQueryCreateInfoINTEL`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueryPoolPerformanceQueryCreateInfoINTEL` + public VkQueryPoolPerformanceQueryCreateInfoINTEL asSlice(long index) { return new VkQueryPoolPerformanceQueryCreateInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueryPoolPerformanceQueryCreateInfoINTEL`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueryPoolPerformanceQueryCreateInfoINTEL` + public VkQueryPoolPerformanceQueryCreateInfoINTEL asSlice(long index, long count) { return new VkQueryPoolPerformanceQueryCreateInfoINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/union/VkPerformanceValueDataINTEL.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/union/VkPerformanceValueDataINTEL.java index 5ffc0952..68a16930 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/union/VkPerformanceValueDataINTEL.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/intel/union/VkPerformanceValueDataINTEL.java @@ -101,12 +101,23 @@ public final class VkPerformanceValueDataINTEL extends Union { /// @return the allocated `VkPerformanceValueDataINTEL` public static VkPerformanceValueDataINTEL alloc(SegmentAllocator allocator, long count) { return new VkPerformanceValueDataINTEL(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceValueDataINTEL`. + /// @param index the index of the union buffer + /// @return the slice of `VkPerformanceValueDataINTEL` + public VkPerformanceValueDataINTEL asSlice(long index) { return new VkPerformanceValueDataINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceValueDataINTEL`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkPerformanceValueDataINTEL` + public VkPerformanceValueDataINTEL asSlice(long index, long count) { return new VkPerformanceValueDataINTEL(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `value32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("uint32_t") int get_value32(MemorySegment segment, long index) { return (int) VH_value32.get(segment, 0L, index); } /// {@return `value32`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("uint32_t") int get_value32(MemorySegment segment) { return VkPerformanceValueDataINTEL.get_value32(segment, 0L); } /// {@return `value32` at the given index} /// @param index the index @@ -114,12 +125,12 @@ public final class VkPerformanceValueDataINTEL extends Union { /// {@return `value32`} public @CType("uint32_t") int value32() { return VkPerformanceValueDataINTEL.get_value32(this.segment()); } /// Sets `value32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_value32(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_value32.set(segment, 0L, index, value); } /// Sets `value32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_value32(MemorySegment segment, @CType("uint32_t") int value) { VkPerformanceValueDataINTEL.set_value32(segment, 0L, value); } /// Sets `value32` with the given value at the given index. @@ -133,11 +144,11 @@ public final class VkPerformanceValueDataINTEL extends Union { public VkPerformanceValueDataINTEL value32(@CType("uint32_t") int value) { VkPerformanceValueDataINTEL.set_value32(this.segment(), value); return this; } /// {@return `value64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("uint64_t") long get_value64(MemorySegment segment, long index) { return (long) VH_value64.get(segment, 0L, index); } /// {@return `value64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("uint64_t") long get_value64(MemorySegment segment) { return VkPerformanceValueDataINTEL.get_value64(segment, 0L); } /// {@return `value64` at the given index} /// @param index the index @@ -145,12 +156,12 @@ public final class VkPerformanceValueDataINTEL extends Union { /// {@return `value64`} public @CType("uint64_t") long value64() { return VkPerformanceValueDataINTEL.get_value64(this.segment()); } /// Sets `value64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_value64(MemorySegment segment, long index, @CType("uint64_t") long value) { VH_value64.set(segment, 0L, index, value); } /// Sets `value64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_value64(MemorySegment segment, @CType("uint64_t") long value) { VkPerformanceValueDataINTEL.set_value64(segment, 0L, value); } /// Sets `value64` with the given value at the given index. @@ -164,11 +175,11 @@ public final class VkPerformanceValueDataINTEL extends Union { public VkPerformanceValueDataINTEL value64(@CType("uint64_t") long value) { VkPerformanceValueDataINTEL.set_value64(this.segment(), value); return this; } /// {@return `valueFloat` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("float") float get_valueFloat(MemorySegment segment, long index) { return (float) VH_valueFloat.get(segment, 0L, index); } /// {@return `valueFloat`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("float") float get_valueFloat(MemorySegment segment) { return VkPerformanceValueDataINTEL.get_valueFloat(segment, 0L); } /// {@return `valueFloat` at the given index} /// @param index the index @@ -176,12 +187,12 @@ public final class VkPerformanceValueDataINTEL extends Union { /// {@return `valueFloat`} public @CType("float") float valueFloat() { return VkPerformanceValueDataINTEL.get_valueFloat(this.segment()); } /// Sets `valueFloat` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_valueFloat(MemorySegment segment, long index, @CType("float") float value) { VH_valueFloat.set(segment, 0L, index, value); } /// Sets `valueFloat` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_valueFloat(MemorySegment segment, @CType("float") float value) { VkPerformanceValueDataINTEL.set_valueFloat(segment, 0L, value); } /// Sets `valueFloat` with the given value at the given index. @@ -195,11 +206,11 @@ public final class VkPerformanceValueDataINTEL extends Union { public VkPerformanceValueDataINTEL valueFloat(@CType("float") float value) { VkPerformanceValueDataINTEL.set_valueFloat(this.segment(), value); return this; } /// {@return `valueBool` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkBool32") int get_valueBool(MemorySegment segment, long index) { return (int) VH_valueBool.get(segment, 0L, index); } /// {@return `valueBool`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkBool32") int get_valueBool(MemorySegment segment) { return VkPerformanceValueDataINTEL.get_valueBool(segment, 0L); } /// {@return `valueBool` at the given index} /// @param index the index @@ -207,12 +218,12 @@ public final class VkPerformanceValueDataINTEL extends Union { /// {@return `valueBool`} public @CType("VkBool32") int valueBool() { return VkPerformanceValueDataINTEL.get_valueBool(this.segment()); } /// Sets `valueBool` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_valueBool(MemorySegment segment, long index, @CType("VkBool32") int value) { VH_valueBool.set(segment, 0L, index, value); } /// Sets `valueBool` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_valueBool(MemorySegment segment, @CType("VkBool32") int value) { VkPerformanceValueDataINTEL.set_valueBool(segment, 0L, value); } /// Sets `valueBool` with the given value at the given index. @@ -226,11 +237,11 @@ public final class VkPerformanceValueDataINTEL extends Union { public VkPerformanceValueDataINTEL valueBool(@CType("VkBool32") int value) { VkPerformanceValueDataINTEL.set_valueBool(this.segment(), value); return this; } /// {@return `valueString` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const char *") java.lang.foreign.MemorySegment get_valueString(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_valueString.get(segment, 0L, index); } /// {@return `valueString`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const char *") java.lang.foreign.MemorySegment get_valueString(MemorySegment segment) { return VkPerformanceValueDataINTEL.get_valueString(segment, 0L); } /// {@return `valueString` at the given index} /// @param index the index @@ -238,12 +249,12 @@ public final class VkPerformanceValueDataINTEL extends Union { /// {@return `valueString`} public @CType("const char *") java.lang.foreign.MemorySegment valueString() { return VkPerformanceValueDataINTEL.get_valueString(this.segment()); } /// Sets `valueString` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_valueString(MemorySegment segment, long index, @CType("const char *") java.lang.foreign.MemorySegment value) { VH_valueString.set(segment, 0L, index, value); } /// Sets `valueString` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_valueString(MemorySegment segment, @CType("const char *") java.lang.foreign.MemorySegment value) { VkPerformanceValueDataINTEL.set_valueString(segment, 0L, value); } /// Sets `valueString` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR16bitStorage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR16bitStorage.java index 3e507b68..9a46dca1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR16bitStorage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR16bitStorage.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHR16bitStorage { +public final class VKKHR16bitStorage { public static final int VK_KHR_16BIT_STORAGE_SPEC_VERSION = 1; public static final String VK_KHR_16BIT_STORAGE_EXTENSION_NAME = "VK_KHR_16bit_storage"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES; - public VKKHR16bitStorage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHR16bitStorage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR8bitStorage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR8bitStorage.java index 4baa5290..fa23cc57 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR8bitStorage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHR8bitStorage.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHR8bitStorage { +public final class VKKHR8bitStorage { public static final int VK_KHR_8BIT_STORAGE_SPEC_VERSION = 1; public static final String VK_KHR_8BIT_STORAGE_EXTENSION_NAME = "VK_KHR_8bit_storage"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES; - public VKKHR8bitStorage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHR8bitStorage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRComputeShaderDerivatives.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRComputeShaderDerivatives.java index b8c92a4d..9c5100b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRComputeShaderDerivatives.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRComputeShaderDerivatives.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRComputeShaderDerivatives { +public final class VKKHRComputeShaderDerivatives { public static final int VK_KHR_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION = 1; public static final String VK_KHR_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME = "VK_KHR_compute_shader_derivatives"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_KHR = 1000511000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_PROPERTIES_KHR = 1000511000; - public VKKHRComputeShaderDerivatives(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRComputeShaderDerivatives() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDedicatedAllocation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDedicatedAllocation.java index c1a2c971..9d5d9b52 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDedicatedAllocation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDedicatedAllocation.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHRDedicatedAllocation { +public final class VKKHRDedicatedAllocation { public static final int VK_KHR_DEDICATED_ALLOCATION_SPEC_VERSION = 3; public static final String VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME = "VK_KHR_dedicated_allocation"; public static final int VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS; public static final int VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO; - public VKKHRDedicatedAllocation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRDedicatedAllocation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDepthStencilResolve.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDepthStencilResolve.java index 080c57f2..44fc845f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDepthStencilResolve.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDepthStencilResolve.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRDepthStencilResolve { +public final class VKKHRDepthStencilResolve { public static final int VK_KHR_DEPTH_STENCIL_RESOLVE_SPEC_VERSION = 1; public static final String VK_KHR_DEPTH_STENCIL_RESOLVE_EXTENSION_NAME = "VK_KHR_depth_stencil_resolve"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES; @@ -34,7 +34,6 @@ public class VKKHRDepthStencilResolve { public static final int VK_RESOLVE_MODE_MIN_BIT_KHR = VK_RESOLVE_MODE_MIN_BIT; public static final int VK_RESOLVE_MODE_MAX_BIT_KHR = VK_RESOLVE_MODE_MAX_BIT; - public VKKHRDepthStencilResolve(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRDepthStencilResolve() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDriverProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDriverProperties.java index 07e5d84a..a9355ed4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDriverProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRDriverProperties.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRDriverProperties { +public final class VKKHRDriverProperties { public static final int VK_KHR_DRIVER_PROPERTIES_SPEC_VERSION = 1; public static final String VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME = "VK_KHR_driver_properties"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES; @@ -42,7 +42,6 @@ public class VKKHRDriverProperties { public static final int VK_DRIVER_ID_GGP_PROPRIETARY_KHR = VK_DRIVER_ID_GGP_PROPRIETARY; public static final int VK_DRIVER_ID_BROADCOM_PROPRIETARY_KHR = VK_DRIVER_ID_BROADCOM_PROPRIETARY; - public VKKHRDriverProperties(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRDriverProperties() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalFence.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalFence.java index 333fe52a..32ffe843 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalFence.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalFence.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHRExternalFence { +public final class VKKHRExternalFence { public static final int VK_KHR_EXTERNAL_FENCE_SPEC_VERSION = 1; public static final String VK_KHR_EXTERNAL_FENCE_EXTENSION_NAME = "VK_KHR_external_fence"; public static final int VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO; public static final int VK_FENCE_IMPORT_TEMPORARY_BIT_KHR = VK_FENCE_IMPORT_TEMPORARY_BIT; - public VKKHRExternalFence(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRExternalFence() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalMemory.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalMemory.java index 51dc8982..931a6253 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalMemory.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalMemory.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHRExternalMemory { +public final class VKKHRExternalMemory { public static final int VK_KHR_EXTERNAL_MEMORY_SPEC_VERSION = 1; public static final String VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME = "VK_KHR_external_memory"; public static final int VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO; @@ -32,7 +32,6 @@ public class VKKHRExternalMemory { public static final int VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR = VK_ERROR_INVALID_EXTERNAL_HANDLE; public static final int VK_QUEUE_FAMILY_EXTERNAL_KHR = VK_QUEUE_FAMILY_EXTERNAL; - public VKKHRExternalMemory(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRExternalMemory() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalSemaphore.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalSemaphore.java index 37b8591a..98cc6864 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalSemaphore.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRExternalSemaphore.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHRExternalSemaphore { +public final class VKKHRExternalSemaphore { public static final int VK_KHR_EXTERNAL_SEMAPHORE_SPEC_VERSION = 1; public static final String VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME = "VK_KHR_external_semaphore"; public static final int VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO; public static final int VK_SEMAPHORE_IMPORT_TEMPORARY_BIT_KHR = VK_SEMAPHORE_IMPORT_TEMPORARY_BIT; - public VKKHRExternalSemaphore(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRExternalSemaphore() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFormatFeatureFlags2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFormatFeatureFlags2.java index ac517b8e..273ba869 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFormatFeatureFlags2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFormatFeatureFlags2.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKKHRFormatFeatureFlags2 { +public final class VKKHRFormatFeatureFlags2 { public static final int VK_KHR_FORMAT_FEATURE_FLAGS_2_SPEC_VERSION = 2; public static final String VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME = "VK_KHR_format_feature_flags2"; public static final int VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3; @@ -55,7 +55,6 @@ public class VKKHRFormatFeatureFlags2 { public static final long VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT_KHR = VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT; public static final long VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT = VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT; - public VKKHRFormatFeatureFlags2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRFormatFeatureFlags2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFragmentShaderBarycentric.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFragmentShaderBarycentric.java index 26c62ca7..9e4245eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFragmentShaderBarycentric.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRFragmentShaderBarycentric.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRFragmentShaderBarycentric { +public final class VKKHRFragmentShaderBarycentric { public static final int VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION = 1; public static final String VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME = "VK_KHR_fragment_shader_barycentric"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR = 1000322000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR = 1000322000; - public VKKHRFragmentShaderBarycentric(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRFragmentShaderBarycentric() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRGlobalPriority.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRGlobalPriority.java index cae6d714..06ee8d7a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRGlobalPriority.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRGlobalPriority.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRGlobalPriority { +public final class VKKHRGlobalPriority { public static final int VK_KHR_GLOBAL_PRIORITY_SPEC_VERSION = 1; public static final String VK_KHR_GLOBAL_PRIORITY_EXTENSION_NAME = "VK_KHR_global_priority"; public static final int VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO; @@ -36,7 +36,6 @@ public class VKKHRGlobalPriority { public static final int VK_QUEUE_GLOBAL_PRIORITY_HIGH_KHR = VK_QUEUE_GLOBAL_PRIORITY_HIGH; public static final int VK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHR = VK_QUEUE_GLOBAL_PRIORITY_REALTIME; - public VKKHRGlobalPriority(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRGlobalPriority() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImageFormatList.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImageFormatList.java index dc36b131..bd5dfabd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImageFormatList.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImageFormatList.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRImageFormatList { +public final class VKKHRImageFormatList { public static final int VK_KHR_IMAGE_FORMAT_LIST_SPEC_VERSION = 1; public static final String VK_KHR_IMAGE_FORMAT_LIST_EXTENSION_NAME = "VK_KHR_image_format_list"; public static final int VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO; - public VKKHRImageFormatList(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRImageFormatList() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImagelessFramebuffer.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImagelessFramebuffer.java index 03cf2031..b3335786 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImagelessFramebuffer.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRImagelessFramebuffer.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRImagelessFramebuffer { +public final class VKKHRImagelessFramebuffer { public static final int VK_KHR_IMAGELESS_FRAMEBUFFER_SPEC_VERSION = 1; public static final String VK_KHR_IMAGELESS_FRAMEBUFFER_EXTENSION_NAME = "VK_KHR_imageless_framebuffer"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES; @@ -32,7 +32,6 @@ public class VKKHRImagelessFramebuffer { public static final int VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO_KHR = VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO; public static final int VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR = VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT; - public VKKHRImagelessFramebuffer(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRImagelessFramebuffer() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIncrementalPresent.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIncrementalPresent.java index 44bf1203..37080a54 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIncrementalPresent.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIncrementalPresent.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRIncrementalPresent { +public final class VKKHRIncrementalPresent { public static final int VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION = 2; public static final String VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME = "VK_KHR_incremental_present"; public static final int VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR = 1000084000; - public VKKHRIncrementalPresent(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRIncrementalPresent() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIndexTypeUint8.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIndexTypeUint8.java index 7a775cf6..e510a9a1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIndexTypeUint8.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRIndexTypeUint8.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRIndexTypeUint8 { +public final class VKKHRIndexTypeUint8 { public static final int VK_KHR_INDEX_TYPE_UINT8_SPEC_VERSION = 1; public static final String VK_KHR_INDEX_TYPE_UINT8_EXTENSION_NAME = "VK_KHR_index_type_uint8"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES; public static final int VK_INDEX_TYPE_UINT8_KHR = VK_INDEX_TYPE_UINT8; - public VKKHRIndexTypeUint8(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRIndexTypeUint8() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRLoadStoreOpNone.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRLoadStoreOpNone.java index 3ab1cf34..f30f7b23 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRLoadStoreOpNone.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRLoadStoreOpNone.java @@ -24,13 +24,12 @@ import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; import static overrungl.vulkan.VK14.*; -public class VKKHRLoadStoreOpNone { +public final class VKKHRLoadStoreOpNone { public static final int VK_KHR_LOAD_STORE_OP_NONE_SPEC_VERSION = 1; public static final String VK_KHR_LOAD_STORE_OP_NONE_EXTENSION_NAME = "VK_KHR_load_store_op_none"; public static final int VK_ATTACHMENT_LOAD_OP_NONE_KHR = VK_ATTACHMENT_LOAD_OP_NONE; public static final int VK_ATTACHMENT_STORE_OP_NONE_KHR = VK_ATTACHMENT_STORE_OP_NONE; - public VKKHRLoadStoreOpNone(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRLoadStoreOpNone() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance2.java index 76983f3a..981971e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance2.java @@ -24,7 +24,7 @@ import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; import static overrungl.vulkan.khr.VKKHRMaintenance2.*; -public class VKKHRMaintenance2 { +public final class VKKHRMaintenance2 { public static final int VK_KHR_MAINTENANCE_2_SPEC_VERSION = 1; public static final String VK_KHR_MAINTENANCE_2_EXTENSION_NAME = "VK_KHR_maintenance2"; public static final int VK_KHR_MAINTENANCE2_SPEC_VERSION = VK_KHR_MAINTENANCE_2_SPEC_VERSION; @@ -42,7 +42,6 @@ public class VKKHRMaintenance2 { public static final int VK_TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT_KHR = VK_TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT; public static final int VK_TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT_KHR = VK_TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT; - public VKKHRMaintenance2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRMaintenance2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance7.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance7.java index 6a503efe..d4e718e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance7.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMaintenance7.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRMaintenance7 { +public final class VKKHRMaintenance7 { public static final int VK_PHYSICAL_DEVICE_LAYERED_API_VULKAN_KHR = 0; public static final int VK_PHYSICAL_DEVICE_LAYERED_API_D3D12_KHR = 1; public static final int VK_PHYSICAL_DEVICE_LAYERED_API_METAL_KHR = 2; @@ -38,7 +38,6 @@ public class VKKHRMaintenance7 { public static final int VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_KHR = 1000562000; public static final int VK_RENDERING_CONTENTS_INLINE_BIT_KHR = 0x00000010; - public VKKHRMaintenance7(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRMaintenance7() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMultiview.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMultiview.java index 6dccbc42..80ede4bc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMultiview.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRMultiview.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; -public class VKKHRMultiview { +public final class VKKHRMultiview { public static final int VK_KHR_MULTIVIEW_SPEC_VERSION = 1; public static final String VK_KHR_MULTIVIEW_EXTENSION_NAME = "VK_KHR_multiview"; public static final int VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO; @@ -31,7 +31,6 @@ public class VKKHRMultiview { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES; public static final int VK_DEPENDENCY_VIEW_LOCAL_BIT_KHR = VK_DEPENDENCY_VIEW_LOCAL_BIT; - public VKKHRMultiview(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRMultiview() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPipelineLibrary.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPipelineLibrary.java index ca94b8e0..bdbfb685 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPipelineLibrary.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPipelineLibrary.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRPipelineLibrary { +public final class VKKHRPipelineLibrary { public static final int VK_KHR_PIPELINE_LIBRARY_SPEC_VERSION = 1; public static final String VK_KHR_PIPELINE_LIBRARY_EXTENSION_NAME = "VK_KHR_pipeline_library"; public static final int VK_PIPELINE_CREATE_LIBRARY_BIT_KHR = 0x00000800; public static final int VK_STRUCTURE_TYPE_PIPELINE_LIBRARY_CREATE_INFO_KHR = 1000290000; - public VKKHRPipelineLibrary(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRPipelineLibrary() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilityEnumeration.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilityEnumeration.java index ee07aadd..d1e0474a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilityEnumeration.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilityEnumeration.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRPortabilityEnumeration { +public final class VKKHRPortabilityEnumeration { public static final int VK_KHR_PORTABILITY_ENUMERATION_SPEC_VERSION = 1; public static final String VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME = "VK_KHR_portability_enumeration"; public static final int VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR = 0x00000001; - public VKKHRPortabilityEnumeration(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKKHRPortabilityEnumeration() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilitySubset.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilitySubset.java index e313db8b..caab1cf0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilitySubset.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPortabilitySubset.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRPortabilitySubset { +public final class VKKHRPortabilitySubset { public static final int VK_KHR_PORTABILITY_SUBSET_SPEC_VERSION = 1; public static final String VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME = "VK_KHR_portability_subset"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR = 1000163000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR = 1000163001; - public VKKHRPortabilitySubset(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRPortabilitySubset() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPresentId.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPresentId.java index ccf45bed..fb6c1554 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPresentId.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRPresentId.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRPresentId { +public final class VKKHRPresentId { public static final int VK_KHR_PRESENT_ID_SPEC_VERSION = 1; public static final String VK_KHR_PRESENT_ID_EXTENSION_NAME = "VK_KHR_present_id"; public static final int VK_STRUCTURE_TYPE_PRESENT_ID_KHR = 1000294000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR = 1000294001; - public VKKHRPresentId(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRPresentId() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayQuery.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayQuery.java index 949f264e..a93ed616 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayQuery.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayQuery.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRRayQuery { +public final class VKKHRRayQuery { public static final int VK_KHR_RAY_QUERY_SPEC_VERSION = 1; public static final String VK_KHR_RAY_QUERY_EXTENSION_NAME = "VK_KHR_ray_query"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR = 1000348013; - public VKKHRRayQuery(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRRayQuery() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayTracingPositionFetch.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayTracingPositionFetch.java index 52f4f0ca..f614327f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayTracingPositionFetch.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRayTracingPositionFetch.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRRayTracingPositionFetch { +public final class VKKHRRayTracingPositionFetch { public static final int VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION = 1; public static final String VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME = "VK_KHR_ray_tracing_position_fetch"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_POSITION_FETCH_FEATURES_KHR = 1000481000; public static final int VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR = 0x00000800; - public VKKHRRayTracingPositionFetch(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRRayTracingPositionFetch() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRelaxedBlockLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRelaxedBlockLayout.java index a502f218..2b231afb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRelaxedBlockLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRRelaxedBlockLayout.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRRelaxedBlockLayout { +public final class VKKHRRelaxedBlockLayout { public static final int VK_KHR_RELAXED_BLOCK_LAYOUT_SPEC_VERSION = 1; public static final String VK_KHR_RELAXED_BLOCK_LAYOUT_EXTENSION_NAME = "VK_KHR_relaxed_block_layout"; - public VKKHRRelaxedBlockLayout(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRRelaxedBlockLayout() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSamplerMirrorClampToEdge.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSamplerMirrorClampToEdge.java index 000281f6..f984ff5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSamplerMirrorClampToEdge.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSamplerMirrorClampToEdge.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRSamplerMirrorClampToEdge { +public final class VKKHRSamplerMirrorClampToEdge { public static final int VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION = 3; public static final String VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME = "VK_KHR_sampler_mirror_clamp_to_edge"; public static final int VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4; public static final int VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE_KHR = VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE; - public VKKHRSamplerMirrorClampToEdge(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRSamplerMirrorClampToEdge() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSeparateDepthStencilLayouts.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSeparateDepthStencilLayouts.java index ab1c8737..a1a64084 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSeparateDepthStencilLayouts.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSeparateDepthStencilLayouts.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRSeparateDepthStencilLayouts { +public final class VKKHRSeparateDepthStencilLayouts { public static final int VK_KHR_SEPARATE_DEPTH_STENCIL_LAYOUTS_SPEC_VERSION = 1; public static final String VK_KHR_SEPARATE_DEPTH_STENCIL_LAYOUTS_EXTENSION_NAME = "VK_KHR_separate_depth_stencil_layouts"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES; @@ -34,7 +34,6 @@ public class VKKHRSeparateDepthStencilLayouts { public static final int VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR = VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL; public static final int VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL_KHR = VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL; - public VKKHRSeparateDepthStencilLayouts(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRSeparateDepthStencilLayouts() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderAtomicInt64.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderAtomicInt64.java index eb374b99..3bb4640f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderAtomicInt64.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderAtomicInt64.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRShaderAtomicInt64 { +public final class VKKHRShaderAtomicInt64 { public static final int VK_KHR_SHADER_ATOMIC_INT64_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_ATOMIC_INT64_EXTENSION_NAME = "VK_KHR_shader_atomic_int64"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES; - public VKKHRShaderAtomicInt64(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderAtomicInt64() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderClock.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderClock.java index 8d587b23..8e4e53df 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderClock.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderClock.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderClock { +public final class VKKHRShaderClock { public static final int VK_KHR_SHADER_CLOCK_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_CLOCK_EXTENSION_NAME = "VK_KHR_shader_clock"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR = 1000181000; - public VKKHRShaderClock(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderClock() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderDrawParameters.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderDrawParameters.java index 1b1d62ad..01175f36 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderDrawParameters.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderDrawParameters.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderDrawParameters { +public final class VKKHRShaderDrawParameters { public static final int VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME = "VK_KHR_shader_draw_parameters"; - public VKKHRShaderDrawParameters(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderDrawParameters() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderExpectAssume.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderExpectAssume.java index 04689ed3..910421d2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderExpectAssume.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderExpectAssume.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRShaderExpectAssume { +public final class VKKHRShaderExpectAssume { public static final int VK_KHR_SHADER_EXPECT_ASSUME_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_EXPECT_ASSUME_EXTENSION_NAME = "VK_KHR_shader_expect_assume"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES; - public VKKHRShaderExpectAssume(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderExpectAssume() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloat16Int8.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloat16Int8.java index a9db5e0f..3a9c0bb3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloat16Int8.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloat16Int8.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRShaderFloat16Int8 { +public final class VKKHRShaderFloat16Int8 { public static final int VK_KHR_SHADER_FLOAT16_INT8_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME = "VK_KHR_shader_float16_int8"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES; - public VKKHRShaderFloat16Int8(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderFloat16Int8() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls.java index 4813f25c..9fac10d3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRShaderFloatControls { +public final class VKKHRShaderFloatControls { public static final int VK_KHR_SHADER_FLOAT_CONTROLS_SPEC_VERSION = 4; public static final String VK_KHR_SHADER_FLOAT_CONTROLS_EXTENSION_NAME = "VK_KHR_shader_float_controls"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES; @@ -31,7 +31,6 @@ public class VKKHRShaderFloatControls { public static final int VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL_KHR = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL; public static final int VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE_KHR = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE; - public VKKHRShaderFloatControls(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderFloatControls() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls2.java index 1c43698b..96ebb5d1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderFloatControls2.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRShaderFloatControls2 { +public final class VKKHRShaderFloatControls2 { public static final int VK_KHR_SHADER_FLOAT_CONTROLS_2_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_FLOAT_CONTROLS_2_EXTENSION_NAME = "VK_KHR_shader_float_controls2"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES; - public VKKHRShaderFloatControls2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderFloatControls2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderIntegerDotProduct.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderIntegerDotProduct.java index a51cf310..902f87e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderIntegerDotProduct.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderIntegerDotProduct.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKKHRShaderIntegerDotProduct { +public final class VKKHRShaderIntegerDotProduct { public static final int VK_KHR_SHADER_INTEGER_DOT_PRODUCT_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_INTEGER_DOT_PRODUCT_EXTENSION_NAME = "VK_KHR_shader_integer_dot_product"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES; - public VKKHRShaderIntegerDotProduct(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderIntegerDotProduct() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderMaximalReconvergence.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderMaximalReconvergence.java index f90ba6eb..babbaf40 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderMaximalReconvergence.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderMaximalReconvergence.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderMaximalReconvergence { +public final class VKKHRShaderMaximalReconvergence { public static final int VK_KHR_SHADER_MAXIMAL_RECONVERGENCE_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_MAXIMAL_RECONVERGENCE_EXTENSION_NAME = "VK_KHR_shader_maximal_reconvergence"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_MAXIMAL_RECONVERGENCE_FEATURES_KHR = 1000434000; - public VKKHRShaderMaximalReconvergence(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderMaximalReconvergence() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderNonSemanticInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderNonSemanticInfo.java index 570f69d0..dd98cadf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderNonSemanticInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderNonSemanticInfo.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderNonSemanticInfo { +public final class VKKHRShaderNonSemanticInfo { public static final int VK_KHR_SHADER_NON_SEMANTIC_INFO_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_NON_SEMANTIC_INFO_EXTENSION_NAME = "VK_KHR_shader_non_semantic_info"; - public VKKHRShaderNonSemanticInfo(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderNonSemanticInfo() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderQuadControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderQuadControl.java index 9df3ac7c..e552753c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderQuadControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderQuadControl.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderQuadControl { +public final class VKKHRShaderQuadControl { public static final int VK_KHR_SHADER_QUAD_CONTROL_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_QUAD_CONTROL_EXTENSION_NAME = "VK_KHR_shader_quad_control"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_QUAD_CONTROL_FEATURES_KHR = 1000235000; - public VKKHRShaderQuadControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderQuadControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderRelaxedExtendedInstruction.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderRelaxedExtendedInstruction.java index ffc46662..af5aae4a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderRelaxedExtendedInstruction.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderRelaxedExtendedInstruction.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderRelaxedExtendedInstruction { +public final class VKKHRShaderRelaxedExtendedInstruction { public static final int VK_KHR_SHADER_RELAXED_EXTENDED_INSTRUCTION_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_RELAXED_EXTENDED_INSTRUCTION_EXTENSION_NAME = "VK_KHR_shader_relaxed_extended_instruction"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_RELAXED_EXTENDED_INSTRUCTION_FEATURES_KHR = 1000558000; - public VKKHRShaderRelaxedExtendedInstruction(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderRelaxedExtendedInstruction() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupExtendedTypes.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupExtendedTypes.java index ad1b7bc6..f66342ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupExtendedTypes.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupExtendedTypes.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRShaderSubgroupExtendedTypes { +public final class VKKHRShaderSubgroupExtendedTypes { public static final int VK_KHR_SHADER_SUBGROUP_EXTENDED_TYPES_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_SUBGROUP_EXTENDED_TYPES_EXTENSION_NAME = "VK_KHR_shader_subgroup_extended_types"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES; - public VKKHRShaderSubgroupExtendedTypes(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderSubgroupExtendedTypes() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupRotate.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupRotate.java index 954a2be0..d11db3e2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupRotate.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupRotate.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRShaderSubgroupRotate { +public final class VKKHRShaderSubgroupRotate { public static final int VK_KHR_SHADER_SUBGROUP_ROTATE_SPEC_VERSION = 2; public static final String VK_KHR_SHADER_SUBGROUP_ROTATE_EXTENSION_NAME = "VK_KHR_shader_subgroup_rotate"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES; public static final int VK_SUBGROUP_FEATURE_ROTATE_BIT_KHR = VK_SUBGROUP_FEATURE_ROTATE_BIT; public static final int VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT_KHR = VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT; - public VKKHRShaderSubgroupRotate(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderSubgroupRotate() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupUniformControlFlow.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupUniformControlFlow.java index 7c3d55de..5bb5596f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupUniformControlFlow.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderSubgroupUniformControlFlow.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRShaderSubgroupUniformControlFlow { +public final class VKKHRShaderSubgroupUniformControlFlow { public static final int VK_KHR_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_EXTENSION_NAME = "VK_KHR_shader_subgroup_uniform_control_flow"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR = 1000323000; - public VKKHRShaderSubgroupUniformControlFlow(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderSubgroupUniformControlFlow() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderTerminateInvocation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderTerminateInvocation.java index 73e7e662..3ae46a39 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderTerminateInvocation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRShaderTerminateInvocation.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKKHRShaderTerminateInvocation { +public final class VKKHRShaderTerminateInvocation { public static final int VK_KHR_SHADER_TERMINATE_INVOCATION_SPEC_VERSION = 1; public static final String VK_KHR_SHADER_TERMINATE_INVOCATION_EXTENSION_NAME = "VK_KHR_shader_terminate_invocation"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES; - public VKKHRShaderTerminateInvocation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRShaderTerminateInvocation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSpirv14.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSpirv14.java index 2904d84e..dd87184a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSpirv14.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSpirv14.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRSpirv14 { +public final class VKKHRSpirv14 { public static final int VK_KHR_SPIRV_1_4_SPEC_VERSION = 1; public static final String VK_KHR_SPIRV_1_4_EXTENSION_NAME = "VK_KHR_spirv_1_4"; - public VKKHRSpirv14(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRSpirv14() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRStorageBufferStorageClass.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRStorageBufferStorageClass.java index 9fdb2f04..03bc038e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRStorageBufferStorageClass.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRStorageBufferStorageClass.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRStorageBufferStorageClass { +public final class VKKHRStorageBufferStorageClass { public static final int VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_SPEC_VERSION = 1; public static final String VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_EXTENSION_NAME = "VK_KHR_storage_buffer_storage_class"; - public VKKHRStorageBufferStorageClass(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRStorageBufferStorageClass() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSurfaceProtectedCapabilities.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSurfaceProtectedCapabilities.java index b4b7967e..88c45da6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSurfaceProtectedCapabilities.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSurfaceProtectedCapabilities.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRSurfaceProtectedCapabilities { +public final class VKKHRSurfaceProtectedCapabilities { public static final int VK_KHR_SURFACE_PROTECTED_CAPABILITIES_SPEC_VERSION = 1; public static final String VK_KHR_SURFACE_PROTECTED_CAPABILITIES_EXTENSION_NAME = "VK_KHR_surface_protected_capabilities"; public static final int VK_STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHR = 1000239000; - public VKKHRSurfaceProtectedCapabilities(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKKHRSurfaceProtectedCapabilities() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSwapchainMutableFormat.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSwapchainMutableFormat.java index 135d1fb9..fed3c726 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSwapchainMutableFormat.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRSwapchainMutableFormat.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRSwapchainMutableFormat { +public final class VKKHRSwapchainMutableFormat { public static final int VK_KHR_SWAPCHAIN_MUTABLE_FORMAT_SPEC_VERSION = 1; public static final String VK_KHR_SWAPCHAIN_MUTABLE_FORMAT_EXTENSION_NAME = "VK_KHR_swapchain_mutable_format"; public static final int VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR = 0x00000004; - public VKKHRSwapchainMutableFormat(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRSwapchainMutableFormat() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRUniformBufferStandardLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRUniformBufferStandardLayout.java index d3868614..d115d3ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRUniformBufferStandardLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRUniformBufferStandardLayout.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRUniformBufferStandardLayout { +public final class VKKHRUniformBufferStandardLayout { public static final int VK_KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_SPEC_VERSION = 1; public static final String VK_KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_EXTENSION_NAME = "VK_KHR_uniform_buffer_standard_layout"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES; - public VKKHRUniformBufferStandardLayout(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRUniformBufferStandardLayout() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVariablePointers.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVariablePointers.java index fb91d6b6..f7337f19 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVariablePointers.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVariablePointers.java @@ -24,13 +24,12 @@ import overrungl.vulkan.*; import static overrungl.vulkan.VK11.*; import static overrungl.vulkan.khr.VKKHRVariablePointers.*; -public class VKKHRVariablePointers { +public final class VKKHRVariablePointers { public static final int VK_KHR_VARIABLE_POINTERS_SPEC_VERSION = 1; public static final String VK_KHR_VARIABLE_POINTERS_EXTENSION_NAME = "VK_KHR_variable_pointers"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES_KHR; - public VKKHRVariablePointers(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVariablePointers() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVertexAttributeDivisor.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVertexAttributeDivisor.java index 0d9bf214..a2586aea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVertexAttributeDivisor.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVertexAttributeDivisor.java @@ -23,14 +23,13 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK14.*; -public class VKKHRVertexAttributeDivisor { +public final class VKKHRVertexAttributeDivisor { public static final int VK_KHR_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION = 1; public static final String VK_KHR_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME = "VK_KHR_vertex_attribute_divisor"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES; public static final int VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES; - public VKKHRVertexAttributeDivisor(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVertexAttributeDivisor() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeAv1.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeAv1.java index c7938c03..444cabc3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeAv1.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeAv1.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoDecodeAv1 { +public final class VKKHRVideoDecodeAv1 { public static final int VK_KHR_VIDEO_DECODE_AV1_SPEC_VERSION = 1; public static final String VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME = "VK_KHR_video_decode_av1"; public static final int VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_CAPABILITIES_KHR = 1000512000; @@ -33,7 +33,6 @@ public class VKKHRVideoDecodeAv1 { public static final int VK_VIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR = 0x00000004; public static final int VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR = 7; - public VKKHRVideoDecodeAv1(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoDecodeAv1() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH264.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH264.java index f4b84ac7..d3d3e596 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH264.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH264.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoDecodeH264 { +public final class VKKHRVideoDecodeH264 { public static final int VK_VIDEO_DECODE_H264_PICTURE_LAYOUT_PROGRESSIVE_KHR = 0; public static final int VK_VIDEO_DECODE_H264_PICTURE_LAYOUT_INTERLACED_INTERLEAVED_LINES_BIT_KHR = 0x00000001; public static final int VK_VIDEO_DECODE_H264_PICTURE_LAYOUT_INTERLACED_SEPARATE_PLANES_BIT_KHR = 0x00000002; @@ -36,7 +36,6 @@ public class VKKHRVideoDecodeH264 { public static final int VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_DPB_SLOT_INFO_KHR = 1000040006; public static final int VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR = 0x00000001; - public VKKHRVideoDecodeH264(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoDecodeH264() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH265.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH265.java index 8f57b643..df425212 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH265.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoDecodeH265.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoDecodeH265 { +public final class VKKHRVideoDecodeH265 { public static final int VK_KHR_VIDEO_DECODE_H265_SPEC_VERSION = 8; public static final String VK_KHR_VIDEO_DECODE_H265_EXTENSION_NAME = "VK_KHR_video_decode_h265"; public static final int VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_CAPABILITIES_KHR = 1000187000; @@ -33,7 +33,6 @@ public class VKKHRVideoDecodeH265 { public static final int VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_DPB_SLOT_INFO_KHR = 1000187005; public static final int VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR = 0x00000002; - public VKKHRVideoDecodeH265(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoDecodeH265() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeAv1.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeAv1.java index 6c289742..6268f1aa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeAv1.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeAv1.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoEncodeAv1 { +public final class VKKHRVideoEncodeAv1 { public static final int VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_INTRA_ONLY_KHR = 0; public static final int VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_SINGLE_REFERENCE_KHR = 1; public static final int VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_UNIDIRECTIONAL_COMPOUND_KHR = 2; @@ -61,7 +61,6 @@ public class VKKHRVideoEncodeAv1 { public static final int VK_VIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR = 0x00040000; public static final int VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR = 7; - public VKKHRVideoEncodeAv1(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoEncodeAv1() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH264.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH264.java index 6e8b8245..6efe3039 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH264.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH264.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoEncodeH264 { +public final class VKKHRVideoEncodeH264 { public static final int VK_VIDEO_ENCODE_H264_CAPABILITY_HRD_COMPLIANCE_BIT_KHR = 0x00000001; public static final int VK_VIDEO_ENCODE_H264_CAPABILITY_PREDICTION_WEIGHT_TABLE_GENERATED_BIT_KHR = 0x00000002; public static final int VK_VIDEO_ENCODE_H264_CAPABILITY_ROW_UNALIGNED_SLICE_BIT_KHR = 0x00000004; @@ -75,7 +75,6 @@ public class VKKHRVideoEncodeH264 { public static final int VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_FEEDBACK_INFO_KHR = 1000038013; public static final int VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR = 0x00010000; - public VKKHRVideoEncodeH264(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoEncodeH264() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH265.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH265.java index fba4784f..15cec2ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH265.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeH265.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoEncodeH265 { +public final class VKKHRVideoEncodeH265 { public static final int VK_VIDEO_ENCODE_H265_CAPABILITY_HRD_COMPLIANCE_BIT_KHR = 0x00000001; public static final int VK_VIDEO_ENCODE_H265_CAPABILITY_PREDICTION_WEIGHT_TABLE_GENERATED_BIT_KHR = 0x00000002; public static final int VK_VIDEO_ENCODE_H265_CAPABILITY_ROW_UNALIGNED_SLICE_SEGMENT_BIT_KHR = 0x00000004; @@ -84,7 +84,6 @@ public class VKKHRVideoEncodeH265 { public static final int VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_FEEDBACK_INFO_KHR = 1000039014; public static final int VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR = 0x00020000; - public VKKHRVideoEncodeH265(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoEncodeH265() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeQuantizationMap.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeQuantizationMap.java index 6f689bb3..e1ddf886 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeQuantizationMap.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoEncodeQuantizationMap.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoEncodeQuantizationMap { +public final class VKKHRVideoEncodeQuantizationMap { public static final int VK_KHR_VIDEO_ENCODE_QUANTIZATION_MAP_SPEC_VERSION = 2; public static final String VK_KHR_VIDEO_ENCODE_QUANTIZATION_MAP_EXTENSION_NAME = "VK_KHR_video_encode_quantization_map"; public static final int VK_STRUCTURE_TYPE_VIDEO_ENCODE_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553000; @@ -50,7 +50,6 @@ public class VKKHRVideoEncodeQuantizationMap { public static final int VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553007; public static final int VK_STRUCTURE_TYPE_VIDEO_FORMAT_AV1_QUANTIZATION_MAP_PROPERTIES_KHR = 1000553008; - public VKKHRVideoEncodeQuantizationMap(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoEncodeQuantizationMap() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoMaintenance1.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoMaintenance1.java index 3f70b429..29364beb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoMaintenance1.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVideoMaintenance1.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRVideoMaintenance1 { +public final class VKKHRVideoMaintenance1 { public static final int VK_KHR_VIDEO_MAINTENANCE_1_SPEC_VERSION = 1; public static final String VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME = "VK_KHR_video_maintenance1"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR = 1000515000; @@ -31,7 +31,6 @@ public class VKKHRVideoMaintenance1 { public static final int VK_BUFFER_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR = 0x00000040; public static final int VK_VIDEO_SESSION_CREATE_INLINE_QUERIES_BIT_KHR = 0x00000004; - public VKKHRVideoMaintenance1(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVideoMaintenance1() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVulkanMemoryModel.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVulkanMemoryModel.java index e9968d3d..04be6141 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVulkanMemoryModel.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRVulkanMemoryModel.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK12.*; -public class VKKHRVulkanMemoryModel { +public final class VKKHRVulkanMemoryModel { public static final int VK_KHR_VULKAN_MEMORY_MODEL_SPEC_VERSION = 3; public static final String VK_KHR_VULKAN_MEMORY_MODEL_EXTENSION_NAME = "VK_KHR_vulkan_memory_model"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES; - public VKKHRVulkanMemoryModel(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRVulkanMemoryModel() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWin32KeyedMutex.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWin32KeyedMutex.java index 1fa8ba83..5e0eec2f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWin32KeyedMutex.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWin32KeyedMutex.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRWin32KeyedMutex { +public final class VKKHRWin32KeyedMutex { public static final int VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION = 1; public static final String VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME = "VK_KHR_win32_keyed_mutex"; public static final int VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR = 1000075000; - public VKKHRWin32KeyedMutex(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRWin32KeyedMutex() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWorkgroupMemoryExplicitLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWorkgroupMemoryExplicitLayout.java index 0db80cb5..ad96db87 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWorkgroupMemoryExplicitLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRWorkgroupMemoryExplicitLayout.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKKHRWorkgroupMemoryExplicitLayout { +public final class VKKHRWorkgroupMemoryExplicitLayout { public static final int VK_KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION = 1; public static final String VK_KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME = "VK_KHR_workgroup_memory_explicit_layout"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR = 1000336000; - public VKKHRWorkgroupMemoryExplicitLayout(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRWorkgroupMemoryExplicitLayout() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRZeroInitializeWorkgroupMemory.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRZeroInitializeWorkgroupMemory.java index 817391fc..3619ba7d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRZeroInitializeWorkgroupMemory.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/VKKHRZeroInitializeWorkgroupMemory.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKKHRZeroInitializeWorkgroupMemory { +public final class VKKHRZeroInitializeWorkgroupMemory { public static final int VK_KHR_ZERO_INITIALIZE_WORKGROUP_MEMORY_SPEC_VERSION = 1; public static final String VK_KHR_ZERO_INITIALIZE_WORKGROUP_MEMORY_EXTENSION_NAME = "VK_KHR_zero_initialize_workgroup_memory"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES; - public VKKHRZeroInitializeWorkgroupMemory(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKKHRZeroInitializeWorkgroupMemory() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAabbPositionsKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAabbPositionsKHR.java index 39f007a2..5c6cbb4f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAabbPositionsKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAabbPositionsKHR.java @@ -107,6 +107,17 @@ public final class VkAabbPositionsKHR extends Struct { /// @return the allocated `VkAabbPositionsKHR` public static VkAabbPositionsKHR alloc(SegmentAllocator allocator, long count) { return new VkAabbPositionsKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAabbPositionsKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAabbPositionsKHR` + public VkAabbPositionsKHR asSlice(long index) { return new VkAabbPositionsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAabbPositionsKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAabbPositionsKHR` + public VkAabbPositionsKHR asSlice(long index, long count) { return new VkAabbPositionsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `minX` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildGeometryInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildGeometryInfoKHR.java index 6b99f0a1..b4670931 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildGeometryInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildGeometryInfoKHR.java @@ -139,6 +139,17 @@ public final class VkAccelerationStructureBuildGeometryInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureBuildGeometryInfoKHR` public static VkAccelerationStructureBuildGeometryInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureBuildGeometryInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureBuildGeometryInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureBuildGeometryInfoKHR` + public VkAccelerationStructureBuildGeometryInfoKHR asSlice(long index) { return new VkAccelerationStructureBuildGeometryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureBuildGeometryInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureBuildGeometryInfoKHR` + public VkAccelerationStructureBuildGeometryInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureBuildGeometryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildRangeInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildRangeInfoKHR.java index 2297a5bf..6964c339 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildRangeInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildRangeInfoKHR.java @@ -95,6 +95,17 @@ public final class VkAccelerationStructureBuildRangeInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureBuildRangeInfoKHR` public static VkAccelerationStructureBuildRangeInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureBuildRangeInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureBuildRangeInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureBuildRangeInfoKHR` + public VkAccelerationStructureBuildRangeInfoKHR asSlice(long index) { return new VkAccelerationStructureBuildRangeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureBuildRangeInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureBuildRangeInfoKHR` + public VkAccelerationStructureBuildRangeInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureBuildRangeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `primitiveCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildSizesInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildSizesInfoKHR.java index f3318b12..ad72016b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildSizesInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureBuildSizesInfoKHR.java @@ -101,6 +101,17 @@ public final class VkAccelerationStructureBuildSizesInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureBuildSizesInfoKHR` public static VkAccelerationStructureBuildSizesInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureBuildSizesInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureBuildSizesInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureBuildSizesInfoKHR` + public VkAccelerationStructureBuildSizesInfoKHR asSlice(long index) { return new VkAccelerationStructureBuildSizesInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureBuildSizesInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureBuildSizesInfoKHR` + public VkAccelerationStructureBuildSizesInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureBuildSizesInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureCreateInfoKHR.java index 2ecb3fd0..3fdfc4b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureCreateInfoKHR.java @@ -119,6 +119,17 @@ public final class VkAccelerationStructureCreateInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureCreateInfoKHR` public static VkAccelerationStructureCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureCreateInfoKHR` + public VkAccelerationStructureCreateInfoKHR asSlice(long index) { return new VkAccelerationStructureCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureCreateInfoKHR` + public VkAccelerationStructureCreateInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureDeviceAddressInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureDeviceAddressInfoKHR.java index 8b54a236..0f782483 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureDeviceAddressInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureDeviceAddressInfoKHR.java @@ -89,6 +89,17 @@ public final class VkAccelerationStructureDeviceAddressInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureDeviceAddressInfoKHR` public static VkAccelerationStructureDeviceAddressInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureDeviceAddressInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureDeviceAddressInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureDeviceAddressInfoKHR` + public VkAccelerationStructureDeviceAddressInfoKHR asSlice(long index) { return new VkAccelerationStructureDeviceAddressInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureDeviceAddressInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureDeviceAddressInfoKHR` + public VkAccelerationStructureDeviceAddressInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureDeviceAddressInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryAabbsDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryAabbsDataKHR.java index 47fefcd7..420864ba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryAabbsDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryAabbsDataKHR.java @@ -97,6 +97,17 @@ public final class VkAccelerationStructureGeometryAabbsDataKHR extends Struct { /// @return the allocated `VkAccelerationStructureGeometryAabbsDataKHR` public static VkAccelerationStructureGeometryAabbsDataKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryAabbsDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryAabbsDataKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureGeometryAabbsDataKHR` + public VkAccelerationStructureGeometryAabbsDataKHR asSlice(long index) { return new VkAccelerationStructureGeometryAabbsDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryAabbsDataKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryAabbsDataKHR` + public VkAccelerationStructureGeometryAabbsDataKHR asSlice(long index, long count) { return new VkAccelerationStructureGeometryAabbsDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryInstancesDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryInstancesDataKHR.java index c0e5002a..17269184 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryInstancesDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryInstancesDataKHR.java @@ -97,6 +97,17 @@ public final class VkAccelerationStructureGeometryInstancesDataKHR extends Struc /// @return the allocated `VkAccelerationStructureGeometryInstancesDataKHR` public static VkAccelerationStructureGeometryInstancesDataKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryInstancesDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryInstancesDataKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureGeometryInstancesDataKHR` + public VkAccelerationStructureGeometryInstancesDataKHR asSlice(long index) { return new VkAccelerationStructureGeometryInstancesDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryInstancesDataKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryInstancesDataKHR` + public VkAccelerationStructureGeometryInstancesDataKHR asSlice(long index, long count) { return new VkAccelerationStructureGeometryInstancesDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryKHR.java index 2887de0f..4ae103ba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryKHR.java @@ -103,6 +103,17 @@ public final class VkAccelerationStructureGeometryKHR extends Struct { /// @return the allocated `VkAccelerationStructureGeometryKHR` public static VkAccelerationStructureGeometryKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureGeometryKHR` + public VkAccelerationStructureGeometryKHR asSlice(long index) { return new VkAccelerationStructureGeometryKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryKHR` + public VkAccelerationStructureGeometryKHR asSlice(long index, long count) { return new VkAccelerationStructureGeometryKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryTrianglesDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryTrianglesDataKHR.java index fe8f713c..c31b5061 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryTrianglesDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureGeometryTrianglesDataKHR.java @@ -131,6 +131,17 @@ public final class VkAccelerationStructureGeometryTrianglesDataKHR extends Struc /// @return the allocated `VkAccelerationStructureGeometryTrianglesDataKHR` public static VkAccelerationStructureGeometryTrianglesDataKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryTrianglesDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryTrianglesDataKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureGeometryTrianglesDataKHR` + public VkAccelerationStructureGeometryTrianglesDataKHR asSlice(long index) { return new VkAccelerationStructureGeometryTrianglesDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryTrianglesDataKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryTrianglesDataKHR` + public VkAccelerationStructureGeometryTrianglesDataKHR asSlice(long index, long count) { return new VkAccelerationStructureGeometryTrianglesDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureInstanceKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureInstanceKHR.java index cb1bc08f..387dd572 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureInstanceKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureInstanceKHR.java @@ -109,6 +109,17 @@ public final class VkAccelerationStructureInstanceKHR extends Struct { /// @return the allocated `VkAccelerationStructureInstanceKHR` public static VkAccelerationStructureInstanceKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureInstanceKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureInstanceKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureInstanceKHR` + public VkAccelerationStructureInstanceKHR asSlice(long index) { return new VkAccelerationStructureInstanceKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureInstanceKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureInstanceKHR` + public VkAccelerationStructureInstanceKHR asSlice(long index, long count) { return new VkAccelerationStructureInstanceKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `transform` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureVersionInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureVersionInfoKHR.java index 9ee5f40b..759c2c9b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureVersionInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAccelerationStructureVersionInfoKHR.java @@ -89,6 +89,17 @@ public final class VkAccelerationStructureVersionInfoKHR extends Struct { /// @return the allocated `VkAccelerationStructureVersionInfoKHR` public static VkAccelerationStructureVersionInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureVersionInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureVersionInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureVersionInfoKHR` + public VkAccelerationStructureVersionInfoKHR asSlice(long index) { return new VkAccelerationStructureVersionInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureVersionInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureVersionInfoKHR` + public VkAccelerationStructureVersionInfoKHR asSlice(long index, long count) { return new VkAccelerationStructureVersionInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireNextImageInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireNextImageInfoKHR.java index 8c68504e..6cbf3755 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireNextImageInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireNextImageInfoKHR.java @@ -113,6 +113,17 @@ public final class VkAcquireNextImageInfoKHR extends Struct { /// @return the allocated `VkAcquireNextImageInfoKHR` public static VkAcquireNextImageInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAcquireNextImageInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAcquireNextImageInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAcquireNextImageInfoKHR` + public VkAcquireNextImageInfoKHR asSlice(long index) { return new VkAcquireNextImageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAcquireNextImageInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAcquireNextImageInfoKHR` + public VkAcquireNextImageInfoKHR asSlice(long index, long count) { return new VkAcquireNextImageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireProfilingLockInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireProfilingLockInfoKHR.java index 67394aa5..cde18a1f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireProfilingLockInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAcquireProfilingLockInfoKHR.java @@ -95,6 +95,17 @@ public final class VkAcquireProfilingLockInfoKHR extends Struct { /// @return the allocated `VkAcquireProfilingLockInfoKHR` public static VkAcquireProfilingLockInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAcquireProfilingLockInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAcquireProfilingLockInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAcquireProfilingLockInfoKHR` + public VkAcquireProfilingLockInfoKHR asSlice(long index) { return new VkAcquireProfilingLockInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAcquireProfilingLockInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAcquireProfilingLockInfoKHR` + public VkAcquireProfilingLockInfoKHR asSlice(long index, long count) { return new VkAcquireProfilingLockInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAndroidSurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAndroidSurfaceCreateInfoKHR.java index 86fb2dea..2be02260 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAndroidSurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkAndroidSurfaceCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkAndroidSurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkAndroidSurfaceCreateInfoKHR` public static VkAndroidSurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkAndroidSurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAndroidSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAndroidSurfaceCreateInfoKHR` + public VkAndroidSurfaceCreateInfoKHR asSlice(long index) { return new VkAndroidSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAndroidSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAndroidSurfaceCreateInfoKHR` + public VkAndroidSurfaceCreateInfoKHR asSlice(long index, long count) { return new VkAndroidSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindImageMemorySwapchainInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindImageMemorySwapchainInfoKHR.java index 9297f3a3..70d2f782 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindImageMemorySwapchainInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindImageMemorySwapchainInfoKHR.java @@ -95,6 +95,17 @@ public final class VkBindImageMemorySwapchainInfoKHR extends Struct { /// @return the allocated `VkBindImageMemorySwapchainInfoKHR` public static VkBindImageMemorySwapchainInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkBindImageMemorySwapchainInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindImageMemorySwapchainInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindImageMemorySwapchainInfoKHR` + public VkBindImageMemorySwapchainInfoKHR asSlice(long index) { return new VkBindImageMemorySwapchainInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindImageMemorySwapchainInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindImageMemorySwapchainInfoKHR` + public VkBindImageMemorySwapchainInfoKHR asSlice(long index, long count) { return new VkBindImageMemorySwapchainInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindVideoSessionMemoryInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindVideoSessionMemoryInfoKHR.java index b3a6ac9d..25061734 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindVideoSessionMemoryInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkBindVideoSessionMemoryInfoKHR.java @@ -107,6 +107,17 @@ public final class VkBindVideoSessionMemoryInfoKHR extends Struct { /// @return the allocated `VkBindVideoSessionMemoryInfoKHR` public static VkBindVideoSessionMemoryInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkBindVideoSessionMemoryInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindVideoSessionMemoryInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindVideoSessionMemoryInfoKHR` + public VkBindVideoSessionMemoryInfoKHR asSlice(long index) { return new VkBindVideoSessionMemoryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindVideoSessionMemoryInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindVideoSessionMemoryInfoKHR` + public VkBindVideoSessionMemoryInfoKHR asSlice(long index, long count) { return new VkBindVideoSessionMemoryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCalibratedTimestampInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCalibratedTimestampInfoKHR.java index 2eb4808e..845613b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCalibratedTimestampInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCalibratedTimestampInfoKHR.java @@ -89,6 +89,17 @@ public final class VkCalibratedTimestampInfoKHR extends Struct { /// @return the allocated `VkCalibratedTimestampInfoKHR` public static VkCalibratedTimestampInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkCalibratedTimestampInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCalibratedTimestampInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCalibratedTimestampInfoKHR` + public VkCalibratedTimestampInfoKHR asSlice(long index) { return new VkCalibratedTimestampInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCalibratedTimestampInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCalibratedTimestampInfoKHR` + public VkCalibratedTimestampInfoKHR asSlice(long index, long count) { return new VkCalibratedTimestampInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCooperativeMatrixPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCooperativeMatrixPropertiesKHR.java index f4122b4e..c54b25d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCooperativeMatrixPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCooperativeMatrixPropertiesKHR.java @@ -137,6 +137,17 @@ public final class VkCooperativeMatrixPropertiesKHR extends Struct { /// @return the allocated `VkCooperativeMatrixPropertiesKHR` public static VkCooperativeMatrixPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkCooperativeMatrixPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCooperativeMatrixPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCooperativeMatrixPropertiesKHR` + public VkCooperativeMatrixPropertiesKHR asSlice(long index) { return new VkCooperativeMatrixPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCooperativeMatrixPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCooperativeMatrixPropertiesKHR` + public VkCooperativeMatrixPropertiesKHR asSlice(long index, long count) { return new VkCooperativeMatrixPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureInfoKHR.java index 74eeb951..94f5d696 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureInfoKHR.java @@ -101,6 +101,17 @@ public final class VkCopyAccelerationStructureInfoKHR extends Struct { /// @return the allocated `VkCopyAccelerationStructureInfoKHR` public static VkCopyAccelerationStructureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkCopyAccelerationStructureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyAccelerationStructureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyAccelerationStructureInfoKHR` + public VkCopyAccelerationStructureInfoKHR asSlice(long index) { return new VkCopyAccelerationStructureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyAccelerationStructureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyAccelerationStructureInfoKHR` + public VkCopyAccelerationStructureInfoKHR asSlice(long index, long count) { return new VkCopyAccelerationStructureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureToMemoryInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureToMemoryInfoKHR.java index f412e902..c963c52e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureToMemoryInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyAccelerationStructureToMemoryInfoKHR.java @@ -103,6 +103,17 @@ public final class VkCopyAccelerationStructureToMemoryInfoKHR extends Struct { /// @return the allocated `VkCopyAccelerationStructureToMemoryInfoKHR` public static VkCopyAccelerationStructureToMemoryInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkCopyAccelerationStructureToMemoryInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyAccelerationStructureToMemoryInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyAccelerationStructureToMemoryInfoKHR` + public VkCopyAccelerationStructureToMemoryInfoKHR asSlice(long index) { return new VkCopyAccelerationStructureToMemoryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyAccelerationStructureToMemoryInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyAccelerationStructureToMemoryInfoKHR` + public VkCopyAccelerationStructureToMemoryInfoKHR asSlice(long index, long count) { return new VkCopyAccelerationStructureToMemoryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyMemoryToAccelerationStructureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyMemoryToAccelerationStructureInfoKHR.java index c3f45d10..76c116ef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyMemoryToAccelerationStructureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkCopyMemoryToAccelerationStructureInfoKHR.java @@ -103,6 +103,17 @@ public final class VkCopyMemoryToAccelerationStructureInfoKHR extends Struct { /// @return the allocated `VkCopyMemoryToAccelerationStructureInfoKHR` public static VkCopyMemoryToAccelerationStructureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkCopyMemoryToAccelerationStructureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMemoryToAccelerationStructureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMemoryToAccelerationStructureInfoKHR` + public VkCopyMemoryToAccelerationStructureInfoKHR asSlice(long index) { return new VkCopyMemoryToAccelerationStructureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMemoryToAccelerationStructureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMemoryToAccelerationStructureInfoKHR` + public VkCopyMemoryToAccelerationStructureInfoKHR asSlice(long index, long count) { return new VkCopyMemoryToAccelerationStructureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkD3D12FenceSubmitInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkD3D12FenceSubmitInfoKHR.java index 87590ec7..6f216159 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkD3D12FenceSubmitInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkD3D12FenceSubmitInfoKHR.java @@ -107,6 +107,17 @@ public final class VkD3D12FenceSubmitInfoKHR extends Struct { /// @return the allocated `VkD3D12FenceSubmitInfoKHR` public static VkD3D12FenceSubmitInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkD3D12FenceSubmitInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkD3D12FenceSubmitInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkD3D12FenceSubmitInfoKHR` + public VkD3D12FenceSubmitInfoKHR asSlice(long index) { return new VkD3D12FenceSubmitInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkD3D12FenceSubmitInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkD3D12FenceSubmitInfoKHR` + public VkD3D12FenceSubmitInfoKHR asSlice(long index, long count) { return new VkD3D12FenceSubmitInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentCapabilitiesKHR.java index 2a657ad7..60f34a8e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentCapabilitiesKHR.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### presentMask -/// [Byte offset handle][#MH_presentMask] - [Memory layout][#ML_presentMask] - [Getter][#presentMask(long)] - [Setter][#presentMask(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_presentMask] - [Memory layout][#ML_presentMask] - [Getter][#presentMask()] - [Setter][#presentMask(java.lang.foreign.MemorySegment)] /// ### modes /// [VarHandle][#VH_modes] - [Getter][#modes()] - [Setter][#modes(int)] /// ## Layout @@ -56,8 +56,8 @@ public final class VkDeviceGroupPresentCapabilitiesKHR extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `presentMask` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_presentMask = LAYOUT.byteOffsetHandle(PathElement.groupElement("presentMask"), PathElement.sequenceElement()); + /// The byte offset of `presentMask`. + public static final long OFFSET_presentMask = LAYOUT.byteOffset(PathElement.groupElement("presentMask")); /// The memory layout of `presentMask`. public static final MemoryLayout ML_presentMask = LAYOUT.select(PathElement.groupElement("presentMask")); /// The [VarHandle] of `modes` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -98,6 +98,17 @@ public final class VkDeviceGroupPresentCapabilitiesKHR extends Struct { /// @return the allocated `VkDeviceGroupPresentCapabilitiesKHR` public static VkDeviceGroupPresentCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupPresentCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupPresentCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupPresentCapabilitiesKHR` + public VkDeviceGroupPresentCapabilitiesKHR asSlice(long index) { return new VkDeviceGroupPresentCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupPresentCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupPresentCapabilitiesKHR` + public VkDeviceGroupPresentCapabilitiesKHR asSlice(long index, long count) { return new VkDeviceGroupPresentCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -161,49 +172,35 @@ public final class VkDeviceGroupPresentCapabilitiesKHR extends Struct { public VkDeviceGroupPresentCapabilitiesKHR pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_pNext(this.segment(), value); return this; } /// {@return `presentMask` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_presentMask(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_presentMask.invokeExact(0L, elementIndex), index), ML_presentMask); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_presentMask(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_presentMask, index), ML_presentMask); } /// {@return `presentMask`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_presentMask(MemorySegment segment, long elementIndex) { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_presentMask(MemorySegment segment) { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(segment, 0L); } /// {@return `presentMask` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment presentMaskAt(long index, long elementIndex) { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment presentMaskAt(long index) { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(this.segment(), index); } /// {@return `presentMask`} - /// @param elementIndex the index of the element - public @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment presentMask(long elementIndex) { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(this.segment(), elementIndex); } + public @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment presentMask() { return VkDeviceGroupPresentCapabilitiesKHR.get_presentMask(this.segment()); } /// Sets `presentMask` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_presentMask(MemorySegment segment, long index, long elementIndex, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_presentMask.invokeExact(0L, elementIndex), index), ML_presentMask.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_presentMask(MemorySegment segment, long index, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_presentMask, index), ML_presentMask.byteSize()); } /// Sets `presentMask` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_presentMask(MemorySegment segment, long elementIndex, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_presentMask(MemorySegment segment, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(segment, 0L, value); } /// Sets `presentMask` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkDeviceGroupPresentCapabilitiesKHR presentMaskAt(long index, long elementIndex, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(this.segment(), index, elementIndex, value); return this; } + public VkDeviceGroupPresentCapabilitiesKHR presentMaskAt(long index, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(this.segment(), index, value); return this; } /// Sets `presentMask` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkDeviceGroupPresentCapabilitiesKHR presentMask(long elementIndex, @CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(this.segment(), elementIndex, value); return this; } + public VkDeviceGroupPresentCapabilitiesKHR presentMask(@CType("uint32_t[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkDeviceGroupPresentCapabilitiesKHR.set_presentMask(this.segment(), value); return this; } /// {@return `modes` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentInfoKHR.java index fef21a70..9f62731d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupPresentInfoKHR.java @@ -101,6 +101,17 @@ public final class VkDeviceGroupPresentInfoKHR extends Struct { /// @return the allocated `VkDeviceGroupPresentInfoKHR` public static VkDeviceGroupPresentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupPresentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupPresentInfoKHR` + public VkDeviceGroupPresentInfoKHR asSlice(long index) { return new VkDeviceGroupPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupPresentInfoKHR` + public VkDeviceGroupPresentInfoKHR asSlice(long index, long count) { return new VkDeviceGroupPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupSwapchainCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupSwapchainCreateInfoKHR.java index 902e3808..b6605e78 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupSwapchainCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDeviceGroupSwapchainCreateInfoKHR.java @@ -89,6 +89,17 @@ public final class VkDeviceGroupSwapchainCreateInfoKHR extends Struct { /// @return the allocated `VkDeviceGroupSwapchainCreateInfoKHR` public static VkDeviceGroupSwapchainCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupSwapchainCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupSwapchainCreateInfoKHR` + public VkDeviceGroupSwapchainCreateInfoKHR asSlice(long index) { return new VkDeviceGroupSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupSwapchainCreateInfoKHR` + public VkDeviceGroupSwapchainCreateInfoKHR asSlice(long index, long count) { return new VkDeviceGroupSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDevicePipelineBinaryInternalCacheControlKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDevicePipelineBinaryInternalCacheControlKHR.java index ba71b6a9..5c44d065 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDevicePipelineBinaryInternalCacheControlKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDevicePipelineBinaryInternalCacheControlKHR.java @@ -89,6 +89,17 @@ public final class VkDevicePipelineBinaryInternalCacheControlKHR extends Struct /// @return the allocated `VkDevicePipelineBinaryInternalCacheControlKHR` public static VkDevicePipelineBinaryInternalCacheControlKHR alloc(SegmentAllocator allocator, long count) { return new VkDevicePipelineBinaryInternalCacheControlKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDevicePipelineBinaryInternalCacheControlKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDevicePipelineBinaryInternalCacheControlKHR` + public VkDevicePipelineBinaryInternalCacheControlKHR asSlice(long index) { return new VkDevicePipelineBinaryInternalCacheControlKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDevicePipelineBinaryInternalCacheControlKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDevicePipelineBinaryInternalCacheControlKHR` + public VkDevicePipelineBinaryInternalCacheControlKHR asSlice(long index, long count) { return new VkDevicePipelineBinaryInternalCacheControlKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeCreateInfoKHR.java index 55a4abea..2ed199ba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeCreateInfoKHR.java @@ -97,6 +97,17 @@ public final class VkDisplayModeCreateInfoKHR extends Struct { /// @return the allocated `VkDisplayModeCreateInfoKHR` public static VkDisplayModeCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayModeCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayModeCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayModeCreateInfoKHR` + public VkDisplayModeCreateInfoKHR asSlice(long index) { return new VkDisplayModeCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayModeCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayModeCreateInfoKHR` + public VkDisplayModeCreateInfoKHR asSlice(long index, long count) { return new VkDisplayModeCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeParametersKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeParametersKHR.java index 122a7bb4..a2997127 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeParametersKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeParametersKHR.java @@ -85,6 +85,17 @@ public final class VkDisplayModeParametersKHR extends Struct { /// @return the allocated `VkDisplayModeParametersKHR` public static VkDisplayModeParametersKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayModeParametersKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayModeParametersKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayModeParametersKHR` + public VkDisplayModeParametersKHR asSlice(long index) { return new VkDisplayModeParametersKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayModeParametersKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayModeParametersKHR` + public VkDisplayModeParametersKHR asSlice(long index, long count) { return new VkDisplayModeParametersKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `visibleRegion` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeProperties2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeProperties2KHR.java index 591054f0..580442f3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeProperties2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModeProperties2KHR.java @@ -91,6 +91,17 @@ public final class VkDisplayModeProperties2KHR extends Struct { /// @return the allocated `VkDisplayModeProperties2KHR` public static VkDisplayModeProperties2KHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayModeProperties2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayModeProperties2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayModeProperties2KHR` + public VkDisplayModeProperties2KHR asSlice(long index) { return new VkDisplayModeProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayModeProperties2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayModeProperties2KHR` + public VkDisplayModeProperties2KHR asSlice(long index, long count) { return new VkDisplayModeProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModePropertiesKHR.java index 13bf84e0..71e8a60a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayModePropertiesKHR.java @@ -85,6 +85,17 @@ public final class VkDisplayModePropertiesKHR extends Struct { /// @return the allocated `VkDisplayModePropertiesKHR` public static VkDisplayModePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayModePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayModePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayModePropertiesKHR` + public VkDisplayModePropertiesKHR asSlice(long index) { return new VkDisplayModePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayModePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayModePropertiesKHR` + public VkDisplayModePropertiesKHR asSlice(long index, long count) { return new VkDisplayModePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `displayMode` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilities2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilities2KHR.java index ee56358a..22510bf5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilities2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilities2KHR.java @@ -91,6 +91,17 @@ public final class VkDisplayPlaneCapabilities2KHR extends Struct { /// @return the allocated `VkDisplayPlaneCapabilities2KHR` public static VkDisplayPlaneCapabilities2KHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPlaneCapabilities2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPlaneCapabilities2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPlaneCapabilities2KHR` + public VkDisplayPlaneCapabilities2KHR asSlice(long index) { return new VkDisplayPlaneCapabilities2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPlaneCapabilities2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPlaneCapabilities2KHR` + public VkDisplayPlaneCapabilities2KHR asSlice(long index, long count) { return new VkDisplayPlaneCapabilities2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilitiesKHR.java index 2543db39..2bdbcc77 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneCapabilitiesKHR.java @@ -141,6 +141,17 @@ public final class VkDisplayPlaneCapabilitiesKHR extends Struct { /// @return the allocated `VkDisplayPlaneCapabilitiesKHR` public static VkDisplayPlaneCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPlaneCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPlaneCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPlaneCapabilitiesKHR` + public VkDisplayPlaneCapabilitiesKHR asSlice(long index) { return new VkDisplayPlaneCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPlaneCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPlaneCapabilitiesKHR` + public VkDisplayPlaneCapabilitiesKHR asSlice(long index, long count) { return new VkDisplayPlaneCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `supportedAlpha` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneInfo2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneInfo2KHR.java index 8a5cc27c..d947a22d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneInfo2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneInfo2KHR.java @@ -95,6 +95,17 @@ public final class VkDisplayPlaneInfo2KHR extends Struct { /// @return the allocated `VkDisplayPlaneInfo2KHR` public static VkDisplayPlaneInfo2KHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPlaneInfo2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPlaneInfo2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPlaneInfo2KHR` + public VkDisplayPlaneInfo2KHR asSlice(long index) { return new VkDisplayPlaneInfo2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPlaneInfo2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPlaneInfo2KHR` + public VkDisplayPlaneInfo2KHR asSlice(long index, long count) { return new VkDisplayPlaneInfo2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneProperties2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneProperties2KHR.java index 6c6464da..7a54a01f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneProperties2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlaneProperties2KHR.java @@ -91,6 +91,17 @@ public final class VkDisplayPlaneProperties2KHR extends Struct { /// @return the allocated `VkDisplayPlaneProperties2KHR` public static VkDisplayPlaneProperties2KHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPlaneProperties2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPlaneProperties2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPlaneProperties2KHR` + public VkDisplayPlaneProperties2KHR asSlice(long index) { return new VkDisplayPlaneProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPlaneProperties2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPlaneProperties2KHR` + public VkDisplayPlaneProperties2KHR asSlice(long index, long count) { return new VkDisplayPlaneProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlanePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlanePropertiesKHR.java index c4bd0076..885aa573 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlanePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPlanePropertiesKHR.java @@ -83,6 +83,17 @@ public final class VkDisplayPlanePropertiesKHR extends Struct { /// @return the allocated `VkDisplayPlanePropertiesKHR` public static VkDisplayPlanePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPlanePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPlanePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPlanePropertiesKHR` + public VkDisplayPlanePropertiesKHR asSlice(long index) { return new VkDisplayPlanePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPlanePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPlanePropertiesKHR` + public VkDisplayPlanePropertiesKHR asSlice(long index, long count) { return new VkDisplayPlanePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `currentDisplay` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPresentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPresentInfoKHR.java index c39246b3..2a3ebc97 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPresentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPresentInfoKHR.java @@ -105,6 +105,17 @@ public final class VkDisplayPresentInfoKHR extends Struct { /// @return the allocated `VkDisplayPresentInfoKHR` public static VkDisplayPresentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPresentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPresentInfoKHR` + public VkDisplayPresentInfoKHR asSlice(long index) { return new VkDisplayPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPresentInfoKHR` + public VkDisplayPresentInfoKHR asSlice(long index, long count) { return new VkDisplayPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayProperties2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayProperties2KHR.java index e9745967..9540efda 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayProperties2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayProperties2KHR.java @@ -91,6 +91,17 @@ public final class VkDisplayProperties2KHR extends Struct { /// @return the allocated `VkDisplayProperties2KHR` public static VkDisplayProperties2KHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayProperties2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayProperties2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayProperties2KHR` + public VkDisplayProperties2KHR asSlice(long index) { return new VkDisplayProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayProperties2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayProperties2KHR` + public VkDisplayProperties2KHR asSlice(long index, long count) { return new VkDisplayProperties2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPropertiesKHR.java index 89fa7a2a..a861d6a0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplayPropertiesKHR.java @@ -117,6 +117,17 @@ public final class VkDisplayPropertiesKHR extends Struct { /// @return the allocated `VkDisplayPropertiesKHR` public static VkDisplayPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplayPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayPropertiesKHR` + public VkDisplayPropertiesKHR asSlice(long index) { return new VkDisplayPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayPropertiesKHR` + public VkDisplayPropertiesKHR asSlice(long index, long count) { return new VkDisplayPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `display` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplaySurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplaySurfaceCreateInfoKHR.java index 61714d1a..95d8c954 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplaySurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkDisplaySurfaceCreateInfoKHR.java @@ -133,6 +133,17 @@ public final class VkDisplaySurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkDisplaySurfaceCreateInfoKHR` public static VkDisplaySurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkDisplaySurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplaySurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplaySurfaceCreateInfoKHR` + public VkDisplaySurfaceCreateInfoKHR asSlice(long index) { return new VkDisplaySurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplaySurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplaySurfaceCreateInfoKHR` + public VkDisplaySurfaceCreateInfoKHR asSlice(long index, long count) { return new VkDisplaySurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportFenceWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportFenceWin32HandleInfoKHR.java index 10730c63..f0c6a757 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportFenceWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportFenceWin32HandleInfoKHR.java @@ -101,6 +101,17 @@ public final class VkExportFenceWin32HandleInfoKHR extends Struct { /// @return the allocated `VkExportFenceWin32HandleInfoKHR` public static VkExportFenceWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkExportFenceWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportFenceWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportFenceWin32HandleInfoKHR` + public VkExportFenceWin32HandleInfoKHR asSlice(long index) { return new VkExportFenceWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportFenceWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportFenceWin32HandleInfoKHR` + public VkExportFenceWin32HandleInfoKHR asSlice(long index, long count) { return new VkExportFenceWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportMemoryWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportMemoryWin32HandleInfoKHR.java index 6ae8821e..8fdc940e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportMemoryWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportMemoryWin32HandleInfoKHR.java @@ -101,6 +101,17 @@ public final class VkExportMemoryWin32HandleInfoKHR extends Struct { /// @return the allocated `VkExportMemoryWin32HandleInfoKHR` public static VkExportMemoryWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkExportMemoryWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMemoryWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMemoryWin32HandleInfoKHR` + public VkExportMemoryWin32HandleInfoKHR asSlice(long index) { return new VkExportMemoryWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMemoryWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMemoryWin32HandleInfoKHR` + public VkExportMemoryWin32HandleInfoKHR asSlice(long index, long count) { return new VkExportMemoryWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportSemaphoreWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportSemaphoreWin32HandleInfoKHR.java index 6dfd02ec..90f8f22b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportSemaphoreWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkExportSemaphoreWin32HandleInfoKHR.java @@ -101,6 +101,17 @@ public final class VkExportSemaphoreWin32HandleInfoKHR extends Struct { /// @return the allocated `VkExportSemaphoreWin32HandleInfoKHR` public static VkExportSemaphoreWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkExportSemaphoreWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportSemaphoreWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportSemaphoreWin32HandleInfoKHR` + public VkExportSemaphoreWin32HandleInfoKHR asSlice(long index) { return new VkExportSemaphoreWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportSemaphoreWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportSemaphoreWin32HandleInfoKHR` + public VkExportSemaphoreWin32HandleInfoKHR asSlice(long index, long count) { return new VkExportSemaphoreWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetFdInfoKHR.java index 1588627e..27e71043 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetFdInfoKHR.java @@ -95,6 +95,17 @@ public final class VkFenceGetFdInfoKHR extends Struct { /// @return the allocated `VkFenceGetFdInfoKHR` public static VkFenceGetFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkFenceGetFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFenceGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFenceGetFdInfoKHR` + public VkFenceGetFdInfoKHR asSlice(long index) { return new VkFenceGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFenceGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFenceGetFdInfoKHR` + public VkFenceGetFdInfoKHR asSlice(long index, long count) { return new VkFenceGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetWin32HandleInfoKHR.java index 117a325d..fac246b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFenceGetWin32HandleInfoKHR.java @@ -95,6 +95,17 @@ public final class VkFenceGetWin32HandleInfoKHR extends Struct { /// @return the allocated `VkFenceGetWin32HandleInfoKHR` public static VkFenceGetWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkFenceGetWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFenceGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFenceGetWin32HandleInfoKHR` + public VkFenceGetWin32HandleInfoKHR asSlice(long index) { return new VkFenceGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFenceGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFenceGetWin32HandleInfoKHR` + public VkFenceGetWin32HandleInfoKHR asSlice(long index, long count) { return new VkFenceGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFragmentShadingRateAttachmentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFragmentShadingRateAttachmentInfoKHR.java index 58c503df..8460bae8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFragmentShadingRateAttachmentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkFragmentShadingRateAttachmentInfoKHR.java @@ -97,6 +97,17 @@ public final class VkFragmentShadingRateAttachmentInfoKHR extends Struct { /// @return the allocated `VkFragmentShadingRateAttachmentInfoKHR` public static VkFragmentShadingRateAttachmentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkFragmentShadingRateAttachmentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFragmentShadingRateAttachmentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFragmentShadingRateAttachmentInfoKHR` + public VkFragmentShadingRateAttachmentInfoKHR asSlice(long index) { return new VkFragmentShadingRateAttachmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFragmentShadingRateAttachmentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFragmentShadingRateAttachmentInfoKHR` + public VkFragmentShadingRateAttachmentInfoKHR asSlice(long index, long count) { return new VkFragmentShadingRateAttachmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImageSwapchainCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImageSwapchainCreateInfoKHR.java index 726d91ab..d00f3041 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImageSwapchainCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImageSwapchainCreateInfoKHR.java @@ -89,6 +89,17 @@ public final class VkImageSwapchainCreateInfoKHR extends Struct { /// @return the allocated `VkImageSwapchainCreateInfoKHR` public static VkImageSwapchainCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImageSwapchainCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSwapchainCreateInfoKHR` + public VkImageSwapchainCreateInfoKHR asSlice(long index) { return new VkImageSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSwapchainCreateInfoKHR` + public VkImageSwapchainCreateInfoKHR asSlice(long index, long count) { return new VkImageSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceFdInfoKHR.java index 74247339..f874b45e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceFdInfoKHR.java @@ -107,6 +107,17 @@ public final class VkImportFenceFdInfoKHR extends Struct { /// @return the allocated `VkImportFenceFdInfoKHR` public static VkImportFenceFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportFenceFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportFenceFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportFenceFdInfoKHR` + public VkImportFenceFdInfoKHR asSlice(long index) { return new VkImportFenceFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportFenceFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportFenceFdInfoKHR` + public VkImportFenceFdInfoKHR asSlice(long index, long count) { return new VkImportFenceFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceWin32HandleInfoKHR.java index ca6e8ee5..70e8ec42 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportFenceWin32HandleInfoKHR.java @@ -113,6 +113,17 @@ public final class VkImportFenceWin32HandleInfoKHR extends Struct { /// @return the allocated `VkImportFenceWin32HandleInfoKHR` public static VkImportFenceWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportFenceWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportFenceWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportFenceWin32HandleInfoKHR` + public VkImportFenceWin32HandleInfoKHR asSlice(long index) { return new VkImportFenceWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportFenceWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportFenceWin32HandleInfoKHR` + public VkImportFenceWin32HandleInfoKHR asSlice(long index, long count) { return new VkImportFenceWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryFdInfoKHR.java index 7ed356e4..581a2f8f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryFdInfoKHR.java @@ -95,6 +95,17 @@ public final class VkImportMemoryFdInfoKHR extends Struct { /// @return the allocated `VkImportMemoryFdInfoKHR` public static VkImportMemoryFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryFdInfoKHR` + public VkImportMemoryFdInfoKHR asSlice(long index) { return new VkImportMemoryFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryFdInfoKHR` + public VkImportMemoryFdInfoKHR asSlice(long index, long count) { return new VkImportMemoryFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryWin32HandleInfoKHR.java index faff2aa8..efab7879 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportMemoryWin32HandleInfoKHR.java @@ -101,6 +101,17 @@ public final class VkImportMemoryWin32HandleInfoKHR extends Struct { /// @return the allocated `VkImportMemoryWin32HandleInfoKHR` public static VkImportMemoryWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryWin32HandleInfoKHR` + public VkImportMemoryWin32HandleInfoKHR asSlice(long index) { return new VkImportMemoryWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryWin32HandleInfoKHR` + public VkImportMemoryWin32HandleInfoKHR asSlice(long index, long count) { return new VkImportMemoryWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreFdInfoKHR.java index fae28968..d21bdf70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreFdInfoKHR.java @@ -107,6 +107,17 @@ public final class VkImportSemaphoreFdInfoKHR extends Struct { /// @return the allocated `VkImportSemaphoreFdInfoKHR` public static VkImportSemaphoreFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportSemaphoreFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportSemaphoreFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportSemaphoreFdInfoKHR` + public VkImportSemaphoreFdInfoKHR asSlice(long index) { return new VkImportSemaphoreFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportSemaphoreFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportSemaphoreFdInfoKHR` + public VkImportSemaphoreFdInfoKHR asSlice(long index, long count) { return new VkImportSemaphoreFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreWin32HandleInfoKHR.java index 0d2d4a20..c60a2c03 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkImportSemaphoreWin32HandleInfoKHR.java @@ -113,6 +113,17 @@ public final class VkImportSemaphoreWin32HandleInfoKHR extends Struct { /// @return the allocated `VkImportSemaphoreWin32HandleInfoKHR` public static VkImportSemaphoreWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkImportSemaphoreWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportSemaphoreWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportSemaphoreWin32HandleInfoKHR` + public VkImportSemaphoreWin32HandleInfoKHR asSlice(long index) { return new VkImportSemaphoreWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportSemaphoreWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportSemaphoreWin32HandleInfoKHR` + public VkImportSemaphoreWin32HandleInfoKHR asSlice(long index, long count) { return new VkImportSemaphoreWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryFdPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryFdPropertiesKHR.java index 0f55aa5e..a91d9971 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryFdPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryFdPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkMemoryFdPropertiesKHR extends Struct { /// @return the allocated `VkMemoryFdPropertiesKHR` public static VkMemoryFdPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkMemoryFdPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryFdPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryFdPropertiesKHR` + public VkMemoryFdPropertiesKHR asSlice(long index) { return new VkMemoryFdPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryFdPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryFdPropertiesKHR` + public VkMemoryFdPropertiesKHR asSlice(long index, long count) { return new VkMemoryFdPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetFdInfoKHR.java index cb950125..e76e9430 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetFdInfoKHR.java @@ -95,6 +95,17 @@ public final class VkMemoryGetFdInfoKHR extends Struct { /// @return the allocated `VkMemoryGetFdInfoKHR` public static VkMemoryGetFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetFdInfoKHR` + public VkMemoryGetFdInfoKHR asSlice(long index) { return new VkMemoryGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetFdInfoKHR` + public VkMemoryGetFdInfoKHR asSlice(long index, long count) { return new VkMemoryGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetWin32HandleInfoKHR.java index 1585bc68..94b776c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryGetWin32HandleInfoKHR.java @@ -95,6 +95,17 @@ public final class VkMemoryGetWin32HandleInfoKHR extends Struct { /// @return the allocated `VkMemoryGetWin32HandleInfoKHR` public static VkMemoryGetWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetWin32HandleInfoKHR` + public VkMemoryGetWin32HandleInfoKHR asSlice(long index) { return new VkMemoryGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetWin32HandleInfoKHR` + public VkMemoryGetWin32HandleInfoKHR asSlice(long index, long count) { return new VkMemoryGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryWin32HandlePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryWin32HandlePropertiesKHR.java index 70b34561..7dbca3d6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryWin32HandlePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkMemoryWin32HandlePropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkMemoryWin32HandlePropertiesKHR extends Struct { /// @return the allocated `VkMemoryWin32HandlePropertiesKHR` public static VkMemoryWin32HandlePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkMemoryWin32HandlePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryWin32HandlePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryWin32HandlePropertiesKHR` + public VkMemoryWin32HandlePropertiesKHR asSlice(long index) { return new VkMemoryWin32HandlePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryWin32HandlePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryWin32HandlePropertiesKHR` + public VkMemoryWin32HandlePropertiesKHR asSlice(long index, long count) { return new VkMemoryWin32HandlePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterDescriptionKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterDescriptionKHR.java index b87d2606..c63fe598 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterDescriptionKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterDescriptionKHR.java @@ -35,11 +35,11 @@ /// ### flags /// [VarHandle][#VH_flags] - [Getter][#flags()] - [Setter][#flags(int)] /// ### name -/// [Byte offset handle][#MH_name] - [Memory layout][#ML_name] - [Getter][#name(long)] - [Setter][#name(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_name] - [Memory layout][#ML_name] - [Getter][#name()] - [Setter][#name(java.lang.foreign.MemorySegment)] /// ### category -/// [Byte offset handle][#MH_category] - [Memory layout][#ML_category] - [Getter][#category(long)] - [Setter][#category(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_category] - [Memory layout][#ML_category] - [Getter][#category()] - [Setter][#category(java.lang.foreign.MemorySegment)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -68,16 +68,16 @@ public final class VkPerformanceCounterDescriptionKHR extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `flags` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_flags = LAYOUT.arrayElementVarHandle(PathElement.groupElement("flags")); - /// The byte offset handle of `name` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_name = LAYOUT.byteOffsetHandle(PathElement.groupElement("name"), PathElement.sequenceElement()); + /// The byte offset of `name`. + public static final long OFFSET_name = LAYOUT.byteOffset(PathElement.groupElement("name")); /// The memory layout of `name`. public static final MemoryLayout ML_name = LAYOUT.select(PathElement.groupElement("name")); - /// The byte offset handle of `category` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_category = LAYOUT.byteOffsetHandle(PathElement.groupElement("category"), PathElement.sequenceElement()); + /// The byte offset of `category`. + public static final long OFFSET_category = LAYOUT.byteOffset(PathElement.groupElement("category")); /// The memory layout of `category`. public static final MemoryLayout ML_category = LAYOUT.select(PathElement.groupElement("category")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); @@ -116,6 +116,17 @@ public final class VkPerformanceCounterDescriptionKHR extends Struct { /// @return the allocated `VkPerformanceCounterDescriptionKHR` public static VkPerformanceCounterDescriptionKHR alloc(SegmentAllocator allocator, long count) { return new VkPerformanceCounterDescriptionKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceCounterDescriptionKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceCounterDescriptionKHR` + public VkPerformanceCounterDescriptionKHR asSlice(long index) { return new VkPerformanceCounterDescriptionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceCounterDescriptionKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceCounterDescriptionKHR` + public VkPerformanceCounterDescriptionKHR asSlice(long index, long count) { return new VkPerformanceCounterDescriptionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -210,138 +221,96 @@ public final class VkPerformanceCounterDescriptionKHR extends Struct { public VkPerformanceCounterDescriptionKHR flags(@CType("VkPerformanceCounterDescriptionFlagsKHR") int value) { VkPerformanceCounterDescriptionKHR.set_flags(this.segment(), value); return this; } /// {@return `name` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_name, index), ML_name); } /// {@return `name`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_name(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment) { return VkPerformanceCounterDescriptionKHR.get_name(segment, 0L); } /// {@return `name` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_name(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index) { return VkPerformanceCounterDescriptionKHR.get_name(this.segment(), index); } /// {@return `name`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name(long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_name(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name() { return VkPerformanceCounterDescriptionKHR.get_name(this.segment()); } /// Sets `name` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_name(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_name, index), ML_name.byteSize()); } /// Sets `name` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_name(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(segment, 0L, value); } /// Sets `name` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR nameAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(this.segment(), index, elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR nameAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(this.segment(), index, value); return this; } /// Sets `name` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR name(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(this.segment(), elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR name(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_name(this.segment(), value); return this; } /// {@return `category` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_category(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_category.invokeExact(0L, elementIndex), index), ML_category); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_category(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_category, index), ML_category); } /// {@return `category`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_category(MemorySegment segment, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_category(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_category(MemorySegment segment) { return VkPerformanceCounterDescriptionKHR.get_category(segment, 0L); } /// {@return `category` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment categoryAt(long index, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_category(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment categoryAt(long index) { return VkPerformanceCounterDescriptionKHR.get_category(this.segment(), index); } /// {@return `category`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment category(long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_category(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment category() { return VkPerformanceCounterDescriptionKHR.get_category(this.segment()); } /// Sets `category` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_category(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_category.invokeExact(0L, elementIndex), index), ML_category.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_category(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_category, index), ML_category.byteSize()); } /// Sets `category` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_category(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_category(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(segment, 0L, value); } /// Sets `category` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR categoryAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(this.segment(), index, elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR categoryAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(this.segment(), index, value); return this; } /// Sets `category` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR category(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(this.segment(), elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR category(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_category(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkPerformanceCounterDescriptionKHR.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkPerformanceCounterDescriptionKHR.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkPerformanceCounterDescriptionKHR.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkPerformanceCounterDescriptionKHR.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(this.segment(), index, elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPerformanceCounterDescriptionKHR description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(this.segment(), elementIndex, value); return this; } + public VkPerformanceCounterDescriptionKHR description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterDescriptionKHR.set_description(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterKHR.java index 8f3f0cdd..a4f563be 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceCounterKHR.java @@ -37,7 +37,7 @@ /// ### storage /// [VarHandle][#VH_storage] - [Getter][#storage()] - [Setter][#storage(int)] /// ### uuid -/// [Byte offset handle][#MH_uuid] - [Memory layout][#ML_uuid] - [Getter][#uuid(long)] - [Setter][#uuid(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_uuid] - [Memory layout][#ML_uuid] - [Getter][#uuid()] - [Setter][#uuid(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -70,8 +70,8 @@ public final class VkPerformanceCounterKHR extends Struct { public static final VarHandle VH_scope = LAYOUT.arrayElementVarHandle(PathElement.groupElement("scope")); /// The [VarHandle] of `storage` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_storage = LAYOUT.arrayElementVarHandle(PathElement.groupElement("storage")); - /// The byte offset handle of `uuid` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_uuid = LAYOUT.byteOffsetHandle(PathElement.groupElement("uuid"), PathElement.sequenceElement()); + /// The byte offset of `uuid`. + public static final long OFFSET_uuid = LAYOUT.byteOffset(PathElement.groupElement("uuid")); /// The memory layout of `uuid`. public static final MemoryLayout ML_uuid = LAYOUT.select(PathElement.groupElement("uuid")); @@ -110,6 +110,17 @@ public final class VkPerformanceCounterKHR extends Struct { /// @return the allocated `VkPerformanceCounterKHR` public static VkPerformanceCounterKHR alloc(SegmentAllocator allocator, long count) { return new VkPerformanceCounterKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceCounterKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceCounterKHR` + public VkPerformanceCounterKHR asSlice(long index) { return new VkPerformanceCounterKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceCounterKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceCounterKHR` + public VkPerformanceCounterKHR asSlice(long index, long count) { return new VkPerformanceCounterKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -266,48 +277,34 @@ public final class VkPerformanceCounterKHR extends Struct { public VkPerformanceCounterKHR storage(@CType("VkPerformanceCounterStorageKHR") int value) { VkPerformanceCounterKHR.set_storage(this.segment(), value); return this; } /// {@return `uuid` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_uuid(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_uuid.invokeExact(0L, elementIndex), index), ML_uuid); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_uuid(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_uuid, index), ML_uuid); } /// {@return `uuid`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_uuid(MemorySegment segment, long elementIndex) { return VkPerformanceCounterKHR.get_uuid(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_uuid(MemorySegment segment) { return VkPerformanceCounterKHR.get_uuid(segment, 0L); } /// {@return `uuid` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment uuidAt(long index, long elementIndex) { return VkPerformanceCounterKHR.get_uuid(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment uuidAt(long index) { return VkPerformanceCounterKHR.get_uuid(this.segment(), index); } /// {@return `uuid`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment uuid(long elementIndex) { return VkPerformanceCounterKHR.get_uuid(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment uuid() { return VkPerformanceCounterKHR.get_uuid(this.segment()); } /// Sets `uuid` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_uuid(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_uuid.invokeExact(0L, elementIndex), index), ML_uuid.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_uuid(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_uuid, index), ML_uuid.byteSize()); } /// Sets `uuid` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_uuid(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_uuid(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(segment, 0L, value); } /// Sets `uuid` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPerformanceCounterKHR uuidAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(this.segment(), index, elementIndex, value); return this; } + public VkPerformanceCounterKHR uuidAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(this.segment(), index, value); return this; } /// Sets `uuid` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPerformanceCounterKHR uuid(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(this.segment(), elementIndex, value); return this; } + public VkPerformanceCounterKHR uuid(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPerformanceCounterKHR.set_uuid(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQueryReservationInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQueryReservationInfoKHR.java index 1b17cde7..6b71efd6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQueryReservationInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQueryReservationInfoKHR.java @@ -89,6 +89,17 @@ public final class VkPerformanceQueryReservationInfoKHR extends Struct { /// @return the allocated `VkPerformanceQueryReservationInfoKHR` public static VkPerformanceQueryReservationInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPerformanceQueryReservationInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceQueryReservationInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceQueryReservationInfoKHR` + public VkPerformanceQueryReservationInfoKHR asSlice(long index) { return new VkPerformanceQueryReservationInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceQueryReservationInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceQueryReservationInfoKHR` + public VkPerformanceQueryReservationInfoKHR asSlice(long index, long count) { return new VkPerformanceQueryReservationInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQuerySubmitInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQuerySubmitInfoKHR.java index 67752aae..65e835cc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQuerySubmitInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPerformanceQuerySubmitInfoKHR.java @@ -89,6 +89,17 @@ public final class VkPerformanceQuerySubmitInfoKHR extends Struct { /// @return the allocated `VkPerformanceQuerySubmitInfoKHR` public static VkPerformanceQuerySubmitInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPerformanceQuerySubmitInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceQuerySubmitInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPerformanceQuerySubmitInfoKHR` + public VkPerformanceQuerySubmitInfoKHR asSlice(long index) { return new VkPerformanceQuerySubmitInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceQuerySubmitInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPerformanceQuerySubmitInfoKHR` + public VkPerformanceQuerySubmitInfoKHR asSlice(long index, long count) { return new VkPerformanceQuerySubmitInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructureFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructureFeaturesKHR.java index 710a03b5..47b0d7c3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructureFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructureFeaturesKHR.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceAccelerationStructureFeaturesKHR extends Stru /// @return the allocated `VkPhysicalDeviceAccelerationStructureFeaturesKHR` public static VkPhysicalDeviceAccelerationStructureFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAccelerationStructureFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAccelerationStructureFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAccelerationStructureFeaturesKHR` + public VkPhysicalDeviceAccelerationStructureFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceAccelerationStructureFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAccelerationStructureFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAccelerationStructureFeaturesKHR` + public VkPhysicalDeviceAccelerationStructureFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceAccelerationStructureFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructurePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructurePropertiesKHR.java index 8feea9e6..cd9d451d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructurePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceAccelerationStructurePropertiesKHR.java @@ -131,6 +131,17 @@ public final class VkPhysicalDeviceAccelerationStructurePropertiesKHR extends St /// @return the allocated `VkPhysicalDeviceAccelerationStructurePropertiesKHR` public static VkPhysicalDeviceAccelerationStructurePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAccelerationStructurePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAccelerationStructurePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAccelerationStructurePropertiesKHR` + public VkPhysicalDeviceAccelerationStructurePropertiesKHR asSlice(long index) { return new VkPhysicalDeviceAccelerationStructurePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAccelerationStructurePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAccelerationStructurePropertiesKHR` + public VkPhysicalDeviceAccelerationStructurePropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceAccelerationStructurePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR.java index 072bb1a3..125a12f8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR extends S /// @return the allocated `VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR` public static VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR` + public VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR` + public VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR.java index 5eee0b53..9ee816d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR extends /// @return the allocated `VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR` public static VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR` + public VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR asSlice(long index) { return new VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR` + public VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixFeaturesKHR.java index b260ebe5..3170f8a4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixFeaturesKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceCooperativeMatrixFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceCooperativeMatrixFeaturesKHR` public static VkPhysicalDeviceCooperativeMatrixFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrixFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixFeaturesKHR` + public VkPhysicalDeviceCooperativeMatrixFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrixFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixFeaturesKHR` + public VkPhysicalDeviceCooperativeMatrixFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrixFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixPropertiesKHR.java index 3cb42839..bd52e98f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceCooperativeMatrixPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCooperativeMatrixPropertiesKHR extends Struct /// @return the allocated `VkPhysicalDeviceCooperativeMatrixPropertiesKHR` public static VkPhysicalDeviceCooperativeMatrixPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrixPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixPropertiesKHR` + public VkPhysicalDeviceCooperativeMatrixPropertiesKHR asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrixPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixPropertiesKHR` + public VkPhysicalDeviceCooperativeMatrixPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrixPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR.java index c6f4afec..df296a18 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR extends /// @return the allocated `VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR` public static VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR` + public VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR` + public VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR.java index 53371292..71f9e5d1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR extend /// @return the allocated `VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR` public static VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR` + public VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR asSlice(long index) { return new VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR` + public VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateFeaturesKHR.java index d889c174..8194238f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateFeaturesKHR.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceFragmentShadingRateFeaturesKHR extends Struct /// @return the allocated `VkPhysicalDeviceFragmentShadingRateFeaturesKHR` public static VkPhysicalDeviceFragmentShadingRateFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShadingRateFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateFeaturesKHR` + public VkPhysicalDeviceFragmentShadingRateFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceFragmentShadingRateFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateFeaturesKHR` + public VkPhysicalDeviceFragmentShadingRateFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShadingRateFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateKHR.java index 6ba9ce92..be71a6da 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRateKHR.java @@ -97,6 +97,17 @@ public final class VkPhysicalDeviceFragmentShadingRateKHR extends Struct { /// @return the allocated `VkPhysicalDeviceFragmentShadingRateKHR` public static VkPhysicalDeviceFragmentShadingRateKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShadingRateKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateKHR` + public VkPhysicalDeviceFragmentShadingRateKHR asSlice(long index) { return new VkPhysicalDeviceFragmentShadingRateKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateKHR` + public VkPhysicalDeviceFragmentShadingRateKHR asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShadingRateKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRatePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRatePropertiesKHR.java index 65b9008e..38084730 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRatePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceFragmentShadingRatePropertiesKHR.java @@ -191,6 +191,17 @@ public final class VkPhysicalDeviceFragmentShadingRatePropertiesKHR extends Stru /// @return the allocated `VkPhysicalDeviceFragmentShadingRatePropertiesKHR` public static VkPhysicalDeviceFragmentShadingRatePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShadingRatePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRatePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShadingRatePropertiesKHR` + public VkPhysicalDeviceFragmentShadingRatePropertiesKHR asSlice(long index) { return new VkPhysicalDeviceFragmentShadingRatePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRatePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShadingRatePropertiesKHR` + public VkPhysicalDeviceFragmentShadingRatePropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShadingRatePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesKHR.java index 0e095bd8..1b5d39ef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesKHR.java @@ -37,7 +37,7 @@ /// ### layeredAPI /// [VarHandle][#VH_layeredAPI] - [Getter][#layeredAPI()] - [Setter][#layeredAPI(int)] /// ### deviceName -/// [Byte offset handle][#MH_deviceName] - [Memory layout][#ML_deviceName] - [Getter][#deviceName(long)] - [Setter][#deviceName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceName] - [Memory layout][#ML_deviceName] - [Getter][#deviceName()] - [Setter][#deviceName(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -70,8 +70,8 @@ public final class VkPhysicalDeviceLayeredApiPropertiesKHR extends Struct { public static final VarHandle VH_deviceID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("deviceID")); /// The [VarHandle] of `layeredAPI` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_layeredAPI = LAYOUT.arrayElementVarHandle(PathElement.groupElement("layeredAPI")); - /// The byte offset handle of `deviceName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceName = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceName"), PathElement.sequenceElement()); + /// The byte offset of `deviceName`. + public static final long OFFSET_deviceName = LAYOUT.byteOffset(PathElement.groupElement("deviceName")); /// The memory layout of `deviceName`. public static final MemoryLayout ML_deviceName = LAYOUT.select(PathElement.groupElement("deviceName")); @@ -110,6 +110,17 @@ public final class VkPhysicalDeviceLayeredApiPropertiesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceLayeredApiPropertiesKHR` public static VkPhysicalDeviceLayeredApiPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLayeredApiPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLayeredApiPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLayeredApiPropertiesKHR` + public VkPhysicalDeviceLayeredApiPropertiesKHR asSlice(long index) { return new VkPhysicalDeviceLayeredApiPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLayeredApiPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLayeredApiPropertiesKHR` + public VkPhysicalDeviceLayeredApiPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceLayeredApiPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -266,48 +277,34 @@ public final class VkPhysicalDeviceLayeredApiPropertiesKHR extends Struct { public VkPhysicalDeviceLayeredApiPropertiesKHR layeredAPI(@CType("VkPhysicalDeviceLayeredApiKHR") int value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_layeredAPI(this.segment(), value); return this; } /// {@return `deviceName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceName.invokeExact(0L, elementIndex), index), ML_deviceName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceName, index), ML_deviceName); } /// {@return `deviceName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment) { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(segment, 0L); } /// {@return `deviceName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceNameAt(long index, long elementIndex) { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceNameAt(long index) { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(this.segment(), index); } /// {@return `deviceName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceName(long elementIndex) { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceName() { return VkPhysicalDeviceLayeredApiPropertiesKHR.get_deviceName(this.segment()); } /// Sets `deviceName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceName.invokeExact(0L, elementIndex), index), ML_deviceName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceName(MemorySegment segment, long index, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceName, index), ML_deviceName.byteSize()); } /// Sets `deviceName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceName(MemorySegment segment, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(segment, 0L, value); } /// Sets `deviceName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLayeredApiPropertiesKHR deviceNameAt(long index, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLayeredApiPropertiesKHR deviceNameAt(long index, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(this.segment(), index, value); return this; } /// Sets `deviceName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLayeredApiPropertiesKHR deviceName(long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLayeredApiPropertiesKHR deviceName(@CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLayeredApiPropertiesKHR.set_deviceName(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesListKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesListKHR.java index 39263e12..fbe73245 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesListKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiPropertiesListKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceLayeredApiPropertiesListKHR extends Struct { /// @return the allocated `VkPhysicalDeviceLayeredApiPropertiesListKHR` public static VkPhysicalDeviceLayeredApiPropertiesListKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLayeredApiPropertiesListKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLayeredApiPropertiesListKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLayeredApiPropertiesListKHR` + public VkPhysicalDeviceLayeredApiPropertiesListKHR asSlice(long index) { return new VkPhysicalDeviceLayeredApiPropertiesListKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLayeredApiPropertiesListKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLayeredApiPropertiesListKHR` + public VkPhysicalDeviceLayeredApiPropertiesListKHR asSlice(long index, long count) { return new VkPhysicalDeviceLayeredApiPropertiesListKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiVulkanPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiVulkanPropertiesKHR.java index 01a2f08b..05bcd188 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiVulkanPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceLayeredApiVulkanPropertiesKHR.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceLayeredApiVulkanPropertiesKHR extends Struct /// @return the allocated `VkPhysicalDeviceLayeredApiVulkanPropertiesKHR` public static VkPhysicalDeviceLayeredApiVulkanPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLayeredApiVulkanPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLayeredApiVulkanPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLayeredApiVulkanPropertiesKHR` + public VkPhysicalDeviceLayeredApiVulkanPropertiesKHR asSlice(long index) { return new VkPhysicalDeviceLayeredApiVulkanPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLayeredApiVulkanPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLayeredApiVulkanPropertiesKHR` + public VkPhysicalDeviceLayeredApiVulkanPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceLayeredApiVulkanPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7FeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7FeaturesKHR.java index 0071bf6c..e7e80bfd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7FeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7FeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMaintenance7FeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance7FeaturesKHR` public static VkPhysicalDeviceMaintenance7FeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance7FeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance7FeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance7FeaturesKHR` + public VkPhysicalDeviceMaintenance7FeaturesKHR asSlice(long index) { return new VkPhysicalDeviceMaintenance7FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance7FeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance7FeaturesKHR` + public VkPhysicalDeviceMaintenance7FeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance7FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7PropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7PropertiesKHR.java index 7da5dc9c..d5e79df3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7PropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceMaintenance7PropertiesKHR.java @@ -131,6 +131,17 @@ public final class VkPhysicalDeviceMaintenance7PropertiesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance7PropertiesKHR` public static VkPhysicalDeviceMaintenance7PropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance7PropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance7PropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance7PropertiesKHR` + public VkPhysicalDeviceMaintenance7PropertiesKHR asSlice(long index) { return new VkPhysicalDeviceMaintenance7PropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance7PropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance7PropertiesKHR` + public VkPhysicalDeviceMaintenance7PropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance7PropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryFeaturesKHR.java index 4d4575c9..41c50b39 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryFeaturesKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDevicePerformanceQueryFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePerformanceQueryFeaturesKHR` public static VkPhysicalDevicePerformanceQueryFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePerformanceQueryFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePerformanceQueryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePerformanceQueryFeaturesKHR` + public VkPhysicalDevicePerformanceQueryFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePerformanceQueryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePerformanceQueryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePerformanceQueryFeaturesKHR` + public VkPhysicalDevicePerformanceQueryFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePerformanceQueryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryPropertiesKHR.java index 3c5e4b07..6c5ef46e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePerformanceQueryPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePerformanceQueryPropertiesKHR extends Struct /// @return the allocated `VkPhysicalDevicePerformanceQueryPropertiesKHR` public static VkPhysicalDevicePerformanceQueryPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePerformanceQueryPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePerformanceQueryPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePerformanceQueryPropertiesKHR` + public VkPhysicalDevicePerformanceQueryPropertiesKHR asSlice(long index) { return new VkPhysicalDevicePerformanceQueryPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePerformanceQueryPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePerformanceQueryPropertiesKHR` + public VkPhysicalDevicePerformanceQueryPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDevicePerformanceQueryPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryFeaturesKHR.java index 49613813..21a34b54 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineBinaryFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePipelineBinaryFeaturesKHR` public static VkPhysicalDevicePipelineBinaryFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineBinaryFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineBinaryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineBinaryFeaturesKHR` + public VkPhysicalDevicePipelineBinaryFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePipelineBinaryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineBinaryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineBinaryFeaturesKHR` + public VkPhysicalDevicePipelineBinaryFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePipelineBinaryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryPropertiesKHR.java index 31dbcc7c..c26a4a45 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineBinaryPropertiesKHR.java @@ -113,6 +113,17 @@ public final class VkPhysicalDevicePipelineBinaryPropertiesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePipelineBinaryPropertiesKHR` public static VkPhysicalDevicePipelineBinaryPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineBinaryPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineBinaryPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineBinaryPropertiesKHR` + public VkPhysicalDevicePipelineBinaryPropertiesKHR asSlice(long index) { return new VkPhysicalDevicePipelineBinaryPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineBinaryPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineBinaryPropertiesKHR` + public VkPhysicalDevicePipelineBinaryPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDevicePipelineBinaryPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.java index 59333109..91aee6d7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR exten /// @return the allocated `VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR` public static VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR` + public VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR` + public VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetFeaturesKHR.java index 48d0d001..322381bd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetFeaturesKHR.java @@ -173,6 +173,17 @@ public final class VkPhysicalDevicePortabilitySubsetFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePortabilitySubsetFeaturesKHR` public static VkPhysicalDevicePortabilitySubsetFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePortabilitySubsetFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePortabilitySubsetFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePortabilitySubsetFeaturesKHR` + public VkPhysicalDevicePortabilitySubsetFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePortabilitySubsetFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePortabilitySubsetFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePortabilitySubsetFeaturesKHR` + public VkPhysicalDevicePortabilitySubsetFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePortabilitySubsetFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetPropertiesKHR.java index 7b45e609..79fc512a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePortabilitySubsetPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePortabilitySubsetPropertiesKHR extends Struct /// @return the allocated `VkPhysicalDevicePortabilitySubsetPropertiesKHR` public static VkPhysicalDevicePortabilitySubsetPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePortabilitySubsetPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePortabilitySubsetPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePortabilitySubsetPropertiesKHR` + public VkPhysicalDevicePortabilitySubsetPropertiesKHR asSlice(long index) { return new VkPhysicalDevicePortabilitySubsetPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePortabilitySubsetPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePortabilitySubsetPropertiesKHR` + public VkPhysicalDevicePortabilitySubsetPropertiesKHR asSlice(long index, long count) { return new VkPhysicalDevicePortabilitySubsetPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentIdFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentIdFeaturesKHR.java index cc114023..a36c2d39 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentIdFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentIdFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePresentIdFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePresentIdFeaturesKHR` public static VkPhysicalDevicePresentIdFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePresentIdFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePresentIdFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePresentIdFeaturesKHR` + public VkPhysicalDevicePresentIdFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePresentIdFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePresentIdFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePresentIdFeaturesKHR` + public VkPhysicalDevicePresentIdFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePresentIdFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentWaitFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentWaitFeaturesKHR.java index 03ba1388..3649129f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentWaitFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDevicePresentWaitFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePresentWaitFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDevicePresentWaitFeaturesKHR` public static VkPhysicalDevicePresentWaitFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePresentWaitFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePresentWaitFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePresentWaitFeaturesKHR` + public VkPhysicalDevicePresentWaitFeaturesKHR asSlice(long index) { return new VkPhysicalDevicePresentWaitFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePresentWaitFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePresentWaitFeaturesKHR` + public VkPhysicalDevicePresentWaitFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDevicePresentWaitFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayQueryFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayQueryFeaturesKHR.java index 1a11c48c..6f7c1363 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayQueryFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayQueryFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRayQueryFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceRayQueryFeaturesKHR` public static VkPhysicalDeviceRayQueryFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayQueryFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayQueryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayQueryFeaturesKHR` + public VkPhysicalDeviceRayQueryFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceRayQueryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayQueryFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayQueryFeaturesKHR` + public VkPhysicalDeviceRayQueryFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceRayQueryFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR.java index bcfe5ddc..fb15411c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR extends Str /// @return the allocated `VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR` public static VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR` + public VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR asSlice(long index) { return new VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR` + public VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelineFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelineFeaturesKHR.java index 2deeb451..f4979188 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelineFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelineFeaturesKHR.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceRayTracingPipelineFeaturesKHR extends Struct /// @return the allocated `VkPhysicalDeviceRayTracingPipelineFeaturesKHR` public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingPipelineFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingPipelineFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingPipelineFeaturesKHR` + public VkPhysicalDeviceRayTracingPipelineFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceRayTracingPipelineFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingPipelineFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingPipelineFeaturesKHR` + public VkPhysicalDeviceRayTracingPipelineFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingPipelineFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelinePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelinePropertiesKHR.java index 494be729..8f64f3d0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelinePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPipelinePropertiesKHR.java @@ -131,6 +131,17 @@ public final class VkPhysicalDeviceRayTracingPipelinePropertiesKHR extends Struc /// @return the allocated `VkPhysicalDeviceRayTracingPipelinePropertiesKHR` public static VkPhysicalDeviceRayTracingPipelinePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingPipelinePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingPipelinePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingPipelinePropertiesKHR` + public VkPhysicalDeviceRayTracingPipelinePropertiesKHR asSlice(long index) { return new VkPhysicalDeviceRayTracingPipelinePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingPipelinePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingPipelinePropertiesKHR` + public VkPhysicalDeviceRayTracingPipelinePropertiesKHR asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingPipelinePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR.java index 64f5ade0..a2a1db67 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR extends St /// @return the allocated `VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR` public static VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR` + public VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR` + public VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderClockFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderClockFeaturesKHR.java index 39b65c90..62578b30 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderClockFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderClockFeaturesKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderClockFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceShaderClockFeaturesKHR` public static VkPhysicalDeviceShaderClockFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderClockFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderClockFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderClockFeaturesKHR` + public VkPhysicalDeviceShaderClockFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceShaderClockFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderClockFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderClockFeaturesKHR` + public VkPhysicalDeviceShaderClockFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceShaderClockFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR.java index 6cfce65a..a596ca45 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR extends /// @return the allocated `VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR` public static VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR` + public VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR` + public VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderQuadControlFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderQuadControlFeaturesKHR.java index f1de8387..a56c6d6e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderQuadControlFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderQuadControlFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderQuadControlFeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceShaderQuadControlFeaturesKHR` public static VkPhysicalDeviceShaderQuadControlFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderQuadControlFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderQuadControlFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderQuadControlFeaturesKHR` + public VkPhysicalDeviceShaderQuadControlFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceShaderQuadControlFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderQuadControlFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderQuadControlFeaturesKHR` + public VkPhysicalDeviceShaderQuadControlFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceShaderQuadControlFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.java index 4425b6fb..e0dbb277 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR e /// @return the allocated `VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR` public static VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR` + public VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR` + public VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR.java index 738bd0a3..cbac72fd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR e /// @return the allocated `VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR` public static VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR` + public VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR` + public VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceSurfaceInfo2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceSurfaceInfo2KHR.java index 469e27d0..99586283 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceSurfaceInfo2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceSurfaceInfo2KHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSurfaceInfo2KHR extends Struct { /// @return the allocated `VkPhysicalDeviceSurfaceInfo2KHR` public static VkPhysicalDeviceSurfaceInfo2KHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSurfaceInfo2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSurfaceInfo2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSurfaceInfo2KHR` + public VkPhysicalDeviceSurfaceInfo2KHR asSlice(long index) { return new VkPhysicalDeviceSurfaceInfo2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSurfaceInfo2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSurfaceInfo2KHR` + public VkPhysicalDeviceSurfaceInfo2KHR asSlice(long index, long count) { return new VkPhysicalDeviceSurfaceInfo2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeAV1FeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeAV1FeaturesKHR.java index bdbc34cb..2439da4d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeAV1FeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeAV1FeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVideoEncodeAV1FeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceVideoEncodeAV1FeaturesKHR` public static VkPhysicalDeviceVideoEncodeAV1FeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVideoEncodeAV1FeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVideoEncodeAV1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVideoEncodeAV1FeaturesKHR` + public VkPhysicalDeviceVideoEncodeAV1FeaturesKHR asSlice(long index) { return new VkPhysicalDeviceVideoEncodeAV1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVideoEncodeAV1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVideoEncodeAV1FeaturesKHR` + public VkPhysicalDeviceVideoEncodeAV1FeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceVideoEncodeAV1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR.java index 7961159c..d5312881 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR extends Struct /// @return the allocated `VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR` public static VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR` + public VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR asSlice(long index) { return new VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR` + public VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR asSlice(long index, long count) { return new VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.java index 8f32cb9a..9b7b273b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR extends /// @return the allocated `VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR` public static VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR` + public VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR` + public VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoFormatInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoFormatInfoKHR.java index d07bd6bb..5f3097d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoFormatInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoFormatInfoKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVideoFormatInfoKHR extends Struct { /// @return the allocated `VkPhysicalDeviceVideoFormatInfoKHR` public static VkPhysicalDeviceVideoFormatInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVideoFormatInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVideoFormatInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVideoFormatInfoKHR` + public VkPhysicalDeviceVideoFormatInfoKHR asSlice(long index) { return new VkPhysicalDeviceVideoFormatInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVideoFormatInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVideoFormatInfoKHR` + public VkPhysicalDeviceVideoFormatInfoKHR asSlice(long index, long count) { return new VkPhysicalDeviceVideoFormatInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoMaintenance1FeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoMaintenance1FeaturesKHR.java index 0fc8aaf5..21ce524e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoMaintenance1FeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceVideoMaintenance1FeaturesKHR.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVideoMaintenance1FeaturesKHR extends Struct { /// @return the allocated `VkPhysicalDeviceVideoMaintenance1FeaturesKHR` public static VkPhysicalDeviceVideoMaintenance1FeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVideoMaintenance1FeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVideoMaintenance1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVideoMaintenance1FeaturesKHR` + public VkPhysicalDeviceVideoMaintenance1FeaturesKHR asSlice(long index) { return new VkPhysicalDeviceVideoMaintenance1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVideoMaintenance1FeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVideoMaintenance1FeaturesKHR` + public VkPhysicalDeviceVideoMaintenance1FeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceVideoMaintenance1FeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.java index fe5aeaf7..4c1ca5c5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR exte /// @return the allocated `VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR` public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR` + public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR asSlice(long index) { return new VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR` + public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR asSlice(long index, long count) { return new VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryCreateInfoKHR.java index cfbf71ce..57b91515 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkPipelineBinaryCreateInfoKHR extends Struct { /// @return the allocated `VkPipelineBinaryCreateInfoKHR` public static VkPipelineBinaryCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryCreateInfoKHR` + public VkPipelineBinaryCreateInfoKHR asSlice(long index) { return new VkPipelineBinaryCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryCreateInfoKHR` + public VkPipelineBinaryCreateInfoKHR asSlice(long index, long count) { return new VkPipelineBinaryCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataInfoKHR.java index 2a3b855c..025011c9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataInfoKHR.java @@ -89,6 +89,17 @@ public final class VkPipelineBinaryDataInfoKHR extends Struct { /// @return the allocated `VkPipelineBinaryDataInfoKHR` public static VkPipelineBinaryDataInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryDataInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryDataInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryDataInfoKHR` + public VkPipelineBinaryDataInfoKHR asSlice(long index) { return new VkPipelineBinaryDataInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryDataInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryDataInfoKHR` + public VkPipelineBinaryDataInfoKHR asSlice(long index, long count) { return new VkPipelineBinaryDataInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataKHR.java index 66d85d31..702fd6c5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryDataKHR.java @@ -83,6 +83,17 @@ public final class VkPipelineBinaryDataKHR extends Struct { /// @return the allocated `VkPipelineBinaryDataKHR` public static VkPipelineBinaryDataKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryDataKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryDataKHR` + public VkPipelineBinaryDataKHR asSlice(long index) { return new VkPipelineBinaryDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryDataKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryDataKHR` + public VkPipelineBinaryDataKHR asSlice(long index, long count) { return new VkPipelineBinaryDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `dataSize` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryHandlesInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryHandlesInfoKHR.java index 3dae4d5c..9ed459c5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryHandlesInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryHandlesInfoKHR.java @@ -95,6 +95,17 @@ public final class VkPipelineBinaryHandlesInfoKHR extends Struct { /// @return the allocated `VkPipelineBinaryHandlesInfoKHR` public static VkPipelineBinaryHandlesInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryHandlesInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryHandlesInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryHandlesInfoKHR` + public VkPipelineBinaryHandlesInfoKHR asSlice(long index) { return new VkPipelineBinaryHandlesInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryHandlesInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryHandlesInfoKHR` + public VkPipelineBinaryHandlesInfoKHR asSlice(long index, long count) { return new VkPipelineBinaryHandlesInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryInfoKHR.java index 3e099d4d..bcc4f978 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryInfoKHR.java @@ -95,6 +95,17 @@ public final class VkPipelineBinaryInfoKHR extends Struct { /// @return the allocated `VkPipelineBinaryInfoKHR` public static VkPipelineBinaryInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryInfoKHR` + public VkPipelineBinaryInfoKHR asSlice(long index) { return new VkPipelineBinaryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryInfoKHR` + public VkPipelineBinaryInfoKHR asSlice(long index, long count) { return new VkPipelineBinaryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeyKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeyKHR.java index c60fe5eb..2c2175fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeyKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeyKHR.java @@ -33,7 +33,7 @@ /// ### keySize /// [VarHandle][#VH_keySize] - [Getter][#keySize()] - [Setter][#keySize(int)] /// ### key -/// [Byte offset handle][#MH_key] - [Memory layout][#ML_key] - [Getter][#key(long)] - [Setter][#key(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_key] - [Memory layout][#ML_key] - [Getter][#key()] - [Setter][#key(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -58,8 +58,8 @@ public final class VkPipelineBinaryKeyKHR extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `keySize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_keySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("keySize")); - /// The byte offset handle of `key` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_key = LAYOUT.byteOffsetHandle(PathElement.groupElement("key"), PathElement.sequenceElement()); + /// The byte offset of `key`. + public static final long OFFSET_key = LAYOUT.byteOffset(PathElement.groupElement("key")); /// The memory layout of `key`. public static final MemoryLayout ML_key = LAYOUT.select(PathElement.groupElement("key")); @@ -98,6 +98,17 @@ public final class VkPipelineBinaryKeyKHR extends Struct { /// @return the allocated `VkPipelineBinaryKeyKHR` public static VkPipelineBinaryKeyKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryKeyKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryKeyKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryKeyKHR` + public VkPipelineBinaryKeyKHR asSlice(long index) { return new VkPipelineBinaryKeyKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryKeyKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryKeyKHR` + public VkPipelineBinaryKeyKHR asSlice(long index, long count) { return new VkPipelineBinaryKeyKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -192,48 +203,34 @@ public final class VkPipelineBinaryKeyKHR extends Struct { public VkPipelineBinaryKeyKHR keySize(@CType("uint32_t") int value) { VkPipelineBinaryKeyKHR.set_keySize(this.segment(), value); return this; } /// {@return `key` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment get_key(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_key.invokeExact(0L, elementIndex), index), ML_key); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment get_key(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_key, index), ML_key); } /// {@return `key`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment get_key(MemorySegment segment, long elementIndex) { return VkPipelineBinaryKeyKHR.get_key(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment get_key(MemorySegment segment) { return VkPipelineBinaryKeyKHR.get_key(segment, 0L); } /// {@return `key` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment keyAt(long index, long elementIndex) { return VkPipelineBinaryKeyKHR.get_key(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment keyAt(long index) { return VkPipelineBinaryKeyKHR.get_key(this.segment(), index); } /// {@return `key`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment key(long elementIndex) { return VkPipelineBinaryKeyKHR.get_key(this.segment(), elementIndex); } + public @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment key() { return VkPipelineBinaryKeyKHR.get_key(this.segment()); } /// Sets `key` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_key(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_key.invokeExact(0L, elementIndex), index), ML_key.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_key(MemorySegment segment, long index, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_key, index), ML_key.byteSize()); } /// Sets `key` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_key(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_key(MemorySegment segment, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(segment, 0L, value); } /// Sets `key` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineBinaryKeyKHR keyAt(long index, long elementIndex, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(this.segment(), index, elementIndex, value); return this; } + public VkPipelineBinaryKeyKHR keyAt(long index, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(this.segment(), index, value); return this; } /// Sets `key` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineBinaryKeyKHR key(long elementIndex, @CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(this.segment(), elementIndex, value); return this; } + public VkPipelineBinaryKeyKHR key(@CType("uint8_t[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR]") java.lang.foreign.MemorySegment value) { VkPipelineBinaryKeyKHR.set_key(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeysAndDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeysAndDataKHR.java index 35ad8dfb..133eeac7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeysAndDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineBinaryKeysAndDataKHR.java @@ -89,6 +89,17 @@ public final class VkPipelineBinaryKeysAndDataKHR extends Struct { /// @return the allocated `VkPipelineBinaryKeysAndDataKHR` public static VkPipelineBinaryKeysAndDataKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineBinaryKeysAndDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineBinaryKeysAndDataKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineBinaryKeysAndDataKHR` + public VkPipelineBinaryKeysAndDataKHR asSlice(long index) { return new VkPipelineBinaryKeysAndDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineBinaryKeysAndDataKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineBinaryKeysAndDataKHR` + public VkPipelineBinaryKeysAndDataKHR asSlice(long index, long count) { return new VkPipelineBinaryKeysAndDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `binaryCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineCreateInfoKHR.java index 79b747b5..c6410cac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineCreateInfoKHR.java @@ -83,6 +83,17 @@ public final class VkPipelineCreateInfoKHR extends Struct { /// @return the allocated `VkPipelineCreateInfoKHR` public static VkPipelineCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCreateInfoKHR` + public VkPipelineCreateInfoKHR asSlice(long index) { return new VkPipelineCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCreateInfoKHR` + public VkPipelineCreateInfoKHR asSlice(long index, long count) { return new VkPipelineCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInfoKHR.java index 87b7372c..c9e32bba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInfoKHR.java @@ -95,6 +95,17 @@ public final class VkPipelineExecutableInfoKHR extends Struct { /// @return the allocated `VkPipelineExecutableInfoKHR` public static VkPipelineExecutableInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineExecutableInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineExecutableInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineExecutableInfoKHR` + public VkPipelineExecutableInfoKHR asSlice(long index) { return new VkPipelineExecutableInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineExecutableInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineExecutableInfoKHR` + public VkPipelineExecutableInfoKHR asSlice(long index, long count) { return new VkPipelineExecutableInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInternalRepresentationKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInternalRepresentationKHR.java index 78e72349..9244fae1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInternalRepresentationKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableInternalRepresentationKHR.java @@ -32,9 +32,9 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### name -/// [Byte offset handle][#MH_name] - [Memory layout][#ML_name] - [Getter][#name(long)] - [Setter][#name(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_name] - [Memory layout][#ML_name] - [Getter][#name()] - [Setter][#name(java.lang.foreign.MemorySegment)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### isText /// [VarHandle][#VH_isText] - [Getter][#isText()] - [Setter][#isText(int)] /// ### dataSize @@ -69,12 +69,12 @@ public final class VkPipelineExecutableInternalRepresentationKHR extends Struct public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `name` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_name = LAYOUT.byteOffsetHandle(PathElement.groupElement("name"), PathElement.sequenceElement()); + /// The byte offset of `name`. + public static final long OFFSET_name = LAYOUT.byteOffset(PathElement.groupElement("name")); /// The memory layout of `name`. public static final MemoryLayout ML_name = LAYOUT.select(PathElement.groupElement("name")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `isText` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -119,6 +119,17 @@ public final class VkPipelineExecutableInternalRepresentationKHR extends Struct /// @return the allocated `VkPipelineExecutableInternalRepresentationKHR` public static VkPipelineExecutableInternalRepresentationKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineExecutableInternalRepresentationKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineExecutableInternalRepresentationKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineExecutableInternalRepresentationKHR` + public VkPipelineExecutableInternalRepresentationKHR asSlice(long index) { return new VkPipelineExecutableInternalRepresentationKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineExecutableInternalRepresentationKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineExecutableInternalRepresentationKHR` + public VkPipelineExecutableInternalRepresentationKHR asSlice(long index, long count) { return new VkPipelineExecutableInternalRepresentationKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -182,94 +193,66 @@ public final class VkPipelineExecutableInternalRepresentationKHR extends Struct public VkPipelineExecutableInternalRepresentationKHR pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_pNext(this.segment(), value); return this; } /// {@return `name` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_name, index), ML_name); } /// {@return `name`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_name(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment) { return VkPipelineExecutableInternalRepresentationKHR.get_name(segment, 0L); } /// {@return `name` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index, long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_name(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index) { return VkPipelineExecutableInternalRepresentationKHR.get_name(this.segment(), index); } /// {@return `name`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name(long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_name(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name() { return VkPipelineExecutableInternalRepresentationKHR.get_name(this.segment()); } /// Sets `name` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_name(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_name, index), ML_name.byteSize()); } /// Sets `name` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_name(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(segment, 0L, value); } /// Sets `name` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutableInternalRepresentationKHR nameAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutableInternalRepresentationKHR nameAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(this.segment(), index, value); return this; } /// Sets `name` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutableInternalRepresentationKHR name(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutableInternalRepresentationKHR name(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_name(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkPipelineExecutableInternalRepresentationKHR.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkPipelineExecutableInternalRepresentationKHR.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkPipelineExecutableInternalRepresentationKHR.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkPipelineExecutableInternalRepresentationKHR.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutableInternalRepresentationKHR descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutableInternalRepresentationKHR descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutableInternalRepresentationKHR description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutableInternalRepresentationKHR description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableInternalRepresentationKHR.set_description(this.segment(), value); return this; } /// {@return `isText` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutablePropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutablePropertiesKHR.java index 950a1fea..d1897050 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutablePropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutablePropertiesKHR.java @@ -34,9 +34,9 @@ /// ### stages /// [VarHandle][#VH_stages] - [Getter][#stages()] - [Setter][#stages(int)] /// ### name -/// [Byte offset handle][#MH_name] - [Memory layout][#ML_name] - [Getter][#name(long)] - [Setter][#name(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_name] - [Memory layout][#ML_name] - [Getter][#name()] - [Setter][#name(java.lang.foreign.MemorySegment)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### subgroupSize /// [VarHandle][#VH_subgroupSize] - [Getter][#subgroupSize()] - [Setter][#subgroupSize(int)] /// ## Layout @@ -67,12 +67,12 @@ public final class VkPipelineExecutablePropertiesKHR extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `stages` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_stages = LAYOUT.arrayElementVarHandle(PathElement.groupElement("stages")); - /// The byte offset handle of `name` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_name = LAYOUT.byteOffsetHandle(PathElement.groupElement("name"), PathElement.sequenceElement()); + /// The byte offset of `name`. + public static final long OFFSET_name = LAYOUT.byteOffset(PathElement.groupElement("name")); /// The memory layout of `name`. public static final MemoryLayout ML_name = LAYOUT.select(PathElement.groupElement("name")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `subgroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -113,6 +113,17 @@ public final class VkPipelineExecutablePropertiesKHR extends Struct { /// @return the allocated `VkPipelineExecutablePropertiesKHR` public static VkPipelineExecutablePropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineExecutablePropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineExecutablePropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineExecutablePropertiesKHR` + public VkPipelineExecutablePropertiesKHR asSlice(long index) { return new VkPipelineExecutablePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineExecutablePropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineExecutablePropertiesKHR` + public VkPipelineExecutablePropertiesKHR asSlice(long index, long count) { return new VkPipelineExecutablePropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -207,94 +218,66 @@ public final class VkPipelineExecutablePropertiesKHR extends Struct { public VkPipelineExecutablePropertiesKHR stages(@CType("VkShaderStageFlags") int value) { VkPipelineExecutablePropertiesKHR.set_stages(this.segment(), value); return this; } /// {@return `name` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_name, index), ML_name); } /// {@return `name`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_name(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment) { return VkPipelineExecutablePropertiesKHR.get_name(segment, 0L); } /// {@return `name` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index, long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_name(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index) { return VkPipelineExecutablePropertiesKHR.get_name(this.segment(), index); } /// {@return `name`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name(long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_name(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name() { return VkPipelineExecutablePropertiesKHR.get_name(this.segment()); } /// Sets `name` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_name(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_name, index), ML_name.byteSize()); } /// Sets `name` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_name(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(segment, 0L, value); } /// Sets `name` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutablePropertiesKHR nameAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutablePropertiesKHR nameAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(this.segment(), index, value); return this; } /// Sets `name` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutablePropertiesKHR name(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutablePropertiesKHR name(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_name(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkPipelineExecutablePropertiesKHR.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkPipelineExecutablePropertiesKHR.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkPipelineExecutablePropertiesKHR.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkPipelineExecutablePropertiesKHR.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutablePropertiesKHR descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutablePropertiesKHR descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutablePropertiesKHR description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutablePropertiesKHR description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutablePropertiesKHR.set_description(this.segment(), value); return this; } /// {@return `subgroupSize` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableStatisticKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableStatisticKHR.java index ad53a5f1..14fd47bc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableStatisticKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineExecutableStatisticKHR.java @@ -32,9 +32,9 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### name -/// [Byte offset handle][#MH_name] - [Memory layout][#ML_name] - [Getter][#name(long)] - [Setter][#name(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_name] - [Memory layout][#ML_name] - [Getter][#name()] - [Setter][#name(java.lang.foreign.MemorySegment)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### format /// [VarHandle][#VH_format] - [Getter][#format()] - [Setter][#format(int)] /// ### value @@ -65,12 +65,12 @@ public final class VkPipelineExecutableStatisticKHR extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `name` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_name = LAYOUT.byteOffsetHandle(PathElement.groupElement("name"), PathElement.sequenceElement()); + /// The byte offset of `name`. + public static final long OFFSET_name = LAYOUT.byteOffset(PathElement.groupElement("name")); /// The memory layout of `name`. public static final MemoryLayout ML_name = LAYOUT.select(PathElement.groupElement("name")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); /// The [VarHandle] of `format` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -115,6 +115,17 @@ public final class VkPipelineExecutableStatisticKHR extends Struct { /// @return the allocated `VkPipelineExecutableStatisticKHR` public static VkPipelineExecutableStatisticKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineExecutableStatisticKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineExecutableStatisticKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineExecutableStatisticKHR` + public VkPipelineExecutableStatisticKHR asSlice(long index) { return new VkPipelineExecutableStatisticKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineExecutableStatisticKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineExecutableStatisticKHR` + public VkPipelineExecutableStatisticKHR asSlice(long index, long count) { return new VkPipelineExecutableStatisticKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -178,94 +189,66 @@ public final class VkPipelineExecutableStatisticKHR extends Struct { public VkPipelineExecutableStatisticKHR pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_pNext(this.segment(), value); return this; } /// {@return `name` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_name, index), ML_name); } /// {@return `name`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long elementIndex) { return VkPipelineExecutableStatisticKHR.get_name(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment) { return VkPipelineExecutableStatisticKHR.get_name(segment, 0L); } /// {@return `name` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index, long elementIndex) { return VkPipelineExecutableStatisticKHR.get_name(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment nameAt(long index) { return VkPipelineExecutableStatisticKHR.get_name(this.segment(), index); } /// {@return `name`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name(long elementIndex) { return VkPipelineExecutableStatisticKHR.get_name(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment name() { return VkPipelineExecutableStatisticKHR.get_name(this.segment()); } /// Sets `name` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_name(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_name, index), ML_name.byteSize()); } /// Sets `name` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_name(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(segment, 0L, value); } /// Sets `name` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutableStatisticKHR nameAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutableStatisticKHR nameAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(this.segment(), index, value); return this; } /// Sets `name` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutableStatisticKHR name(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutableStatisticKHR name(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_name(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkPipelineExecutableStatisticKHR.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkPipelineExecutableStatisticKHR.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkPipelineExecutableStatisticKHR.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkPipelineExecutableStatisticKHR.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkPipelineExecutableStatisticKHR.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkPipelineExecutableStatisticKHR.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineExecutableStatisticKHR descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(this.segment(), index, elementIndex, value); return this; } + public VkPipelineExecutableStatisticKHR descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineExecutableStatisticKHR description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(this.segment(), elementIndex, value); return this; } + public VkPipelineExecutableStatisticKHR description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineExecutableStatisticKHR.set_description(this.segment(), value); return this; } /// {@return `format` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineFragmentShadingRateStateCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineFragmentShadingRateStateCreateInfoKHR.java index c8b7ba0c..fb4b92b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineFragmentShadingRateStateCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineFragmentShadingRateStateCreateInfoKHR.java @@ -32,7 +32,7 @@ /// ### fragmentSize /// [Byte offset][#OFFSET_fragmentSize] - [Memory layout][#ML_fragmentSize] - [Getter][#fragmentSize()] - [Setter][#fragmentSize(java.lang.foreign.MemorySegment)] /// ### combinerOps -/// [VarHandle][#VH_combinerOps] - [Getter][#combinerOps()] - [Setter][#combinerOps(int)] +/// [Byte offset][#OFFSET_combinerOps] - [Memory layout][#ML_combinerOps] - [Getter][#combinerOps()] - [Setter][#combinerOps(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -40,7 +40,7 @@ /// VkStructureType sType; /// const void * pNext; /// VkExtent2D fragmentSize; -/// VkFragmentShadingRateCombinerOpKHR combinerOps; +/// VkFragmentShadingRateCombinerOpKHR[2] combinerOps; /// } VkPipelineFragmentShadingRateStateCreateInfoKHR; /// ``` public final class VkPipelineFragmentShadingRateStateCreateInfoKHR extends Struct { @@ -49,7 +49,7 @@ public final class VkPipelineFragmentShadingRateStateCreateInfoKHR extends Struc ValueLayout.JAVA_INT.withName("sType"), ValueLayout.ADDRESS.withName("pNext"), overrungl.vulkan.struct.VkExtent2D.LAYOUT.withName("fragmentSize"), - ValueLayout.JAVA_INT.withName("combinerOps") + MemoryLayout.sequenceLayout(2, ValueLayout.JAVA_INT).withName("combinerOps") ); /// The [VarHandle] of `sType` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); @@ -59,8 +59,10 @@ public final class VkPipelineFragmentShadingRateStateCreateInfoKHR extends Struc public static final long OFFSET_fragmentSize = LAYOUT.byteOffset(PathElement.groupElement("fragmentSize")); /// The memory layout of `fragmentSize`. public static final MemoryLayout ML_fragmentSize = LAYOUT.select(PathElement.groupElement("fragmentSize")); - /// The [VarHandle] of `combinerOps` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_combinerOps = LAYOUT.arrayElementVarHandle(PathElement.groupElement("combinerOps")); + /// The byte offset of `combinerOps`. + public static final long OFFSET_combinerOps = LAYOUT.byteOffset(PathElement.groupElement("combinerOps")); + /// The memory layout of `combinerOps`. + public static final MemoryLayout ML_combinerOps = LAYOUT.select(PathElement.groupElement("combinerOps")); /// Creates `VkPipelineFragmentShadingRateStateCreateInfoKHR` with the given segment. /// @param segment the memory segment @@ -97,6 +99,17 @@ public final class VkPipelineFragmentShadingRateStateCreateInfoKHR extends Struc /// @return the allocated `VkPipelineFragmentShadingRateStateCreateInfoKHR` public static VkPipelineFragmentShadingRateStateCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineFragmentShadingRateStateCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineFragmentShadingRateStateCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineFragmentShadingRateStateCreateInfoKHR` + public VkPipelineFragmentShadingRateStateCreateInfoKHR asSlice(long index) { return new VkPipelineFragmentShadingRateStateCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineFragmentShadingRateStateCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineFragmentShadingRateStateCreateInfoKHR` + public VkPipelineFragmentShadingRateStateCreateInfoKHR asSlice(long index, long count) { return new VkPipelineFragmentShadingRateStateCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -193,32 +206,32 @@ public final class VkPipelineFragmentShadingRateStateCreateInfoKHR extends Struc /// {@return `combinerOps` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("VkFragmentShadingRateCombinerOpKHR") int get_combinerOps(MemorySegment segment, long index) { return (int) VH_combinerOps.get(segment, 0L, index); } + public static @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment get_combinerOps(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_combinerOps, index), ML_combinerOps); } /// {@return `combinerOps`} /// @param segment the segment of the struct - public static @CType("VkFragmentShadingRateCombinerOpKHR") int get_combinerOps(MemorySegment segment) { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(segment, 0L); } + public static @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment get_combinerOps(MemorySegment segment) { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(segment, 0L); } /// {@return `combinerOps` at the given index} /// @param index the index - public @CType("VkFragmentShadingRateCombinerOpKHR") int combinerOpsAt(long index) { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(this.segment(), index); } + public @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment combinerOpsAt(long index) { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(this.segment(), index); } /// {@return `combinerOps`} - public @CType("VkFragmentShadingRateCombinerOpKHR") int combinerOps() { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(this.segment()); } + public @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment combinerOps() { return VkPipelineFragmentShadingRateStateCreateInfoKHR.get_combinerOps(this.segment()); } /// Sets `combinerOps` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_combinerOps(MemorySegment segment, long index, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VH_combinerOps.set(segment, 0L, index, value); } + public static void set_combinerOps(MemorySegment segment, long index, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_combinerOps, index), ML_combinerOps.byteSize()); } /// Sets `combinerOps` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_combinerOps(MemorySegment segment, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(segment, 0L, value); } + public static void set_combinerOps(MemorySegment segment, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(segment, 0L, value); } /// Sets `combinerOps` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOpsAt(long index, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(this.segment(), index, value); return this; } + public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOpsAt(long index, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(this.segment(), index, value); return this; } /// Sets `combinerOps` with the given value. /// @param value the value /// @return `this` - public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOps(@CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(this.segment(), value); return this; } + public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOps(@CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateStateCreateInfoKHR.set_combinerOps(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineInfoKHR.java index 6c0bf701..e34e555a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineInfoKHR.java @@ -89,6 +89,17 @@ public final class VkPipelineInfoKHR extends Struct { /// @return the allocated `VkPipelineInfoKHR` public static VkPipelineInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineInfoKHR` + public VkPipelineInfoKHR asSlice(long index) { return new VkPipelineInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineInfoKHR` + public VkPipelineInfoKHR asSlice(long index, long count) { return new VkPipelineInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineLibraryCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineLibraryCreateInfoKHR.java index 4c4f0eb3..0aca438f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineLibraryCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPipelineLibraryCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkPipelineLibraryCreateInfoKHR extends Struct { /// @return the allocated `VkPipelineLibraryCreateInfoKHR` public static VkPipelineLibraryCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineLibraryCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineLibraryCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineLibraryCreateInfoKHR` + public VkPipelineLibraryCreateInfoKHR asSlice(long index) { return new VkPipelineLibraryCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineLibraryCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineLibraryCreateInfoKHR` + public VkPipelineLibraryCreateInfoKHR asSlice(long index, long count) { return new VkPipelineLibraryCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentIdKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentIdKHR.java index 2ab49745..47720320 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentIdKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentIdKHR.java @@ -95,6 +95,17 @@ public final class VkPresentIdKHR extends Struct { /// @return the allocated `VkPresentIdKHR` public static VkPresentIdKHR alloc(SegmentAllocator allocator, long count) { return new VkPresentIdKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentIdKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentIdKHR` + public VkPresentIdKHR asSlice(long index) { return new VkPresentIdKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentIdKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentIdKHR` + public VkPresentIdKHR asSlice(long index, long count) { return new VkPresentIdKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentInfoKHR.java index 5f6bc231..caea49bb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentInfoKHR.java @@ -119,6 +119,17 @@ public final class VkPresentInfoKHR extends Struct { /// @return the allocated `VkPresentInfoKHR` public static VkPresentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkPresentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentInfoKHR` + public VkPresentInfoKHR asSlice(long index) { return new VkPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentInfoKHR` + public VkPresentInfoKHR asSlice(long index, long count) { return new VkPresentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionKHR.java index e3d1e8dc..cdd9b454 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionKHR.java @@ -83,6 +83,17 @@ public final class VkPresentRegionKHR extends Struct { /// @return the allocated `VkPresentRegionKHR` public static VkPresentRegionKHR alloc(SegmentAllocator allocator, long count) { return new VkPresentRegionKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentRegionKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentRegionKHR` + public VkPresentRegionKHR asSlice(long index) { return new VkPresentRegionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentRegionKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentRegionKHR` + public VkPresentRegionKHR asSlice(long index, long count) { return new VkPresentRegionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `rectangleCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionsKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionsKHR.java index fe3d7364..9bdf64ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionsKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkPresentRegionsKHR.java @@ -95,6 +95,17 @@ public final class VkPresentRegionsKHR extends Struct { /// @return the allocated `VkPresentRegionsKHR` public static VkPresentRegionsKHR alloc(SegmentAllocator allocator, long count) { return new VkPresentRegionsKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPresentRegionsKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPresentRegionsKHR` + public VkPresentRegionsKHR asSlice(long index) { return new VkPresentRegionsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPresentRegionsKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPresentRegionsKHR` + public VkPresentRegionsKHR asSlice(long index, long count) { return new VkPresentRegionsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolPerformanceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolPerformanceCreateInfoKHR.java index 1eaa45e1..100b270e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolPerformanceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolPerformanceCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkQueryPoolPerformanceCreateInfoKHR extends Struct { /// @return the allocated `VkQueryPoolPerformanceCreateInfoKHR` public static VkQueryPoolPerformanceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkQueryPoolPerformanceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueryPoolPerformanceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueryPoolPerformanceCreateInfoKHR` + public VkQueryPoolPerformanceCreateInfoKHR asSlice(long index) { return new VkQueryPoolPerformanceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueryPoolPerformanceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueryPoolPerformanceCreateInfoKHR` + public VkQueryPoolPerformanceCreateInfoKHR asSlice(long index, long count) { return new VkQueryPoolPerformanceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolVideoEncodeFeedbackCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolVideoEncodeFeedbackCreateInfoKHR.java index b5a2012d..402b86da 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolVideoEncodeFeedbackCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueryPoolVideoEncodeFeedbackCreateInfoKHR.java @@ -89,6 +89,17 @@ public final class VkQueryPoolVideoEncodeFeedbackCreateInfoKHR extends Struct { /// @return the allocated `VkQueryPoolVideoEncodeFeedbackCreateInfoKHR` public static VkQueryPoolVideoEncodeFeedbackCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkQueryPoolVideoEncodeFeedbackCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueryPoolVideoEncodeFeedbackCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueryPoolVideoEncodeFeedbackCreateInfoKHR` + public VkQueryPoolVideoEncodeFeedbackCreateInfoKHR asSlice(long index) { return new VkQueryPoolVideoEncodeFeedbackCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueryPoolVideoEncodeFeedbackCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueryPoolVideoEncodeFeedbackCreateInfoKHR` + public VkQueryPoolVideoEncodeFeedbackCreateInfoKHR asSlice(long index, long count) { return new VkQueryPoolVideoEncodeFeedbackCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyQueryResultStatusPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyQueryResultStatusPropertiesKHR.java index fd37e8a5..b4e404ee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyQueryResultStatusPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyQueryResultStatusPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkQueueFamilyQueryResultStatusPropertiesKHR extends Struct { /// @return the allocated `VkQueueFamilyQueryResultStatusPropertiesKHR` public static VkQueueFamilyQueryResultStatusPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyQueryResultStatusPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyQueryResultStatusPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyQueryResultStatusPropertiesKHR` + public VkQueueFamilyQueryResultStatusPropertiesKHR asSlice(long index) { return new VkQueueFamilyQueryResultStatusPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyQueryResultStatusPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyQueryResultStatusPropertiesKHR` + public VkQueueFamilyQueryResultStatusPropertiesKHR asSlice(long index, long count) { return new VkQueueFamilyQueryResultStatusPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyVideoPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyVideoPropertiesKHR.java index fb4cef4e..5e4f715e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyVideoPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkQueueFamilyVideoPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkQueueFamilyVideoPropertiesKHR extends Struct { /// @return the allocated `VkQueueFamilyVideoPropertiesKHR` public static VkQueueFamilyVideoPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyVideoPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyVideoPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyVideoPropertiesKHR` + public VkQueueFamilyVideoPropertiesKHR asSlice(long index) { return new VkQueueFamilyVideoPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyVideoPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyVideoPropertiesKHR` + public VkQueueFamilyVideoPropertiesKHR asSlice(long index, long count) { return new VkQueueFamilyVideoPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineCreateInfoKHR.java index f99176f9..9c47e150 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineCreateInfoKHR.java @@ -155,6 +155,17 @@ public final class VkRayTracingPipelineCreateInfoKHR extends Struct { /// @return the allocated `VkRayTracingPipelineCreateInfoKHR` public static VkRayTracingPipelineCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkRayTracingPipelineCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRayTracingPipelineCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRayTracingPipelineCreateInfoKHR` + public VkRayTracingPipelineCreateInfoKHR asSlice(long index) { return new VkRayTracingPipelineCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRayTracingPipelineCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRayTracingPipelineCreateInfoKHR` + public VkRayTracingPipelineCreateInfoKHR asSlice(long index, long count) { return new VkRayTracingPipelineCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineInterfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineInterfaceCreateInfoKHR.java index c6962df5..3d91f0ee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineInterfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingPipelineInterfaceCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkRayTracingPipelineInterfaceCreateInfoKHR extends Struct { /// @return the allocated `VkRayTracingPipelineInterfaceCreateInfoKHR` public static VkRayTracingPipelineInterfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkRayTracingPipelineInterfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRayTracingPipelineInterfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRayTracingPipelineInterfaceCreateInfoKHR` + public VkRayTracingPipelineInterfaceCreateInfoKHR asSlice(long index) { return new VkRayTracingPipelineInterfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRayTracingPipelineInterfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRayTracingPipelineInterfaceCreateInfoKHR` + public VkRayTracingPipelineInterfaceCreateInfoKHR asSlice(long index, long count) { return new VkRayTracingPipelineInterfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingShaderGroupCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingShaderGroupCreateInfoKHR.java index a59ecc5f..d8ceed81 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingShaderGroupCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRayTracingShaderGroupCreateInfoKHR.java @@ -119,6 +119,17 @@ public final class VkRayTracingShaderGroupCreateInfoKHR extends Struct { /// @return the allocated `VkRayTracingShaderGroupCreateInfoKHR` public static VkRayTracingShaderGroupCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkRayTracingShaderGroupCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRayTracingShaderGroupCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRayTracingShaderGroupCreateInfoKHR` + public VkRayTracingShaderGroupCreateInfoKHR asSlice(long index) { return new VkRayTracingShaderGroupCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRayTracingShaderGroupCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRayTracingShaderGroupCreateInfoKHR` + public VkRayTracingShaderGroupCreateInfoKHR asSlice(long index, long count) { return new VkRayTracingShaderGroupCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRectLayerKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRectLayerKHR.java index 2b09e031..3e0e776f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRectLayerKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRectLayerKHR.java @@ -93,6 +93,17 @@ public final class VkRectLayerKHR extends Struct { /// @return the allocated `VkRectLayerKHR` public static VkRectLayerKHR alloc(SegmentAllocator allocator, long count) { return new VkRectLayerKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRectLayerKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRectLayerKHR` + public VkRectLayerKHR asSlice(long index) { return new VkRectLayerKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRectLayerKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRectLayerKHR` + public VkRectLayerKHR asSlice(long index, long count) { return new VkRectLayerKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `offset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectKHR.java index 2e2c8d1f..9f69d439 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectKHR.java @@ -89,6 +89,17 @@ public final class VkRefreshObjectKHR extends Struct { /// @return the allocated `VkRefreshObjectKHR` public static VkRefreshObjectKHR alloc(SegmentAllocator allocator, long count) { return new VkRefreshObjectKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRefreshObjectKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRefreshObjectKHR` + public VkRefreshObjectKHR asSlice(long index) { return new VkRefreshObjectKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRefreshObjectKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRefreshObjectKHR` + public VkRefreshObjectKHR asSlice(long index, long count) { return new VkRefreshObjectKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `objectType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectListKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectListKHR.java index 27cfe19d..7ca3d3a9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectListKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRefreshObjectListKHR.java @@ -95,6 +95,17 @@ public final class VkRefreshObjectListKHR extends Struct { /// @return the allocated `VkRefreshObjectListKHR` public static VkRefreshObjectListKHR alloc(SegmentAllocator allocator, long count) { return new VkRefreshObjectListKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRefreshObjectListKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRefreshObjectListKHR` + public VkRefreshObjectListKHR asSlice(long index) { return new VkRefreshObjectListKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRefreshObjectListKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRefreshObjectListKHR` + public VkRefreshObjectListKHR asSlice(long index, long count) { return new VkRefreshObjectListKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkReleaseCapturedPipelineDataInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkReleaseCapturedPipelineDataInfoKHR.java index 7c0f766c..4d3ec688 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkReleaseCapturedPipelineDataInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkReleaseCapturedPipelineDataInfoKHR.java @@ -89,6 +89,17 @@ public final class VkReleaseCapturedPipelineDataInfoKHR extends Struct { /// @return the allocated `VkReleaseCapturedPipelineDataInfoKHR` public static VkReleaseCapturedPipelineDataInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkReleaseCapturedPipelineDataInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkReleaseCapturedPipelineDataInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkReleaseCapturedPipelineDataInfoKHR` + public VkReleaseCapturedPipelineDataInfoKHR asSlice(long index) { return new VkReleaseCapturedPipelineDataInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkReleaseCapturedPipelineDataInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkReleaseCapturedPipelineDataInfoKHR` + public VkReleaseCapturedPipelineDataInfoKHR asSlice(long index, long count) { return new VkReleaseCapturedPipelineDataInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRenderingFragmentShadingRateAttachmentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRenderingFragmentShadingRateAttachmentInfoKHR.java index 040b9c0f..34f6b6fb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRenderingFragmentShadingRateAttachmentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkRenderingFragmentShadingRateAttachmentInfoKHR.java @@ -103,6 +103,17 @@ public final class VkRenderingFragmentShadingRateAttachmentInfoKHR extends Struc /// @return the allocated `VkRenderingFragmentShadingRateAttachmentInfoKHR` public static VkRenderingFragmentShadingRateAttachmentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkRenderingFragmentShadingRateAttachmentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingFragmentShadingRateAttachmentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingFragmentShadingRateAttachmentInfoKHR` + public VkRenderingFragmentShadingRateAttachmentInfoKHR asSlice(long index) { return new VkRenderingFragmentShadingRateAttachmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingFragmentShadingRateAttachmentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingFragmentShadingRateAttachmentInfoKHR` + public VkRenderingFragmentShadingRateAttachmentInfoKHR asSlice(long index, long count) { return new VkRenderingFragmentShadingRateAttachmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetFdInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetFdInfoKHR.java index df41423b..01881b3d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetFdInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetFdInfoKHR.java @@ -95,6 +95,17 @@ public final class VkSemaphoreGetFdInfoKHR extends Struct { /// @return the allocated `VkSemaphoreGetFdInfoKHR` public static VkSemaphoreGetFdInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreGetFdInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreGetFdInfoKHR` + public VkSemaphoreGetFdInfoKHR asSlice(long index) { return new VkSemaphoreGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreGetFdInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreGetFdInfoKHR` + public VkSemaphoreGetFdInfoKHR asSlice(long index, long count) { return new VkSemaphoreGetFdInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetWin32HandleInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetWin32HandleInfoKHR.java index 6f09056f..3734106a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetWin32HandleInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSemaphoreGetWin32HandleInfoKHR.java @@ -95,6 +95,17 @@ public final class VkSemaphoreGetWin32HandleInfoKHR extends Struct { /// @return the allocated `VkSemaphoreGetWin32HandleInfoKHR` public static VkSemaphoreGetWin32HandleInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreGetWin32HandleInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreGetWin32HandleInfoKHR` + public VkSemaphoreGetWin32HandleInfoKHR asSlice(long index) { return new VkSemaphoreGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreGetWin32HandleInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreGetWin32HandleInfoKHR` + public VkSemaphoreGetWin32HandleInfoKHR asSlice(long index, long count) { return new VkSemaphoreGetWin32HandleInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSharedPresentSurfaceCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSharedPresentSurfaceCapabilitiesKHR.java index 3b4b03ad..c72d54ca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSharedPresentSurfaceCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSharedPresentSurfaceCapabilitiesKHR.java @@ -89,6 +89,17 @@ public final class VkSharedPresentSurfaceCapabilitiesKHR extends Struct { /// @return the allocated `VkSharedPresentSurfaceCapabilitiesKHR` public static VkSharedPresentSurfaceCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkSharedPresentSurfaceCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSharedPresentSurfaceCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSharedPresentSurfaceCapabilitiesKHR` + public VkSharedPresentSurfaceCapabilitiesKHR asSlice(long index) { return new VkSharedPresentSurfaceCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSharedPresentSurfaceCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSharedPresentSurfaceCapabilitiesKHR` + public VkSharedPresentSurfaceCapabilitiesKHR asSlice(long index, long count) { return new VkSharedPresentSurfaceCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkStridedDeviceAddressRegionKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkStridedDeviceAddressRegionKHR.java index 99e1b827..704625ad 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkStridedDeviceAddressRegionKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkStridedDeviceAddressRegionKHR.java @@ -89,6 +89,17 @@ public final class VkStridedDeviceAddressRegionKHR extends Struct { /// @return the allocated `VkStridedDeviceAddressRegionKHR` public static VkStridedDeviceAddressRegionKHR alloc(SegmentAllocator allocator, long count) { return new VkStridedDeviceAddressRegionKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkStridedDeviceAddressRegionKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkStridedDeviceAddressRegionKHR` + public VkStridedDeviceAddressRegionKHR asSlice(long index) { return new VkStridedDeviceAddressRegionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkStridedDeviceAddressRegionKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkStridedDeviceAddressRegionKHR` + public VkStridedDeviceAddressRegionKHR asSlice(long index, long count) { return new VkStridedDeviceAddressRegionKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `deviceAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilities2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilities2KHR.java index 23add36a..d544c695 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilities2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilities2KHR.java @@ -91,6 +91,17 @@ public final class VkSurfaceCapabilities2KHR extends Struct { /// @return the allocated `VkSurfaceCapabilities2KHR` public static VkSurfaceCapabilities2KHR alloc(SegmentAllocator allocator, long count) { return new VkSurfaceCapabilities2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceCapabilities2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceCapabilities2KHR` + public VkSurfaceCapabilities2KHR asSlice(long index) { return new VkSurfaceCapabilities2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceCapabilities2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceCapabilities2KHR` + public VkSurfaceCapabilities2KHR asSlice(long index, long count) { return new VkSurfaceCapabilities2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilitiesKHR.java index aa7c9167..65a0d8fd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceCapabilitiesKHR.java @@ -137,6 +137,17 @@ public final class VkSurfaceCapabilitiesKHR extends Struct { /// @return the allocated `VkSurfaceCapabilitiesKHR` public static VkSurfaceCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkSurfaceCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceCapabilitiesKHR` + public VkSurfaceCapabilitiesKHR asSlice(long index) { return new VkSurfaceCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceCapabilitiesKHR` + public VkSurfaceCapabilitiesKHR asSlice(long index, long count) { return new VkSurfaceCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `minImageCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormat2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormat2KHR.java index fada16c8..49c2f7f0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormat2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormat2KHR.java @@ -91,6 +91,17 @@ public final class VkSurfaceFormat2KHR extends Struct { /// @return the allocated `VkSurfaceFormat2KHR` public static VkSurfaceFormat2KHR alloc(SegmentAllocator allocator, long count) { return new VkSurfaceFormat2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceFormat2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceFormat2KHR` + public VkSurfaceFormat2KHR asSlice(long index) { return new VkSurfaceFormat2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceFormat2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceFormat2KHR` + public VkSurfaceFormat2KHR asSlice(long index, long count) { return new VkSurfaceFormat2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormatKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormatKHR.java index 028fa482..f2c2198b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormatKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceFormatKHR.java @@ -83,6 +83,17 @@ public final class VkSurfaceFormatKHR extends Struct { /// @return the allocated `VkSurfaceFormatKHR` public static VkSurfaceFormatKHR alloc(SegmentAllocator allocator, long count) { return new VkSurfaceFormatKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceFormatKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceFormatKHR` + public VkSurfaceFormatKHR asSlice(long index) { return new VkSurfaceFormatKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceFormatKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceFormatKHR` + public VkSurfaceFormatKHR asSlice(long index, long count) { return new VkSurfaceFormatKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `format` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceProtectedCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceProtectedCapabilitiesKHR.java index 18996412..d0ad8d6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceProtectedCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSurfaceProtectedCapabilitiesKHR.java @@ -89,6 +89,17 @@ public final class VkSurfaceProtectedCapabilitiesKHR extends Struct { /// @return the allocated `VkSurfaceProtectedCapabilitiesKHR` public static VkSurfaceProtectedCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkSurfaceProtectedCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceProtectedCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceProtectedCapabilitiesKHR` + public VkSurfaceProtectedCapabilitiesKHR asSlice(long index) { return new VkSurfaceProtectedCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceProtectedCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceProtectedCapabilitiesKHR` + public VkSurfaceProtectedCapabilitiesKHR asSlice(long index, long count) { return new VkSurfaceProtectedCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSwapchainCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSwapchainCreateInfoKHR.java index 47dda33d..2e859b95 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSwapchainCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkSwapchainCreateInfoKHR.java @@ -181,6 +181,17 @@ public final class VkSwapchainCreateInfoKHR extends Struct { /// @return the allocated `VkSwapchainCreateInfoKHR` public static VkSwapchainCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkSwapchainCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainCreateInfoKHR` + public VkSwapchainCreateInfoKHR asSlice(long index) { return new VkSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainCreateInfoKHR` + public VkSwapchainCreateInfoKHR asSlice(long index, long count) { return new VkSwapchainCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommand2KHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommand2KHR.java index 7a7e4160..c319a8dc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommand2KHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommand2KHR.java @@ -155,6 +155,17 @@ public final class VkTraceRaysIndirectCommand2KHR extends Struct { /// @return the allocated `VkTraceRaysIndirectCommand2KHR` public static VkTraceRaysIndirectCommand2KHR alloc(SegmentAllocator allocator, long count) { return new VkTraceRaysIndirectCommand2KHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTraceRaysIndirectCommand2KHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTraceRaysIndirectCommand2KHR` + public VkTraceRaysIndirectCommand2KHR asSlice(long index) { return new VkTraceRaysIndirectCommand2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTraceRaysIndirectCommand2KHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTraceRaysIndirectCommand2KHR` + public VkTraceRaysIndirectCommand2KHR asSlice(long index, long count) { return new VkTraceRaysIndirectCommand2KHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `raygenShaderRecordAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommandKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommandKHR.java index a05270d1..ef12a594 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommandKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTraceRaysIndirectCommandKHR.java @@ -89,6 +89,17 @@ public final class VkTraceRaysIndirectCommandKHR extends Struct { /// @return the allocated `VkTraceRaysIndirectCommandKHR` public static VkTraceRaysIndirectCommandKHR alloc(SegmentAllocator allocator, long count) { return new VkTraceRaysIndirectCommandKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTraceRaysIndirectCommandKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTraceRaysIndirectCommandKHR` + public VkTraceRaysIndirectCommandKHR asSlice(long index) { return new VkTraceRaysIndirectCommandKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTraceRaysIndirectCommandKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTraceRaysIndirectCommandKHR` + public VkTraceRaysIndirectCommandKHR asSlice(long index, long count) { return new VkTraceRaysIndirectCommandKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `width` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTransformMatrixKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTransformMatrixKHR.java index 2caa639f..3097ee1f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTransformMatrixKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkTransformMatrixKHR.java @@ -26,21 +26,23 @@ /// ## Members /// ### matrix -/// [VarHandle][#VH_matrix] - [Getter][#matrix()] - [Setter][#matrix(float)] +/// [Byte offset][#OFFSET_matrix] - [Memory layout][#ML_matrix] - [Getter][#matrix()] - [Setter][#matrix(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c /// typedef struct VkTransformMatrixKHR { -/// float matrix; +/// float[3] matrix; /// } VkTransformMatrixKHR; /// ``` public final class VkTransformMatrixKHR extends Struct { /// The struct layout of `VkTransformMatrixKHR`. public static final StructLayout LAYOUT = LayoutBuilder.struct( - ValueLayout.JAVA_FLOAT.withName("matrix") + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_FLOAT).withName("matrix") ); - /// The [VarHandle] of `matrix` of type `(MemorySegment base, long baseOffset, long index)float`. - public static final VarHandle VH_matrix = LAYOUT.arrayElementVarHandle(PathElement.groupElement("matrix")); + /// The byte offset of `matrix`. + public static final long OFFSET_matrix = LAYOUT.byteOffset(PathElement.groupElement("matrix")); + /// The memory layout of `matrix`. + public static final MemoryLayout ML_matrix = LAYOUT.select(PathElement.groupElement("matrix")); /// Creates `VkTransformMatrixKHR` with the given segment. /// @param segment the memory segment @@ -77,35 +79,46 @@ public final class VkTransformMatrixKHR extends Struct { /// @return the allocated `VkTransformMatrixKHR` public static VkTransformMatrixKHR alloc(SegmentAllocator allocator, long count) { return new VkTransformMatrixKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTransformMatrixKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTransformMatrixKHR` + public VkTransformMatrixKHR asSlice(long index) { return new VkTransformMatrixKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTransformMatrixKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTransformMatrixKHR` + public VkTransformMatrixKHR asSlice(long index, long count) { return new VkTransformMatrixKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `matrix` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("float") float get_matrix(MemorySegment segment, long index) { return (float) VH_matrix.get(segment, 0L, index); } + public static @CType("float[3]") java.lang.foreign.MemorySegment get_matrix(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_matrix, index), ML_matrix); } /// {@return `matrix`} /// @param segment the segment of the struct - public static @CType("float") float get_matrix(MemorySegment segment) { return VkTransformMatrixKHR.get_matrix(segment, 0L); } + public static @CType("float[3]") java.lang.foreign.MemorySegment get_matrix(MemorySegment segment) { return VkTransformMatrixKHR.get_matrix(segment, 0L); } /// {@return `matrix` at the given index} /// @param index the index - public @CType("float") float matrixAt(long index) { return VkTransformMatrixKHR.get_matrix(this.segment(), index); } + public @CType("float[3]") java.lang.foreign.MemorySegment matrixAt(long index) { return VkTransformMatrixKHR.get_matrix(this.segment(), index); } /// {@return `matrix`} - public @CType("float") float matrix() { return VkTransformMatrixKHR.get_matrix(this.segment()); } + public @CType("float[3]") java.lang.foreign.MemorySegment matrix() { return VkTransformMatrixKHR.get_matrix(this.segment()); } /// Sets `matrix` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_matrix(MemorySegment segment, long index, @CType("float") float value) { VH_matrix.set(segment, 0L, index, value); } + public static void set_matrix(MemorySegment segment, long index, @CType("float[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_matrix, index), ML_matrix.byteSize()); } /// Sets `matrix` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_matrix(MemorySegment segment, @CType("float") float value) { VkTransformMatrixKHR.set_matrix(segment, 0L, value); } + public static void set_matrix(MemorySegment segment, @CType("float[3]") java.lang.foreign.MemorySegment value) { VkTransformMatrixKHR.set_matrix(segment, 0L, value); } /// Sets `matrix` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkTransformMatrixKHR matrixAt(long index, @CType("float") float value) { VkTransformMatrixKHR.set_matrix(this.segment(), index, value); return this; } + public VkTransformMatrixKHR matrixAt(long index, @CType("float[3]") java.lang.foreign.MemorySegment value) { VkTransformMatrixKHR.set_matrix(this.segment(), index, value); return this; } /// Sets `matrix` with the given value. /// @param value the value /// @return `this` - public VkTransformMatrixKHR matrix(@CType("float") float value) { VkTransformMatrixKHR.set_matrix(this.segment(), value); return this; } + public VkTransformMatrixKHR matrix(@CType("float[3]") java.lang.foreign.MemorySegment value) { VkTransformMatrixKHR.set_matrix(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoBeginCodingInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoBeginCodingInfoKHR.java index fcc17fea..60907893 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoBeginCodingInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoBeginCodingInfoKHR.java @@ -113,6 +113,17 @@ public final class VkVideoBeginCodingInfoKHR extends Struct { /// @return the allocated `VkVideoBeginCodingInfoKHR` public static VkVideoBeginCodingInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoBeginCodingInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoBeginCodingInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoBeginCodingInfoKHR` + public VkVideoBeginCodingInfoKHR asSlice(long index) { return new VkVideoBeginCodingInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoBeginCodingInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoBeginCodingInfoKHR` + public VkVideoBeginCodingInfoKHR asSlice(long index, long count) { return new VkVideoBeginCodingInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCapabilitiesKHR.java index 255e7dfb..322120dc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCapabilitiesKHR.java @@ -145,6 +145,17 @@ public final class VkVideoCapabilitiesKHR extends Struct { /// @return the allocated `VkVideoCapabilitiesKHR` public static VkVideoCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoCapabilitiesKHR` + public VkVideoCapabilitiesKHR asSlice(long index) { return new VkVideoCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoCapabilitiesKHR` + public VkVideoCapabilitiesKHR asSlice(long index, long count) { return new VkVideoCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCodingControlInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCodingControlInfoKHR.java index e5df82fe..106d0884 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCodingControlInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoCodingControlInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoCodingControlInfoKHR extends Struct { /// @return the allocated `VkVideoCodingControlInfoKHR` public static VkVideoCodingControlInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoCodingControlInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoCodingControlInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoCodingControlInfoKHR` + public VkVideoCodingControlInfoKHR asSlice(long index) { return new VkVideoCodingControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoCodingControlInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoCodingControlInfoKHR` + public VkVideoCodingControlInfoKHR asSlice(long index, long count) { return new VkVideoCodingControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1CapabilitiesKHR.java index 0d2da8d9..717ef287 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1CapabilitiesKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeAV1CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoDecodeAV1CapabilitiesKHR` public static VkVideoDecodeAV1CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeAV1CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeAV1CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeAV1CapabilitiesKHR` + public VkVideoDecodeAV1CapabilitiesKHR asSlice(long index) { return new VkVideoDecodeAV1CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeAV1CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeAV1CapabilitiesKHR` + public VkVideoDecodeAV1CapabilitiesKHR asSlice(long index, long count) { return new VkVideoDecodeAV1CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1DpbSlotInfoKHR.java index e339582e..4d328c83 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeAV1DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeAV1DpbSlotInfoKHR` public static VkVideoDecodeAV1DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeAV1DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeAV1DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeAV1DpbSlotInfoKHR` + public VkVideoDecodeAV1DpbSlotInfoKHR asSlice(long index) { return new VkVideoDecodeAV1DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeAV1DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeAV1DpbSlotInfoKHR` + public VkVideoDecodeAV1DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoDecodeAV1DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1PictureInfoKHR.java index ce223135..828120b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1PictureInfoKHR.java @@ -33,7 +33,7 @@ /// ### pStdPictureInfo /// [VarHandle][#VH_pStdPictureInfo] - [Getter][#pStdPictureInfo()] - [Setter][#pStdPictureInfo(java.lang.foreign.MemorySegment)] /// ### referenceNameSlotIndices -/// [Byte offset handle][#MH_referenceNameSlotIndices] - [Memory layout][#ML_referenceNameSlotIndices] - [Getter][#referenceNameSlotIndices(long)] - [Setter][#referenceNameSlotIndices(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_referenceNameSlotIndices] - [Memory layout][#ML_referenceNameSlotIndices] - [Getter][#referenceNameSlotIndices()] - [Setter][#referenceNameSlotIndices(java.lang.foreign.MemorySegment)] /// ### frameHeaderOffset /// [VarHandle][#VH_frameHeaderOffset] - [Getter][#frameHeaderOffset()] - [Setter][#frameHeaderOffset(int)] /// ### tileCount @@ -74,8 +74,8 @@ public final class VkVideoDecodeAV1PictureInfoKHR extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `pStdPictureInfo` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pStdPictureInfo = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pStdPictureInfo")); - /// The byte offset handle of `referenceNameSlotIndices` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_referenceNameSlotIndices = LAYOUT.byteOffsetHandle(PathElement.groupElement("referenceNameSlotIndices"), PathElement.sequenceElement()); + /// The byte offset of `referenceNameSlotIndices`. + public static final long OFFSET_referenceNameSlotIndices = LAYOUT.byteOffset(PathElement.groupElement("referenceNameSlotIndices")); /// The memory layout of `referenceNameSlotIndices`. public static final MemoryLayout ML_referenceNameSlotIndices = LAYOUT.select(PathElement.groupElement("referenceNameSlotIndices")); /// The [VarHandle] of `frameHeaderOffset` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -122,6 +122,17 @@ public final class VkVideoDecodeAV1PictureInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeAV1PictureInfoKHR` public static VkVideoDecodeAV1PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeAV1PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeAV1PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeAV1PictureInfoKHR` + public VkVideoDecodeAV1PictureInfoKHR asSlice(long index) { return new VkVideoDecodeAV1PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeAV1PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeAV1PictureInfoKHR` + public VkVideoDecodeAV1PictureInfoKHR asSlice(long index, long count) { return new VkVideoDecodeAV1PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -216,49 +227,35 @@ public final class VkVideoDecodeAV1PictureInfoKHR extends Struct { public VkVideoDecodeAV1PictureInfoKHR pStdPictureInfo(@CType("const StdVideoDecodeAV1PictureInfo *") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_pStdPictureInfo(this.segment(), value); return this; } /// {@return `referenceNameSlotIndices` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_referenceNameSlotIndices.invokeExact(0L, elementIndex), index), ML_referenceNameSlotIndices); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_referenceNameSlotIndices, index), ML_referenceNameSlotIndices); } /// {@return `referenceNameSlotIndices`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long elementIndex) { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment) { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(segment, 0L); } /// {@return `referenceNameSlotIndices` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndicesAt(long index, long elementIndex) { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndicesAt(long index) { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), index); } /// {@return `referenceNameSlotIndices`} - /// @param elementIndex the index of the element - public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndices(long elementIndex) { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), elementIndex); } + public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndices() { return VkVideoDecodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment()); } /// Sets `referenceNameSlotIndices` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_referenceNameSlotIndices(MemorySegment segment, long index, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_referenceNameSlotIndices.invokeExact(0L, elementIndex), index), ML_referenceNameSlotIndices.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_referenceNameSlotIndices(MemorySegment segment, long index, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_referenceNameSlotIndices, index), ML_referenceNameSlotIndices.byteSize()); } /// Sets `referenceNameSlotIndices` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_referenceNameSlotIndices(MemorySegment segment, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_referenceNameSlotIndices(MemorySegment segment, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(segment, 0L, value); } /// Sets `referenceNameSlotIndices` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkVideoDecodeAV1PictureInfoKHR referenceNameSlotIndicesAt(long index, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), index, elementIndex, value); return this; } + public VkVideoDecodeAV1PictureInfoKHR referenceNameSlotIndicesAt(long index, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), index, value); return this; } /// Sets `referenceNameSlotIndices` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkVideoDecodeAV1PictureInfoKHR referenceNameSlotIndices(long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), elementIndex, value); return this; } + public VkVideoDecodeAV1PictureInfoKHR referenceNameSlotIndices(@CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoDecodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), value); return this; } /// {@return `frameHeaderOffset` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1ProfileInfoKHR.java index d6206cda..176fb0cf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1ProfileInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoDecodeAV1ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeAV1ProfileInfoKHR` public static VkVideoDecodeAV1ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeAV1ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeAV1ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeAV1ProfileInfoKHR` + public VkVideoDecodeAV1ProfileInfoKHR asSlice(long index) { return new VkVideoDecodeAV1ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeAV1ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeAV1ProfileInfoKHR` + public VkVideoDecodeAV1ProfileInfoKHR asSlice(long index, long count) { return new VkVideoDecodeAV1ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1SessionParametersCreateInfoKHR.java index 8e8671e2..d29076e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeAV1SessionParametersCreateInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeAV1SessionParametersCreateInfoKHR extends Struct /// @return the allocated `VkVideoDecodeAV1SessionParametersCreateInfoKHR` public static VkVideoDecodeAV1SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeAV1SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeAV1SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeAV1SessionParametersCreateInfoKHR` + public VkVideoDecodeAV1SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoDecodeAV1SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeAV1SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeAV1SessionParametersCreateInfoKHR` + public VkVideoDecodeAV1SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoDecodeAV1SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeCapabilitiesKHR.java index 00d01042..c7d350d6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeCapabilitiesKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeCapabilitiesKHR extends Struct { /// @return the allocated `VkVideoDecodeCapabilitiesKHR` public static VkVideoDecodeCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeCapabilitiesKHR` + public VkVideoDecodeCapabilitiesKHR asSlice(long index) { return new VkVideoDecodeCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeCapabilitiesKHR` + public VkVideoDecodeCapabilitiesKHR asSlice(long index, long count) { return new VkVideoDecodeCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264CapabilitiesKHR.java index 2b0ca271..c08bf4b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264CapabilitiesKHR.java @@ -97,6 +97,17 @@ public final class VkVideoDecodeH264CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoDecodeH264CapabilitiesKHR` public static VkVideoDecodeH264CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264CapabilitiesKHR` + public VkVideoDecodeH264CapabilitiesKHR asSlice(long index) { return new VkVideoDecodeH264CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264CapabilitiesKHR` + public VkVideoDecodeH264CapabilitiesKHR asSlice(long index, long count) { return new VkVideoDecodeH264CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264DpbSlotInfoKHR.java index 3e7e97af..3b182eec 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeH264DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH264DpbSlotInfoKHR` public static VkVideoDecodeH264DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264DpbSlotInfoKHR` + public VkVideoDecodeH264DpbSlotInfoKHR asSlice(long index) { return new VkVideoDecodeH264DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264DpbSlotInfoKHR` + public VkVideoDecodeH264DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH264DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264PictureInfoKHR.java index e2e8d554..439b862c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264PictureInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoDecodeH264PictureInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH264PictureInfoKHR` public static VkVideoDecodeH264PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264PictureInfoKHR` + public VkVideoDecodeH264PictureInfoKHR asSlice(long index) { return new VkVideoDecodeH264PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264PictureInfoKHR` + public VkVideoDecodeH264PictureInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH264PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264ProfileInfoKHR.java index 627ae6fd..7914e0fd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264ProfileInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoDecodeH264ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH264ProfileInfoKHR` public static VkVideoDecodeH264ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264ProfileInfoKHR` + public VkVideoDecodeH264ProfileInfoKHR asSlice(long index) { return new VkVideoDecodeH264ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264ProfileInfoKHR` + public VkVideoDecodeH264ProfileInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH264ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersAddInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersAddInfoKHR.java index 8a658673..4265f4f0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersAddInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersAddInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoDecodeH264SessionParametersAddInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH264SessionParametersAddInfoKHR` public static VkVideoDecodeH264SessionParametersAddInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264SessionParametersAddInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264SessionParametersAddInfoKHR` + public VkVideoDecodeH264SessionParametersAddInfoKHR asSlice(long index) { return new VkVideoDecodeH264SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264SessionParametersAddInfoKHR` + public VkVideoDecodeH264SessionParametersAddInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH264SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersCreateInfoKHR.java index d5a27fb7..13578dbe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH264SessionParametersCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoDecodeH264SessionParametersCreateInfoKHR extends Struc /// @return the allocated `VkVideoDecodeH264SessionParametersCreateInfoKHR` public static VkVideoDecodeH264SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH264SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH264SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH264SessionParametersCreateInfoKHR` + public VkVideoDecodeH264SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoDecodeH264SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH264SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH264SessionParametersCreateInfoKHR` + public VkVideoDecodeH264SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH264SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265CapabilitiesKHR.java index 90d9a2b9..1b28f5d7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265CapabilitiesKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeH265CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoDecodeH265CapabilitiesKHR` public static VkVideoDecodeH265CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265CapabilitiesKHR` + public VkVideoDecodeH265CapabilitiesKHR asSlice(long index) { return new VkVideoDecodeH265CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265CapabilitiesKHR` + public VkVideoDecodeH265CapabilitiesKHR asSlice(long index, long count) { return new VkVideoDecodeH265CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265DpbSlotInfoKHR.java index 8bf44a40..7fe90840 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeH265DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH265DpbSlotInfoKHR` public static VkVideoDecodeH265DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265DpbSlotInfoKHR` + public VkVideoDecodeH265DpbSlotInfoKHR asSlice(long index) { return new VkVideoDecodeH265DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265DpbSlotInfoKHR` + public VkVideoDecodeH265DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH265DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265PictureInfoKHR.java index 967829fb..fa06cb34 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265PictureInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoDecodeH265PictureInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH265PictureInfoKHR` public static VkVideoDecodeH265PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265PictureInfoKHR` + public VkVideoDecodeH265PictureInfoKHR asSlice(long index) { return new VkVideoDecodeH265PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265PictureInfoKHR` + public VkVideoDecodeH265PictureInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH265PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265ProfileInfoKHR.java index 85a978e2..987e2b0c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265ProfileInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeH265ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH265ProfileInfoKHR` public static VkVideoDecodeH265ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265ProfileInfoKHR` + public VkVideoDecodeH265ProfileInfoKHR asSlice(long index) { return new VkVideoDecodeH265ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265ProfileInfoKHR` + public VkVideoDecodeH265ProfileInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH265ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersAddInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersAddInfoKHR.java index cc8644e2..e8facf81 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersAddInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersAddInfoKHR.java @@ -119,6 +119,17 @@ public final class VkVideoDecodeH265SessionParametersAddInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeH265SessionParametersAddInfoKHR` public static VkVideoDecodeH265SessionParametersAddInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265SessionParametersAddInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265SessionParametersAddInfoKHR` + public VkVideoDecodeH265SessionParametersAddInfoKHR asSlice(long index) { return new VkVideoDecodeH265SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265SessionParametersAddInfoKHR` + public VkVideoDecodeH265SessionParametersAddInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH265SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersCreateInfoKHR.java index 48edd395..884ab684 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeH265SessionParametersCreateInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoDecodeH265SessionParametersCreateInfoKHR extends Struc /// @return the allocated `VkVideoDecodeH265SessionParametersCreateInfoKHR` public static VkVideoDecodeH265SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeH265SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeH265SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeH265SessionParametersCreateInfoKHR` + public VkVideoDecodeH265SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoDecodeH265SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeH265SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeH265SessionParametersCreateInfoKHR` + public VkVideoDecodeH265SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoDecodeH265SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeInfoKHR.java index 1532888a..272b73aa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeInfoKHR.java @@ -133,6 +133,17 @@ public final class VkVideoDecodeInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeInfoKHR` public static VkVideoDecodeInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeInfoKHR` + public VkVideoDecodeInfoKHR asSlice(long index) { return new VkVideoDecodeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeInfoKHR` + public VkVideoDecodeInfoKHR asSlice(long index, long count) { return new VkVideoDecodeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeUsageInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeUsageInfoKHR.java index 7da6470a..31b1b0bf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeUsageInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoDecodeUsageInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoDecodeUsageInfoKHR extends Struct { /// @return the allocated `VkVideoDecodeUsageInfoKHR` public static VkVideoDecodeUsageInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoDecodeUsageInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoDecodeUsageInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoDecodeUsageInfoKHR` + public VkVideoDecodeUsageInfoKHR asSlice(long index) { return new VkVideoDecodeUsageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoDecodeUsageInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoDecodeUsageInfoKHR` + public VkVideoDecodeUsageInfoKHR asSlice(long index, long count) { return new VkVideoDecodeUsageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1CapabilitiesKHR.java index 3eb94dcd..2464d404 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1CapabilitiesKHR.java @@ -235,6 +235,17 @@ public final class VkVideoEncodeAV1CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1CapabilitiesKHR` public static VkVideoEncodeAV1CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1CapabilitiesKHR` + public VkVideoEncodeAV1CapabilitiesKHR asSlice(long index) { return new VkVideoEncodeAV1CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1CapabilitiesKHR` + public VkVideoEncodeAV1CapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeAV1CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1DpbSlotInfoKHR.java index 16094481..d78e8c0e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeAV1DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1DpbSlotInfoKHR` public static VkVideoEncodeAV1DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1DpbSlotInfoKHR` + public VkVideoEncodeAV1DpbSlotInfoKHR asSlice(long index) { return new VkVideoEncodeAV1DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1DpbSlotInfoKHR` + public VkVideoEncodeAV1DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1FrameSizeKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1FrameSizeKHR.java index 92ff4c88..3a327335 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1FrameSizeKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1FrameSizeKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeAV1FrameSizeKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1FrameSizeKHR` public static VkVideoEncodeAV1FrameSizeKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1FrameSizeKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1FrameSizeKHR` + public VkVideoEncodeAV1FrameSizeKHR asSlice(long index) { return new VkVideoEncodeAV1FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1FrameSizeKHR` + public VkVideoEncodeAV1FrameSizeKHR asSlice(long index, long count) { return new VkVideoEncodeAV1FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `intraFrameSize` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1GopRemainingFrameInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1GopRemainingFrameInfoKHR.java index 9fd44888..424d8c7a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1GopRemainingFrameInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1GopRemainingFrameInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeAV1GopRemainingFrameInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1GopRemainingFrameInfoKHR` public static VkVideoEncodeAV1GopRemainingFrameInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1GopRemainingFrameInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1GopRemainingFrameInfoKHR` + public VkVideoEncodeAV1GopRemainingFrameInfoKHR asSlice(long index) { return new VkVideoEncodeAV1GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1GopRemainingFrameInfoKHR` + public VkVideoEncodeAV1GopRemainingFrameInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1PictureInfoKHR.java index e6ecb989..c9088f0f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1PictureInfoKHR.java @@ -39,7 +39,7 @@ /// ### pStdPictureInfo /// [VarHandle][#VH_pStdPictureInfo] - [Getter][#pStdPictureInfo()] - [Setter][#pStdPictureInfo(java.lang.foreign.MemorySegment)] /// ### referenceNameSlotIndices -/// [Byte offset handle][#MH_referenceNameSlotIndices] - [Memory layout][#ML_referenceNameSlotIndices] - [Getter][#referenceNameSlotIndices(long)] - [Setter][#referenceNameSlotIndices(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_referenceNameSlotIndices] - [Memory layout][#ML_referenceNameSlotIndices] - [Getter][#referenceNameSlotIndices()] - [Setter][#referenceNameSlotIndices(java.lang.foreign.MemorySegment)] /// ### primaryReferenceCdfOnly /// [VarHandle][#VH_primaryReferenceCdfOnly] - [Getter][#primaryReferenceCdfOnly()] - [Setter][#primaryReferenceCdfOnly(int)] /// ### generateObuExtensionHeader @@ -84,8 +84,8 @@ public final class VkVideoEncodeAV1PictureInfoKHR extends Struct { public static final VarHandle VH_constantQIndex = LAYOUT.arrayElementVarHandle(PathElement.groupElement("constantQIndex")); /// The [VarHandle] of `pStdPictureInfo` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pStdPictureInfo = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pStdPictureInfo")); - /// The byte offset handle of `referenceNameSlotIndices` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_referenceNameSlotIndices = LAYOUT.byteOffsetHandle(PathElement.groupElement("referenceNameSlotIndices"), PathElement.sequenceElement()); + /// The byte offset of `referenceNameSlotIndices`. + public static final long OFFSET_referenceNameSlotIndices = LAYOUT.byteOffset(PathElement.groupElement("referenceNameSlotIndices")); /// The memory layout of `referenceNameSlotIndices`. public static final MemoryLayout ML_referenceNameSlotIndices = LAYOUT.select(PathElement.groupElement("referenceNameSlotIndices")); /// The [VarHandle] of `primaryReferenceCdfOnly` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -128,6 +128,17 @@ public final class VkVideoEncodeAV1PictureInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1PictureInfoKHR` public static VkVideoEncodeAV1PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1PictureInfoKHR` + public VkVideoEncodeAV1PictureInfoKHR asSlice(long index) { return new VkVideoEncodeAV1PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1PictureInfoKHR` + public VkVideoEncodeAV1PictureInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -315,49 +326,35 @@ public final class VkVideoEncodeAV1PictureInfoKHR extends Struct { public VkVideoEncodeAV1PictureInfoKHR pStdPictureInfo(@CType("const StdVideoEncodeAV1PictureInfo *") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_pStdPictureInfo(this.segment(), value); return this; } /// {@return `referenceNameSlotIndices` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_referenceNameSlotIndices.invokeExact(0L, elementIndex), index), ML_referenceNameSlotIndices); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_referenceNameSlotIndices, index), ML_referenceNameSlotIndices); } /// {@return `referenceNameSlotIndices`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment, long elementIndex) { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment get_referenceNameSlotIndices(MemorySegment segment) { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(segment, 0L); } /// {@return `referenceNameSlotIndices` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndicesAt(long index, long elementIndex) { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndicesAt(long index) { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), index); } /// {@return `referenceNameSlotIndices`} - /// @param elementIndex the index of the element - public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndices(long elementIndex) { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment(), elementIndex); } + public @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment referenceNameSlotIndices() { return VkVideoEncodeAV1PictureInfoKHR.get_referenceNameSlotIndices(this.segment()); } /// Sets `referenceNameSlotIndices` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_referenceNameSlotIndices(MemorySegment segment, long index, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_referenceNameSlotIndices.invokeExact(0L, elementIndex), index), ML_referenceNameSlotIndices.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_referenceNameSlotIndices(MemorySegment segment, long index, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_referenceNameSlotIndices, index), ML_referenceNameSlotIndices.byteSize()); } /// Sets `referenceNameSlotIndices` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_referenceNameSlotIndices(MemorySegment segment, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_referenceNameSlotIndices(MemorySegment segment, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(segment, 0L, value); } /// Sets `referenceNameSlotIndices` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkVideoEncodeAV1PictureInfoKHR referenceNameSlotIndicesAt(long index, long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), index, elementIndex, value); return this; } + public VkVideoEncodeAV1PictureInfoKHR referenceNameSlotIndicesAt(long index, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), index, value); return this; } /// Sets `referenceNameSlotIndices` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkVideoEncodeAV1PictureInfoKHR referenceNameSlotIndices(long elementIndex, @CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), elementIndex, value); return this; } + public VkVideoEncodeAV1PictureInfoKHR referenceNameSlotIndices(@CType("int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]") java.lang.foreign.MemorySegment value) { VkVideoEncodeAV1PictureInfoKHR.set_referenceNameSlotIndices(this.segment(), value); return this; } /// {@return `primaryReferenceCdfOnly` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1ProfileInfoKHR.java index e5299eb9..75a971c5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1ProfileInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeAV1ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1ProfileInfoKHR` public static VkVideoEncodeAV1ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1ProfileInfoKHR` + public VkVideoEncodeAV1ProfileInfoKHR asSlice(long index) { return new VkVideoEncodeAV1ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1ProfileInfoKHR` + public VkVideoEncodeAV1ProfileInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QIndexKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QIndexKHR.java index 965722e7..064b6702 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QIndexKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QIndexKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeAV1QIndexKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1QIndexKHR` public static VkVideoEncodeAV1QIndexKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1QIndexKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1QIndexKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1QIndexKHR` + public VkVideoEncodeAV1QIndexKHR asSlice(long index) { return new VkVideoEncodeAV1QIndexKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1QIndexKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1QIndexKHR` + public VkVideoEncodeAV1QIndexKHR asSlice(long index, long count) { return new VkVideoEncodeAV1QIndexKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `intraQIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QualityLevelPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QualityLevelPropertiesKHR.java index 66a7884b..042e68d0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QualityLevelPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QualityLevelPropertiesKHR.java @@ -175,6 +175,17 @@ public final class VkVideoEncodeAV1QualityLevelPropertiesKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1QualityLevelPropertiesKHR` public static VkVideoEncodeAV1QualityLevelPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1QualityLevelPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1QualityLevelPropertiesKHR` + public VkVideoEncodeAV1QualityLevelPropertiesKHR asSlice(long index) { return new VkVideoEncodeAV1QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1QualityLevelPropertiesKHR` + public VkVideoEncodeAV1QualityLevelPropertiesKHR asSlice(long index, long count) { return new VkVideoEncodeAV1QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QuantizationMapCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QuantizationMapCapabilitiesKHR.java index 900ba428..9be33632 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QuantizationMapCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1QuantizationMapCapabilitiesKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeAV1QuantizationMapCapabilitiesKHR extends Struct /// @return the allocated `VkVideoEncodeAV1QuantizationMapCapabilitiesKHR` public static VkVideoEncodeAV1QuantizationMapCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1QuantizationMapCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1QuantizationMapCapabilitiesKHR` + public VkVideoEncodeAV1QuantizationMapCapabilitiesKHR asSlice(long index) { return new VkVideoEncodeAV1QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1QuantizationMapCapabilitiesKHR` + public VkVideoEncodeAV1QuantizationMapCapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeAV1QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlInfoKHR.java index 77516dfb..988e0a90 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlInfoKHR.java @@ -113,6 +113,17 @@ public final class VkVideoEncodeAV1RateControlInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1RateControlInfoKHR` public static VkVideoEncodeAV1RateControlInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1RateControlInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1RateControlInfoKHR` + public VkVideoEncodeAV1RateControlInfoKHR asSlice(long index) { return new VkVideoEncodeAV1RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1RateControlInfoKHR` + public VkVideoEncodeAV1RateControlInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlLayerInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlLayerInfoKHR.java index 6d828d50..8564aa7d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlLayerInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1RateControlLayerInfoKHR.java @@ -125,6 +125,17 @@ public final class VkVideoEncodeAV1RateControlLayerInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1RateControlLayerInfoKHR` public static VkVideoEncodeAV1RateControlLayerInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1RateControlLayerInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1RateControlLayerInfoKHR` + public VkVideoEncodeAV1RateControlLayerInfoKHR asSlice(long index) { return new VkVideoEncodeAV1RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1RateControlLayerInfoKHR` + public VkVideoEncodeAV1RateControlLayerInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionCreateInfoKHR.java index db0c8b2c..d59daee4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeAV1SessionCreateInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeAV1SessionCreateInfoKHR` public static VkVideoEncodeAV1SessionCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1SessionCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1SessionCreateInfoKHR` + public VkVideoEncodeAV1SessionCreateInfoKHR asSlice(long index) { return new VkVideoEncodeAV1SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1SessionCreateInfoKHR` + public VkVideoEncodeAV1SessionCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionParametersCreateInfoKHR.java index 1028a059..b3b3d9d0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeAV1SessionParametersCreateInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeAV1SessionParametersCreateInfoKHR extends Struct /// @return the allocated `VkVideoEncodeAV1SessionParametersCreateInfoKHR` public static VkVideoEncodeAV1SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeAV1SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeAV1SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeAV1SessionParametersCreateInfoKHR` + public VkVideoEncodeAV1SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoEncodeAV1SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeAV1SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeAV1SessionParametersCreateInfoKHR` + public VkVideoEncodeAV1SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeAV1SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeCapabilitiesKHR.java index e8d3587b..9761acba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeCapabilitiesKHR.java @@ -127,6 +127,17 @@ public final class VkVideoEncodeCapabilitiesKHR extends Struct { /// @return the allocated `VkVideoEncodeCapabilitiesKHR` public static VkVideoEncodeCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeCapabilitiesKHR` + public VkVideoEncodeCapabilitiesKHR asSlice(long index) { return new VkVideoEncodeCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeCapabilitiesKHR` + public VkVideoEncodeCapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264CapabilitiesKHR.java index 2e525ced..54a5aa2e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264CapabilitiesKHR.java @@ -161,6 +161,17 @@ public final class VkVideoEncodeH264CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoEncodeH264CapabilitiesKHR` public static VkVideoEncodeH264CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264CapabilitiesKHR` + public VkVideoEncodeH264CapabilitiesKHR asSlice(long index) { return new VkVideoEncodeH264CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264CapabilitiesKHR` + public VkVideoEncodeH264CapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeH264CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264DpbSlotInfoKHR.java index d91fa504..3e43dbef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH264DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264DpbSlotInfoKHR` public static VkVideoEncodeH264DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264DpbSlotInfoKHR` + public VkVideoEncodeH264DpbSlotInfoKHR asSlice(long index) { return new VkVideoEncodeH264DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264DpbSlotInfoKHR` + public VkVideoEncodeH264DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264FrameSizeKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264FrameSizeKHR.java index e4d64953..b97361f7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264FrameSizeKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264FrameSizeKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH264FrameSizeKHR extends Struct { /// @return the allocated `VkVideoEncodeH264FrameSizeKHR` public static VkVideoEncodeH264FrameSizeKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264FrameSizeKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264FrameSizeKHR` + public VkVideoEncodeH264FrameSizeKHR asSlice(long index) { return new VkVideoEncodeH264FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264FrameSizeKHR` + public VkVideoEncodeH264FrameSizeKHR asSlice(long index, long count) { return new VkVideoEncodeH264FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `frameISize` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264GopRemainingFrameInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264GopRemainingFrameInfoKHR.java index b7373000..85038dfb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264GopRemainingFrameInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264GopRemainingFrameInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH264GopRemainingFrameInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264GopRemainingFrameInfoKHR` public static VkVideoEncodeH264GopRemainingFrameInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264GopRemainingFrameInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264GopRemainingFrameInfoKHR` + public VkVideoEncodeH264GopRemainingFrameInfoKHR asSlice(long index) { return new VkVideoEncodeH264GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264GopRemainingFrameInfoKHR` + public VkVideoEncodeH264GopRemainingFrameInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264NaluSliceInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264NaluSliceInfoKHR.java index 52b5ca3b..5edaa2a0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264NaluSliceInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264NaluSliceInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH264NaluSliceInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264NaluSliceInfoKHR` public static VkVideoEncodeH264NaluSliceInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264NaluSliceInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264NaluSliceInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264NaluSliceInfoKHR` + public VkVideoEncodeH264NaluSliceInfoKHR asSlice(long index) { return new VkVideoEncodeH264NaluSliceInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264NaluSliceInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264NaluSliceInfoKHR` + public VkVideoEncodeH264NaluSliceInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264NaluSliceInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264PictureInfoKHR.java index 6ce4394c..ff6fd026 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264PictureInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH264PictureInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264PictureInfoKHR` public static VkVideoEncodeH264PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264PictureInfoKHR` + public VkVideoEncodeH264PictureInfoKHR asSlice(long index) { return new VkVideoEncodeH264PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264PictureInfoKHR` + public VkVideoEncodeH264PictureInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264ProfileInfoKHR.java index f771c9d5..e9cfa939 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264ProfileInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH264ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264ProfileInfoKHR` public static VkVideoEncodeH264ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264ProfileInfoKHR` + public VkVideoEncodeH264ProfileInfoKHR asSlice(long index) { return new VkVideoEncodeH264ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264ProfileInfoKHR` + public VkVideoEncodeH264ProfileInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QpKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QpKHR.java index 3c99eab9..6df45006 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QpKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QpKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH264QpKHR extends Struct { /// @return the allocated `VkVideoEncodeH264QpKHR` public static VkVideoEncodeH264QpKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264QpKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264QpKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264QpKHR` + public VkVideoEncodeH264QpKHR asSlice(long index) { return new VkVideoEncodeH264QpKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264QpKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264QpKHR` + public VkVideoEncodeH264QpKHR asSlice(long index, long count) { return new VkVideoEncodeH264QpKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `qpI` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QualityLevelPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QualityLevelPropertiesKHR.java index 60dde59c..76bbc363 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QualityLevelPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QualityLevelPropertiesKHR.java @@ -139,6 +139,17 @@ public final class VkVideoEncodeH264QualityLevelPropertiesKHR extends Struct { /// @return the allocated `VkVideoEncodeH264QualityLevelPropertiesKHR` public static VkVideoEncodeH264QualityLevelPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264QualityLevelPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264QualityLevelPropertiesKHR` + public VkVideoEncodeH264QualityLevelPropertiesKHR asSlice(long index) { return new VkVideoEncodeH264QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264QualityLevelPropertiesKHR` + public VkVideoEncodeH264QualityLevelPropertiesKHR asSlice(long index, long count) { return new VkVideoEncodeH264QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QuantizationMapCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QuantizationMapCapabilitiesKHR.java index 2e695879..33f79143 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QuantizationMapCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264QuantizationMapCapabilitiesKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH264QuantizationMapCapabilitiesKHR extends Struc /// @return the allocated `VkVideoEncodeH264QuantizationMapCapabilitiesKHR` public static VkVideoEncodeH264QuantizationMapCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264QuantizationMapCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264QuantizationMapCapabilitiesKHR` + public VkVideoEncodeH264QuantizationMapCapabilitiesKHR asSlice(long index) { return new VkVideoEncodeH264QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264QuantizationMapCapabilitiesKHR` + public VkVideoEncodeH264QuantizationMapCapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeH264QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlInfoKHR.java index 10168e32..bc56835f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlInfoKHR.java @@ -113,6 +113,17 @@ public final class VkVideoEncodeH264RateControlInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264RateControlInfoKHR` public static VkVideoEncodeH264RateControlInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264RateControlInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264RateControlInfoKHR` + public VkVideoEncodeH264RateControlInfoKHR asSlice(long index) { return new VkVideoEncodeH264RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264RateControlInfoKHR` + public VkVideoEncodeH264RateControlInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlLayerInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlLayerInfoKHR.java index 7da4f2ab..dcb3b24f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlLayerInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264RateControlLayerInfoKHR.java @@ -125,6 +125,17 @@ public final class VkVideoEncodeH264RateControlLayerInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264RateControlLayerInfoKHR` public static VkVideoEncodeH264RateControlLayerInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264RateControlLayerInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264RateControlLayerInfoKHR` + public VkVideoEncodeH264RateControlLayerInfoKHR asSlice(long index) { return new VkVideoEncodeH264RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264RateControlLayerInfoKHR` + public VkVideoEncodeH264RateControlLayerInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionCreateInfoKHR.java index 7c1aacbd..d2be6c5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH264SessionCreateInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264SessionCreateInfoKHR` public static VkVideoEncodeH264SessionCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264SessionCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264SessionCreateInfoKHR` + public VkVideoEncodeH264SessionCreateInfoKHR asSlice(long index) { return new VkVideoEncodeH264SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264SessionCreateInfoKHR` + public VkVideoEncodeH264SessionCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersAddInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersAddInfoKHR.java index cdf318e9..11343d33 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersAddInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersAddInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH264SessionParametersAddInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264SessionParametersAddInfoKHR` public static VkVideoEncodeH264SessionParametersAddInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264SessionParametersAddInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264SessionParametersAddInfoKHR` + public VkVideoEncodeH264SessionParametersAddInfoKHR asSlice(long index) { return new VkVideoEncodeH264SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264SessionParametersAddInfoKHR` + public VkVideoEncodeH264SessionParametersAddInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersCreateInfoKHR.java index c5b7dc87..30cac3d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoEncodeH264SessionParametersCreateInfoKHR extends Struc /// @return the allocated `VkVideoEncodeH264SessionParametersCreateInfoKHR` public static VkVideoEncodeH264SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264SessionParametersCreateInfoKHR` + public VkVideoEncodeH264SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoEncodeH264SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264SessionParametersCreateInfoKHR` + public VkVideoEncodeH264SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersFeedbackInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersFeedbackInfoKHR.java index 937470ee..68060edf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersFeedbackInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersFeedbackInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH264SessionParametersFeedbackInfoKHR extends Str /// @return the allocated `VkVideoEncodeH264SessionParametersFeedbackInfoKHR` public static VkVideoEncodeH264SessionParametersFeedbackInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264SessionParametersFeedbackInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264SessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264SessionParametersFeedbackInfoKHR` + public VkVideoEncodeH264SessionParametersFeedbackInfoKHR asSlice(long index) { return new VkVideoEncodeH264SessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264SessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264SessionParametersFeedbackInfoKHR` + public VkVideoEncodeH264SessionParametersFeedbackInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264SessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersGetInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersGetInfoKHR.java index dcd3def7..07bd9f26 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersGetInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH264SessionParametersGetInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH264SessionParametersGetInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH264SessionParametersGetInfoKHR` public static VkVideoEncodeH264SessionParametersGetInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH264SessionParametersGetInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH264SessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH264SessionParametersGetInfoKHR` + public VkVideoEncodeH264SessionParametersGetInfoKHR asSlice(long index) { return new VkVideoEncodeH264SessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH264SessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH264SessionParametersGetInfoKHR` + public VkVideoEncodeH264SessionParametersGetInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH264SessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265CapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265CapabilitiesKHR.java index fe9c54d8..70d5918b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265CapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265CapabilitiesKHR.java @@ -181,6 +181,17 @@ public final class VkVideoEncodeH265CapabilitiesKHR extends Struct { /// @return the allocated `VkVideoEncodeH265CapabilitiesKHR` public static VkVideoEncodeH265CapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265CapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265CapabilitiesKHR` + public VkVideoEncodeH265CapabilitiesKHR asSlice(long index) { return new VkVideoEncodeH265CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265CapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265CapabilitiesKHR` + public VkVideoEncodeH265CapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeH265CapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265DpbSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265DpbSlotInfoKHR.java index 236429fc..6e663e43 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265DpbSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265DpbSlotInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH265DpbSlotInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265DpbSlotInfoKHR` public static VkVideoEncodeH265DpbSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265DpbSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265DpbSlotInfoKHR` + public VkVideoEncodeH265DpbSlotInfoKHR asSlice(long index) { return new VkVideoEncodeH265DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265DpbSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265DpbSlotInfoKHR` + public VkVideoEncodeH265DpbSlotInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265DpbSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265FrameSizeKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265FrameSizeKHR.java index 760bad6a..dc18e108 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265FrameSizeKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265FrameSizeKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH265FrameSizeKHR extends Struct { /// @return the allocated `VkVideoEncodeH265FrameSizeKHR` public static VkVideoEncodeH265FrameSizeKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265FrameSizeKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265FrameSizeKHR` + public VkVideoEncodeH265FrameSizeKHR asSlice(long index) { return new VkVideoEncodeH265FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265FrameSizeKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265FrameSizeKHR` + public VkVideoEncodeH265FrameSizeKHR asSlice(long index, long count) { return new VkVideoEncodeH265FrameSizeKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `frameISize` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265GopRemainingFrameInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265GopRemainingFrameInfoKHR.java index 4fb298b8..5392b709 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265GopRemainingFrameInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265GopRemainingFrameInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH265GopRemainingFrameInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265GopRemainingFrameInfoKHR` public static VkVideoEncodeH265GopRemainingFrameInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265GopRemainingFrameInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265GopRemainingFrameInfoKHR` + public VkVideoEncodeH265GopRemainingFrameInfoKHR asSlice(long index) { return new VkVideoEncodeH265GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265GopRemainingFrameInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265GopRemainingFrameInfoKHR` + public VkVideoEncodeH265GopRemainingFrameInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265GopRemainingFrameInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265NaluSliceSegmentInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265NaluSliceSegmentInfoKHR.java index af2caf55..6a35ecea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265NaluSliceSegmentInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265NaluSliceSegmentInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH265NaluSliceSegmentInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265NaluSliceSegmentInfoKHR` public static VkVideoEncodeH265NaluSliceSegmentInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265NaluSliceSegmentInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265NaluSliceSegmentInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265NaluSliceSegmentInfoKHR` + public VkVideoEncodeH265NaluSliceSegmentInfoKHR asSlice(long index) { return new VkVideoEncodeH265NaluSliceSegmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265NaluSliceSegmentInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265NaluSliceSegmentInfoKHR` + public VkVideoEncodeH265NaluSliceSegmentInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265NaluSliceSegmentInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265PictureInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265PictureInfoKHR.java index d0b6e380..0efb6a43 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265PictureInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265PictureInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoEncodeH265PictureInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265PictureInfoKHR` public static VkVideoEncodeH265PictureInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265PictureInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265PictureInfoKHR` + public VkVideoEncodeH265PictureInfoKHR asSlice(long index) { return new VkVideoEncodeH265PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265PictureInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265PictureInfoKHR` + public VkVideoEncodeH265PictureInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265PictureInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265ProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265ProfileInfoKHR.java index 3514496f..d428dc66 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265ProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265ProfileInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH265ProfileInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265ProfileInfoKHR` public static VkVideoEncodeH265ProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265ProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265ProfileInfoKHR` + public VkVideoEncodeH265ProfileInfoKHR asSlice(long index) { return new VkVideoEncodeH265ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265ProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265ProfileInfoKHR` + public VkVideoEncodeH265ProfileInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265ProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QpKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QpKHR.java index cc7ebae0..a590b5dd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QpKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QpKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeH265QpKHR extends Struct { /// @return the allocated `VkVideoEncodeH265QpKHR` public static VkVideoEncodeH265QpKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265QpKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265QpKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265QpKHR` + public VkVideoEncodeH265QpKHR asSlice(long index) { return new VkVideoEncodeH265QpKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265QpKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265QpKHR` + public VkVideoEncodeH265QpKHR asSlice(long index, long count) { return new VkVideoEncodeH265QpKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `qpI` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QualityLevelPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QualityLevelPropertiesKHR.java index bb2a81c8..9f3da9d1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QualityLevelPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QualityLevelPropertiesKHR.java @@ -133,6 +133,17 @@ public final class VkVideoEncodeH265QualityLevelPropertiesKHR extends Struct { /// @return the allocated `VkVideoEncodeH265QualityLevelPropertiesKHR` public static VkVideoEncodeH265QualityLevelPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265QualityLevelPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265QualityLevelPropertiesKHR` + public VkVideoEncodeH265QualityLevelPropertiesKHR asSlice(long index) { return new VkVideoEncodeH265QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265QualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265QualityLevelPropertiesKHR` + public VkVideoEncodeH265QualityLevelPropertiesKHR asSlice(long index, long count) { return new VkVideoEncodeH265QualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QuantizationMapCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QuantizationMapCapabilitiesKHR.java index 6ba9ab60..97387812 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QuantizationMapCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265QuantizationMapCapabilitiesKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH265QuantizationMapCapabilitiesKHR extends Struc /// @return the allocated `VkVideoEncodeH265QuantizationMapCapabilitiesKHR` public static VkVideoEncodeH265QuantizationMapCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265QuantizationMapCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265QuantizationMapCapabilitiesKHR` + public VkVideoEncodeH265QuantizationMapCapabilitiesKHR asSlice(long index) { return new VkVideoEncodeH265QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265QuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265QuantizationMapCapabilitiesKHR` + public VkVideoEncodeH265QuantizationMapCapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeH265QuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlInfoKHR.java index d5aac56c..c878ffd9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlInfoKHR.java @@ -113,6 +113,17 @@ public final class VkVideoEncodeH265RateControlInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265RateControlInfoKHR` public static VkVideoEncodeH265RateControlInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265RateControlInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265RateControlInfoKHR` + public VkVideoEncodeH265RateControlInfoKHR asSlice(long index) { return new VkVideoEncodeH265RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265RateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265RateControlInfoKHR` + public VkVideoEncodeH265RateControlInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265RateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlLayerInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlLayerInfoKHR.java index e78dac25..c43a5139 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlLayerInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265RateControlLayerInfoKHR.java @@ -125,6 +125,17 @@ public final class VkVideoEncodeH265RateControlLayerInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265RateControlLayerInfoKHR` public static VkVideoEncodeH265RateControlLayerInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265RateControlLayerInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265RateControlLayerInfoKHR` + public VkVideoEncodeH265RateControlLayerInfoKHR asSlice(long index) { return new VkVideoEncodeH265RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265RateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265RateControlLayerInfoKHR` + public VkVideoEncodeH265RateControlLayerInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265RateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionCreateInfoKHR.java index fa851c69..04c1f6cc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionCreateInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeH265SessionCreateInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265SessionCreateInfoKHR` public static VkVideoEncodeH265SessionCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265SessionCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265SessionCreateInfoKHR` + public VkVideoEncodeH265SessionCreateInfoKHR asSlice(long index) { return new VkVideoEncodeH265SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265SessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265SessionCreateInfoKHR` + public VkVideoEncodeH265SessionCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265SessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersAddInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersAddInfoKHR.java index 177b1b4b..e979d142 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersAddInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersAddInfoKHR.java @@ -119,6 +119,17 @@ public final class VkVideoEncodeH265SessionParametersAddInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265SessionParametersAddInfoKHR` public static VkVideoEncodeH265SessionParametersAddInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265SessionParametersAddInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265SessionParametersAddInfoKHR` + public VkVideoEncodeH265SessionParametersAddInfoKHR asSlice(long index) { return new VkVideoEncodeH265SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265SessionParametersAddInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265SessionParametersAddInfoKHR` + public VkVideoEncodeH265SessionParametersAddInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265SessionParametersAddInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersCreateInfoKHR.java index b6609a71..fc94ac32 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersCreateInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeH265SessionParametersCreateInfoKHR extends Struc /// @return the allocated `VkVideoEncodeH265SessionParametersCreateInfoKHR` public static VkVideoEncodeH265SessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265SessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265SessionParametersCreateInfoKHR` + public VkVideoEncodeH265SessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoEncodeH265SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265SessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265SessionParametersCreateInfoKHR` + public VkVideoEncodeH265SessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265SessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersFeedbackInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersFeedbackInfoKHR.java index e4dd3c3a..a9232c8a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersFeedbackInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersFeedbackInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoEncodeH265SessionParametersFeedbackInfoKHR extends Str /// @return the allocated `VkVideoEncodeH265SessionParametersFeedbackInfoKHR` public static VkVideoEncodeH265SessionParametersFeedbackInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265SessionParametersFeedbackInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265SessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265SessionParametersFeedbackInfoKHR` + public VkVideoEncodeH265SessionParametersFeedbackInfoKHR asSlice(long index) { return new VkVideoEncodeH265SessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265SessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265SessionParametersFeedbackInfoKHR` + public VkVideoEncodeH265SessionParametersFeedbackInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265SessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersGetInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersGetInfoKHR.java index 5357dae7..83d79e3b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersGetInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeH265SessionParametersGetInfoKHR.java @@ -119,6 +119,17 @@ public final class VkVideoEncodeH265SessionParametersGetInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeH265SessionParametersGetInfoKHR` public static VkVideoEncodeH265SessionParametersGetInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeH265SessionParametersGetInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeH265SessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeH265SessionParametersGetInfoKHR` + public VkVideoEncodeH265SessionParametersGetInfoKHR asSlice(long index) { return new VkVideoEncodeH265SessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeH265SessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeH265SessionParametersGetInfoKHR` + public VkVideoEncodeH265SessionParametersGetInfoKHR asSlice(long index, long count) { return new VkVideoEncodeH265SessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeInfoKHR.java index e4130063..fd647519 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeInfoKHR.java @@ -139,6 +139,17 @@ public final class VkVideoEncodeInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeInfoKHR` public static VkVideoEncodeInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeInfoKHR` + public VkVideoEncodeInfoKHR asSlice(long index) { return new VkVideoEncodeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeInfoKHR` + public VkVideoEncodeInfoKHR asSlice(long index, long count) { return new VkVideoEncodeInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelInfoKHR.java index 239baab9..f616597a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeQualityLevelInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeQualityLevelInfoKHR` public static VkVideoEncodeQualityLevelInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeQualityLevelInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeQualityLevelInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeQualityLevelInfoKHR` + public VkVideoEncodeQualityLevelInfoKHR asSlice(long index) { return new VkVideoEncodeQualityLevelInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeQualityLevelInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeQualityLevelInfoKHR` + public VkVideoEncodeQualityLevelInfoKHR asSlice(long index, long count) { return new VkVideoEncodeQualityLevelInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelPropertiesKHR.java index 1aa87928..ca73a8b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQualityLevelPropertiesKHR.java @@ -95,6 +95,17 @@ public final class VkVideoEncodeQualityLevelPropertiesKHR extends Struct { /// @return the allocated `VkVideoEncodeQualityLevelPropertiesKHR` public static VkVideoEncodeQualityLevelPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeQualityLevelPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeQualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeQualityLevelPropertiesKHR` + public VkVideoEncodeQualityLevelPropertiesKHR asSlice(long index) { return new VkVideoEncodeQualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeQualityLevelPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeQualityLevelPropertiesKHR` + public VkVideoEncodeQualityLevelPropertiesKHR asSlice(long index, long count) { return new VkVideoEncodeQualityLevelPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapCapabilitiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapCapabilitiesKHR.java index c43a5f1f..d3784620 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapCapabilitiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapCapabilitiesKHR.java @@ -91,6 +91,17 @@ public final class VkVideoEncodeQuantizationMapCapabilitiesKHR extends Struct { /// @return the allocated `VkVideoEncodeQuantizationMapCapabilitiesKHR` public static VkVideoEncodeQuantizationMapCapabilitiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeQuantizationMapCapabilitiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeQuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeQuantizationMapCapabilitiesKHR` + public VkVideoEncodeQuantizationMapCapabilitiesKHR asSlice(long index) { return new VkVideoEncodeQuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeQuantizationMapCapabilitiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeQuantizationMapCapabilitiesKHR` + public VkVideoEncodeQuantizationMapCapabilitiesKHR asSlice(long index, long count) { return new VkVideoEncodeQuantizationMapCapabilitiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapInfoKHR.java index 16abb5b5..f1e6aff3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapInfoKHR.java @@ -97,6 +97,17 @@ public final class VkVideoEncodeQuantizationMapInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeQuantizationMapInfoKHR` public static VkVideoEncodeQuantizationMapInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeQuantizationMapInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeQuantizationMapInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeQuantizationMapInfoKHR` + public VkVideoEncodeQuantizationMapInfoKHR asSlice(long index) { return new VkVideoEncodeQuantizationMapInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeQuantizationMapInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeQuantizationMapInfoKHR` + public VkVideoEncodeQuantizationMapInfoKHR asSlice(long index, long count) { return new VkVideoEncodeQuantizationMapInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR.java index 2a4ce780..9bd271a2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR.java @@ -91,6 +91,17 @@ public final class VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR ex /// @return the allocated `VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR` public static VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR` + public VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR` + public VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlInfoKHR.java index 7d523b1e..6729377d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlInfoKHR.java @@ -119,6 +119,17 @@ public final class VkVideoEncodeRateControlInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeRateControlInfoKHR` public static VkVideoEncodeRateControlInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeRateControlInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeRateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeRateControlInfoKHR` + public VkVideoEncodeRateControlInfoKHR asSlice(long index) { return new VkVideoEncodeRateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeRateControlInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeRateControlInfoKHR` + public VkVideoEncodeRateControlInfoKHR asSlice(long index, long count) { return new VkVideoEncodeRateControlInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlLayerInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlLayerInfoKHR.java index 50cbf441..8a6f4d95 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlLayerInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeRateControlLayerInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoEncodeRateControlLayerInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeRateControlLayerInfoKHR` public static VkVideoEncodeRateControlLayerInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeRateControlLayerInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeRateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeRateControlLayerInfoKHR` + public VkVideoEncodeRateControlLayerInfoKHR asSlice(long index) { return new VkVideoEncodeRateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeRateControlLayerInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeRateControlLayerInfoKHR` + public VkVideoEncodeRateControlLayerInfoKHR asSlice(long index, long count) { return new VkVideoEncodeRateControlLayerInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersFeedbackInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersFeedbackInfoKHR.java index 16d7449e..358bb682 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersFeedbackInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersFeedbackInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeSessionParametersFeedbackInfoKHR extends Struct /// @return the allocated `VkVideoEncodeSessionParametersFeedbackInfoKHR` public static VkVideoEncodeSessionParametersFeedbackInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeSessionParametersFeedbackInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeSessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeSessionParametersFeedbackInfoKHR` + public VkVideoEncodeSessionParametersFeedbackInfoKHR asSlice(long index) { return new VkVideoEncodeSessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeSessionParametersFeedbackInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeSessionParametersFeedbackInfoKHR` + public VkVideoEncodeSessionParametersFeedbackInfoKHR asSlice(long index, long count) { return new VkVideoEncodeSessionParametersFeedbackInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersGetInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersGetInfoKHR.java index d4369820..380c1948 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersGetInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeSessionParametersGetInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEncodeSessionParametersGetInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeSessionParametersGetInfoKHR` public static VkVideoEncodeSessionParametersGetInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeSessionParametersGetInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeSessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeSessionParametersGetInfoKHR` + public VkVideoEncodeSessionParametersGetInfoKHR asSlice(long index) { return new VkVideoEncodeSessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeSessionParametersGetInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeSessionParametersGetInfoKHR` + public VkVideoEncodeSessionParametersGetInfoKHR asSlice(long index, long count) { return new VkVideoEncodeSessionParametersGetInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeUsageInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeUsageInfoKHR.java index bde66ecc..897320a3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeUsageInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEncodeUsageInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoEncodeUsageInfoKHR extends Struct { /// @return the allocated `VkVideoEncodeUsageInfoKHR` public static VkVideoEncodeUsageInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEncodeUsageInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEncodeUsageInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEncodeUsageInfoKHR` + public VkVideoEncodeUsageInfoKHR asSlice(long index) { return new VkVideoEncodeUsageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEncodeUsageInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEncodeUsageInfoKHR` + public VkVideoEncodeUsageInfoKHR asSlice(long index, long count) { return new VkVideoEncodeUsageInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEndCodingInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEndCodingInfoKHR.java index 66344fbf..c3dfd9f1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEndCodingInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoEndCodingInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoEndCodingInfoKHR extends Struct { /// @return the allocated `VkVideoEndCodingInfoKHR` public static VkVideoEndCodingInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoEndCodingInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoEndCodingInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoEndCodingInfoKHR` + public VkVideoEndCodingInfoKHR asSlice(long index) { return new VkVideoEndCodingInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoEndCodingInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoEndCodingInfoKHR` + public VkVideoEndCodingInfoKHR asSlice(long index, long count) { return new VkVideoEndCodingInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatAV1QuantizationMapPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatAV1QuantizationMapPropertiesKHR.java index bbcd7caa..65c3c25d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatAV1QuantizationMapPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatAV1QuantizationMapPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkVideoFormatAV1QuantizationMapPropertiesKHR extends Struct { /// @return the allocated `VkVideoFormatAV1QuantizationMapPropertiesKHR` public static VkVideoFormatAV1QuantizationMapPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoFormatAV1QuantizationMapPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoFormatAV1QuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoFormatAV1QuantizationMapPropertiesKHR` + public VkVideoFormatAV1QuantizationMapPropertiesKHR asSlice(long index) { return new VkVideoFormatAV1QuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoFormatAV1QuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoFormatAV1QuantizationMapPropertiesKHR` + public VkVideoFormatAV1QuantizationMapPropertiesKHR asSlice(long index, long count) { return new VkVideoFormatAV1QuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatH265QuantizationMapPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatH265QuantizationMapPropertiesKHR.java index f80a5d89..efc69854 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatH265QuantizationMapPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatH265QuantizationMapPropertiesKHR.java @@ -89,6 +89,17 @@ public final class VkVideoFormatH265QuantizationMapPropertiesKHR extends Struct /// @return the allocated `VkVideoFormatH265QuantizationMapPropertiesKHR` public static VkVideoFormatH265QuantizationMapPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoFormatH265QuantizationMapPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoFormatH265QuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoFormatH265QuantizationMapPropertiesKHR` + public VkVideoFormatH265QuantizationMapPropertiesKHR asSlice(long index) { return new VkVideoFormatH265QuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoFormatH265QuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoFormatH265QuantizationMapPropertiesKHR` + public VkVideoFormatH265QuantizationMapPropertiesKHR asSlice(long index, long count) { return new VkVideoFormatH265QuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatPropertiesKHR.java index 8ac51988..531e27d7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatPropertiesKHR.java @@ -121,6 +121,17 @@ public final class VkVideoFormatPropertiesKHR extends Struct { /// @return the allocated `VkVideoFormatPropertiesKHR` public static VkVideoFormatPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoFormatPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoFormatPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoFormatPropertiesKHR` + public VkVideoFormatPropertiesKHR asSlice(long index) { return new VkVideoFormatPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoFormatPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoFormatPropertiesKHR` + public VkVideoFormatPropertiesKHR asSlice(long index, long count) { return new VkVideoFormatPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatQuantizationMapPropertiesKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatQuantizationMapPropertiesKHR.java index a73bc3d8..ff6d400f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatQuantizationMapPropertiesKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoFormatQuantizationMapPropertiesKHR.java @@ -91,6 +91,17 @@ public final class VkVideoFormatQuantizationMapPropertiesKHR extends Struct { /// @return the allocated `VkVideoFormatQuantizationMapPropertiesKHR` public static VkVideoFormatQuantizationMapPropertiesKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoFormatQuantizationMapPropertiesKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoFormatQuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoFormatQuantizationMapPropertiesKHR` + public VkVideoFormatQuantizationMapPropertiesKHR asSlice(long index) { return new VkVideoFormatQuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoFormatQuantizationMapPropertiesKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoFormatQuantizationMapPropertiesKHR` + public VkVideoFormatQuantizationMapPropertiesKHR asSlice(long index, long count) { return new VkVideoFormatQuantizationMapPropertiesKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoInlineQueryInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoInlineQueryInfoKHR.java index 3cd0b29b..c6a8497f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoInlineQueryInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoInlineQueryInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoInlineQueryInfoKHR extends Struct { /// @return the allocated `VkVideoInlineQueryInfoKHR` public static VkVideoInlineQueryInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoInlineQueryInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoInlineQueryInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoInlineQueryInfoKHR` + public VkVideoInlineQueryInfoKHR asSlice(long index) { return new VkVideoInlineQueryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoInlineQueryInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoInlineQueryInfoKHR` + public VkVideoInlineQueryInfoKHR asSlice(long index, long count) { return new VkVideoInlineQueryInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoPictureResourceInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoPictureResourceInfoKHR.java index 7b15efe1..bfe59257 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoPictureResourceInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoPictureResourceInfoKHR.java @@ -111,6 +111,17 @@ public final class VkVideoPictureResourceInfoKHR extends Struct { /// @return the allocated `VkVideoPictureResourceInfoKHR` public static VkVideoPictureResourceInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoPictureResourceInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoPictureResourceInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoPictureResourceInfoKHR` + public VkVideoPictureResourceInfoKHR asSlice(long index) { return new VkVideoPictureResourceInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoPictureResourceInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoPictureResourceInfoKHR` + public VkVideoPictureResourceInfoKHR asSlice(long index, long count) { return new VkVideoPictureResourceInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileInfoKHR.java index 393acf2b..bd177830 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileInfoKHR.java @@ -107,6 +107,17 @@ public final class VkVideoProfileInfoKHR extends Struct { /// @return the allocated `VkVideoProfileInfoKHR` public static VkVideoProfileInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoProfileInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoProfileInfoKHR` + public VkVideoProfileInfoKHR asSlice(long index) { return new VkVideoProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoProfileInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoProfileInfoKHR` + public VkVideoProfileInfoKHR asSlice(long index, long count) { return new VkVideoProfileInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileListInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileListInfoKHR.java index 9181fa65..e5e0a11f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileListInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoProfileListInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoProfileListInfoKHR extends Struct { /// @return the allocated `VkVideoProfileListInfoKHR` public static VkVideoProfileListInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoProfileListInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoProfileListInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoProfileListInfoKHR` + public VkVideoProfileListInfoKHR asSlice(long index) { return new VkVideoProfileListInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoProfileListInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoProfileListInfoKHR` + public VkVideoProfileListInfoKHR asSlice(long index, long count) { return new VkVideoProfileListInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoReferenceSlotInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoReferenceSlotInfoKHR.java index 2785deb8..27951ba7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoReferenceSlotInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoReferenceSlotInfoKHR.java @@ -95,6 +95,17 @@ public final class VkVideoReferenceSlotInfoKHR extends Struct { /// @return the allocated `VkVideoReferenceSlotInfoKHR` public static VkVideoReferenceSlotInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoReferenceSlotInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoReferenceSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoReferenceSlotInfoKHR` + public VkVideoReferenceSlotInfoKHR asSlice(long index) { return new VkVideoReferenceSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoReferenceSlotInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoReferenceSlotInfoKHR` + public VkVideoReferenceSlotInfoKHR asSlice(long index, long count) { return new VkVideoReferenceSlotInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionCreateInfoKHR.java index 1b4e1629..a83a3b7c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionCreateInfoKHR.java @@ -139,6 +139,17 @@ public final class VkVideoSessionCreateInfoKHR extends Struct { /// @return the allocated `VkVideoSessionCreateInfoKHR` public static VkVideoSessionCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoSessionCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoSessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoSessionCreateInfoKHR` + public VkVideoSessionCreateInfoKHR asSlice(long index) { return new VkVideoSessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoSessionCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoSessionCreateInfoKHR` + public VkVideoSessionCreateInfoKHR asSlice(long index, long count) { return new VkVideoSessionCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionMemoryRequirementsKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionMemoryRequirementsKHR.java index fc527fec..c3a5c248 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionMemoryRequirementsKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionMemoryRequirementsKHR.java @@ -97,6 +97,17 @@ public final class VkVideoSessionMemoryRequirementsKHR extends Struct { /// @return the allocated `VkVideoSessionMemoryRequirementsKHR` public static VkVideoSessionMemoryRequirementsKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoSessionMemoryRequirementsKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoSessionMemoryRequirementsKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoSessionMemoryRequirementsKHR` + public VkVideoSessionMemoryRequirementsKHR asSlice(long index) { return new VkVideoSessionMemoryRequirementsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoSessionMemoryRequirementsKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoSessionMemoryRequirementsKHR` + public VkVideoSessionMemoryRequirementsKHR asSlice(long index, long count) { return new VkVideoSessionMemoryRequirementsKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersCreateInfoKHR.java index c4f60aa5..4762b2b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkVideoSessionParametersCreateInfoKHR extends Struct { /// @return the allocated `VkVideoSessionParametersCreateInfoKHR` public static VkVideoSessionParametersCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoSessionParametersCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoSessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoSessionParametersCreateInfoKHR` + public VkVideoSessionParametersCreateInfoKHR asSlice(long index) { return new VkVideoSessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoSessionParametersCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoSessionParametersCreateInfoKHR` + public VkVideoSessionParametersCreateInfoKHR asSlice(long index, long count) { return new VkVideoSessionParametersCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersUpdateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersUpdateInfoKHR.java index d19d7258..e2701de8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersUpdateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkVideoSessionParametersUpdateInfoKHR.java @@ -89,6 +89,17 @@ public final class VkVideoSessionParametersUpdateInfoKHR extends Struct { /// @return the allocated `VkVideoSessionParametersUpdateInfoKHR` public static VkVideoSessionParametersUpdateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkVideoSessionParametersUpdateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVideoSessionParametersUpdateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVideoSessionParametersUpdateInfoKHR` + public VkVideoSessionParametersUpdateInfoKHR asSlice(long index) { return new VkVideoSessionParametersUpdateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVideoSessionParametersUpdateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVideoSessionParametersUpdateInfoKHR` + public VkVideoSessionParametersUpdateInfoKHR asSlice(long index, long count) { return new VkVideoSessionParametersUpdateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWaylandSurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWaylandSurfaceCreateInfoKHR.java index ab5d9650..116a5c9d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWaylandSurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWaylandSurfaceCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkWaylandSurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkWaylandSurfaceCreateInfoKHR` public static VkWaylandSurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkWaylandSurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWaylandSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWaylandSurfaceCreateInfoKHR` + public VkWaylandSurfaceCreateInfoKHR asSlice(long index) { return new VkWaylandSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWaylandSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWaylandSurfaceCreateInfoKHR` + public VkWaylandSurfaceCreateInfoKHR asSlice(long index, long count) { return new VkWaylandSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32KeyedMutexAcquireReleaseInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32KeyedMutexAcquireReleaseInfoKHR.java index 73d27b9e..6056a920 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32KeyedMutexAcquireReleaseInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32KeyedMutexAcquireReleaseInfoKHR.java @@ -125,6 +125,17 @@ public final class VkWin32KeyedMutexAcquireReleaseInfoKHR extends Struct { /// @return the allocated `VkWin32KeyedMutexAcquireReleaseInfoKHR` public static VkWin32KeyedMutexAcquireReleaseInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWin32KeyedMutexAcquireReleaseInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWin32KeyedMutexAcquireReleaseInfoKHR` + public VkWin32KeyedMutexAcquireReleaseInfoKHR asSlice(long index) { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWin32KeyedMutexAcquireReleaseInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWin32KeyedMutexAcquireReleaseInfoKHR` + public VkWin32KeyedMutexAcquireReleaseInfoKHR asSlice(long index, long count) { return new VkWin32KeyedMutexAcquireReleaseInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32SurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32SurfaceCreateInfoKHR.java index e27392c8..56a12ffa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32SurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWin32SurfaceCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkWin32SurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkWin32SurfaceCreateInfoKHR` public static VkWin32SurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkWin32SurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWin32SurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWin32SurfaceCreateInfoKHR` + public VkWin32SurfaceCreateInfoKHR asSlice(long index) { return new VkWin32SurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWin32SurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWin32SurfaceCreateInfoKHR` + public VkWin32SurfaceCreateInfoKHR asSlice(long index, long count) { return new VkWin32SurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWriteDescriptorSetAccelerationStructureKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWriteDescriptorSetAccelerationStructureKHR.java index 738e0765..1d5c4032 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWriteDescriptorSetAccelerationStructureKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkWriteDescriptorSetAccelerationStructureKHR.java @@ -95,6 +95,17 @@ public final class VkWriteDescriptorSetAccelerationStructureKHR extends Struct { /// @return the allocated `VkWriteDescriptorSetAccelerationStructureKHR` public static VkWriteDescriptorSetAccelerationStructureKHR alloc(SegmentAllocator allocator, long count) { return new VkWriteDescriptorSetAccelerationStructureKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteDescriptorSetAccelerationStructureKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteDescriptorSetAccelerationStructureKHR` + public VkWriteDescriptorSetAccelerationStructureKHR asSlice(long index) { return new VkWriteDescriptorSetAccelerationStructureKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteDescriptorSetAccelerationStructureKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteDescriptorSetAccelerationStructureKHR` + public VkWriteDescriptorSetAccelerationStructureKHR asSlice(long index, long count) { return new VkWriteDescriptorSetAccelerationStructureKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXcbSurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXcbSurfaceCreateInfoKHR.java index 950b5e83..380f7c1c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXcbSurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXcbSurfaceCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkXcbSurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkXcbSurfaceCreateInfoKHR` public static VkXcbSurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkXcbSurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkXcbSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkXcbSurfaceCreateInfoKHR` + public VkXcbSurfaceCreateInfoKHR asSlice(long index) { return new VkXcbSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkXcbSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkXcbSurfaceCreateInfoKHR` + public VkXcbSurfaceCreateInfoKHR asSlice(long index, long count) { return new VkXcbSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXlibSurfaceCreateInfoKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXlibSurfaceCreateInfoKHR.java index 52a420c7..fc17e0a6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXlibSurfaceCreateInfoKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/struct/VkXlibSurfaceCreateInfoKHR.java @@ -101,6 +101,17 @@ public final class VkXlibSurfaceCreateInfoKHR extends Struct { /// @return the allocated `VkXlibSurfaceCreateInfoKHR` public static VkXlibSurfaceCreateInfoKHR alloc(SegmentAllocator allocator, long count) { return new VkXlibSurfaceCreateInfoKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkXlibSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @return the slice of `VkXlibSurfaceCreateInfoKHR` + public VkXlibSurfaceCreateInfoKHR asSlice(long index) { return new VkXlibSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkXlibSurfaceCreateInfoKHR`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkXlibSurfaceCreateInfoKHR` + public VkXlibSurfaceCreateInfoKHR asSlice(long index, long count) { return new VkXlibSurfaceCreateInfoKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkAccelerationStructureGeometryDataKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkAccelerationStructureGeometryDataKHR.java index ff523257..e7337f33 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkAccelerationStructureGeometryDataKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkAccelerationStructureGeometryDataKHR.java @@ -95,12 +95,23 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { /// @return the allocated `VkAccelerationStructureGeometryDataKHR` public static VkAccelerationStructureGeometryDataKHR alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryDataKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryDataKHR`. + /// @param index the index of the union buffer + /// @return the slice of `VkAccelerationStructureGeometryDataKHR` + public VkAccelerationStructureGeometryDataKHR asSlice(long index) { return new VkAccelerationStructureGeometryDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryDataKHR`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryDataKHR` + public VkAccelerationStructureGeometryDataKHR asSlice(long index, long count) { return new VkAccelerationStructureGeometryDataKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `triangles` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment get_triangles(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_triangles, index), ML_triangles); } /// {@return `triangles`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment get_triangles(MemorySegment segment) { return VkAccelerationStructureGeometryDataKHR.get_triangles(segment, 0L); } /// {@return `triangles` at the given index} /// @param index the index @@ -108,12 +119,12 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { /// {@return `triangles`} public @CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment triangles() { return VkAccelerationStructureGeometryDataKHR.get_triangles(this.segment()); } /// Sets `triangles` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_triangles(MemorySegment segment, long index, @CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_triangles, index), ML_triangles.byteSize()); } /// Sets `triangles` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_triangles(MemorySegment segment, @CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureGeometryDataKHR.set_triangles(segment, 0L, value); } /// Sets `triangles` with the given value at the given index. @@ -127,11 +138,11 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { public VkAccelerationStructureGeometryDataKHR triangles(@CType("VkAccelerationStructureGeometryTrianglesDataKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureGeometryDataKHR.set_triangles(this.segment(), value); return this; } /// {@return `aabbs` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment get_aabbs(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_aabbs, index), ML_aabbs); } /// {@return `aabbs`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment get_aabbs(MemorySegment segment) { return VkAccelerationStructureGeometryDataKHR.get_aabbs(segment, 0L); } /// {@return `aabbs` at the given index} /// @param index the index @@ -139,12 +150,12 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { /// {@return `aabbs`} public @CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment aabbs() { return VkAccelerationStructureGeometryDataKHR.get_aabbs(this.segment()); } /// Sets `aabbs` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_aabbs(MemorySegment segment, long index, @CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_aabbs, index), ML_aabbs.byteSize()); } /// Sets `aabbs` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_aabbs(MemorySegment segment, @CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureGeometryDataKHR.set_aabbs(segment, 0L, value); } /// Sets `aabbs` with the given value at the given index. @@ -158,11 +169,11 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { public VkAccelerationStructureGeometryDataKHR aabbs(@CType("VkAccelerationStructureGeometryAabbsDataKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureGeometryDataKHR.set_aabbs(this.segment(), value); return this; } /// {@return `instances` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureGeometryInstancesDataKHR") java.lang.foreign.MemorySegment get_instances(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_instances, index), ML_instances); } /// {@return `instances`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureGeometryInstancesDataKHR") java.lang.foreign.MemorySegment get_instances(MemorySegment segment) { return VkAccelerationStructureGeometryDataKHR.get_instances(segment, 0L); } /// {@return `instances` at the given index} /// @param index the index @@ -170,12 +181,12 @@ public final class VkAccelerationStructureGeometryDataKHR extends Union { /// {@return `instances`} public @CType("VkAccelerationStructureGeometryInstancesDataKHR") java.lang.foreign.MemorySegment instances() { return VkAccelerationStructureGeometryDataKHR.get_instances(this.segment()); } /// Sets `instances` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_instances(MemorySegment segment, long index, @CType("VkAccelerationStructureGeometryInstancesDataKHR") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_instances, index), ML_instances.byteSize()); } /// Sets `instances` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_instances(MemorySegment segment, @CType("VkAccelerationStructureGeometryInstancesDataKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureGeometryDataKHR.set_instances(segment, 0L, value); } /// Sets `instances` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressConstKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressConstKHR.java index 028d4c4c..98ae2b3f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressConstKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressConstKHR.java @@ -83,12 +83,23 @@ public final class VkDeviceOrHostAddressConstKHR extends Union { /// @return the allocated `VkDeviceOrHostAddressConstKHR` public static VkDeviceOrHostAddressConstKHR alloc(SegmentAllocator allocator, long count) { return new VkDeviceOrHostAddressConstKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceOrHostAddressConstKHR`. + /// @param index the index of the union buffer + /// @return the slice of `VkDeviceOrHostAddressConstKHR` + public VkDeviceOrHostAddressConstKHR asSlice(long index) { return new VkDeviceOrHostAddressConstKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceOrHostAddressConstKHR`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkDeviceOrHostAddressConstKHR` + public VkDeviceOrHostAddressConstKHR asSlice(long index, long count) { return new VkDeviceOrHostAddressConstKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `deviceAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment, long index) { return (long) VH_deviceAddress.get(segment, 0L, index); } /// {@return `deviceAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment) { return VkDeviceOrHostAddressConstKHR.get_deviceAddress(segment, 0L); } /// {@return `deviceAddress` at the given index} /// @param index the index @@ -96,12 +107,12 @@ public final class VkDeviceOrHostAddressConstKHR extends Union { /// {@return `deviceAddress`} public @CType("VkDeviceAddress") long deviceAddress() { return VkDeviceOrHostAddressConstKHR.get_deviceAddress(this.segment()); } /// Sets `deviceAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_deviceAddress(MemorySegment segment, long index, @CType("VkDeviceAddress") long value) { VH_deviceAddress.set(segment, 0L, index, value); } /// Sets `deviceAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_deviceAddress(MemorySegment segment, @CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressConstKHR.set_deviceAddress(segment, 0L, value); } /// Sets `deviceAddress` with the given value at the given index. @@ -115,11 +126,11 @@ public final class VkDeviceOrHostAddressConstKHR extends Union { public VkDeviceOrHostAddressConstKHR deviceAddress(@CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressConstKHR.set_deviceAddress(this.segment(), value); return this; } /// {@return `hostAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("const void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_hostAddress.get(segment, 0L, index); } /// {@return `hostAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("const void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment) { return VkDeviceOrHostAddressConstKHR.get_hostAddress(segment, 0L); } /// {@return `hostAddress` at the given index} /// @param index the index @@ -127,12 +138,12 @@ public final class VkDeviceOrHostAddressConstKHR extends Union { /// {@return `hostAddress`} public @CType("const void *") java.lang.foreign.MemorySegment hostAddress() { return VkDeviceOrHostAddressConstKHR.get_hostAddress(this.segment()); } /// Sets `hostAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_hostAddress(MemorySegment segment, long index, @CType("const void *") java.lang.foreign.MemorySegment value) { VH_hostAddress.set(segment, 0L, index, value); } /// Sets `hostAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_hostAddress(MemorySegment segment, @CType("const void *") java.lang.foreign.MemorySegment value) { VkDeviceOrHostAddressConstKHR.set_hostAddress(segment, 0L, value); } /// Sets `hostAddress` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressKHR.java index 31c9d5c9..e455933a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkDeviceOrHostAddressKHR.java @@ -83,12 +83,23 @@ public final class VkDeviceOrHostAddressKHR extends Union { /// @return the allocated `VkDeviceOrHostAddressKHR` public static VkDeviceOrHostAddressKHR alloc(SegmentAllocator allocator, long count) { return new VkDeviceOrHostAddressKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceOrHostAddressKHR`. + /// @param index the index of the union buffer + /// @return the slice of `VkDeviceOrHostAddressKHR` + public VkDeviceOrHostAddressKHR asSlice(long index) { return new VkDeviceOrHostAddressKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceOrHostAddressKHR`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkDeviceOrHostAddressKHR` + public VkDeviceOrHostAddressKHR asSlice(long index, long count) { return new VkDeviceOrHostAddressKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `deviceAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment, long index) { return (long) VH_deviceAddress.get(segment, 0L, index); } /// {@return `deviceAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkDeviceAddress") long get_deviceAddress(MemorySegment segment) { return VkDeviceOrHostAddressKHR.get_deviceAddress(segment, 0L); } /// {@return `deviceAddress` at the given index} /// @param index the index @@ -96,12 +107,12 @@ public final class VkDeviceOrHostAddressKHR extends Union { /// {@return `deviceAddress`} public @CType("VkDeviceAddress") long deviceAddress() { return VkDeviceOrHostAddressKHR.get_deviceAddress(this.segment()); } /// Sets `deviceAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_deviceAddress(MemorySegment segment, long index, @CType("VkDeviceAddress") long value) { VH_deviceAddress.set(segment, 0L, index, value); } /// Sets `deviceAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_deviceAddress(MemorySegment segment, @CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressKHR.set_deviceAddress(segment, 0L, value); } /// Sets `deviceAddress` with the given value at the given index. @@ -115,11 +126,11 @@ public final class VkDeviceOrHostAddressKHR extends Union { public VkDeviceOrHostAddressKHR deviceAddress(@CType("VkDeviceAddress") long value) { VkDeviceOrHostAddressKHR.set_deviceAddress(this.segment(), value); return this; } /// {@return `hostAddress` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment, long index) { return (java.lang.foreign.MemorySegment) VH_hostAddress.get(segment, 0L, index); } /// {@return `hostAddress`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("void *") java.lang.foreign.MemorySegment get_hostAddress(MemorySegment segment) { return VkDeviceOrHostAddressKHR.get_hostAddress(segment, 0L); } /// {@return `hostAddress` at the given index} /// @param index the index @@ -127,12 +138,12 @@ public final class VkDeviceOrHostAddressKHR extends Union { /// {@return `hostAddress`} public @CType("void *") java.lang.foreign.MemorySegment hostAddress() { return VkDeviceOrHostAddressKHR.get_hostAddress(this.segment()); } /// Sets `hostAddress` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_hostAddress(MemorySegment segment, long index, @CType("void *") java.lang.foreign.MemorySegment value) { VH_hostAddress.set(segment, 0L, index, value); } /// Sets `hostAddress` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_hostAddress(MemorySegment segment, @CType("void *") java.lang.foreign.MemorySegment value) { VkDeviceOrHostAddressKHR.set_hostAddress(segment, 0L, value); } /// Sets `hostAddress` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPerformanceCounterResultKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPerformanceCounterResultKHR.java index 8e24eaf3..6dbf821e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPerformanceCounterResultKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPerformanceCounterResultKHR.java @@ -107,12 +107,23 @@ public final class VkPerformanceCounterResultKHR extends Union { /// @return the allocated `VkPerformanceCounterResultKHR` public static VkPerformanceCounterResultKHR alloc(SegmentAllocator allocator, long count) { return new VkPerformanceCounterResultKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPerformanceCounterResultKHR`. + /// @param index the index of the union buffer + /// @return the slice of `VkPerformanceCounterResultKHR` + public VkPerformanceCounterResultKHR asSlice(long index) { return new VkPerformanceCounterResultKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPerformanceCounterResultKHR`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkPerformanceCounterResultKHR` + public VkPerformanceCounterResultKHR asSlice(long index, long count) { return new VkPerformanceCounterResultKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `int32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("int32_t") int get_int32(MemorySegment segment, long index) { return (int) VH_int32.get(segment, 0L, index); } /// {@return `int32`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("int32_t") int get_int32(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_int32(segment, 0L); } /// {@return `int32` at the given index} /// @param index the index @@ -120,12 +131,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `int32`} public @CType("int32_t") int int32() { return VkPerformanceCounterResultKHR.get_int32(this.segment()); } /// Sets `int32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_int32(MemorySegment segment, long index, @CType("int32_t") int value) { VH_int32.set(segment, 0L, index, value); } /// Sets `int32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_int32(MemorySegment segment, @CType("int32_t") int value) { VkPerformanceCounterResultKHR.set_int32(segment, 0L, value); } /// Sets `int32` with the given value at the given index. @@ -139,11 +150,11 @@ public final class VkPerformanceCounterResultKHR extends Union { public VkPerformanceCounterResultKHR int32(@CType("int32_t") int value) { VkPerformanceCounterResultKHR.set_int32(this.segment(), value); return this; } /// {@return `int64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("int64_t") long get_int64(MemorySegment segment, long index) { return (long) VH_int64.get(segment, 0L, index); } /// {@return `int64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("int64_t") long get_int64(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_int64(segment, 0L); } /// {@return `int64` at the given index} /// @param index the index @@ -151,12 +162,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `int64`} public @CType("int64_t") long int64() { return VkPerformanceCounterResultKHR.get_int64(this.segment()); } /// Sets `int64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_int64(MemorySegment segment, long index, @CType("int64_t") long value) { VH_int64.set(segment, 0L, index, value); } /// Sets `int64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_int64(MemorySegment segment, @CType("int64_t") long value) { VkPerformanceCounterResultKHR.set_int64(segment, 0L, value); } /// Sets `int64` with the given value at the given index. @@ -170,11 +181,11 @@ public final class VkPerformanceCounterResultKHR extends Union { public VkPerformanceCounterResultKHR int64(@CType("int64_t") long value) { VkPerformanceCounterResultKHR.set_int64(this.segment(), value); return this; } /// {@return `uint32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("uint32_t") int get_uint32(MemorySegment segment, long index) { return (int) VH_uint32.get(segment, 0L, index); } /// {@return `uint32`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("uint32_t") int get_uint32(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_uint32(segment, 0L); } /// {@return `uint32` at the given index} /// @param index the index @@ -182,12 +193,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `uint32`} public @CType("uint32_t") int uint32() { return VkPerformanceCounterResultKHR.get_uint32(this.segment()); } /// Sets `uint32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_uint32(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_uint32.set(segment, 0L, index, value); } /// Sets `uint32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_uint32(MemorySegment segment, @CType("uint32_t") int value) { VkPerformanceCounterResultKHR.set_uint32(segment, 0L, value); } /// Sets `uint32` with the given value at the given index. @@ -201,11 +212,11 @@ public final class VkPerformanceCounterResultKHR extends Union { public VkPerformanceCounterResultKHR uint32(@CType("uint32_t") int value) { VkPerformanceCounterResultKHR.set_uint32(this.segment(), value); return this; } /// {@return `uint64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("uint64_t") long get_uint64(MemorySegment segment, long index) { return (long) VH_uint64.get(segment, 0L, index); } /// {@return `uint64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("uint64_t") long get_uint64(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_uint64(segment, 0L); } /// {@return `uint64` at the given index} /// @param index the index @@ -213,12 +224,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `uint64`} public @CType("uint64_t") long uint64() { return VkPerformanceCounterResultKHR.get_uint64(this.segment()); } /// Sets `uint64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_uint64(MemorySegment segment, long index, @CType("uint64_t") long value) { VH_uint64.set(segment, 0L, index, value); } /// Sets `uint64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_uint64(MemorySegment segment, @CType("uint64_t") long value) { VkPerformanceCounterResultKHR.set_uint64(segment, 0L, value); } /// Sets `uint64` with the given value at the given index. @@ -232,11 +243,11 @@ public final class VkPerformanceCounterResultKHR extends Union { public VkPerformanceCounterResultKHR uint64(@CType("uint64_t") long value) { VkPerformanceCounterResultKHR.set_uint64(this.segment(), value); return this; } /// {@return `float32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("float") float get_float32(MemorySegment segment, long index) { return (float) VH_float32.get(segment, 0L, index); } /// {@return `float32`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("float") float get_float32(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_float32(segment, 0L); } /// {@return `float32` at the given index} /// @param index the index @@ -244,12 +255,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `float32`} public @CType("float") float float32() { return VkPerformanceCounterResultKHR.get_float32(this.segment()); } /// Sets `float32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_float32(MemorySegment segment, long index, @CType("float") float value) { VH_float32.set(segment, 0L, index, value); } /// Sets `float32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_float32(MemorySegment segment, @CType("float") float value) { VkPerformanceCounterResultKHR.set_float32(segment, 0L, value); } /// Sets `float32` with the given value at the given index. @@ -263,11 +274,11 @@ public final class VkPerformanceCounterResultKHR extends Union { public VkPerformanceCounterResultKHR float32(@CType("float") float value) { VkPerformanceCounterResultKHR.set_float32(this.segment(), value); return this; } /// {@return `float64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("double") double get_float64(MemorySegment segment, long index) { return (double) VH_float64.get(segment, 0L, index); } /// {@return `float64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("double") double get_float64(MemorySegment segment) { return VkPerformanceCounterResultKHR.get_float64(segment, 0L); } /// {@return `float64` at the given index} /// @param index the index @@ -275,12 +286,12 @@ public final class VkPerformanceCounterResultKHR extends Union { /// {@return `float64`} public @CType("double") double float64() { return VkPerformanceCounterResultKHR.get_float64(this.segment()); } /// Sets `float64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_float64(MemorySegment segment, long index, @CType("double") double value) { VH_float64.set(segment, 0L, index, value); } /// Sets `float64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_float64(MemorySegment segment, @CType("double") double value) { VkPerformanceCounterResultKHR.set_float64(segment, 0L, value); } /// Sets `float64` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPipelineExecutableStatisticValueKHR.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPipelineExecutableStatisticValueKHR.java index d80f6d03..ddfe0194 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPipelineExecutableStatisticValueKHR.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/khr/union/VkPipelineExecutableStatisticValueKHR.java @@ -95,12 +95,23 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { /// @return the allocated `VkPipelineExecutableStatisticValueKHR` public static VkPipelineExecutableStatisticValueKHR alloc(SegmentAllocator allocator, long count) { return new VkPipelineExecutableStatisticValueKHR(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineExecutableStatisticValueKHR`. + /// @param index the index of the union buffer + /// @return the slice of `VkPipelineExecutableStatisticValueKHR` + public VkPipelineExecutableStatisticValueKHR asSlice(long index) { return new VkPipelineExecutableStatisticValueKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineExecutableStatisticValueKHR`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkPipelineExecutableStatisticValueKHR` + public VkPipelineExecutableStatisticValueKHR asSlice(long index, long count) { return new VkPipelineExecutableStatisticValueKHR(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `b32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkBool32") int get_b32(MemorySegment segment, long index) { return (int) VH_b32.get(segment, 0L, index); } /// {@return `b32`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkBool32") int get_b32(MemorySegment segment) { return VkPipelineExecutableStatisticValueKHR.get_b32(segment, 0L); } /// {@return `b32` at the given index} /// @param index the index @@ -108,12 +119,12 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { /// {@return `b32`} public @CType("VkBool32") int b32() { return VkPipelineExecutableStatisticValueKHR.get_b32(this.segment()); } /// Sets `b32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_b32(MemorySegment segment, long index, @CType("VkBool32") int value) { VH_b32.set(segment, 0L, index, value); } /// Sets `b32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_b32(MemorySegment segment, @CType("VkBool32") int value) { VkPipelineExecutableStatisticValueKHR.set_b32(segment, 0L, value); } /// Sets `b32` with the given value at the given index. @@ -127,11 +138,11 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { public VkPipelineExecutableStatisticValueKHR b32(@CType("VkBool32") int value) { VkPipelineExecutableStatisticValueKHR.set_b32(this.segment(), value); return this; } /// {@return `i64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("int64_t") long get_i64(MemorySegment segment, long index) { return (long) VH_i64.get(segment, 0L, index); } /// {@return `i64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("int64_t") long get_i64(MemorySegment segment) { return VkPipelineExecutableStatisticValueKHR.get_i64(segment, 0L); } /// {@return `i64` at the given index} /// @param index the index @@ -139,12 +150,12 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { /// {@return `i64`} public @CType("int64_t") long i64() { return VkPipelineExecutableStatisticValueKHR.get_i64(this.segment()); } /// Sets `i64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_i64(MemorySegment segment, long index, @CType("int64_t") long value) { VH_i64.set(segment, 0L, index, value); } /// Sets `i64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_i64(MemorySegment segment, @CType("int64_t") long value) { VkPipelineExecutableStatisticValueKHR.set_i64(segment, 0L, value); } /// Sets `i64` with the given value at the given index. @@ -158,11 +169,11 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { public VkPipelineExecutableStatisticValueKHR i64(@CType("int64_t") long value) { VkPipelineExecutableStatisticValueKHR.set_i64(this.segment(), value); return this; } /// {@return `u64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("uint64_t") long get_u64(MemorySegment segment, long index) { return (long) VH_u64.get(segment, 0L, index); } /// {@return `u64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("uint64_t") long get_u64(MemorySegment segment) { return VkPipelineExecutableStatisticValueKHR.get_u64(segment, 0L); } /// {@return `u64` at the given index} /// @param index the index @@ -170,12 +181,12 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { /// {@return `u64`} public @CType("uint64_t") long u64() { return VkPipelineExecutableStatisticValueKHR.get_u64(this.segment()); } /// Sets `u64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_u64(MemorySegment segment, long index, @CType("uint64_t") long value) { VH_u64.set(segment, 0L, index, value); } /// Sets `u64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_u64(MemorySegment segment, @CType("uint64_t") long value) { VkPipelineExecutableStatisticValueKHR.set_u64(segment, 0L, value); } /// Sets `u64` with the given value at the given index. @@ -189,11 +200,11 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { public VkPipelineExecutableStatisticValueKHR u64(@CType("uint64_t") long value) { VkPipelineExecutableStatisticValueKHR.set_u64(this.segment(), value); return this; } /// {@return `f64` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("double") double get_f64(MemorySegment segment, long index) { return (double) VH_f64.get(segment, 0L, index); } /// {@return `f64`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("double") double get_f64(MemorySegment segment) { return VkPipelineExecutableStatisticValueKHR.get_f64(segment, 0L); } /// {@return `f64` at the given index} /// @param index the index @@ -201,12 +212,12 @@ public final class VkPipelineExecutableStatisticValueKHR extends Union { /// {@return `f64`} public @CType("double") double f64() { return VkPipelineExecutableStatisticValueKHR.get_f64(this.segment()); } /// Sets `f64` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_f64(MemorySegment segment, long index, @CType("double") double value) { VH_f64.set(segment, 0L, index, value); } /// Sets `f64` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_f64(MemorySegment segment, @CType("double") double value) { VkPipelineExecutableStatisticValueKHR.set_f64(segment, 0L, value); } /// Sets `f64` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/VKLUNARGDirectDriverLoading.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/VKLUNARGDirectDriverLoading.java index 7d836983..e6f54d69 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/VKLUNARGDirectDriverLoading.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/VKLUNARGDirectDriverLoading.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKLUNARGDirectDriverLoading { +public final class VKLUNARGDirectDriverLoading { public static final int VK_DIRECT_DRIVER_LOADING_MODE_EXCLUSIVE_LUNARG = 0; public static final int VK_DIRECT_DRIVER_LOADING_MODE_INCLUSIVE_LUNARG = 1; public static final int VK_LUNARG_DIRECT_DRIVER_LOADING_SPEC_VERSION = 1; @@ -30,7 +30,6 @@ public class VKLUNARGDirectDriverLoading { public static final int VK_STRUCTURE_TYPE_DIRECT_DRIVER_LOADING_INFO_LUNARG = 1000459000; public static final int VK_STRUCTURE_TYPE_DIRECT_DRIVER_LOADING_LIST_LUNARG = 1000459001; - public VKLUNARGDirectDriverLoading(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKLUNARGDirectDriverLoading() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingInfoLUNARG.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingInfoLUNARG.java index 1c96d23c..e92663e0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingInfoLUNARG.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingInfoLUNARG.java @@ -95,6 +95,17 @@ public final class VkDirectDriverLoadingInfoLUNARG extends Struct { /// @return the allocated `VkDirectDriverLoadingInfoLUNARG` public static VkDirectDriverLoadingInfoLUNARG alloc(SegmentAllocator allocator, long count) { return new VkDirectDriverLoadingInfoLUNARG(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDirectDriverLoadingInfoLUNARG`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDirectDriverLoadingInfoLUNARG` + public VkDirectDriverLoadingInfoLUNARG asSlice(long index) { return new VkDirectDriverLoadingInfoLUNARG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDirectDriverLoadingInfoLUNARG`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDirectDriverLoadingInfoLUNARG` + public VkDirectDriverLoadingInfoLUNARG asSlice(long index, long count) { return new VkDirectDriverLoadingInfoLUNARG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingListLUNARG.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingListLUNARG.java index 1fbec008..fbff04a7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingListLUNARG.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/lunarg/struct/VkDirectDriverLoadingListLUNARG.java @@ -101,6 +101,17 @@ public final class VkDirectDriverLoadingListLUNARG extends Struct { /// @return the allocated `VkDirectDriverLoadingListLUNARG` public static VkDirectDriverLoadingListLUNARG alloc(SegmentAllocator allocator, long count) { return new VkDirectDriverLoadingListLUNARG(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDirectDriverLoadingListLUNARG`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDirectDriverLoadingListLUNARG` + public VkDirectDriverLoadingListLUNARG asSlice(long index) { return new VkDirectDriverLoadingListLUNARG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDirectDriverLoadingListLUNARG`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDirectDriverLoadingListLUNARG` + public VkDirectDriverLoadingListLUNARG asSlice(long index, long count) { return new VkDirectDriverLoadingListLUNARG(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/VKMESAImageAlignmentControl.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/VKMESAImageAlignmentControl.java index 3e7af6ca..9b68ac93 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/VKMESAImageAlignmentControl.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/VKMESAImageAlignmentControl.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKMESAImageAlignmentControl { +public final class VKMESAImageAlignmentControl { public static final int VK_MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION = 1; public static final String VK_MESA_IMAGE_ALIGNMENT_CONTROL_EXTENSION_NAME = "VK_MESA_image_alignment_control"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA = 1000575000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA = 1000575001; public static final int VK_STRUCTURE_TYPE_IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA = 1000575002; - public VKMESAImageAlignmentControl(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKMESAImageAlignmentControl() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkImageAlignmentControlCreateInfoMESA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkImageAlignmentControlCreateInfoMESA.java index 58c7eabe..1a446040 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkImageAlignmentControlCreateInfoMESA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkImageAlignmentControlCreateInfoMESA.java @@ -89,6 +89,17 @@ public final class VkImageAlignmentControlCreateInfoMESA extends Struct { /// @return the allocated `VkImageAlignmentControlCreateInfoMESA` public static VkImageAlignmentControlCreateInfoMESA alloc(SegmentAllocator allocator, long count) { return new VkImageAlignmentControlCreateInfoMESA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageAlignmentControlCreateInfoMESA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageAlignmentControlCreateInfoMESA` + public VkImageAlignmentControlCreateInfoMESA asSlice(long index) { return new VkImageAlignmentControlCreateInfoMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageAlignmentControlCreateInfoMESA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageAlignmentControlCreateInfoMESA` + public VkImageAlignmentControlCreateInfoMESA asSlice(long index, long count) { return new VkImageAlignmentControlCreateInfoMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlFeaturesMESA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlFeaturesMESA.java index 119fad18..6c5f47bc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlFeaturesMESA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlFeaturesMESA.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageAlignmentControlFeaturesMESA extends Str /// @return the allocated `VkPhysicalDeviceImageAlignmentControlFeaturesMESA` public static VkPhysicalDeviceImageAlignmentControlFeaturesMESA alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageAlignmentControlFeaturesMESA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageAlignmentControlFeaturesMESA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageAlignmentControlFeaturesMESA` + public VkPhysicalDeviceImageAlignmentControlFeaturesMESA asSlice(long index) { return new VkPhysicalDeviceImageAlignmentControlFeaturesMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageAlignmentControlFeaturesMESA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageAlignmentControlFeaturesMESA` + public VkPhysicalDeviceImageAlignmentControlFeaturesMESA asSlice(long index, long count) { return new VkPhysicalDeviceImageAlignmentControlFeaturesMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlPropertiesMESA.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlPropertiesMESA.java index 8540df50..33cdc64d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlPropertiesMESA.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mesa/struct/VkPhysicalDeviceImageAlignmentControlPropertiesMESA.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageAlignmentControlPropertiesMESA extends S /// @return the allocated `VkPhysicalDeviceImageAlignmentControlPropertiesMESA` public static VkPhysicalDeviceImageAlignmentControlPropertiesMESA alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageAlignmentControlPropertiesMESA(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageAlignmentControlPropertiesMESA`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageAlignmentControlPropertiesMESA` + public VkPhysicalDeviceImageAlignmentControlPropertiesMESA asSlice(long index) { return new VkPhysicalDeviceImageAlignmentControlPropertiesMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageAlignmentControlPropertiesMESA`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageAlignmentControlPropertiesMESA` + public VkPhysicalDeviceImageAlignmentControlPropertiesMESA asSlice(long index, long count) { return new VkPhysicalDeviceImageAlignmentControlPropertiesMESA(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/VKMSFTLayeredDriver.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/VKMSFTLayeredDriver.java index 5e5f3d88..423d3eb5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/VKMSFTLayeredDriver.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/VKMSFTLayeredDriver.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKMSFTLayeredDriver { +public final class VKMSFTLayeredDriver { public static final int VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT = 0; public static final int VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT = 1; public static final int VK_MSFT_LAYERED_DRIVER_SPEC_VERSION = 1; public static final String VK_MSFT_LAYERED_DRIVER_EXTENSION_NAME = "VK_MSFT_layered_driver"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT = 1000530000; - public VKMSFTLayeredDriver(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKMSFTLayeredDriver() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/struct/VkPhysicalDeviceLayeredDriverPropertiesMSFT.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/struct/VkPhysicalDeviceLayeredDriverPropertiesMSFT.java index fdfa65d0..360b8906 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/struct/VkPhysicalDeviceLayeredDriverPropertiesMSFT.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/msft/struct/VkPhysicalDeviceLayeredDriverPropertiesMSFT.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLayeredDriverPropertiesMSFT extends Struct { /// @return the allocated `VkPhysicalDeviceLayeredDriverPropertiesMSFT` public static VkPhysicalDeviceLayeredDriverPropertiesMSFT alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLayeredDriverPropertiesMSFT(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLayeredDriverPropertiesMSFT`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLayeredDriverPropertiesMSFT` + public VkPhysicalDeviceLayeredDriverPropertiesMSFT asSlice(long index) { return new VkPhysicalDeviceLayeredDriverPropertiesMSFT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLayeredDriverPropertiesMSFT`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLayeredDriverPropertiesMSFT` + public VkPhysicalDeviceLayeredDriverPropertiesMSFT asSlice(long index, long count) { return new VkPhysicalDeviceLayeredDriverPropertiesMSFT(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkIOSSurfaceCreateInfoMVK.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkIOSSurfaceCreateInfoMVK.java index 7efc36c7..f52c2847 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkIOSSurfaceCreateInfoMVK.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkIOSSurfaceCreateInfoMVK.java @@ -95,6 +95,17 @@ public final class VkIOSSurfaceCreateInfoMVK extends Struct { /// @return the allocated `VkIOSSurfaceCreateInfoMVK` public static VkIOSSurfaceCreateInfoMVK alloc(SegmentAllocator allocator, long count) { return new VkIOSSurfaceCreateInfoMVK(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIOSSurfaceCreateInfoMVK`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIOSSurfaceCreateInfoMVK` + public VkIOSSurfaceCreateInfoMVK asSlice(long index) { return new VkIOSSurfaceCreateInfoMVK(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIOSSurfaceCreateInfoMVK`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIOSSurfaceCreateInfoMVK` + public VkIOSSurfaceCreateInfoMVK asSlice(long index, long count) { return new VkIOSSurfaceCreateInfoMVK(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkMacOSSurfaceCreateInfoMVK.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkMacOSSurfaceCreateInfoMVK.java index 61427842..a7a0e8e6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkMacOSSurfaceCreateInfoMVK.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/mvk/struct/VkMacOSSurfaceCreateInfoMVK.java @@ -95,6 +95,17 @@ public final class VkMacOSSurfaceCreateInfoMVK extends Struct { /// @return the allocated `VkMacOSSurfaceCreateInfoMVK` public static VkMacOSSurfaceCreateInfoMVK alloc(SegmentAllocator allocator, long count) { return new VkMacOSSurfaceCreateInfoMVK(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMacOSSurfaceCreateInfoMVK`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMacOSSurfaceCreateInfoMVK` + public VkMacOSSurfaceCreateInfoMVK asSlice(long index) { return new VkMacOSSurfaceCreateInfoMVK(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMacOSSurfaceCreateInfoMVK`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMacOSSurfaceCreateInfoMVK` + public VkMacOSSurfaceCreateInfoMVK asSlice(long index, long count) { return new VkMacOSSurfaceCreateInfoMVK(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nn/struct/VkViSurfaceCreateInfoNN.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nn/struct/VkViSurfaceCreateInfoNN.java index f1ed8a63..60cae00c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nn/struct/VkViSurfaceCreateInfoNN.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nn/struct/VkViSurfaceCreateInfoNN.java @@ -95,6 +95,17 @@ public final class VkViSurfaceCreateInfoNN extends Struct { /// @return the allocated `VkViSurfaceCreateInfoNN` public static VkViSurfaceCreateInfoNN alloc(SegmentAllocator allocator, long count) { return new VkViSurfaceCreateInfoNN(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkViSurfaceCreateInfoNN`. + /// @param index the index of the struct buffer + /// @return the slice of `VkViSurfaceCreateInfoNN` + public VkViSurfaceCreateInfoNN asSlice(long index) { return new VkViSurfaceCreateInfoNN(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkViSurfaceCreateInfoNN`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkViSurfaceCreateInfoNN` + public VkViSurfaceCreateInfoNN asSlice(long index, long count) { return new VkViSurfaceCreateInfoNN(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCommandBufferInheritance.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCommandBufferInheritance.java index 0f0afd06..50439cb0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCommandBufferInheritance.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCommandBufferInheritance.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVCommandBufferInheritance { +public final class VKNVCommandBufferInheritance { public static final int VK_NV_COMMAND_BUFFER_INHERITANCE_SPEC_VERSION = 1; public static final String VK_NV_COMMAND_BUFFER_INHERITANCE_EXTENSION_NAME = "VK_NV_command_buffer_inheritance"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMMAND_BUFFER_INHERITANCE_FEATURES_NV = 1000559000; - public VKNVCommandBufferInheritance(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVCommandBufferInheritance() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVComputeShaderDerivatives.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVComputeShaderDerivatives.java index b1376b18..6208dbab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVComputeShaderDerivatives.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVComputeShaderDerivatives.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.khr.VKKHRComputeShaderDerivatives.*; -public class VKNVComputeShaderDerivatives { +public final class VKNVComputeShaderDerivatives { public static final int VK_NV_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION = 1; public static final String VK_NV_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME = "VK_NV_compute_shader_derivatives"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_KHR; - public VKNVComputeShaderDerivatives(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVComputeShaderDerivatives() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCornerSampledImage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCornerSampledImage.java index ba031b90..7365c0de 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCornerSampledImage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVCornerSampledImage.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVCornerSampledImage { +public final class VKNVCornerSampledImage { public static final int VK_NV_CORNER_SAMPLED_IMAGE_SPEC_VERSION = 2; public static final String VK_NV_CORNER_SAMPLED_IMAGE_EXTENSION_NAME = "VK_NV_corner_sampled_image"; public static final int VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV = 0x00002000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV = 1000050000; - public VKNVCornerSampledImage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVCornerSampledImage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocation.java index 946aa469..b5683127 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocation.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDedicatedAllocation { +public final class VKNVDedicatedAllocation { public static final int VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION = 1; public static final String VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME = "VK_NV_dedicated_allocation"; public static final int VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000; public static final int VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001; public static final int VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002; - public VKNVDedicatedAllocation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVDedicatedAllocation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocationImageAliasing.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocationImageAliasing.java index 883b9f83..21120798 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocationImageAliasing.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDedicatedAllocationImageAliasing.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDedicatedAllocationImageAliasing { +public final class VKNVDedicatedAllocationImageAliasing { public static final int VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_SPEC_VERSION = 1; public static final String VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_EXTENSION_NAME = "VK_NV_dedicated_allocation_image_aliasing"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV = 1000240000; - public VKNVDedicatedAllocationImageAliasing(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVDedicatedAllocationImageAliasing() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDescriptorPoolOverallocation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDescriptorPoolOverallocation.java index 6f53aae0..235a0692 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDescriptorPoolOverallocation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDescriptorPoolOverallocation.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDescriptorPoolOverallocation { +public final class VKNVDescriptorPoolOverallocation { public static final int VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_SPEC_VERSION = 1; public static final String VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_EXTENSION_NAME = "VK_NV_descriptor_pool_overallocation"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV = 1000546000; public static final int VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_SETS_BIT_NV = 0x00000008; public static final int VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_POOLS_BIT_NV = 0x00000010; - public VKNVDescriptorPoolOverallocation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVDescriptorPoolOverallocation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDeviceDiagnosticsConfig.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDeviceDiagnosticsConfig.java index d5d1d0b9..e6293e48 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDeviceDiagnosticsConfig.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDeviceDiagnosticsConfig.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDeviceDiagnosticsConfig { +public final class VKNVDeviceDiagnosticsConfig { public static final int VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_SHADER_DEBUG_INFO_BIT_NV = 0x00000001; public static final int VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_RESOURCE_TRACKING_BIT_NV = 0x00000002; public static final int VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_AUTOMATIC_CHECKPOINTS_BIT_NV = 0x00000004; @@ -32,7 +32,6 @@ public class VKNVDeviceDiagnosticsConfig { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV = 1000300000; public static final int VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV = 1000300001; - public VKNVDeviceDiagnosticsConfig(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVDeviceDiagnosticsConfig() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplacementMicromap.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplacementMicromap.java index e351dac8..6f08b9d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplacementMicromap.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplacementMicromap.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDisplacementMicromap { +public final class VKNVDisplacementMicromap { public static final int VK_DISPLACEMENT_MICROMAP_FORMAT_64_TRIANGLES_64_BYTES_NV = 1; public static final int VK_DISPLACEMENT_MICROMAP_FORMAT_256_TRIANGLES_128_BYTES_NV = 2; public static final int VK_DISPLACEMENT_MICROMAP_FORMAT_1024_TRIANGLES_128_BYTES_NV = 3; @@ -35,7 +35,6 @@ public class VKNVDisplacementMicromap { public static final int VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DISPLACEMENT_MICROMAP_UPDATE_NV = 0x00000200; public static final int VK_MICROMAP_TYPE_DISPLACEMENT_MICROMAP_NV = 1000397000; - public VKNVDisplacementMicromap(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVDisplacementMicromap() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplayStereo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplayStereo.java index 3c0d9463..684427f6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplayStereo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVDisplayStereo.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVDisplayStereo { +public final class VKNVDisplayStereo { public static final int VK_DISPLAY_SURFACE_STEREO_TYPE_NONE_NV = 0; public static final int VK_DISPLAY_SURFACE_STEREO_TYPE_ONBOARD_DIN_NV = 1; public static final int VK_DISPLAY_SURFACE_STEREO_TYPE_HDMI_3D_NV = 2; @@ -32,7 +32,6 @@ public class VKNVDisplayStereo { public static final int VK_STRUCTURE_TYPE_DISPLAY_SURFACE_STEREO_CREATE_INFO_NV = 1000551000; public static final int VK_STRUCTURE_TYPE_DISPLAY_MODE_STEREO_PROPERTIES_NV = 1000551001; - public VKNVDisplayStereo(@CType("VkInstance") MemorySegment instance, VKLoadFunc func) { - } + private VKNVDisplayStereo() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExtendedSparseAddressSpace.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExtendedSparseAddressSpace.java index c632e2fa..94c6741e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExtendedSparseAddressSpace.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExtendedSparseAddressSpace.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVExtendedSparseAddressSpace { +public final class VKNVExtendedSparseAddressSpace { public static final int VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_SPEC_VERSION = 1; public static final String VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_EXTENSION_NAME = "VK_NV_extended_sparse_address_space"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_SPARSE_ADDRESS_SPACE_FEATURES_NV = 1000492000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_SPARSE_ADDRESS_SPACE_PROPERTIES_NV = 1000492001; - public VKNVExtendedSparseAddressSpace(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVExtendedSparseAddressSpace() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExternalMemory.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExternalMemory.java index 29644c26..63e42ca8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExternalMemory.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVExternalMemory.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVExternalMemory { +public final class VKNVExternalMemory { public static final int VK_NV_EXTERNAL_MEMORY_SPEC_VERSION = 1; public static final String VK_NV_EXTERNAL_MEMORY_EXTENSION_NAME = "VK_NV_external_memory"; public static final int VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000; public static final int VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001; - public VKNVExternalMemory(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVExternalMemory() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFillRectangle.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFillRectangle.java index 54f523e4..ccf2e572 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFillRectangle.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFillRectangle.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVFillRectangle { +public final class VKNVFillRectangle { public static final int VK_NV_FILL_RECTANGLE_SPEC_VERSION = 1; public static final String VK_NV_FILL_RECTANGLE_EXTENSION_NAME = "VK_NV_fill_rectangle"; public static final int VK_POLYGON_MODE_FILL_RECTANGLE_NV = 1000153000; - public VKNVFillRectangle(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVFillRectangle() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentCoverageToColor.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentCoverageToColor.java index 3db15286..5733d7cb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentCoverageToColor.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentCoverageToColor.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVFragmentCoverageToColor { +public final class VKNVFragmentCoverageToColor { public static final int VK_NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION = 1; public static final String VK_NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME = "VK_NV_fragment_coverage_to_color"; public static final int VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV = 1000149000; - public VKNVFragmentCoverageToColor(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVFragmentCoverageToColor() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentShaderBarycentric.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentShaderBarycentric.java index 50ce5e8a..2a6ed610 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentShaderBarycentric.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFragmentShaderBarycentric.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.khr.VKKHRFragmentShaderBarycentric.*; -public class VKNVFragmentShaderBarycentric { +public final class VKNVFragmentShaderBarycentric { public static final int VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION = 1; public static final String VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME = "VK_NV_fragment_shader_barycentric"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR; - public VKNVFragmentShaderBarycentric(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVFragmentShaderBarycentric() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFramebufferMixedSamples.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFramebufferMixedSamples.java index 898ccef2..5cc3b016 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFramebufferMixedSamples.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVFramebufferMixedSamples.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.amd.VKAMDMixedAttachmentSamples.*; -public class VKNVFramebufferMixedSamples { +public final class VKNVFramebufferMixedSamples { public static final int VK_COVERAGE_MODULATION_MODE_NONE_NV = 0; public static final int VK_COVERAGE_MODULATION_MODE_RGB_NV = 1; public static final int VK_COVERAGE_MODULATION_MODE_ALPHA_NV = 2; @@ -33,7 +33,6 @@ public class VKNVFramebufferMixedSamples { public static final int VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV = 1000152000; public static final int VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_NV = VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD; - public VKNVFramebufferMixedSamples(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVFramebufferMixedSamples() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGeometryShaderPassthrough.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGeometryShaderPassthrough.java index 423fee45..02dda225 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGeometryShaderPassthrough.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGeometryShaderPassthrough.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVGeometryShaderPassthrough { +public final class VKNVGeometryShaderPassthrough { public static final int VK_NV_GEOMETRY_SHADER_PASSTHROUGH_SPEC_VERSION = 1; public static final String VK_NV_GEOMETRY_SHADER_PASSTHROUGH_EXTENSION_NAME = "VK_NV_geometry_shader_passthrough"; - public VKNVGeometryShaderPassthrough(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVGeometryShaderPassthrough() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGlslShader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGlslShader.java index db90510e..63c28db7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGlslShader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVGlslShader.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVGlslShader { +public final class VKNVGlslShader { public static final int VK_NV_GLSL_SHADER_SPEC_VERSION = 1; public static final String VK_NV_GLSL_SHADER_EXTENSION_NAME = "VK_NV_glsl_shader"; public static final int VK_ERROR_INVALID_SHADER_NV = -1000012000; - public VKNVGlslShader(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVGlslShader() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVInheritedViewportScissor.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVInheritedViewportScissor.java index a58f24f4..927d0b66 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVInheritedViewportScissor.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVInheritedViewportScissor.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVInheritedViewportScissor { +public final class VKNVInheritedViewportScissor { public static final int VK_NV_INHERITED_VIEWPORT_SCISSOR_SPEC_VERSION = 1; public static final String VK_NV_INHERITED_VIEWPORT_SCISSOR_EXTENSION_NAME = "VK_NV_inherited_viewport_scissor"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV = 1000278000; public static final int VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV = 1000278001; - public VKNVInheritedViewportScissor(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVInheritedViewportScissor() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLinearColorAttachment.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLinearColorAttachment.java index 49273ad9..7fd156d6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLinearColorAttachment.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLinearColorAttachment.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVLinearColorAttachment { +public final class VKNVLinearColorAttachment { public static final int VK_NV_LINEAR_COLOR_ATTACHMENT_SPEC_VERSION = 1; public static final String VK_NV_LINEAR_COLOR_ATTACHMENT_EXTENSION_NAME = "VK_NV_linear_color_attachment"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NV = 1000430000; public static final long VK_FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV = 0x4000000000L; - public VKNVLinearColorAttachment(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVLinearColorAttachment() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLowLatency.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLowLatency.java index 06d38006..318a709f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLowLatency.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVLowLatency.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVLowLatency { +public final class VKNVLowLatency { public static final int VK_NV_LOW_LATENCY_SPEC_VERSION = 1; public static final String VK_NV_LOW_LATENCY_EXTENSION_NAME = "VK_NV_low_latency"; public static final int VK_STRUCTURE_TYPE_QUERY_LOW_LATENCY_SUPPORT_NV = 1000310000; - public VKNVLowLatency(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVLowLatency() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPerStageDescriptorSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPerStageDescriptorSet.java index ad3f2c2b..c63a0645 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPerStageDescriptorSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPerStageDescriptorSet.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVPerStageDescriptorSet { +public final class VKNVPerStageDescriptorSet { public static final int VK_NV_PER_STAGE_DESCRIPTOR_SET_SPEC_VERSION = 1; public static final String VK_NV_PER_STAGE_DESCRIPTOR_SET_EXTENSION_NAME = "VK_NV_per_stage_descriptor_set"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PER_STAGE_DESCRIPTOR_SET_FEATURES_NV = 1000516000; public static final int VK_DESCRIPTOR_SET_LAYOUT_CREATE_PER_STAGE_BIT_NV = 0x00000040; - public VKNVPerStageDescriptorSet(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVPerStageDescriptorSet() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPresentBarrier.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPresentBarrier.java index c6a88e70..a7236388 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPresentBarrier.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVPresentBarrier.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVPresentBarrier { +public final class VKNVPresentBarrier { public static final int VK_NV_PRESENT_BARRIER_SPEC_VERSION = 1; public static final String VK_NV_PRESENT_BARRIER_EXTENSION_NAME = "VK_NV_present_barrier"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_BARRIER_FEATURES_NV = 1000292000; public static final int VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_PRESENT_BARRIER_NV = 1000292001; public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_BARRIER_CREATE_INFO_NV = 1000292002; - public VKNVPresentBarrier(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVPresentBarrier() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRawAccessChains.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRawAccessChains.java index 7b1e91c1..7963b3b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRawAccessChains.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRawAccessChains.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVRawAccessChains { +public final class VKNVRawAccessChains { public static final int VK_NV_RAW_ACCESS_CHAINS_SPEC_VERSION = 1; public static final String VK_NV_RAW_ACCESS_CHAINS_EXTENSION_NAME = "VK_NV_raw_access_chains"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAW_ACCESS_CHAINS_FEATURES_NV = 1000555000; - public VKNVRawAccessChains(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVRawAccessChains() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingInvocationReorder.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingInvocationReorder.java index ea62db50..823baa48 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingInvocationReorder.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingInvocationReorder.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVRayTracingInvocationReorder { +public final class VKNVRayTracingInvocationReorder { public static final int VK_RAY_TRACING_INVOCATION_REORDER_MODE_NONE_NV = 0; public static final int VK_RAY_TRACING_INVOCATION_REORDER_MODE_REORDER_NV = 1; public static final int VK_NV_RAY_TRACING_INVOCATION_REORDER_SPEC_VERSION = 1; @@ -30,7 +30,6 @@ public class VKNVRayTracingInvocationReorder { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_INVOCATION_REORDER_FEATURES_NV = 1000490000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_INVOCATION_REORDER_PROPERTIES_NV = 1000490001; - public VKNVRayTracingInvocationReorder(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVRayTracingInvocationReorder() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingMotionBlur.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingMotionBlur.java index 639e680c..7537cd80 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingMotionBlur.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingMotionBlur.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVRayTracingMotionBlur { +public final class VKNVRayTracingMotionBlur { public static final int VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_STATIC_NV = 0; public static final int VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MATRIX_MOTION_NV = 1; public static final int VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_SRT_MOTION_NV = 2; @@ -35,7 +35,6 @@ public class VKNVRayTracingMotionBlur { public static final int VK_ACCELERATION_STRUCTURE_CREATE_MOTION_BIT_NV = 0x00000004; public static final int VK_PIPELINE_CREATE_RAY_TRACING_ALLOW_MOTION_BIT_NV = 0x00100000; - public VKNVRayTracingMotionBlur(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVRayTracingMotionBlur() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingValidation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingValidation.java index 2f8971e4..a1e442ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingValidation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRayTracingValidation.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVRayTracingValidation { +public final class VKNVRayTracingValidation { public static final int VK_NV_RAY_TRACING_VALIDATION_SPEC_VERSION = 1; public static final String VK_NV_RAY_TRACING_VALIDATION_EXTENSION_NAME = "VK_NV_ray_tracing_validation"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV = 1000568000; - public VKNVRayTracingValidation(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVRayTracingValidation() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRepresentativeFragmentTest.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRepresentativeFragmentTest.java index b87dd87e..9484431b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRepresentativeFragmentTest.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVRepresentativeFragmentTest.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVRepresentativeFragmentTest { +public final class VKNVRepresentativeFragmentTest { public static final int VK_NV_REPRESENTATIVE_FRAGMENT_TEST_SPEC_VERSION = 2; public static final String VK_NV_REPRESENTATIVE_FRAGMENT_TEST_EXTENSION_NAME = "VK_NV_representative_fragment_test"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV = 1000166000; public static final int VK_STRUCTURE_TYPE_PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV = 1000166001; - public VKNVRepresentativeFragmentTest(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVRepresentativeFragmentTest() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVSampleMaskOverrideCoverage.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVSampleMaskOverrideCoverage.java index e52d537d..2f651d5d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVSampleMaskOverrideCoverage.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVSampleMaskOverrideCoverage.java @@ -22,11 +22,10 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVSampleMaskOverrideCoverage { +public final class VKNVSampleMaskOverrideCoverage { public static final int VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_SPEC_VERSION = 1; public static final String VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_EXTENSION_NAME = "VK_NV_sample_mask_override_coverage"; - public VKNVSampleMaskOverrideCoverage(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVSampleMaskOverrideCoverage() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderAtomicFloat16Vector.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderAtomicFloat16Vector.java index 489d35fb..c9dc259e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderAtomicFloat16Vector.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderAtomicFloat16Vector.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVShaderAtomicFloat16Vector { +public final class VKNVShaderAtomicFloat16Vector { public static final int VK_NV_SHADER_ATOMIC_FLOAT16_VECTOR_SPEC_VERSION = 1; public static final String VK_NV_SHADER_ATOMIC_FLOAT16_VECTOR_EXTENSION_NAME = "VK_NV_shader_atomic_float16_vector"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV = 1000563000; - public VKNVShaderAtomicFloat16Vector(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVShaderAtomicFloat16Vector() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderImageFootprint.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderImageFootprint.java index 9d5de73f..388b518e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderImageFootprint.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderImageFootprint.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVShaderImageFootprint { +public final class VKNVShaderImageFootprint { public static final int VK_NV_SHADER_IMAGE_FOOTPRINT_SPEC_VERSION = 2; public static final String VK_NV_SHADER_IMAGE_FOOTPRINT_EXTENSION_NAME = "VK_NV_shader_image_footprint"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV = 1000204000; - public VKNVShaderImageFootprint(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVShaderImageFootprint() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSmBuiltins.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSmBuiltins.java index bc7369eb..8d10f35f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSmBuiltins.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSmBuiltins.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVShaderSmBuiltins { +public final class VKNVShaderSmBuiltins { public static final int VK_NV_SHADER_SM_BUILTINS_SPEC_VERSION = 1; public static final String VK_NV_SHADER_SM_BUILTINS_EXTENSION_NAME = "VK_NV_shader_sm_builtins"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV = 1000154000; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV = 1000154001; - public VKNVShaderSmBuiltins(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVShaderSmBuiltins() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSubgroupPartitioned.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSubgroupPartitioned.java index ef85b267..ffde40fe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSubgroupPartitioned.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVShaderSubgroupPartitioned.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVShaderSubgroupPartitioned { +public final class VKNVShaderSubgroupPartitioned { public static final int VK_NV_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION = 1; public static final String VK_NV_SHADER_SUBGROUP_PARTITIONED_EXTENSION_NAME = "VK_NV_shader_subgroup_partitioned"; public static final int VK_SUBGROUP_FEATURE_PARTITIONED_BIT_NV = 0x00000100; - public VKNVShaderSubgroupPartitioned(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVShaderSubgroupPartitioned() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportArray2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportArray2.java index 34cd3fbf..724a743c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportArray2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportArray2.java @@ -23,13 +23,12 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.nv.VKNVViewportArray2.*; -public class VKNVViewportArray2 { +public final class VKNVViewportArray2 { public static final int VK_NV_VIEWPORT_ARRAY_2_SPEC_VERSION = 1; public static final String VK_NV_VIEWPORT_ARRAY_2_EXTENSION_NAME = "VK_NV_viewport_array2"; public static final int VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION = VK_NV_VIEWPORT_ARRAY_2_SPEC_VERSION; public static final String VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME = VK_NV_VIEWPORT_ARRAY_2_EXTENSION_NAME; - public VKNVViewportArray2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVViewportArray2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportSwizzle.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportSwizzle.java index a661b798..4994b910 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportSwizzle.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVViewportSwizzle.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVViewportSwizzle { +public final class VKNVViewportSwizzle { public static final int VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV = 0; public static final int VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV = 1; public static final int VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV = 2; @@ -35,7 +35,6 @@ public class VKNVViewportSwizzle { public static final String VK_NV_VIEWPORT_SWIZZLE_EXTENSION_NAME = "VK_NV_viewport_swizzle"; public static final int VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV = 1000098000; - public VKNVViewportSwizzle(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVViewportSwizzle() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVWin32KeyedMutex.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVWin32KeyedMutex.java index 97aa9891..bae9c091 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVWin32KeyedMutex.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/VKNVWin32KeyedMutex.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVWin32KeyedMutex { +public final class VKNVWin32KeyedMutex { public static final int VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION = 2; public static final String VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME = "VK_NV_win32_keyed_mutex"; public static final int VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000; - public VKNVWin32KeyedMutex(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVWin32KeyedMutex() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureCreateInfoNV.java index 7b16628d..e05e1f02 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureCreateInfoNV.java @@ -97,6 +97,17 @@ public final class VkAccelerationStructureCreateInfoNV extends Struct { /// @return the allocated `VkAccelerationStructureCreateInfoNV` public static VkAccelerationStructureCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureCreateInfoNV` + public VkAccelerationStructureCreateInfoNV asSlice(long index) { return new VkAccelerationStructureCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureCreateInfoNV` + public VkAccelerationStructureCreateInfoNV asSlice(long index, long count) { return new VkAccelerationStructureCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureGeometryMotionTrianglesDataNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureGeometryMotionTrianglesDataNV.java index c7149237..6d5efde9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureGeometryMotionTrianglesDataNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureGeometryMotionTrianglesDataNV.java @@ -91,6 +91,17 @@ public final class VkAccelerationStructureGeometryMotionTrianglesDataNV extends /// @return the allocated `VkAccelerationStructureGeometryMotionTrianglesDataNV` public static VkAccelerationStructureGeometryMotionTrianglesDataNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureGeometryMotionTrianglesDataNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureGeometryMotionTrianglesDataNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureGeometryMotionTrianglesDataNV` + public VkAccelerationStructureGeometryMotionTrianglesDataNV asSlice(long index) { return new VkAccelerationStructureGeometryMotionTrianglesDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureGeometryMotionTrianglesDataNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureGeometryMotionTrianglesDataNV` + public VkAccelerationStructureGeometryMotionTrianglesDataNV asSlice(long index, long count) { return new VkAccelerationStructureGeometryMotionTrianglesDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureInfoNV.java index f07006a9..cf5b64eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureInfoNV.java @@ -113,6 +113,17 @@ public final class VkAccelerationStructureInfoNV extends Struct { /// @return the allocated `VkAccelerationStructureInfoNV` public static VkAccelerationStructureInfoNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureInfoNV` + public VkAccelerationStructureInfoNV asSlice(long index) { return new VkAccelerationStructureInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureInfoNV` + public VkAccelerationStructureInfoNV asSlice(long index, long count) { return new VkAccelerationStructureInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMatrixMotionInstanceNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMatrixMotionInstanceNV.java index 11c65306..6daed092 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMatrixMotionInstanceNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMatrixMotionInstanceNV.java @@ -117,6 +117,17 @@ public final class VkAccelerationStructureMatrixMotionInstanceNV extends Struct /// @return the allocated `VkAccelerationStructureMatrixMotionInstanceNV` public static VkAccelerationStructureMatrixMotionInstanceNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureMatrixMotionInstanceNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureMatrixMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureMatrixMotionInstanceNV` + public VkAccelerationStructureMatrixMotionInstanceNV asSlice(long index) { return new VkAccelerationStructureMatrixMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureMatrixMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureMatrixMotionInstanceNV` + public VkAccelerationStructureMatrixMotionInstanceNV asSlice(long index, long count) { return new VkAccelerationStructureMatrixMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `transformT0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMemoryRequirementsInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMemoryRequirementsInfoNV.java index ebf1ff5e..31087dce 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMemoryRequirementsInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMemoryRequirementsInfoNV.java @@ -95,6 +95,17 @@ public final class VkAccelerationStructureMemoryRequirementsInfoNV extends Struc /// @return the allocated `VkAccelerationStructureMemoryRequirementsInfoNV` public static VkAccelerationStructureMemoryRequirementsInfoNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureMemoryRequirementsInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureMemoryRequirementsInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureMemoryRequirementsInfoNV` + public VkAccelerationStructureMemoryRequirementsInfoNV asSlice(long index) { return new VkAccelerationStructureMemoryRequirementsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureMemoryRequirementsInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureMemoryRequirementsInfoNV` + public VkAccelerationStructureMemoryRequirementsInfoNV asSlice(long index, long count) { return new VkAccelerationStructureMemoryRequirementsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInfoNV.java index b06b0e50..aecbe197 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInfoNV.java @@ -95,6 +95,17 @@ public final class VkAccelerationStructureMotionInfoNV extends Struct { /// @return the allocated `VkAccelerationStructureMotionInfoNV` public static VkAccelerationStructureMotionInfoNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureMotionInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureMotionInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureMotionInfoNV` + public VkAccelerationStructureMotionInfoNV asSlice(long index) { return new VkAccelerationStructureMotionInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureMotionInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureMotionInfoNV` + public VkAccelerationStructureMotionInfoNV asSlice(long index, long count) { return new VkAccelerationStructureMotionInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInstanceNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInstanceNV.java index 5221d839..c0d91433 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInstanceNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureMotionInstanceNV.java @@ -91,6 +91,17 @@ public final class VkAccelerationStructureMotionInstanceNV extends Struct { /// @return the allocated `VkAccelerationStructureMotionInstanceNV` public static VkAccelerationStructureMotionInstanceNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureMotionInstanceNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureMotionInstanceNV` + public VkAccelerationStructureMotionInstanceNV asSlice(long index) { return new VkAccelerationStructureMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureMotionInstanceNV` + public VkAccelerationStructureMotionInstanceNV asSlice(long index, long count) { return new VkAccelerationStructureMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `type` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureSRTMotionInstanceNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureSRTMotionInstanceNV.java index 1546923c..26e6ffd5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureSRTMotionInstanceNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureSRTMotionInstanceNV.java @@ -117,6 +117,17 @@ public final class VkAccelerationStructureSRTMotionInstanceNV extends Struct { /// @return the allocated `VkAccelerationStructureSRTMotionInstanceNV` public static VkAccelerationStructureSRTMotionInstanceNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureSRTMotionInstanceNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureSRTMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureSRTMotionInstanceNV` + public VkAccelerationStructureSRTMotionInstanceNV asSlice(long index) { return new VkAccelerationStructureSRTMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureSRTMotionInstanceNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureSRTMotionInstanceNV` + public VkAccelerationStructureSRTMotionInstanceNV asSlice(long index, long count) { return new VkAccelerationStructureSRTMotionInstanceNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `transformT0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureTrianglesDisplacementMicromapNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureTrianglesDisplacementMicromapNV.java index 3da4e5bc..07339d21 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureTrianglesDisplacementMicromapNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkAccelerationStructureTrianglesDisplacementMicromapNV.java @@ -187,6 +187,17 @@ public final class VkAccelerationStructureTrianglesDisplacementMicromapNV extend /// @return the allocated `VkAccelerationStructureTrianglesDisplacementMicromapNV` public static VkAccelerationStructureTrianglesDisplacementMicromapNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureTrianglesDisplacementMicromapNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureTrianglesDisplacementMicromapNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAccelerationStructureTrianglesDisplacementMicromapNV` + public VkAccelerationStructureTrianglesDisplacementMicromapNV asSlice(long index) { return new VkAccelerationStructureTrianglesDisplacementMicromapNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureTrianglesDisplacementMicromapNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureTrianglesDisplacementMicromapNV` + public VkAccelerationStructureTrianglesDisplacementMicromapNV asSlice(long index, long count) { return new VkAccelerationStructureTrianglesDisplacementMicromapNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindAccelerationStructureMemoryInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindAccelerationStructureMemoryInfoNV.java index 54d6b24a..393a2e6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindAccelerationStructureMemoryInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindAccelerationStructureMemoryInfoNV.java @@ -113,6 +113,17 @@ public final class VkBindAccelerationStructureMemoryInfoNV extends Struct { /// @return the allocated `VkBindAccelerationStructureMemoryInfoNV` public static VkBindAccelerationStructureMemoryInfoNV alloc(SegmentAllocator allocator, long count) { return new VkBindAccelerationStructureMemoryInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindAccelerationStructureMemoryInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindAccelerationStructureMemoryInfoNV` + public VkBindAccelerationStructureMemoryInfoNV asSlice(long index) { return new VkBindAccelerationStructureMemoryInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindAccelerationStructureMemoryInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindAccelerationStructureMemoryInfoNV` + public VkBindAccelerationStructureMemoryInfoNV asSlice(long index, long count) { return new VkBindAccelerationStructureMemoryInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindIndexBufferIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindIndexBufferIndirectCommandNV.java index 67da4e37..059e63d6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindIndexBufferIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindIndexBufferIndirectCommandNV.java @@ -89,6 +89,17 @@ public final class VkBindIndexBufferIndirectCommandNV extends Struct { /// @return the allocated `VkBindIndexBufferIndirectCommandNV` public static VkBindIndexBufferIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkBindIndexBufferIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindIndexBufferIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindIndexBufferIndirectCommandNV` + public VkBindIndexBufferIndirectCommandNV asSlice(long index) { return new VkBindIndexBufferIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindIndexBufferIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindIndexBufferIndirectCommandNV` + public VkBindIndexBufferIndirectCommandNV asSlice(long index, long count) { return new VkBindIndexBufferIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindPipelineIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindPipelineIndirectCommandNV.java index f038b94e..237fd568 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindPipelineIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindPipelineIndirectCommandNV.java @@ -77,6 +77,17 @@ public final class VkBindPipelineIndirectCommandNV extends Struct { /// @return the allocated `VkBindPipelineIndirectCommandNV` public static VkBindPipelineIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkBindPipelineIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindPipelineIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindPipelineIndirectCommandNV` + public VkBindPipelineIndirectCommandNV asSlice(long index) { return new VkBindPipelineIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindPipelineIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindPipelineIndirectCommandNV` + public VkBindPipelineIndirectCommandNV asSlice(long index, long count) { return new VkBindPipelineIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pipelineAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindShaderGroupIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindShaderGroupIndirectCommandNV.java index f46e5c4f..877940fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindShaderGroupIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindShaderGroupIndirectCommandNV.java @@ -77,6 +77,17 @@ public final class VkBindShaderGroupIndirectCommandNV extends Struct { /// @return the allocated `VkBindShaderGroupIndirectCommandNV` public static VkBindShaderGroupIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkBindShaderGroupIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindShaderGroupIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindShaderGroupIndirectCommandNV` + public VkBindShaderGroupIndirectCommandNV asSlice(long index) { return new VkBindShaderGroupIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindShaderGroupIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindShaderGroupIndirectCommandNV` + public VkBindShaderGroupIndirectCommandNV asSlice(long index, long count) { return new VkBindShaderGroupIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `groupIndex` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindVertexBufferIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindVertexBufferIndirectCommandNV.java index 5122d09a..e5052ba7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindVertexBufferIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkBindVertexBufferIndirectCommandNV.java @@ -89,6 +89,17 @@ public final class VkBindVertexBufferIndirectCommandNV extends Struct { /// @return the allocated `VkBindVertexBufferIndirectCommandNV` public static VkBindVertexBufferIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkBindVertexBufferIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindVertexBufferIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindVertexBufferIndirectCommandNV` + public VkBindVertexBufferIndirectCommandNV asSlice(long index) { return new VkBindVertexBufferIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindVertexBufferIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindVertexBufferIndirectCommandNV` + public VkBindVertexBufferIndirectCommandNV asSlice(long index, long count) { return new VkBindVertexBufferIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointData2NV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointData2NV.java index 459102b2..1e6ef821 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointData2NV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointData2NV.java @@ -95,6 +95,17 @@ public final class VkCheckpointData2NV extends Struct { /// @return the allocated `VkCheckpointData2NV` public static VkCheckpointData2NV alloc(SegmentAllocator allocator, long count) { return new VkCheckpointData2NV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCheckpointData2NV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCheckpointData2NV` + public VkCheckpointData2NV asSlice(long index) { return new VkCheckpointData2NV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCheckpointData2NV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCheckpointData2NV` + public VkCheckpointData2NV asSlice(long index, long count) { return new VkCheckpointData2NV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointDataNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointDataNV.java index 37355247..f7836a44 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointDataNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCheckpointDataNV.java @@ -95,6 +95,17 @@ public final class VkCheckpointDataNV extends Struct { /// @return the allocated `VkCheckpointDataNV` public static VkCheckpointDataNV alloc(SegmentAllocator allocator, long count) { return new VkCheckpointDataNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCheckpointDataNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCheckpointDataNV` + public VkCheckpointDataNV asSlice(long index) { return new VkCheckpointDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCheckpointDataNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCheckpointDataNV` + public VkCheckpointDataNV asSlice(long index, long count) { return new VkCheckpointDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleLocationNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleLocationNV.java index f9e7e583..e618daba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleLocationNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleLocationNV.java @@ -89,6 +89,17 @@ public final class VkCoarseSampleLocationNV extends Struct { /// @return the allocated `VkCoarseSampleLocationNV` public static VkCoarseSampleLocationNV alloc(SegmentAllocator allocator, long count) { return new VkCoarseSampleLocationNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCoarseSampleLocationNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCoarseSampleLocationNV` + public VkCoarseSampleLocationNV asSlice(long index) { return new VkCoarseSampleLocationNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCoarseSampleLocationNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCoarseSampleLocationNV` + public VkCoarseSampleLocationNV asSlice(long index, long count) { return new VkCoarseSampleLocationNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pixelX` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleOrderCustomNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleOrderCustomNV.java index 05ca589d..f1973b7d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleOrderCustomNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCoarseSampleOrderCustomNV.java @@ -95,6 +95,17 @@ public final class VkCoarseSampleOrderCustomNV extends Struct { /// @return the allocated `VkCoarseSampleOrderCustomNV` public static VkCoarseSampleOrderCustomNV alloc(SegmentAllocator allocator, long count) { return new VkCoarseSampleOrderCustomNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCoarseSampleOrderCustomNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCoarseSampleOrderCustomNV` + public VkCoarseSampleOrderCustomNV asSlice(long index) { return new VkCoarseSampleOrderCustomNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCoarseSampleOrderCustomNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCoarseSampleOrderCustomNV` + public VkCoarseSampleOrderCustomNV asSlice(long index, long count) { return new VkCoarseSampleOrderCustomNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `shadingRate` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCommandBufferInheritanceViewportScissorInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCommandBufferInheritanceViewportScissorInfoNV.java index df1a5813..fc8a7576 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCommandBufferInheritanceViewportScissorInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCommandBufferInheritanceViewportScissorInfoNV.java @@ -101,6 +101,17 @@ public final class VkCommandBufferInheritanceViewportScissorInfoNV extends Struc /// @return the allocated `VkCommandBufferInheritanceViewportScissorInfoNV` public static VkCommandBufferInheritanceViewportScissorInfoNV alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferInheritanceViewportScissorInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferInheritanceViewportScissorInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferInheritanceViewportScissorInfoNV` + public VkCommandBufferInheritanceViewportScissorInfoNV asSlice(long index) { return new VkCommandBufferInheritanceViewportScissorInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferInheritanceViewportScissorInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferInheritanceViewportScissorInfoNV` + public VkCommandBufferInheritanceViewportScissorInfoNV asSlice(long index, long count) { return new VkCommandBufferInheritanceViewportScissorInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkComputePipelineIndirectBufferInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkComputePipelineIndirectBufferInfoNV.java index 077ccc5e..24e10854 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkComputePipelineIndirectBufferInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkComputePipelineIndirectBufferInfoNV.java @@ -101,6 +101,17 @@ public final class VkComputePipelineIndirectBufferInfoNV extends Struct { /// @return the allocated `VkComputePipelineIndirectBufferInfoNV` public static VkComputePipelineIndirectBufferInfoNV alloc(SegmentAllocator allocator, long count) { return new VkComputePipelineIndirectBufferInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkComputePipelineIndirectBufferInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkComputePipelineIndirectBufferInfoNV` + public VkComputePipelineIndirectBufferInfoNV asSlice(long index) { return new VkComputePipelineIndirectBufferInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkComputePipelineIndirectBufferInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkComputePipelineIndirectBufferInfoNV` + public VkComputePipelineIndirectBufferInfoNV asSlice(long index, long count) { return new VkComputePipelineIndirectBufferInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixFlexibleDimensionsPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixFlexibleDimensionsPropertiesNV.java index a801e18e..dff20781 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixFlexibleDimensionsPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixFlexibleDimensionsPropertiesNV.java @@ -143,6 +143,17 @@ public final class VkCooperativeMatrixFlexibleDimensionsPropertiesNV extends Str /// @return the allocated `VkCooperativeMatrixFlexibleDimensionsPropertiesNV` public static VkCooperativeMatrixFlexibleDimensionsPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkCooperativeMatrixFlexibleDimensionsPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCooperativeMatrixFlexibleDimensionsPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCooperativeMatrixFlexibleDimensionsPropertiesNV` + public VkCooperativeMatrixFlexibleDimensionsPropertiesNV asSlice(long index) { return new VkCooperativeMatrixFlexibleDimensionsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCooperativeMatrixFlexibleDimensionsPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCooperativeMatrixFlexibleDimensionsPropertiesNV` + public VkCooperativeMatrixFlexibleDimensionsPropertiesNV asSlice(long index, long count) { return new VkCooperativeMatrixFlexibleDimensionsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixPropertiesNV.java index c55459d1..391fb449 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCooperativeMatrixPropertiesNV.java @@ -131,6 +131,17 @@ public final class VkCooperativeMatrixPropertiesNV extends Struct { /// @return the allocated `VkCooperativeMatrixPropertiesNV` public static VkCooperativeMatrixPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkCooperativeMatrixPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCooperativeMatrixPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCooperativeMatrixPropertiesNV` + public VkCooperativeMatrixPropertiesNV asSlice(long index) { return new VkCooperativeMatrixPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCooperativeMatrixPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCooperativeMatrixPropertiesNV` + public VkCooperativeMatrixPropertiesNV asSlice(long index, long count) { return new VkCooperativeMatrixPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryIndirectCommandNV.java index 14f31418..e3a89ef3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryIndirectCommandNV.java @@ -89,6 +89,17 @@ public final class VkCopyMemoryIndirectCommandNV extends Struct { /// @return the allocated `VkCopyMemoryIndirectCommandNV` public static VkCopyMemoryIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkCopyMemoryIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMemoryIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMemoryIndirectCommandNV` + public VkCopyMemoryIndirectCommandNV asSlice(long index) { return new VkCopyMemoryIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMemoryIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMemoryIndirectCommandNV` + public VkCopyMemoryIndirectCommandNV asSlice(long index, long count) { return new VkCopyMemoryIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryToImageIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryToImageIndirectCommandNV.java index 1da48674..5352ba42 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryToImageIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCopyMemoryToImageIndirectCommandNV.java @@ -113,6 +113,17 @@ public final class VkCopyMemoryToImageIndirectCommandNV extends Struct { /// @return the allocated `VkCopyMemoryToImageIndirectCommandNV` public static VkCopyMemoryToImageIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkCopyMemoryToImageIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMemoryToImageIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMemoryToImageIndirectCommandNV` + public VkCopyMemoryToImageIndirectCommandNV asSlice(long index) { return new VkCopyMemoryToImageIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMemoryToImageIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMemoryToImageIndirectCommandNV` + public VkCopyMemoryToImageIndirectCommandNV asSlice(long index, long count) { return new VkCopyMemoryToImageIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaFunctionCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaFunctionCreateInfoNV.java index 3b313260..dd62255d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaFunctionCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaFunctionCreateInfoNV.java @@ -95,6 +95,17 @@ public final class VkCudaFunctionCreateInfoNV extends Struct { /// @return the allocated `VkCudaFunctionCreateInfoNV` public static VkCudaFunctionCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkCudaFunctionCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCudaFunctionCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCudaFunctionCreateInfoNV` + public VkCudaFunctionCreateInfoNV asSlice(long index) { return new VkCudaFunctionCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCudaFunctionCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCudaFunctionCreateInfoNV` + public VkCudaFunctionCreateInfoNV asSlice(long index, long count) { return new VkCudaFunctionCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaLaunchInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaLaunchInfoNV.java index 513d0fa9..b1aa421f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaLaunchInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaLaunchInfoNV.java @@ -155,6 +155,17 @@ public final class VkCudaLaunchInfoNV extends Struct { /// @return the allocated `VkCudaLaunchInfoNV` public static VkCudaLaunchInfoNV alloc(SegmentAllocator allocator, long count) { return new VkCudaLaunchInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCudaLaunchInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCudaLaunchInfoNV` + public VkCudaLaunchInfoNV asSlice(long index) { return new VkCudaLaunchInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCudaLaunchInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCudaLaunchInfoNV` + public VkCudaLaunchInfoNV asSlice(long index, long count) { return new VkCudaLaunchInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaModuleCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaModuleCreateInfoNV.java index c9526dc3..faeb3c38 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaModuleCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkCudaModuleCreateInfoNV.java @@ -95,6 +95,17 @@ public final class VkCudaModuleCreateInfoNV extends Struct { /// @return the allocated `VkCudaModuleCreateInfoNV` public static VkCudaModuleCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkCudaModuleCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCudaModuleCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCudaModuleCreateInfoNV` + public VkCudaModuleCreateInfoNV asSlice(long index) { return new VkCudaModuleCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCudaModuleCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCudaModuleCreateInfoNV` + public VkCudaModuleCreateInfoNV asSlice(long index, long count) { return new VkCudaModuleCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDecompressMemoryRegionNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDecompressMemoryRegionNV.java index 82bf6630..c8fd36eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDecompressMemoryRegionNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDecompressMemoryRegionNV.java @@ -101,6 +101,17 @@ public final class VkDecompressMemoryRegionNV extends Struct { /// @return the allocated `VkDecompressMemoryRegionNV` public static VkDecompressMemoryRegionNV alloc(SegmentAllocator allocator, long count) { return new VkDecompressMemoryRegionNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDecompressMemoryRegionNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDecompressMemoryRegionNV` + public VkDecompressMemoryRegionNV asSlice(long index) { return new VkDecompressMemoryRegionNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDecompressMemoryRegionNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDecompressMemoryRegionNV` + public VkDecompressMemoryRegionNV asSlice(long index, long count) { return new VkDecompressMemoryRegionNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcAddress` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationBufferCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationBufferCreateInfoNV.java index 6ca81f2d..b1cb62c5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationBufferCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationBufferCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkDedicatedAllocationBufferCreateInfoNV extends Struct { /// @return the allocated `VkDedicatedAllocationBufferCreateInfoNV` public static VkDedicatedAllocationBufferCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDedicatedAllocationBufferCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDedicatedAllocationBufferCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDedicatedAllocationBufferCreateInfoNV` + public VkDedicatedAllocationBufferCreateInfoNV asSlice(long index) { return new VkDedicatedAllocationBufferCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDedicatedAllocationBufferCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDedicatedAllocationBufferCreateInfoNV` + public VkDedicatedAllocationBufferCreateInfoNV asSlice(long index, long count) { return new VkDedicatedAllocationBufferCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationImageCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationImageCreateInfoNV.java index 23156405..0c4905c6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationImageCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationImageCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkDedicatedAllocationImageCreateInfoNV extends Struct { /// @return the allocated `VkDedicatedAllocationImageCreateInfoNV` public static VkDedicatedAllocationImageCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDedicatedAllocationImageCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDedicatedAllocationImageCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDedicatedAllocationImageCreateInfoNV` + public VkDedicatedAllocationImageCreateInfoNV asSlice(long index) { return new VkDedicatedAllocationImageCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDedicatedAllocationImageCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDedicatedAllocationImageCreateInfoNV` + public VkDedicatedAllocationImageCreateInfoNV asSlice(long index, long count) { return new VkDedicatedAllocationImageCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationMemoryAllocateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationMemoryAllocateInfoNV.java index e7115205..c45367fd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationMemoryAllocateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDedicatedAllocationMemoryAllocateInfoNV.java @@ -95,6 +95,17 @@ public final class VkDedicatedAllocationMemoryAllocateInfoNV extends Struct { /// @return the allocated `VkDedicatedAllocationMemoryAllocateInfoNV` public static VkDedicatedAllocationMemoryAllocateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDedicatedAllocationMemoryAllocateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDedicatedAllocationMemoryAllocateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDedicatedAllocationMemoryAllocateInfoNV` + public VkDedicatedAllocationMemoryAllocateInfoNV asSlice(long index) { return new VkDedicatedAllocationMemoryAllocateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDedicatedAllocationMemoryAllocateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDedicatedAllocationMemoryAllocateInfoNV` + public VkDedicatedAllocationMemoryAllocateInfoNV asSlice(long index, long count) { return new VkDedicatedAllocationMemoryAllocateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceDiagnosticsConfigCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceDiagnosticsConfigCreateInfoNV.java index 4b097acf..83678901 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceDiagnosticsConfigCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceDiagnosticsConfigCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkDeviceDiagnosticsConfigCreateInfoNV extends Struct { /// @return the allocated `VkDeviceDiagnosticsConfigCreateInfoNV` public static VkDeviceDiagnosticsConfigCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDeviceDiagnosticsConfigCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceDiagnosticsConfigCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceDiagnosticsConfigCreateInfoNV` + public VkDeviceDiagnosticsConfigCreateInfoNV asSlice(long index) { return new VkDeviceDiagnosticsConfigCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceDiagnosticsConfigCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceDiagnosticsConfigCreateInfoNV` + public VkDeviceDiagnosticsConfigCreateInfoNV asSlice(long index, long count) { return new VkDeviceDiagnosticsConfigCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV.java index 7e788a6b..3c8e3b70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV extends S /// @return the allocated `VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV` public static VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV` + public VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV asSlice(long index) { return new VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV` + public VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV asSlice(long index, long count) { return new VkDeviceSemaphoreSciSyncPoolReservationCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplayModeStereoPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplayModeStereoPropertiesNV.java index 215b0b85..fde33319 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplayModeStereoPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplayModeStereoPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkDisplayModeStereoPropertiesNV extends Struct { /// @return the allocated `VkDisplayModeStereoPropertiesNV` public static VkDisplayModeStereoPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkDisplayModeStereoPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplayModeStereoPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplayModeStereoPropertiesNV` + public VkDisplayModeStereoPropertiesNV asSlice(long index) { return new VkDisplayModeStereoPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplayModeStereoPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplayModeStereoPropertiesNV` + public VkDisplayModeStereoPropertiesNV asSlice(long index, long count) { return new VkDisplayModeStereoPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplaySurfaceStereoCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplaySurfaceStereoCreateInfoNV.java index f27a6171..58f934f2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplaySurfaceStereoCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDisplaySurfaceStereoCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkDisplaySurfaceStereoCreateInfoNV extends Struct { /// @return the allocated `VkDisplaySurfaceStereoCreateInfoNV` public static VkDisplaySurfaceStereoCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkDisplaySurfaceStereoCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDisplaySurfaceStereoCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDisplaySurfaceStereoCreateInfoNV` + public VkDisplaySurfaceStereoCreateInfoNV asSlice(long index) { return new VkDisplaySurfaceStereoCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDisplaySurfaceStereoCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDisplaySurfaceStereoCreateInfoNV` + public VkDisplaySurfaceStereoCreateInfoNV asSlice(long index, long count) { return new VkDisplaySurfaceStereoCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDrawMeshTasksIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDrawMeshTasksIndirectCommandNV.java index 52229da0..73fa86df 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDrawMeshTasksIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkDrawMeshTasksIndirectCommandNV.java @@ -83,6 +83,17 @@ public final class VkDrawMeshTasksIndirectCommandNV extends Struct { /// @return the allocated `VkDrawMeshTasksIndirectCommandNV` public static VkDrawMeshTasksIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkDrawMeshTasksIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrawMeshTasksIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrawMeshTasksIndirectCommandNV` + public VkDrawMeshTasksIndirectCommandNV asSlice(long index) { return new VkDrawMeshTasksIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrawMeshTasksIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrawMeshTasksIndirectCommandNV` + public VkDrawMeshTasksIndirectCommandNV asSlice(long index, long count) { return new VkDrawMeshTasksIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `taskCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportFenceSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportFenceSciSyncInfoNV.java index 29d9bb52..de8e5e9a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportFenceSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportFenceSciSyncInfoNV.java @@ -89,6 +89,17 @@ public final class VkExportFenceSciSyncInfoNV extends Struct { /// @return the allocated `VkExportFenceSciSyncInfoNV` public static VkExportFenceSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExportFenceSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportFenceSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportFenceSciSyncInfoNV` + public VkExportFenceSciSyncInfoNV asSlice(long index) { return new VkExportFenceSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportFenceSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportFenceSciSyncInfoNV` + public VkExportFenceSciSyncInfoNV asSlice(long index, long count) { return new VkExportFenceSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryAllocateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryAllocateInfoNV.java index 21772bc2..c58f4a3a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryAllocateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryAllocateInfoNV.java @@ -89,6 +89,17 @@ public final class VkExportMemoryAllocateInfoNV extends Struct { /// @return the allocated `VkExportMemoryAllocateInfoNV` public static VkExportMemoryAllocateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExportMemoryAllocateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMemoryAllocateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMemoryAllocateInfoNV` + public VkExportMemoryAllocateInfoNV asSlice(long index) { return new VkExportMemoryAllocateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMemoryAllocateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMemoryAllocateInfoNV` + public VkExportMemoryAllocateInfoNV asSlice(long index, long count) { return new VkExportMemoryAllocateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemorySciBufInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemorySciBufInfoNV.java index 425c62e4..911c76f9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemorySciBufInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemorySciBufInfoNV.java @@ -89,6 +89,17 @@ public final class VkExportMemorySciBufInfoNV extends Struct { /// @return the allocated `VkExportMemorySciBufInfoNV` public static VkExportMemorySciBufInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExportMemorySciBufInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMemorySciBufInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMemorySciBufInfoNV` + public VkExportMemorySciBufInfoNV asSlice(long index) { return new VkExportMemorySciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMemorySciBufInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMemorySciBufInfoNV` + public VkExportMemorySciBufInfoNV asSlice(long index, long count) { return new VkExportMemorySciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryWin32HandleInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryWin32HandleInfoNV.java index 5a685c80..987af170 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryWin32HandleInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportMemoryWin32HandleInfoNV.java @@ -95,6 +95,17 @@ public final class VkExportMemoryWin32HandleInfoNV extends Struct { /// @return the allocated `VkExportMemoryWin32HandleInfoNV` public static VkExportMemoryWin32HandleInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExportMemoryWin32HandleInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMemoryWin32HandleInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMemoryWin32HandleInfoNV` + public VkExportMemoryWin32HandleInfoNV asSlice(long index) { return new VkExportMemoryWin32HandleInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMemoryWin32HandleInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMemoryWin32HandleInfoNV` + public VkExportMemoryWin32HandleInfoNV asSlice(long index, long count) { return new VkExportMemoryWin32HandleInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportSemaphoreSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportSemaphoreSciSyncInfoNV.java index 0c0c1052..000b829d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportSemaphoreSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExportSemaphoreSciSyncInfoNV.java @@ -89,6 +89,17 @@ public final class VkExportSemaphoreSciSyncInfoNV extends Struct { /// @return the allocated `VkExportSemaphoreSciSyncInfoNV` public static VkExportSemaphoreSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExportSemaphoreSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportSemaphoreSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportSemaphoreSciSyncInfoNV` + public VkExportSemaphoreSciSyncInfoNV asSlice(long index) { return new VkExportSemaphoreSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportSemaphoreSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportSemaphoreSciSyncInfoNV` + public VkExportSemaphoreSciSyncInfoNV asSlice(long index, long count) { return new VkExportSemaphoreSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalImageFormatPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalImageFormatPropertiesNV.java index 985d9e65..820ed896 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalImageFormatPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalImageFormatPropertiesNV.java @@ -97,6 +97,17 @@ public final class VkExternalImageFormatPropertiesNV extends Struct { /// @return the allocated `VkExternalImageFormatPropertiesNV` public static VkExternalImageFormatPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkExternalImageFormatPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalImageFormatPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalImageFormatPropertiesNV` + public VkExternalImageFormatPropertiesNV asSlice(long index) { return new VkExternalImageFormatPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalImageFormatPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalImageFormatPropertiesNV` + public VkExternalImageFormatPropertiesNV asSlice(long index, long count) { return new VkExternalImageFormatPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `imageFormatProperties` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalMemoryImageCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalMemoryImageCreateInfoNV.java index 6612864e..e1362129 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalMemoryImageCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkExternalMemoryImageCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkExternalMemoryImageCreateInfoNV extends Struct { /// @return the allocated `VkExternalMemoryImageCreateInfoNV` public static VkExternalMemoryImageCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkExternalMemoryImageCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalMemoryImageCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalMemoryImageCreateInfoNV` + public VkExternalMemoryImageCreateInfoNV asSlice(long index) { return new VkExternalMemoryImageCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalMemoryImageCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalMemoryImageCreateInfoNV` + public VkExternalMemoryImageCreateInfoNV asSlice(long index, long count) { return new VkExternalMemoryImageCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFenceGetSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFenceGetSciSyncInfoNV.java index a890ca13..61b40fe5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFenceGetSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFenceGetSciSyncInfoNV.java @@ -95,6 +95,17 @@ public final class VkFenceGetSciSyncInfoNV extends Struct { /// @return the allocated `VkFenceGetSciSyncInfoNV` public static VkFenceGetSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkFenceGetSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFenceGetSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFenceGetSciSyncInfoNV` + public VkFenceGetSciSyncInfoNV asSlice(long index) { return new VkFenceGetSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFenceGetSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFenceGetSciSyncInfoNV` + public VkFenceGetSciSyncInfoNV asSlice(long index, long count) { return new VkFenceGetSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFramebufferMixedSamplesCombinationNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFramebufferMixedSamplesCombinationNV.java index fc9f124c..8333b1f3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFramebufferMixedSamplesCombinationNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkFramebufferMixedSamplesCombinationNV.java @@ -107,6 +107,17 @@ public final class VkFramebufferMixedSamplesCombinationNV extends Struct { /// @return the allocated `VkFramebufferMixedSamplesCombinationNV` public static VkFramebufferMixedSamplesCombinationNV alloc(SegmentAllocator allocator, long count) { return new VkFramebufferMixedSamplesCombinationNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFramebufferMixedSamplesCombinationNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFramebufferMixedSamplesCombinationNV` + public VkFramebufferMixedSamplesCombinationNV asSlice(long index) { return new VkFramebufferMixedSamplesCombinationNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFramebufferMixedSamplesCombinationNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFramebufferMixedSamplesCombinationNV` + public VkFramebufferMixedSamplesCombinationNV asSlice(long index, long count) { return new VkFramebufferMixedSamplesCombinationNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsInfoNV.java index 6dc4c045..da3ea6b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsInfoNV.java @@ -161,6 +161,17 @@ public final class VkGeneratedCommandsInfoNV extends Struct { /// @return the allocated `VkGeneratedCommandsInfoNV` public static VkGeneratedCommandsInfoNV alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsInfoNV` + public VkGeneratedCommandsInfoNV asSlice(long index) { return new VkGeneratedCommandsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsInfoNV` + public VkGeneratedCommandsInfoNV asSlice(long index, long count) { return new VkGeneratedCommandsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsMemoryRequirementsInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsMemoryRequirementsInfoNV.java index 6615c51e..be22f9d1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsMemoryRequirementsInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeneratedCommandsMemoryRequirementsInfoNV.java @@ -107,6 +107,17 @@ public final class VkGeneratedCommandsMemoryRequirementsInfoNV extends Struct { /// @return the allocated `VkGeneratedCommandsMemoryRequirementsInfoNV` public static VkGeneratedCommandsMemoryRequirementsInfoNV alloc(SegmentAllocator allocator, long count) { return new VkGeneratedCommandsMemoryRequirementsInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeneratedCommandsMemoryRequirementsInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeneratedCommandsMemoryRequirementsInfoNV` + public VkGeneratedCommandsMemoryRequirementsInfoNV asSlice(long index) { return new VkGeneratedCommandsMemoryRequirementsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeneratedCommandsMemoryRequirementsInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeneratedCommandsMemoryRequirementsInfoNV` + public VkGeneratedCommandsMemoryRequirementsInfoNV asSlice(long index, long count) { return new VkGeneratedCommandsMemoryRequirementsInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryAABBNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryAABBNV.java index efa4c18e..14e1ef73 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryAABBNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryAABBNV.java @@ -107,6 +107,17 @@ public final class VkGeometryAABBNV extends Struct { /// @return the allocated `VkGeometryAABBNV` public static VkGeometryAABBNV alloc(SegmentAllocator allocator, long count) { return new VkGeometryAABBNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeometryAABBNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeometryAABBNV` + public VkGeometryAABBNV asSlice(long index) { return new VkGeometryAABBNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeometryAABBNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeometryAABBNV` + public VkGeometryAABBNV asSlice(long index, long count) { return new VkGeometryAABBNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryDataNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryDataNV.java index c6f5b6b5..1ebddd53 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryDataNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryDataNV.java @@ -87,6 +87,17 @@ public final class VkGeometryDataNV extends Struct { /// @return the allocated `VkGeometryDataNV` public static VkGeometryDataNV alloc(SegmentAllocator allocator, long count) { return new VkGeometryDataNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeometryDataNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeometryDataNV` + public VkGeometryDataNV asSlice(long index) { return new VkGeometryDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeometryDataNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeometryDataNV` + public VkGeometryDataNV asSlice(long index, long count) { return new VkGeometryDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `triangles` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryNV.java index b263b5fb..433d001f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryNV.java @@ -103,6 +103,17 @@ public final class VkGeometryNV extends Struct { /// @return the allocated `VkGeometryNV` public static VkGeometryNV alloc(SegmentAllocator allocator, long count) { return new VkGeometryNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeometryNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeometryNV` + public VkGeometryNV asSlice(long index) { return new VkGeometryNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeometryNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeometryNV` + public VkGeometryNV asSlice(long index, long count) { return new VkGeometryNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryTrianglesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryTrianglesNV.java index 1fa64532..4228f87c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryTrianglesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGeometryTrianglesNV.java @@ -149,6 +149,17 @@ public final class VkGeometryTrianglesNV extends Struct { /// @return the allocated `VkGeometryTrianglesNV` public static VkGeometryTrianglesNV alloc(SegmentAllocator allocator, long count) { return new VkGeometryTrianglesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGeometryTrianglesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGeometryTrianglesNV` + public VkGeometryTrianglesNV asSlice(long index) { return new VkGeometryTrianglesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGeometryTrianglesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGeometryTrianglesNV` + public VkGeometryTrianglesNV asSlice(long index, long count) { return new VkGeometryTrianglesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGetLatencyMarkerInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGetLatencyMarkerInfoNV.java index 06ed42d4..f56ab8b2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGetLatencyMarkerInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGetLatencyMarkerInfoNV.java @@ -95,6 +95,17 @@ public final class VkGetLatencyMarkerInfoNV extends Struct { /// @return the allocated `VkGetLatencyMarkerInfoNV` public static VkGetLatencyMarkerInfoNV alloc(SegmentAllocator allocator, long count) { return new VkGetLatencyMarkerInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGetLatencyMarkerInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGetLatencyMarkerInfoNV` + public VkGetLatencyMarkerInfoNV asSlice(long index) { return new VkGetLatencyMarkerInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGetLatencyMarkerInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGetLatencyMarkerInfoNV` + public VkGetLatencyMarkerInfoNV asSlice(long index, long count) { return new VkGetLatencyMarkerInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsPipelineShaderGroupsCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsPipelineShaderGroupsCreateInfoNV.java index 31069dd4..cbf8fc1c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsPipelineShaderGroupsCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsPipelineShaderGroupsCreateInfoNV.java @@ -107,6 +107,17 @@ public final class VkGraphicsPipelineShaderGroupsCreateInfoNV extends Struct { /// @return the allocated `VkGraphicsPipelineShaderGroupsCreateInfoNV` public static VkGraphicsPipelineShaderGroupsCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkGraphicsPipelineShaderGroupsCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGraphicsPipelineShaderGroupsCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGraphicsPipelineShaderGroupsCreateInfoNV` + public VkGraphicsPipelineShaderGroupsCreateInfoNV asSlice(long index) { return new VkGraphicsPipelineShaderGroupsCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGraphicsPipelineShaderGroupsCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGraphicsPipelineShaderGroupsCreateInfoNV` + public VkGraphicsPipelineShaderGroupsCreateInfoNV asSlice(long index, long count) { return new VkGraphicsPipelineShaderGroupsCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsShaderGroupCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsShaderGroupCreateInfoNV.java index 0d9c62c2..31224704 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsShaderGroupCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkGraphicsShaderGroupCreateInfoNV.java @@ -107,6 +107,17 @@ public final class VkGraphicsShaderGroupCreateInfoNV extends Struct { /// @return the allocated `VkGraphicsShaderGroupCreateInfoNV` public static VkGraphicsShaderGroupCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkGraphicsShaderGroupCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGraphicsShaderGroupCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGraphicsShaderGroupCreateInfoNV` + public VkGraphicsShaderGroupCreateInfoNV asSlice(long index) { return new VkGraphicsShaderGroupCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGraphicsShaderGroupCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGraphicsShaderGroupCreateInfoNV` + public VkGraphicsShaderGroupCreateInfoNV asSlice(long index, long count) { return new VkGraphicsShaderGroupCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportFenceSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportFenceSciSyncInfoNV.java index b964807b..16f54043 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportFenceSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportFenceSciSyncInfoNV.java @@ -101,6 +101,17 @@ public final class VkImportFenceSciSyncInfoNV extends Struct { /// @return the allocated `VkImportFenceSciSyncInfoNV` public static VkImportFenceSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkImportFenceSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportFenceSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportFenceSciSyncInfoNV` + public VkImportFenceSciSyncInfoNV asSlice(long index) { return new VkImportFenceSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportFenceSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportFenceSciSyncInfoNV` + public VkImportFenceSciSyncInfoNV asSlice(long index, long count) { return new VkImportFenceSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemorySciBufInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemorySciBufInfoNV.java index 69d92529..58814cec 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemorySciBufInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemorySciBufInfoNV.java @@ -95,6 +95,17 @@ public final class VkImportMemorySciBufInfoNV extends Struct { /// @return the allocated `VkImportMemorySciBufInfoNV` public static VkImportMemorySciBufInfoNV alloc(SegmentAllocator allocator, long count) { return new VkImportMemorySciBufInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemorySciBufInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemorySciBufInfoNV` + public VkImportMemorySciBufInfoNV asSlice(long index) { return new VkImportMemorySciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemorySciBufInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemorySciBufInfoNV` + public VkImportMemorySciBufInfoNV asSlice(long index, long count) { return new VkImportMemorySciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemoryWin32HandleInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemoryWin32HandleInfoNV.java index d470442c..985a1b70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemoryWin32HandleInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportMemoryWin32HandleInfoNV.java @@ -95,6 +95,17 @@ public final class VkImportMemoryWin32HandleInfoNV extends Struct { /// @return the allocated `VkImportMemoryWin32HandleInfoNV` public static VkImportMemoryWin32HandleInfoNV alloc(SegmentAllocator allocator, long count) { return new VkImportMemoryWin32HandleInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportMemoryWin32HandleInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportMemoryWin32HandleInfoNV` + public VkImportMemoryWin32HandleInfoNV asSlice(long index) { return new VkImportMemoryWin32HandleInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportMemoryWin32HandleInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportMemoryWin32HandleInfoNV` + public VkImportMemoryWin32HandleInfoNV asSlice(long index, long count) { return new VkImportMemoryWin32HandleInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportSemaphoreSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportSemaphoreSciSyncInfoNV.java index f6b84fd7..ce985f1d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportSemaphoreSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkImportSemaphoreSciSyncInfoNV.java @@ -101,6 +101,17 @@ public final class VkImportSemaphoreSciSyncInfoNV extends Struct { /// @return the allocated `VkImportSemaphoreSciSyncInfoNV` public static VkImportSemaphoreSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkImportSemaphoreSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportSemaphoreSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportSemaphoreSciSyncInfoNV` + public VkImportSemaphoreSciSyncInfoNV asSlice(long index) { return new VkImportSemaphoreSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportSemaphoreSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportSemaphoreSciSyncInfoNV` + public VkImportSemaphoreSciSyncInfoNV asSlice(long index, long count) { return new VkImportSemaphoreSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutCreateInfoNV.java index d521e05c..73b755de 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutCreateInfoNV.java @@ -119,6 +119,17 @@ public final class VkIndirectCommandsLayoutCreateInfoNV extends Struct { /// @return the allocated `VkIndirectCommandsLayoutCreateInfoNV` public static VkIndirectCommandsLayoutCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsLayoutCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsLayoutCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsLayoutCreateInfoNV` + public VkIndirectCommandsLayoutCreateInfoNV asSlice(long index) { return new VkIndirectCommandsLayoutCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsLayoutCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsLayoutCreateInfoNV` + public VkIndirectCommandsLayoutCreateInfoNV asSlice(long index, long count) { return new VkIndirectCommandsLayoutCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutTokenNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutTokenNV.java index 45a2512e..aea6fa25 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutTokenNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsLayoutTokenNV.java @@ -161,6 +161,17 @@ public final class VkIndirectCommandsLayoutTokenNV extends Struct { /// @return the allocated `VkIndirectCommandsLayoutTokenNV` public static VkIndirectCommandsLayoutTokenNV alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsLayoutTokenNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsLayoutTokenNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsLayoutTokenNV` + public VkIndirectCommandsLayoutTokenNV asSlice(long index) { return new VkIndirectCommandsLayoutTokenNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsLayoutTokenNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsLayoutTokenNV` + public VkIndirectCommandsLayoutTokenNV asSlice(long index, long count) { return new VkIndirectCommandsLayoutTokenNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsStreamNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsStreamNV.java index c753ee65..e4cdbfed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsStreamNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkIndirectCommandsStreamNV.java @@ -83,6 +83,17 @@ public final class VkIndirectCommandsStreamNV extends Struct { /// @return the allocated `VkIndirectCommandsStreamNV` public static VkIndirectCommandsStreamNV alloc(SegmentAllocator allocator, long count) { return new VkIndirectCommandsStreamNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkIndirectCommandsStreamNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkIndirectCommandsStreamNV` + public VkIndirectCommandsStreamNV asSlice(long index) { return new VkIndirectCommandsStreamNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkIndirectCommandsStreamNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkIndirectCommandsStreamNV` + public VkIndirectCommandsStreamNV asSlice(long index, long count) { return new VkIndirectCommandsStreamNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `buffer` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepInfoNV.java index 81142050..630b53a9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepInfoNV.java @@ -95,6 +95,17 @@ public final class VkLatencySleepInfoNV extends Struct { /// @return the allocated `VkLatencySleepInfoNV` public static VkLatencySleepInfoNV alloc(SegmentAllocator allocator, long count) { return new VkLatencySleepInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLatencySleepInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLatencySleepInfoNV` + public VkLatencySleepInfoNV asSlice(long index) { return new VkLatencySleepInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLatencySleepInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLatencySleepInfoNV` + public VkLatencySleepInfoNV asSlice(long index, long count) { return new VkLatencySleepInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepModeInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepModeInfoNV.java index 16c35c4f..1c94bd12 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepModeInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySleepModeInfoNV.java @@ -101,6 +101,17 @@ public final class VkLatencySleepModeInfoNV extends Struct { /// @return the allocated `VkLatencySleepModeInfoNV` public static VkLatencySleepModeInfoNV alloc(SegmentAllocator allocator, long count) { return new VkLatencySleepModeInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLatencySleepModeInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLatencySleepModeInfoNV` + public VkLatencySleepModeInfoNV asSlice(long index) { return new VkLatencySleepModeInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLatencySleepModeInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLatencySleepModeInfoNV` + public VkLatencySleepModeInfoNV asSlice(long index, long count) { return new VkLatencySleepModeInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySubmissionPresentIdNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySubmissionPresentIdNV.java index 34f9ad95..9dcaaa12 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySubmissionPresentIdNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySubmissionPresentIdNV.java @@ -89,6 +89,17 @@ public final class VkLatencySubmissionPresentIdNV extends Struct { /// @return the allocated `VkLatencySubmissionPresentIdNV` public static VkLatencySubmissionPresentIdNV alloc(SegmentAllocator allocator, long count) { return new VkLatencySubmissionPresentIdNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLatencySubmissionPresentIdNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLatencySubmissionPresentIdNV` + public VkLatencySubmissionPresentIdNV asSlice(long index) { return new VkLatencySubmissionPresentIdNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLatencySubmissionPresentIdNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLatencySubmissionPresentIdNV` + public VkLatencySubmissionPresentIdNV asSlice(long index, long count) { return new VkLatencySubmissionPresentIdNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySurfaceCapabilitiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySurfaceCapabilitiesNV.java index 29e179d4..4bcfe978 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySurfaceCapabilitiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencySurfaceCapabilitiesNV.java @@ -95,6 +95,17 @@ public final class VkLatencySurfaceCapabilitiesNV extends Struct { /// @return the allocated `VkLatencySurfaceCapabilitiesNV` public static VkLatencySurfaceCapabilitiesNV alloc(SegmentAllocator allocator, long count) { return new VkLatencySurfaceCapabilitiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLatencySurfaceCapabilitiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLatencySurfaceCapabilitiesNV` + public VkLatencySurfaceCapabilitiesNV asSlice(long index) { return new VkLatencySurfaceCapabilitiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLatencySurfaceCapabilitiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLatencySurfaceCapabilitiesNV` + public VkLatencySurfaceCapabilitiesNV asSlice(long index, long count) { return new VkLatencySurfaceCapabilitiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencyTimingsFrameReportNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencyTimingsFrameReportNV.java index 877cb21f..5984c579 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencyTimingsFrameReportNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkLatencyTimingsFrameReportNV.java @@ -167,6 +167,17 @@ public final class VkLatencyTimingsFrameReportNV extends Struct { /// @return the allocated `VkLatencyTimingsFrameReportNV` public static VkLatencyTimingsFrameReportNV alloc(SegmentAllocator allocator, long count) { return new VkLatencyTimingsFrameReportNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLatencyTimingsFrameReportNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLatencyTimingsFrameReportNV` + public VkLatencyTimingsFrameReportNV asSlice(long index) { return new VkLatencyTimingsFrameReportNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLatencyTimingsFrameReportNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLatencyTimingsFrameReportNV` + public VkLatencyTimingsFrameReportNV asSlice(long index, long count) { return new VkLatencyTimingsFrameReportNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetRemoteAddressInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetRemoteAddressInfoNV.java index 712812bf..4609cba5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetRemoteAddressInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetRemoteAddressInfoNV.java @@ -95,6 +95,17 @@ public final class VkMemoryGetRemoteAddressInfoNV extends Struct { /// @return the allocated `VkMemoryGetRemoteAddressInfoNV` public static VkMemoryGetRemoteAddressInfoNV alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetRemoteAddressInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetRemoteAddressInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetRemoteAddressInfoNV` + public VkMemoryGetRemoteAddressInfoNV asSlice(long index) { return new VkMemoryGetRemoteAddressInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetRemoteAddressInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetRemoteAddressInfoNV` + public VkMemoryGetRemoteAddressInfoNV asSlice(long index, long count) { return new VkMemoryGetRemoteAddressInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetSciBufInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetSciBufInfoNV.java index e16b9c77..f6e850de 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetSciBufInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemoryGetSciBufInfoNV.java @@ -95,6 +95,17 @@ public final class VkMemoryGetSciBufInfoNV extends Struct { /// @return the allocated `VkMemoryGetSciBufInfoNV` public static VkMemoryGetSciBufInfoNV alloc(SegmentAllocator allocator, long count) { return new VkMemoryGetSciBufInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryGetSciBufInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryGetSciBufInfoNV` + public VkMemoryGetSciBufInfoNV asSlice(long index) { return new VkMemoryGetSciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryGetSciBufInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryGetSciBufInfoNV` + public VkMemoryGetSciBufInfoNV asSlice(long index, long count) { return new VkMemoryGetSciBufInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemorySciBufPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemorySciBufPropertiesNV.java index f837f0fd..625a16ac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemorySciBufPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkMemorySciBufPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkMemorySciBufPropertiesNV extends Struct { /// @return the allocated `VkMemorySciBufPropertiesNV` public static VkMemorySciBufPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkMemorySciBufPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemorySciBufPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemorySciBufPropertiesNV` + public VkMemorySciBufPropertiesNV asSlice(long index) { return new VkMemorySciBufPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemorySciBufPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemorySciBufPropertiesNV` + public VkMemorySciBufPropertiesNV asSlice(long index, long count) { return new VkMemorySciBufPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowExecuteInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowExecuteInfoNV.java index 26d50129..b44a1874 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowExecuteInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowExecuteInfoNV.java @@ -101,6 +101,17 @@ public final class VkOpticalFlowExecuteInfoNV extends Struct { /// @return the allocated `VkOpticalFlowExecuteInfoNV` public static VkOpticalFlowExecuteInfoNV alloc(SegmentAllocator allocator, long count) { return new VkOpticalFlowExecuteInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpticalFlowExecuteInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpticalFlowExecuteInfoNV` + public VkOpticalFlowExecuteInfoNV asSlice(long index) { return new VkOpticalFlowExecuteInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpticalFlowExecuteInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpticalFlowExecuteInfoNV` + public VkOpticalFlowExecuteInfoNV asSlice(long index, long count) { return new VkOpticalFlowExecuteInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatInfoNV.java index dda323d7..e589b95d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatInfoNV.java @@ -89,6 +89,17 @@ public final class VkOpticalFlowImageFormatInfoNV extends Struct { /// @return the allocated `VkOpticalFlowImageFormatInfoNV` public static VkOpticalFlowImageFormatInfoNV alloc(SegmentAllocator allocator, long count) { return new VkOpticalFlowImageFormatInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpticalFlowImageFormatInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpticalFlowImageFormatInfoNV` + public VkOpticalFlowImageFormatInfoNV asSlice(long index) { return new VkOpticalFlowImageFormatInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpticalFlowImageFormatInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpticalFlowImageFormatInfoNV` + public VkOpticalFlowImageFormatInfoNV asSlice(long index, long count) { return new VkOpticalFlowImageFormatInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatPropertiesNV.java index c565d837..cb49cbe2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowImageFormatPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkOpticalFlowImageFormatPropertiesNV extends Struct { /// @return the allocated `VkOpticalFlowImageFormatPropertiesNV` public static VkOpticalFlowImageFormatPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkOpticalFlowImageFormatPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpticalFlowImageFormatPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpticalFlowImageFormatPropertiesNV` + public VkOpticalFlowImageFormatPropertiesNV asSlice(long index) { return new VkOpticalFlowImageFormatPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpticalFlowImageFormatPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpticalFlowImageFormatPropertiesNV` + public VkOpticalFlowImageFormatPropertiesNV asSlice(long index, long count) { return new VkOpticalFlowImageFormatPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreateInfoNV.java index eb70f1ec..c993d162 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreateInfoNV.java @@ -137,6 +137,17 @@ public final class VkOpticalFlowSessionCreateInfoNV extends Struct { /// @return the allocated `VkOpticalFlowSessionCreateInfoNV` public static VkOpticalFlowSessionCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkOpticalFlowSessionCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpticalFlowSessionCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpticalFlowSessionCreateInfoNV` + public VkOpticalFlowSessionCreateInfoNV asSlice(long index) { return new VkOpticalFlowSessionCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpticalFlowSessionCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpticalFlowSessionCreateInfoNV` + public VkOpticalFlowSessionCreateInfoNV asSlice(long index, long count) { return new VkOpticalFlowSessionCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreatePrivateDataInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreatePrivateDataInfoNV.java index ebc0a300..3b3e7806 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreatePrivateDataInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOpticalFlowSessionCreatePrivateDataInfoNV.java @@ -101,6 +101,17 @@ public final class VkOpticalFlowSessionCreatePrivateDataInfoNV extends Struct { /// @return the allocated `VkOpticalFlowSessionCreatePrivateDataInfoNV` public static VkOpticalFlowSessionCreatePrivateDataInfoNV alloc(SegmentAllocator allocator, long count) { return new VkOpticalFlowSessionCreatePrivateDataInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOpticalFlowSessionCreatePrivateDataInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOpticalFlowSessionCreatePrivateDataInfoNV` + public VkOpticalFlowSessionCreatePrivateDataInfoNV asSlice(long index) { return new VkOpticalFlowSessionCreatePrivateDataInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOpticalFlowSessionCreatePrivateDataInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOpticalFlowSessionCreatePrivateDataInfoNV` + public VkOpticalFlowSessionCreatePrivateDataInfoNV asSlice(long index, long count) { return new VkOpticalFlowSessionCreatePrivateDataInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOutOfBandQueueTypeInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOutOfBandQueueTypeInfoNV.java index 19b6de27..ebc064a3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOutOfBandQueueTypeInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkOutOfBandQueueTypeInfoNV.java @@ -89,6 +89,17 @@ public final class VkOutOfBandQueueTypeInfoNV extends Struct { /// @return the allocated `VkOutOfBandQueueTypeInfoNV` public static VkOutOfBandQueueTypeInfoNV alloc(SegmentAllocator allocator, long count) { return new VkOutOfBandQueueTypeInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOutOfBandQueueTypeInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOutOfBandQueueTypeInfoNV` + public VkOutOfBandQueueTypeInfoNV asSlice(long index) { return new VkOutOfBandQueueTypeInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOutOfBandQueueTypeInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOutOfBandQueueTypeInfoNV` + public VkOutOfBandQueueTypeInfoNV asSlice(long index, long count) { return new VkOutOfBandQueueTypeInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCommandBufferInheritanceFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCommandBufferInheritanceFeaturesNV.java index f3cb4547..55fca6ee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCommandBufferInheritanceFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCommandBufferInheritanceFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCommandBufferInheritanceFeaturesNV extends St /// @return the allocated `VkPhysicalDeviceCommandBufferInheritanceFeaturesNV` public static VkPhysicalDeviceCommandBufferInheritanceFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCommandBufferInheritanceFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCommandBufferInheritanceFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCommandBufferInheritanceFeaturesNV` + public VkPhysicalDeviceCommandBufferInheritanceFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCommandBufferInheritanceFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCommandBufferInheritanceFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCommandBufferInheritanceFeaturesNV` + public VkPhysicalDeviceCommandBufferInheritanceFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCommandBufferInheritanceFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2FeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2FeaturesNV.java index bfe839cc..318e72fb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2FeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2FeaturesNV.java @@ -125,6 +125,17 @@ public final class VkPhysicalDeviceCooperativeMatrix2FeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCooperativeMatrix2FeaturesNV` public static VkPhysicalDeviceCooperativeMatrix2FeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrix2FeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrix2FeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrix2FeaturesNV` + public VkPhysicalDeviceCooperativeMatrix2FeaturesNV asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrix2FeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrix2FeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrix2FeaturesNV` + public VkPhysicalDeviceCooperativeMatrix2FeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrix2FeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2PropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2PropertiesNV.java index 9af29920..309e38c9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2PropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrix2PropertiesNV.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceCooperativeMatrix2PropertiesNV extends Struct /// @return the allocated `VkPhysicalDeviceCooperativeMatrix2PropertiesNV` public static VkPhysicalDeviceCooperativeMatrix2PropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrix2PropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrix2PropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrix2PropertiesNV` + public VkPhysicalDeviceCooperativeMatrix2PropertiesNV asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrix2PropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrix2PropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrix2PropertiesNV` + public VkPhysicalDeviceCooperativeMatrix2PropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrix2PropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixFeaturesNV.java index 9cb6e964..de22290f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceCooperativeMatrixFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCooperativeMatrixFeaturesNV` public static VkPhysicalDeviceCooperativeMatrixFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrixFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixFeaturesNV` + public VkPhysicalDeviceCooperativeMatrixFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrixFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixFeaturesNV` + public VkPhysicalDeviceCooperativeMatrixFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrixFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixPropertiesNV.java index a82d7d8d..177832c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCooperativeMatrixPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCooperativeMatrixPropertiesNV extends Struct /// @return the allocated `VkPhysicalDeviceCooperativeMatrixPropertiesNV` public static VkPhysicalDeviceCooperativeMatrixPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCooperativeMatrixPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixPropertiesNV` + public VkPhysicalDeviceCooperativeMatrixPropertiesNV asSlice(long index) { return new VkPhysicalDeviceCooperativeMatrixPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCooperativeMatrixPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCooperativeMatrixPropertiesNV` + public VkPhysicalDeviceCooperativeMatrixPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceCooperativeMatrixPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectFeaturesNV.java index 2f3ce6d6..bbd3f049 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCopyMemoryIndirectFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCopyMemoryIndirectFeaturesNV` public static VkPhysicalDeviceCopyMemoryIndirectFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCopyMemoryIndirectFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCopyMemoryIndirectFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCopyMemoryIndirectFeaturesNV` + public VkPhysicalDeviceCopyMemoryIndirectFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCopyMemoryIndirectFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCopyMemoryIndirectFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCopyMemoryIndirectFeaturesNV` + public VkPhysicalDeviceCopyMemoryIndirectFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCopyMemoryIndirectFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectPropertiesNV.java index 03c8eb5d..e62d32e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCopyMemoryIndirectPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCopyMemoryIndirectPropertiesNV extends Struct /// @return the allocated `VkPhysicalDeviceCopyMemoryIndirectPropertiesNV` public static VkPhysicalDeviceCopyMemoryIndirectPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCopyMemoryIndirectPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCopyMemoryIndirectPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCopyMemoryIndirectPropertiesNV` + public VkPhysicalDeviceCopyMemoryIndirectPropertiesNV asSlice(long index) { return new VkPhysicalDeviceCopyMemoryIndirectPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCopyMemoryIndirectPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCopyMemoryIndirectPropertiesNV` + public VkPhysicalDeviceCopyMemoryIndirectPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceCopyMemoryIndirectPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCornerSampledImageFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCornerSampledImageFeaturesNV.java index 7b23f644..72e1ea54 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCornerSampledImageFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCornerSampledImageFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCornerSampledImageFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCornerSampledImageFeaturesNV` public static VkPhysicalDeviceCornerSampledImageFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCornerSampledImageFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCornerSampledImageFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCornerSampledImageFeaturesNV` + public VkPhysicalDeviceCornerSampledImageFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCornerSampledImageFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCornerSampledImageFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCornerSampledImageFeaturesNV` + public VkPhysicalDeviceCornerSampledImageFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCornerSampledImageFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCoverageReductionModeFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCoverageReductionModeFeaturesNV.java index 9b01cba9..e0bc7f11 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCoverageReductionModeFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCoverageReductionModeFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCoverageReductionModeFeaturesNV extends Struc /// @return the allocated `VkPhysicalDeviceCoverageReductionModeFeaturesNV` public static VkPhysicalDeviceCoverageReductionModeFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCoverageReductionModeFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCoverageReductionModeFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCoverageReductionModeFeaturesNV` + public VkPhysicalDeviceCoverageReductionModeFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCoverageReductionModeFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCoverageReductionModeFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCoverageReductionModeFeaturesNV` + public VkPhysicalDeviceCoverageReductionModeFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCoverageReductionModeFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchFeaturesNV.java index f638edfc..5f940ffc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCudaKernelLaunchFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCudaKernelLaunchFeaturesNV` public static VkPhysicalDeviceCudaKernelLaunchFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCudaKernelLaunchFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCudaKernelLaunchFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCudaKernelLaunchFeaturesNV` + public VkPhysicalDeviceCudaKernelLaunchFeaturesNV asSlice(long index) { return new VkPhysicalDeviceCudaKernelLaunchFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCudaKernelLaunchFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCudaKernelLaunchFeaturesNV` + public VkPhysicalDeviceCudaKernelLaunchFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceCudaKernelLaunchFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchPropertiesNV.java index 96da9fec..8df18c71 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceCudaKernelLaunchPropertiesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceCudaKernelLaunchPropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceCudaKernelLaunchPropertiesNV` public static VkPhysicalDeviceCudaKernelLaunchPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCudaKernelLaunchPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCudaKernelLaunchPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCudaKernelLaunchPropertiesNV` + public VkPhysicalDeviceCudaKernelLaunchPropertiesNV asSlice(long index) { return new VkPhysicalDeviceCudaKernelLaunchPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCudaKernelLaunchPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCudaKernelLaunchPropertiesNV` + public VkPhysicalDeviceCudaKernelLaunchPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceCudaKernelLaunchPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV.java index 332d77d8..ff79fd99 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV ex /// @return the allocated `VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV` public static VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV` + public VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV` + public VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV.java index 1f70d67f..1525a859 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV extend /// @return the allocated `VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV` public static VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV` + public VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV` + public VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV.java index e91cfecb..7517a2be 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV exte /// @return the allocated `VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV` public static VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.java index 5cd446c0..4df752c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV extends Str /// @return the allocated `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV` public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.java index 995572d4..beb442b3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.java @@ -137,6 +137,17 @@ public final class VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV extends S /// @return the allocated `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV` public static VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV asSlice(long index) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV` + public VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDiagnosticsConfigFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDiagnosticsConfigFeaturesNV.java index 3e590e85..4f64e42f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDiagnosticsConfigFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDiagnosticsConfigFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDiagnosticsConfigFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceDiagnosticsConfigFeaturesNV` public static VkPhysicalDeviceDiagnosticsConfigFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDiagnosticsConfigFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDiagnosticsConfigFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDiagnosticsConfigFeaturesNV` + public VkPhysicalDeviceDiagnosticsConfigFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDiagnosticsConfigFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDiagnosticsConfigFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDiagnosticsConfigFeaturesNV` + public VkPhysicalDeviceDiagnosticsConfigFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDiagnosticsConfigFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapFeaturesNV.java index 015112d7..dfdd34d8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDisplacementMicromapFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceDisplacementMicromapFeaturesNV` public static VkPhysicalDeviceDisplacementMicromapFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDisplacementMicromapFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDisplacementMicromapFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDisplacementMicromapFeaturesNV` + public VkPhysicalDeviceDisplacementMicromapFeaturesNV asSlice(long index) { return new VkPhysicalDeviceDisplacementMicromapFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDisplacementMicromapFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDisplacementMicromapFeaturesNV` + public VkPhysicalDeviceDisplacementMicromapFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceDisplacementMicromapFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapPropertiesNV.java index cac2d673..3f98f8cb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceDisplacementMicromapPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDisplacementMicromapPropertiesNV extends Stru /// @return the allocated `VkPhysicalDeviceDisplacementMicromapPropertiesNV` public static VkPhysicalDeviceDisplacementMicromapPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDisplacementMicromapPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDisplacementMicromapPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDisplacementMicromapPropertiesNV` + public VkPhysicalDeviceDisplacementMicromapPropertiesNV asSlice(long index) { return new VkPhysicalDeviceDisplacementMicromapPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDisplacementMicromapPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDisplacementMicromapPropertiesNV` + public VkPhysicalDeviceDisplacementMicromapPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceDisplacementMicromapPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExclusiveScissorFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExclusiveScissorFeaturesNV.java index b78f0f01..5dafa604 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExclusiveScissorFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExclusiveScissorFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExclusiveScissorFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceExclusiveScissorFeaturesNV` public static VkPhysicalDeviceExclusiveScissorFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExclusiveScissorFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExclusiveScissorFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExclusiveScissorFeaturesNV` + public VkPhysicalDeviceExclusiveScissorFeaturesNV asSlice(long index) { return new VkPhysicalDeviceExclusiveScissorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExclusiveScissorFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExclusiveScissorFeaturesNV` + public VkPhysicalDeviceExclusiveScissorFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExclusiveScissorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV.java index e001cda1..7c3e7f41 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV extends /// @return the allocated `VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV` public static VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV` + public VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV asSlice(long index) { return new VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV` + public VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV.java index 39d578d6..1d6037f3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV extend /// @return the allocated `VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV` public static VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV` + public VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV asSlice(long index) { return new VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV` + public VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.java index 0ef042c2..0c9e6338 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalMemoryRDMAFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceExternalMemoryRDMAFeaturesNV` public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalMemoryRDMAFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalMemoryRDMAFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalMemoryRDMAFeaturesNV` + public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV asSlice(long index) { return new VkPhysicalDeviceExternalMemoryRDMAFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalMemoryRDMAFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalMemoryRDMAFeaturesNV` + public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExternalMemoryRDMAFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemorySciBufFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemorySciBufFeaturesNV.java index d39dccd2..73d1455f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemorySciBufFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalMemorySciBufFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceExternalMemorySciBufFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceExternalMemorySciBufFeaturesNV` public static VkPhysicalDeviceExternalMemorySciBufFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalMemorySciBufFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalMemorySciBufFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalMemorySciBufFeaturesNV` + public VkPhysicalDeviceExternalMemorySciBufFeaturesNV asSlice(long index) { return new VkPhysicalDeviceExternalMemorySciBufFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalMemorySciBufFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalMemorySciBufFeaturesNV` + public VkPhysicalDeviceExternalMemorySciBufFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExternalMemorySciBufFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSync2FeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSync2FeaturesNV.java index 203910ad..782340a5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSync2FeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSync2FeaturesNV.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceExternalSciSync2FeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceExternalSciSync2FeaturesNV` public static VkPhysicalDeviceExternalSciSync2FeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalSciSync2FeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalSciSync2FeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalSciSync2FeaturesNV` + public VkPhysicalDeviceExternalSciSync2FeaturesNV asSlice(long index) { return new VkPhysicalDeviceExternalSciSync2FeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalSciSync2FeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalSciSync2FeaturesNV` + public VkPhysicalDeviceExternalSciSync2FeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExternalSciSync2FeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSyncFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSyncFeaturesNV.java index 8af6e660..ef950ee2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSyncFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceExternalSciSyncFeaturesNV.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceExternalSciSyncFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceExternalSciSyncFeaturesNV` public static VkPhysicalDeviceExternalSciSyncFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalSciSyncFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalSciSyncFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalSciSyncFeaturesNV` + public VkPhysicalDeviceExternalSciSyncFeaturesNV asSlice(long index) { return new VkPhysicalDeviceExternalSciSyncFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalSciSyncFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalSciSyncFeaturesNV` + public VkPhysicalDeviceExternalSciSyncFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceExternalSciSyncFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.java index 88a9b1aa..69776e82 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV extends St /// @return the allocated `VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV` public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV` + public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV asSlice(long index) { return new VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV` + public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.java index 6623c03e..aaa37265 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV extends /// @return the allocated `VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV` public static VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV` + public VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV asSlice(long index) { return new VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV` + public VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceInheritedViewportScissorFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceInheritedViewportScissorFeaturesNV.java index 940e870a..cc69322a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceInheritedViewportScissorFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceInheritedViewportScissorFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceInheritedViewportScissorFeaturesNV extends St /// @return the allocated `VkPhysicalDeviceInheritedViewportScissorFeaturesNV` public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceInheritedViewportScissorFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceInheritedViewportScissorFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceInheritedViewportScissorFeaturesNV` + public VkPhysicalDeviceInheritedViewportScissorFeaturesNV asSlice(long index) { return new VkPhysicalDeviceInheritedViewportScissorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceInheritedViewportScissorFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceInheritedViewportScissorFeaturesNV` + public VkPhysicalDeviceInheritedViewportScissorFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceInheritedViewportScissorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceLinearColorAttachmentFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceLinearColorAttachmentFeaturesNV.java index 57103edd..4e2b25e7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceLinearColorAttachmentFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceLinearColorAttachmentFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLinearColorAttachmentFeaturesNV extends Struc /// @return the allocated `VkPhysicalDeviceLinearColorAttachmentFeaturesNV` public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLinearColorAttachmentFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLinearColorAttachmentFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLinearColorAttachmentFeaturesNV` + public VkPhysicalDeviceLinearColorAttachmentFeaturesNV asSlice(long index) { return new VkPhysicalDeviceLinearColorAttachmentFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLinearColorAttachmentFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLinearColorAttachmentFeaturesNV` + public VkPhysicalDeviceLinearColorAttachmentFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceLinearColorAttachmentFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionFeaturesNV.java index 751f5ace..425aa79a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMemoryDecompressionFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceMemoryDecompressionFeaturesNV` public static VkPhysicalDeviceMemoryDecompressionFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryDecompressionFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryDecompressionFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryDecompressionFeaturesNV` + public VkPhysicalDeviceMemoryDecompressionFeaturesNV asSlice(long index) { return new VkPhysicalDeviceMemoryDecompressionFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryDecompressionFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryDecompressionFeaturesNV` + public VkPhysicalDeviceMemoryDecompressionFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceMemoryDecompressionFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionPropertiesNV.java index 98eed46c..81424896 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMemoryDecompressionPropertiesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceMemoryDecompressionPropertiesNV extends Struc /// @return the allocated `VkPhysicalDeviceMemoryDecompressionPropertiesNV` public static VkPhysicalDeviceMemoryDecompressionPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryDecompressionPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryDecompressionPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryDecompressionPropertiesNV` + public VkPhysicalDeviceMemoryDecompressionPropertiesNV asSlice(long index) { return new VkPhysicalDeviceMemoryDecompressionPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryDecompressionPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryDecompressionPropertiesNV` + public VkPhysicalDeviceMemoryDecompressionPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceMemoryDecompressionPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderFeaturesNV.java index 4b54acf3..f3c222f1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceMeshShaderFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceMeshShaderFeaturesNV` public static VkPhysicalDeviceMeshShaderFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMeshShaderFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMeshShaderFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMeshShaderFeaturesNV` + public VkPhysicalDeviceMeshShaderFeaturesNV asSlice(long index) { return new VkPhysicalDeviceMeshShaderFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMeshShaderFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMeshShaderFeaturesNV` + public VkPhysicalDeviceMeshShaderFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceMeshShaderFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderPropertiesNV.java index 2a88fa90..588ed22c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceMeshShaderPropertiesNV.java @@ -34,7 +34,7 @@ /// ### maxTaskWorkGroupInvocations /// [VarHandle][#VH_maxTaskWorkGroupInvocations] - [Getter][#maxTaskWorkGroupInvocations()] - [Setter][#maxTaskWorkGroupInvocations(int)] /// ### maxTaskWorkGroupSize -/// [VarHandle][#VH_maxTaskWorkGroupSize] - [Getter][#maxTaskWorkGroupSize()] - [Setter][#maxTaskWorkGroupSize(int)] +/// [Byte offset][#OFFSET_maxTaskWorkGroupSize] - [Memory layout][#ML_maxTaskWorkGroupSize] - [Getter][#maxTaskWorkGroupSize()] - [Setter][#maxTaskWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### maxTaskTotalMemorySize /// [VarHandle][#VH_maxTaskTotalMemorySize] - [Getter][#maxTaskTotalMemorySize()] - [Setter][#maxTaskTotalMemorySize(int)] /// ### maxTaskOutputCount @@ -42,7 +42,7 @@ /// ### maxMeshWorkGroupInvocations /// [VarHandle][#VH_maxMeshWorkGroupInvocations] - [Getter][#maxMeshWorkGroupInvocations()] - [Setter][#maxMeshWorkGroupInvocations(int)] /// ### maxMeshWorkGroupSize -/// [VarHandle][#VH_maxMeshWorkGroupSize] - [Getter][#maxMeshWorkGroupSize()] - [Setter][#maxMeshWorkGroupSize(int)] +/// [Byte offset][#OFFSET_maxMeshWorkGroupSize] - [Memory layout][#ML_maxMeshWorkGroupSize] - [Getter][#maxMeshWorkGroupSize()] - [Setter][#maxMeshWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### maxMeshTotalMemorySize /// [VarHandle][#VH_maxMeshTotalMemorySize] - [Getter][#maxMeshTotalMemorySize()] - [Setter][#maxMeshTotalMemorySize(int)] /// ### maxMeshOutputVertices @@ -63,11 +63,11 @@ /// void * pNext; /// uint32_t maxDrawMeshTasksCount; /// uint32_t maxTaskWorkGroupInvocations; -/// uint32_t maxTaskWorkGroupSize; +/// uint32_t[3] maxTaskWorkGroupSize; /// uint32_t maxTaskTotalMemorySize; /// uint32_t maxTaskOutputCount; /// uint32_t maxMeshWorkGroupInvocations; -/// uint32_t maxMeshWorkGroupSize; +/// uint32_t[3] maxMeshWorkGroupSize; /// uint32_t maxMeshTotalMemorySize; /// uint32_t maxMeshOutputVertices; /// uint32_t maxMeshOutputPrimitives; @@ -83,11 +83,11 @@ public final class VkPhysicalDeviceMeshShaderPropertiesNV extends Struct { ValueLayout.ADDRESS.withName("pNext"), ValueLayout.JAVA_INT.withName("maxDrawMeshTasksCount"), ValueLayout.JAVA_INT.withName("maxTaskWorkGroupInvocations"), - ValueLayout.JAVA_INT.withName("maxTaskWorkGroupSize"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxTaskWorkGroupSize"), ValueLayout.JAVA_INT.withName("maxTaskTotalMemorySize"), ValueLayout.JAVA_INT.withName("maxTaskOutputCount"), ValueLayout.JAVA_INT.withName("maxMeshWorkGroupInvocations"), - ValueLayout.JAVA_INT.withName("maxMeshWorkGroupSize"), + MemoryLayout.sequenceLayout(3, ValueLayout.JAVA_INT).withName("maxMeshWorkGroupSize"), ValueLayout.JAVA_INT.withName("maxMeshTotalMemorySize"), ValueLayout.JAVA_INT.withName("maxMeshOutputVertices"), ValueLayout.JAVA_INT.withName("maxMeshOutputPrimitives"), @@ -103,16 +103,20 @@ public final class VkPhysicalDeviceMeshShaderPropertiesNV extends Struct { public static final VarHandle VH_maxDrawMeshTasksCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxDrawMeshTasksCount")); /// The [VarHandle] of `maxTaskWorkGroupInvocations` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskWorkGroupInvocations = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupInvocations")); - /// The [VarHandle] of `maxTaskWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxTaskWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskWorkGroupSize")); + /// The byte offset of `maxTaskWorkGroupSize`. + public static final long OFFSET_maxTaskWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxTaskWorkGroupSize")); + /// The memory layout of `maxTaskWorkGroupSize`. + public static final MemoryLayout ML_maxTaskWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxTaskWorkGroupSize")); /// The [VarHandle] of `maxTaskTotalMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskTotalMemorySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskTotalMemorySize")); /// The [VarHandle] of `maxTaskOutputCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxTaskOutputCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxTaskOutputCount")); /// The [VarHandle] of `maxMeshWorkGroupInvocations` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxMeshWorkGroupInvocations = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupInvocations")); - /// The [VarHandle] of `maxMeshWorkGroupSize` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_maxMeshWorkGroupSize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshWorkGroupSize")); + /// The byte offset of `maxMeshWorkGroupSize`. + public static final long OFFSET_maxMeshWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxMeshWorkGroupSize")); + /// The memory layout of `maxMeshWorkGroupSize`. + public static final MemoryLayout ML_maxMeshWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxMeshWorkGroupSize")); /// The [VarHandle] of `maxMeshTotalMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxMeshTotalMemorySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxMeshTotalMemorySize")); /// The [VarHandle] of `maxMeshOutputVertices` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -161,6 +165,17 @@ public final class VkPhysicalDeviceMeshShaderPropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceMeshShaderPropertiesNV` public static VkPhysicalDeviceMeshShaderPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMeshShaderPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMeshShaderPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMeshShaderPropertiesNV` + public VkPhysicalDeviceMeshShaderPropertiesNV asSlice(long index) { return new VkPhysicalDeviceMeshShaderPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMeshShaderPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMeshShaderPropertiesNV` + public VkPhysicalDeviceMeshShaderPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceMeshShaderPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -288,33 +303,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesNV extends Struct { /// {@return `maxTaskWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxTaskWorkGroupSize(MemorySegment segment, long index) { return (int) VH_maxTaskWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxTaskWorkGroupSize, index), ML_maxTaskWorkGroupSize); } /// {@return `maxTaskWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxTaskWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxTaskWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(segment, 0L); } /// {@return `maxTaskWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int maxTaskWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(this.segment(), index); } /// {@return `maxTaskWorkGroupSize`} - public @CType("uint32_t") int maxTaskWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxTaskWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxTaskWorkGroupSize(this.segment()); } /// Sets `maxTaskWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxTaskWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxTaskWorkGroupSize.set(segment, 0L, index, value); } + public static void set_maxTaskWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxTaskWorkGroupSize, index), ML_maxTaskWorkGroupSize.byteSize()); } /// Sets `maxTaskWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxTaskWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(segment, 0L, value); } + public static void set_maxTaskWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(segment, 0L, value); } /// Sets `maxTaskWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesNV maxTaskWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesNV maxTaskWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxTaskWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesNV maxTaskWorkGroupSize(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesNV maxTaskWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxTaskWorkGroupSize(this.segment(), value); return this; } /// {@return `maxTaskTotalMemorySize` at the given index} /// @param segment the segment of the struct @@ -412,33 +427,33 @@ public final class VkPhysicalDeviceMeshShaderPropertiesNV extends Struct { /// {@return `maxMeshWorkGroupSize` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("uint32_t") int get_maxMeshWorkGroupSize(MemorySegment segment, long index) { return (int) VH_maxMeshWorkGroupSize.get(segment, 0L, index); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxMeshWorkGroupSize, index), ML_maxMeshWorkGroupSize); } /// {@return `maxMeshWorkGroupSize`} /// @param segment the segment of the struct - public static @CType("uint32_t") int get_maxMeshWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(segment, 0L); } + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxMeshWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(segment, 0L); } /// {@return `maxMeshWorkGroupSize` at the given index} /// @param index the index - public @CType("uint32_t") int maxMeshWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(this.segment(), index); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupSizeAt(long index) { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(this.segment(), index); } /// {@return `maxMeshWorkGroupSize`} - public @CType("uint32_t") int maxMeshWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(this.segment()); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxMeshWorkGroupSize() { return VkPhysicalDeviceMeshShaderPropertiesNV.get_maxMeshWorkGroupSize(this.segment()); } /// Sets `maxMeshWorkGroupSize` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_maxMeshWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_maxMeshWorkGroupSize.set(segment, 0L, index, value); } + public static void set_maxMeshWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxMeshWorkGroupSize, index), ML_maxMeshWorkGroupSize.byteSize()); } /// Sets `maxMeshWorkGroupSize` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_maxMeshWorkGroupSize(MemorySegment segment, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(segment, 0L, value); } + public static void set_maxMeshWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(segment, 0L, value); } /// Sets `maxMeshWorkGroupSize` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesNV maxMeshWorkGroupSizeAt(long index, @CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(this.segment(), index, value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesNV maxMeshWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxMeshWorkGroupSize` with the given value. /// @param value the value /// @return `this` - public VkPhysicalDeviceMeshShaderPropertiesNV maxMeshWorkGroupSize(@CType("uint32_t") int value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(this.segment(), value); return this; } + public VkPhysicalDeviceMeshShaderPropertiesNV maxMeshWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMeshShaderPropertiesNV.set_maxMeshWorkGroupSize(this.segment(), value); return this; } /// {@return `maxMeshTotalMemorySize` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowFeaturesNV.java index 42173fa1..adbc3263 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceOpticalFlowFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceOpticalFlowFeaturesNV` public static VkPhysicalDeviceOpticalFlowFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceOpticalFlowFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceOpticalFlowFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceOpticalFlowFeaturesNV` + public VkPhysicalDeviceOpticalFlowFeaturesNV asSlice(long index) { return new VkPhysicalDeviceOpticalFlowFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceOpticalFlowFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceOpticalFlowFeaturesNV` + public VkPhysicalDeviceOpticalFlowFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceOpticalFlowFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowPropertiesNV.java index 219863f4..c28fc98e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceOpticalFlowPropertiesNV.java @@ -149,6 +149,17 @@ public final class VkPhysicalDeviceOpticalFlowPropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceOpticalFlowPropertiesNV` public static VkPhysicalDeviceOpticalFlowPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceOpticalFlowPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceOpticalFlowPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceOpticalFlowPropertiesNV` + public VkPhysicalDeviceOpticalFlowPropertiesNV asSlice(long index) { return new VkPhysicalDeviceOpticalFlowPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceOpticalFlowPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceOpticalFlowPropertiesNV` + public VkPhysicalDeviceOpticalFlowPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceOpticalFlowPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePerStageDescriptorSetFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePerStageDescriptorSetFeaturesNV.java index a1c3af5d..d3a888e4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePerStageDescriptorSetFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePerStageDescriptorSetFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDevicePerStageDescriptorSetFeaturesNV extends Struc /// @return the allocated `VkPhysicalDevicePerStageDescriptorSetFeaturesNV` public static VkPhysicalDevicePerStageDescriptorSetFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePerStageDescriptorSetFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePerStageDescriptorSetFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePerStageDescriptorSetFeaturesNV` + public VkPhysicalDevicePerStageDescriptorSetFeaturesNV asSlice(long index) { return new VkPhysicalDevicePerStageDescriptorSetFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePerStageDescriptorSetFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePerStageDescriptorSetFeaturesNV` + public VkPhysicalDevicePerStageDescriptorSetFeaturesNV asSlice(long index, long count) { return new VkPhysicalDevicePerStageDescriptorSetFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePresentBarrierFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePresentBarrierFeaturesNV.java index 09b66f97..2afc0f78 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePresentBarrierFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDevicePresentBarrierFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePresentBarrierFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDevicePresentBarrierFeaturesNV` public static VkPhysicalDevicePresentBarrierFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePresentBarrierFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePresentBarrierFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePresentBarrierFeaturesNV` + public VkPhysicalDevicePresentBarrierFeaturesNV asSlice(long index) { return new VkPhysicalDevicePresentBarrierFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePresentBarrierFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePresentBarrierFeaturesNV` + public VkPhysicalDevicePresentBarrierFeaturesNV asSlice(long index, long count) { return new VkPhysicalDevicePresentBarrierFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRawAccessChainsFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRawAccessChainsFeaturesNV.java index 784af04b..b775852d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRawAccessChainsFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRawAccessChainsFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRawAccessChainsFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceRawAccessChainsFeaturesNV` public static VkPhysicalDeviceRawAccessChainsFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRawAccessChainsFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRawAccessChainsFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRawAccessChainsFeaturesNV` + public VkPhysicalDeviceRawAccessChainsFeaturesNV asSlice(long index) { return new VkPhysicalDeviceRawAccessChainsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRawAccessChainsFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRawAccessChainsFeaturesNV` + public VkPhysicalDeviceRawAccessChainsFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceRawAccessChainsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV.java index 72b20f32..35b0cf78 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV extends /// @return the allocated `VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV` public static VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV` + public VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV asSlice(long index) { return new VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV` + public VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV.java index fbc733e9..17342f6c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV exten /// @return the allocated `VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV` public static VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV` + public VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV asSlice(long index) { return new VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV` + public VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingMotionBlurFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingMotionBlurFeaturesNV.java index 84416a42..b05898a6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingMotionBlurFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingMotionBlurFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceRayTracingMotionBlurFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceRayTracingMotionBlurFeaturesNV` public static VkPhysicalDeviceRayTracingMotionBlurFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingMotionBlurFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingMotionBlurFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingMotionBlurFeaturesNV` + public VkPhysicalDeviceRayTracingMotionBlurFeaturesNV asSlice(long index) { return new VkPhysicalDeviceRayTracingMotionBlurFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingMotionBlurFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingMotionBlurFeaturesNV` + public VkPhysicalDeviceRayTracingMotionBlurFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingMotionBlurFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingPropertiesNV.java index aa738567..f407efd3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingPropertiesNV.java @@ -131,6 +131,17 @@ public final class VkPhysicalDeviceRayTracingPropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceRayTracingPropertiesNV` public static VkPhysicalDeviceRayTracingPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingPropertiesNV` + public VkPhysicalDeviceRayTracingPropertiesNV asSlice(long index) { return new VkPhysicalDeviceRayTracingPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingPropertiesNV` + public VkPhysicalDeviceRayTracingPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingValidationFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingValidationFeaturesNV.java index 84f0f6e8..76a2249e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingValidationFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRayTracingValidationFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRayTracingValidationFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceRayTracingValidationFeaturesNV` public static VkPhysicalDeviceRayTracingValidationFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRayTracingValidationFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRayTracingValidationFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRayTracingValidationFeaturesNV` + public VkPhysicalDeviceRayTracingValidationFeaturesNV asSlice(long index) { return new VkPhysicalDeviceRayTracingValidationFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRayTracingValidationFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRayTracingValidationFeaturesNV` + public VkPhysicalDeviceRayTracingValidationFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceRayTracingValidationFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV.java index 2f77fcb0..7ad90c97 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV extends /// @return the allocated `VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV` public static VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV` + public VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV asSlice(long index) { return new VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV` + public VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV.java index 62760a2a..dc3998cc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV extends S /// @return the allocated `VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV` public static VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV` + public VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV asSlice(long index) { return new VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV` + public VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderImageFootprintFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderImageFootprintFeaturesNV.java index e4ebb584..a8ed9f86 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderImageFootprintFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderImageFootprintFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderImageFootprintFeaturesNV extends Struct /// @return the allocated `VkPhysicalDeviceShaderImageFootprintFeaturesNV` public static VkPhysicalDeviceShaderImageFootprintFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderImageFootprintFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderImageFootprintFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderImageFootprintFeaturesNV` + public VkPhysicalDeviceShaderImageFootprintFeaturesNV asSlice(long index) { return new VkPhysicalDeviceShaderImageFootprintFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderImageFootprintFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderImageFootprintFeaturesNV` + public VkPhysicalDeviceShaderImageFootprintFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceShaderImageFootprintFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsFeaturesNV.java index 82489bc3..1d2441f6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsFeaturesNV.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderSMBuiltinsFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceShaderSMBuiltinsFeaturesNV` public static VkPhysicalDeviceShaderSMBuiltinsFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderSMBuiltinsFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderSMBuiltinsFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderSMBuiltinsFeaturesNV` + public VkPhysicalDeviceShaderSMBuiltinsFeaturesNV asSlice(long index) { return new VkPhysicalDeviceShaderSMBuiltinsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderSMBuiltinsFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderSMBuiltinsFeaturesNV` + public VkPhysicalDeviceShaderSMBuiltinsFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceShaderSMBuiltinsFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsPropertiesNV.java index ff2d2d52..d8073548 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShaderSMBuiltinsPropertiesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderSMBuiltinsPropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceShaderSMBuiltinsPropertiesNV` public static VkPhysicalDeviceShaderSMBuiltinsPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderSMBuiltinsPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderSMBuiltinsPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderSMBuiltinsPropertiesNV` + public VkPhysicalDeviceShaderSMBuiltinsPropertiesNV asSlice(long index) { return new VkPhysicalDeviceShaderSMBuiltinsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderSMBuiltinsPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderSMBuiltinsPropertiesNV` + public VkPhysicalDeviceShaderSMBuiltinsPropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceShaderSMBuiltinsPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImageFeaturesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImageFeaturesNV.java index a82796d5..9f3e21c0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImageFeaturesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImageFeaturesNV.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShadingRateImageFeaturesNV extends Struct { /// @return the allocated `VkPhysicalDeviceShadingRateImageFeaturesNV` public static VkPhysicalDeviceShadingRateImageFeaturesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShadingRateImageFeaturesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShadingRateImageFeaturesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShadingRateImageFeaturesNV` + public VkPhysicalDeviceShadingRateImageFeaturesNV asSlice(long index) { return new VkPhysicalDeviceShadingRateImageFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShadingRateImageFeaturesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShadingRateImageFeaturesNV` + public VkPhysicalDeviceShadingRateImageFeaturesNV asSlice(long index, long count) { return new VkPhysicalDeviceShadingRateImageFeaturesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImagePropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImagePropertiesNV.java index 9798bed1..2ad4100b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImagePropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPhysicalDeviceShadingRateImagePropertiesNV.java @@ -103,6 +103,17 @@ public final class VkPhysicalDeviceShadingRateImagePropertiesNV extends Struct { /// @return the allocated `VkPhysicalDeviceShadingRateImagePropertiesNV` public static VkPhysicalDeviceShadingRateImagePropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShadingRateImagePropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShadingRateImagePropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShadingRateImagePropertiesNV` + public VkPhysicalDeviceShadingRateImagePropertiesNV asSlice(long index) { return new VkPhysicalDeviceShadingRateImagePropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShadingRateImagePropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShadingRateImagePropertiesNV` + public VkPhysicalDeviceShadingRateImagePropertiesNV asSlice(long index, long count) { return new VkPhysicalDeviceShadingRateImagePropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageModulationStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageModulationStateCreateInfoNV.java index 1c1a8cbc..db23ae80 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageModulationStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageModulationStateCreateInfoNV.java @@ -113,6 +113,17 @@ public final class VkPipelineCoverageModulationStateCreateInfoNV extends Struct /// @return the allocated `VkPipelineCoverageModulationStateCreateInfoNV` public static VkPipelineCoverageModulationStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineCoverageModulationStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCoverageModulationStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCoverageModulationStateCreateInfoNV` + public VkPipelineCoverageModulationStateCreateInfoNV asSlice(long index) { return new VkPipelineCoverageModulationStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCoverageModulationStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCoverageModulationStateCreateInfoNV` + public VkPipelineCoverageModulationStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineCoverageModulationStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageReductionStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageReductionStateCreateInfoNV.java index 096b07ea..121366c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageReductionStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageReductionStateCreateInfoNV.java @@ -95,6 +95,17 @@ public final class VkPipelineCoverageReductionStateCreateInfoNV extends Struct { /// @return the allocated `VkPipelineCoverageReductionStateCreateInfoNV` public static VkPipelineCoverageReductionStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineCoverageReductionStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCoverageReductionStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCoverageReductionStateCreateInfoNV` + public VkPipelineCoverageReductionStateCreateInfoNV asSlice(long index) { return new VkPipelineCoverageReductionStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCoverageReductionStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCoverageReductionStateCreateInfoNV` + public VkPipelineCoverageReductionStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineCoverageReductionStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageToColorStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageToColorStateCreateInfoNV.java index 4267de93..35f6a4f8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageToColorStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineCoverageToColorStateCreateInfoNV.java @@ -101,6 +101,17 @@ public final class VkPipelineCoverageToColorStateCreateInfoNV extends Struct { /// @return the allocated `VkPipelineCoverageToColorStateCreateInfoNV` public static VkPipelineCoverageToColorStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineCoverageToColorStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCoverageToColorStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCoverageToColorStateCreateInfoNV` + public VkPipelineCoverageToColorStateCreateInfoNV asSlice(long index) { return new VkPipelineCoverageToColorStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCoverageToColorStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCoverageToColorStateCreateInfoNV` + public VkPipelineCoverageToColorStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineCoverageToColorStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineFragmentShadingRateEnumStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineFragmentShadingRateEnumStateCreateInfoNV.java index 3247f143..10002cb1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineFragmentShadingRateEnumStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineFragmentShadingRateEnumStateCreateInfoNV.java @@ -34,7 +34,7 @@ /// ### shadingRate /// [VarHandle][#VH_shadingRate] - [Getter][#shadingRate()] - [Setter][#shadingRate(int)] /// ### combinerOps -/// [VarHandle][#VH_combinerOps] - [Getter][#combinerOps()] - [Setter][#combinerOps(int)] +/// [Byte offset][#OFFSET_combinerOps] - [Memory layout][#ML_combinerOps] - [Getter][#combinerOps()] - [Setter][#combinerOps(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -43,7 +43,7 @@ /// const void * pNext; /// VkFragmentShadingRateTypeNV shadingRateType; /// VkFragmentShadingRateNV shadingRate; -/// VkFragmentShadingRateCombinerOpKHR combinerOps; +/// VkFragmentShadingRateCombinerOpKHR[2] combinerOps; /// } VkPipelineFragmentShadingRateEnumStateCreateInfoNV; /// ``` public final class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends Struct { @@ -53,7 +53,7 @@ public final class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends St ValueLayout.ADDRESS.withName("pNext"), ValueLayout.JAVA_INT.withName("shadingRateType"), ValueLayout.JAVA_INT.withName("shadingRate"), - ValueLayout.JAVA_INT.withName("combinerOps") + MemoryLayout.sequenceLayout(2, ValueLayout.JAVA_INT).withName("combinerOps") ); /// The [VarHandle] of `sType` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); @@ -63,8 +63,10 @@ public final class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends St public static final VarHandle VH_shadingRateType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("shadingRateType")); /// The [VarHandle] of `shadingRate` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_shadingRate = LAYOUT.arrayElementVarHandle(PathElement.groupElement("shadingRate")); - /// The [VarHandle] of `combinerOps` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_combinerOps = LAYOUT.arrayElementVarHandle(PathElement.groupElement("combinerOps")); + /// The byte offset of `combinerOps`. + public static final long OFFSET_combinerOps = LAYOUT.byteOffset(PathElement.groupElement("combinerOps")); + /// The memory layout of `combinerOps`. + public static final MemoryLayout ML_combinerOps = LAYOUT.select(PathElement.groupElement("combinerOps")); /// Creates `VkPipelineFragmentShadingRateEnumStateCreateInfoNV` with the given segment. /// @param segment the memory segment @@ -101,6 +103,17 @@ public final class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends St /// @return the allocated `VkPipelineFragmentShadingRateEnumStateCreateInfoNV` public static VkPipelineFragmentShadingRateEnumStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineFragmentShadingRateEnumStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineFragmentShadingRateEnumStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineFragmentShadingRateEnumStateCreateInfoNV` + public VkPipelineFragmentShadingRateEnumStateCreateInfoNV asSlice(long index) { return new VkPipelineFragmentShadingRateEnumStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineFragmentShadingRateEnumStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineFragmentShadingRateEnumStateCreateInfoNV` + public VkPipelineFragmentShadingRateEnumStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineFragmentShadingRateEnumStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -228,32 +241,32 @@ public final class VkPipelineFragmentShadingRateEnumStateCreateInfoNV extends St /// {@return `combinerOps` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("VkFragmentShadingRateCombinerOpKHR") int get_combinerOps(MemorySegment segment, long index) { return (int) VH_combinerOps.get(segment, 0L, index); } + public static @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment get_combinerOps(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_combinerOps, index), ML_combinerOps); } /// {@return `combinerOps`} /// @param segment the segment of the struct - public static @CType("VkFragmentShadingRateCombinerOpKHR") int get_combinerOps(MemorySegment segment) { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(segment, 0L); } + public static @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment get_combinerOps(MemorySegment segment) { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(segment, 0L); } /// {@return `combinerOps` at the given index} /// @param index the index - public @CType("VkFragmentShadingRateCombinerOpKHR") int combinerOpsAt(long index) { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(this.segment(), index); } + public @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment combinerOpsAt(long index) { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(this.segment(), index); } /// {@return `combinerOps`} - public @CType("VkFragmentShadingRateCombinerOpKHR") int combinerOps() { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(this.segment()); } + public @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment combinerOps() { return VkPipelineFragmentShadingRateEnumStateCreateInfoNV.get_combinerOps(this.segment()); } /// Sets `combinerOps` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_combinerOps(MemorySegment segment, long index, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VH_combinerOps.set(segment, 0L, index, value); } + public static void set_combinerOps(MemorySegment segment, long index, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_combinerOps, index), ML_combinerOps.byteSize()); } /// Sets `combinerOps` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_combinerOps(MemorySegment segment, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(segment, 0L, value); } + public static void set_combinerOps(MemorySegment segment, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(segment, 0L, value); } /// Sets `combinerOps` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOpsAt(long index, @CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(this.segment(), index, value); return this; } + public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOpsAt(long index, @CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(this.segment(), index, value); return this; } /// Sets `combinerOps` with the given value. /// @param value the value /// @return `this` - public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOps(@CType("VkFragmentShadingRateCombinerOpKHR") int value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(this.segment(), value); return this; } + public VkPipelineFragmentShadingRateEnumStateCreateInfoNV combinerOps(@CType("VkFragmentShadingRateCombinerOpKHR[2]") java.lang.foreign.MemorySegment value) { VkPipelineFragmentShadingRateEnumStateCreateInfoNV.set_combinerOps(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineIndirectDeviceAddressInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineIndirectDeviceAddressInfoNV.java index e6c4f437..dffec8c9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineIndirectDeviceAddressInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineIndirectDeviceAddressInfoNV.java @@ -95,6 +95,17 @@ public final class VkPipelineIndirectDeviceAddressInfoNV extends Struct { /// @return the allocated `VkPipelineIndirectDeviceAddressInfoNV` public static VkPipelineIndirectDeviceAddressInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineIndirectDeviceAddressInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineIndirectDeviceAddressInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineIndirectDeviceAddressInfoNV` + public VkPipelineIndirectDeviceAddressInfoNV asSlice(long index) { return new VkPipelineIndirectDeviceAddressInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineIndirectDeviceAddressInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineIndirectDeviceAddressInfoNV` + public VkPipelineIndirectDeviceAddressInfoNV asSlice(long index, long count) { return new VkPipelineIndirectDeviceAddressInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineRepresentativeFragmentTestStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineRepresentativeFragmentTestStateCreateInfoNV.java index f469ad7c..09ae3a8e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineRepresentativeFragmentTestStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineRepresentativeFragmentTestStateCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkPipelineRepresentativeFragmentTestStateCreateInfoNV extends /// @return the allocated `VkPipelineRepresentativeFragmentTestStateCreateInfoNV` public static VkPipelineRepresentativeFragmentTestStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineRepresentativeFragmentTestStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRepresentativeFragmentTestStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRepresentativeFragmentTestStateCreateInfoNV` + public VkPipelineRepresentativeFragmentTestStateCreateInfoNV asSlice(long index) { return new VkPipelineRepresentativeFragmentTestStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRepresentativeFragmentTestStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRepresentativeFragmentTestStateCreateInfoNV` + public VkPipelineRepresentativeFragmentTestStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineRepresentativeFragmentTestStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.java index bafb6e41..5ef36ce4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.java @@ -101,6 +101,17 @@ public final class VkPipelineViewportCoarseSampleOrderStateCreateInfoNV extends /// @return the allocated `VkPipelineViewportCoarseSampleOrderStateCreateInfoNV` public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportCoarseSampleOrderStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportCoarseSampleOrderStateCreateInfoNV` + public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV asSlice(long index) { return new VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportCoarseSampleOrderStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportCoarseSampleOrderStateCreateInfoNV` + public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportExclusiveScissorStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportExclusiveScissorStateCreateInfoNV.java index 8bb0b9e9..f0b2df19 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportExclusiveScissorStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportExclusiveScissorStateCreateInfoNV.java @@ -95,6 +95,17 @@ public final class VkPipelineViewportExclusiveScissorStateCreateInfoNV extends S /// @return the allocated `VkPipelineViewportExclusiveScissorStateCreateInfoNV` public static VkPipelineViewportExclusiveScissorStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportExclusiveScissorStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportExclusiveScissorStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportExclusiveScissorStateCreateInfoNV` + public VkPipelineViewportExclusiveScissorStateCreateInfoNV asSlice(long index) { return new VkPipelineViewportExclusiveScissorStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportExclusiveScissorStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportExclusiveScissorStateCreateInfoNV` + public VkPipelineViewportExclusiveScissorStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineViewportExclusiveScissorStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportShadingRateImageStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportShadingRateImageStateCreateInfoNV.java index 1827c45e..943a8a0f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportShadingRateImageStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportShadingRateImageStateCreateInfoNV.java @@ -101,6 +101,17 @@ public final class VkPipelineViewportShadingRateImageStateCreateInfoNV extends S /// @return the allocated `VkPipelineViewportShadingRateImageStateCreateInfoNV` public static VkPipelineViewportShadingRateImageStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportShadingRateImageStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportShadingRateImageStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportShadingRateImageStateCreateInfoNV` + public VkPipelineViewportShadingRateImageStateCreateInfoNV asSlice(long index) { return new VkPipelineViewportShadingRateImageStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportShadingRateImageStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportShadingRateImageStateCreateInfoNV` + public VkPipelineViewportShadingRateImageStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineViewportShadingRateImageStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportSwizzleStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportSwizzleStateCreateInfoNV.java index 3f7ed126..9598863e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportSwizzleStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportSwizzleStateCreateInfoNV.java @@ -101,6 +101,17 @@ public final class VkPipelineViewportSwizzleStateCreateInfoNV extends Struct { /// @return the allocated `VkPipelineViewportSwizzleStateCreateInfoNV` public static VkPipelineViewportSwizzleStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportSwizzleStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportSwizzleStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportSwizzleStateCreateInfoNV` + public VkPipelineViewportSwizzleStateCreateInfoNV asSlice(long index) { return new VkPipelineViewportSwizzleStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportSwizzleStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportSwizzleStateCreateInfoNV` + public VkPipelineViewportSwizzleStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineViewportSwizzleStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportWScalingStateCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportWScalingStateCreateInfoNV.java index a39f7512..d35c4a24 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportWScalingStateCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkPipelineViewportWScalingStateCreateInfoNV.java @@ -101,6 +101,17 @@ public final class VkPipelineViewportWScalingStateCreateInfoNV extends Struct { /// @return the allocated `VkPipelineViewportWScalingStateCreateInfoNV` public static VkPipelineViewportWScalingStateCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportWScalingStateCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportWScalingStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportWScalingStateCreateInfoNV` + public VkPipelineViewportWScalingStateCreateInfoNV asSlice(long index) { return new VkPipelineViewportWScalingStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportWScalingStateCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportWScalingStateCreateInfoNV` + public VkPipelineViewportWScalingStateCreateInfoNV asSlice(long index, long count) { return new VkPipelineViewportWScalingStateCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueryLowLatencySupportNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueryLowLatencySupportNV.java index fa9636c3..c2ab0d96 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueryLowLatencySupportNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueryLowLatencySupportNV.java @@ -89,6 +89,17 @@ public final class VkQueryLowLatencySupportNV extends Struct { /// @return the allocated `VkQueryLowLatencySupportNV` public static VkQueryLowLatencySupportNV alloc(SegmentAllocator allocator, long count) { return new VkQueryLowLatencySupportNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueryLowLatencySupportNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueryLowLatencySupportNV` + public VkQueryLowLatencySupportNV asSlice(long index) { return new VkQueryLowLatencySupportNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueryLowLatencySupportNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueryLowLatencySupportNV` + public VkQueryLowLatencySupportNV asSlice(long index, long count) { return new VkQueryLowLatencySupportNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointProperties2NV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointProperties2NV.java index 26726fe7..f8b505e6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointProperties2NV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointProperties2NV.java @@ -89,6 +89,17 @@ public final class VkQueueFamilyCheckpointProperties2NV extends Struct { /// @return the allocated `VkQueueFamilyCheckpointProperties2NV` public static VkQueueFamilyCheckpointProperties2NV alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyCheckpointProperties2NV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyCheckpointProperties2NV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyCheckpointProperties2NV` + public VkQueueFamilyCheckpointProperties2NV asSlice(long index) { return new VkQueueFamilyCheckpointProperties2NV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyCheckpointProperties2NV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyCheckpointProperties2NV` + public VkQueueFamilyCheckpointProperties2NV asSlice(long index, long count) { return new VkQueueFamilyCheckpointProperties2NV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointPropertiesNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointPropertiesNV.java index b8ef3732..93c7ce51 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointPropertiesNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkQueueFamilyCheckpointPropertiesNV.java @@ -89,6 +89,17 @@ public final class VkQueueFamilyCheckpointPropertiesNV extends Struct { /// @return the allocated `VkQueueFamilyCheckpointPropertiesNV` public static VkQueueFamilyCheckpointPropertiesNV alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyCheckpointPropertiesNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyCheckpointPropertiesNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyCheckpointPropertiesNV` + public VkQueueFamilyCheckpointPropertiesNV asSlice(long index) { return new VkQueueFamilyCheckpointPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyCheckpointPropertiesNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyCheckpointPropertiesNV` + public VkQueueFamilyCheckpointPropertiesNV asSlice(long index, long count) { return new VkQueueFamilyCheckpointPropertiesNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingPipelineCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingPipelineCreateInfoNV.java index 10bf7b93..166cb66b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingPipelineCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingPipelineCreateInfoNV.java @@ -137,6 +137,17 @@ public final class VkRayTracingPipelineCreateInfoNV extends Struct { /// @return the allocated `VkRayTracingPipelineCreateInfoNV` public static VkRayTracingPipelineCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkRayTracingPipelineCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRayTracingPipelineCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRayTracingPipelineCreateInfoNV` + public VkRayTracingPipelineCreateInfoNV asSlice(long index) { return new VkRayTracingPipelineCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRayTracingPipelineCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRayTracingPipelineCreateInfoNV` + public VkRayTracingPipelineCreateInfoNV asSlice(long index, long count) { return new VkRayTracingPipelineCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingShaderGroupCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingShaderGroupCreateInfoNV.java index 1ef8c050..58272a91 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingShaderGroupCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkRayTracingShaderGroupCreateInfoNV.java @@ -113,6 +113,17 @@ public final class VkRayTracingShaderGroupCreateInfoNV extends Struct { /// @return the allocated `VkRayTracingShaderGroupCreateInfoNV` public static VkRayTracingShaderGroupCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkRayTracingShaderGroupCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRayTracingShaderGroupCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRayTracingShaderGroupCreateInfoNV` + public VkRayTracingShaderGroupCreateInfoNV asSlice(long index) { return new VkRayTracingShaderGroupCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRayTracingShaderGroupCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRayTracingShaderGroupCreateInfoNV` + public VkRayTracingShaderGroupCreateInfoNV asSlice(long index, long count) { return new VkRayTracingShaderGroupCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSRTDataNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSRTDataNV.java index 3149254e..b205cbe4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSRTDataNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSRTDataNV.java @@ -167,6 +167,17 @@ public final class VkSRTDataNV extends Struct { /// @return the allocated `VkSRTDataNV` public static VkSRTDataNV alloc(SegmentAllocator allocator, long count) { return new VkSRTDataNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSRTDataNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSRTDataNV` + public VkSRTDataNV asSlice(long index) { return new VkSRTDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSRTDataNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSRTDataNV` + public VkSRTDataNV asSlice(long index, long count) { return new VkSRTDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sx` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSciSyncAttributesInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSciSyncAttributesInfoNV.java index d527bb4d..b46f7713 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSciSyncAttributesInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSciSyncAttributesInfoNV.java @@ -95,6 +95,17 @@ public final class VkSciSyncAttributesInfoNV extends Struct { /// @return the allocated `VkSciSyncAttributesInfoNV` public static VkSciSyncAttributesInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSciSyncAttributesInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSciSyncAttributesInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSciSyncAttributesInfoNV` + public VkSciSyncAttributesInfoNV asSlice(long index) { return new VkSciSyncAttributesInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSciSyncAttributesInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSciSyncAttributesInfoNV` + public VkSciSyncAttributesInfoNV asSlice(long index, long count) { return new VkSciSyncAttributesInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreGetSciSyncInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreGetSciSyncInfoNV.java index 9d5f3a25..3573179a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreGetSciSyncInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreGetSciSyncInfoNV.java @@ -95,6 +95,17 @@ public final class VkSemaphoreGetSciSyncInfoNV extends Struct { /// @return the allocated `VkSemaphoreGetSciSyncInfoNV` public static VkSemaphoreGetSciSyncInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreGetSciSyncInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreGetSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreGetSciSyncInfoNV` + public VkSemaphoreGetSciSyncInfoNV asSlice(long index) { return new VkSemaphoreGetSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreGetSciSyncInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreGetSciSyncInfoNV` + public VkSemaphoreGetSciSyncInfoNV asSlice(long index, long count) { return new VkSemaphoreGetSciSyncInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncCreateInfoNV.java index 191820ad..8ab7601a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncCreateInfoNV.java @@ -95,6 +95,17 @@ public final class VkSemaphoreSciSyncCreateInfoNV extends Struct { /// @return the allocated `VkSemaphoreSciSyncCreateInfoNV` public static VkSemaphoreSciSyncCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreSciSyncCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreSciSyncCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreSciSyncCreateInfoNV` + public VkSemaphoreSciSyncCreateInfoNV asSlice(long index) { return new VkSemaphoreSciSyncCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreSciSyncCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreSciSyncCreateInfoNV` + public VkSemaphoreSciSyncCreateInfoNV asSlice(long index, long count) { return new VkSemaphoreSciSyncCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncPoolCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncPoolCreateInfoNV.java index 07562971..b15c6178 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncPoolCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSemaphoreSciSyncPoolCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkSemaphoreSciSyncPoolCreateInfoNV extends Struct { /// @return the allocated `VkSemaphoreSciSyncPoolCreateInfoNV` public static VkSemaphoreSciSyncPoolCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreSciSyncPoolCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreSciSyncPoolCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreSciSyncPoolCreateInfoNV` + public VkSemaphoreSciSyncPoolCreateInfoNV asSlice(long index) { return new VkSemaphoreSciSyncPoolCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreSciSyncPoolCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreSciSyncPoolCreateInfoNV` + public VkSemaphoreSciSyncPoolCreateInfoNV asSlice(long index, long count) { return new VkSemaphoreSciSyncPoolCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetLatencyMarkerInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetLatencyMarkerInfoNV.java index 2926d0df..bc9f264e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetLatencyMarkerInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetLatencyMarkerInfoNV.java @@ -95,6 +95,17 @@ public final class VkSetLatencyMarkerInfoNV extends Struct { /// @return the allocated `VkSetLatencyMarkerInfoNV` public static VkSetLatencyMarkerInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSetLatencyMarkerInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSetLatencyMarkerInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSetLatencyMarkerInfoNV` + public VkSetLatencyMarkerInfoNV asSlice(long index) { return new VkSetLatencyMarkerInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSetLatencyMarkerInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSetLatencyMarkerInfoNV` + public VkSetLatencyMarkerInfoNV asSlice(long index, long count) { return new VkSetLatencyMarkerInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetStateFlagsIndirectCommandNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetStateFlagsIndirectCommandNV.java index e12ec8bf..7be0c3dd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetStateFlagsIndirectCommandNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSetStateFlagsIndirectCommandNV.java @@ -77,6 +77,17 @@ public final class VkSetStateFlagsIndirectCommandNV extends Struct { /// @return the allocated `VkSetStateFlagsIndirectCommandNV` public static VkSetStateFlagsIndirectCommandNV alloc(SegmentAllocator allocator, long count) { return new VkSetStateFlagsIndirectCommandNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSetStateFlagsIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSetStateFlagsIndirectCommandNV` + public VkSetStateFlagsIndirectCommandNV asSlice(long index) { return new VkSetStateFlagsIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSetStateFlagsIndirectCommandNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSetStateFlagsIndirectCommandNV` + public VkSetStateFlagsIndirectCommandNV asSlice(long index, long count) { return new VkSetStateFlagsIndirectCommandNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `data` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkShadingRatePaletteNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkShadingRatePaletteNV.java index 5f713a51..e2a5b15f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkShadingRatePaletteNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkShadingRatePaletteNV.java @@ -83,6 +83,17 @@ public final class VkShadingRatePaletteNV extends Struct { /// @return the allocated `VkShadingRatePaletteNV` public static VkShadingRatePaletteNV alloc(SegmentAllocator allocator, long count) { return new VkShadingRatePaletteNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShadingRatePaletteNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShadingRatePaletteNV` + public VkShadingRatePaletteNV asSlice(long index) { return new VkShadingRatePaletteNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShadingRatePaletteNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShadingRatePaletteNV` + public VkShadingRatePaletteNV asSlice(long index, long count) { return new VkShadingRatePaletteNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `shadingRatePaletteEntryCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSurfaceCapabilitiesPresentBarrierNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSurfaceCapabilitiesPresentBarrierNV.java index f473b159..33047dad 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSurfaceCapabilitiesPresentBarrierNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSurfaceCapabilitiesPresentBarrierNV.java @@ -89,6 +89,17 @@ public final class VkSurfaceCapabilitiesPresentBarrierNV extends Struct { /// @return the allocated `VkSurfaceCapabilitiesPresentBarrierNV` public static VkSurfaceCapabilitiesPresentBarrierNV alloc(SegmentAllocator allocator, long count) { return new VkSurfaceCapabilitiesPresentBarrierNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSurfaceCapabilitiesPresentBarrierNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSurfaceCapabilitiesPresentBarrierNV` + public VkSurfaceCapabilitiesPresentBarrierNV asSlice(long index) { return new VkSurfaceCapabilitiesPresentBarrierNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSurfaceCapabilitiesPresentBarrierNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSurfaceCapabilitiesPresentBarrierNV` + public VkSurfaceCapabilitiesPresentBarrierNV asSlice(long index, long count) { return new VkSurfaceCapabilitiesPresentBarrierNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainLatencyCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainLatencyCreateInfoNV.java index 0ccaca06..bf0b79f2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainLatencyCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainLatencyCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkSwapchainLatencyCreateInfoNV extends Struct { /// @return the allocated `VkSwapchainLatencyCreateInfoNV` public static VkSwapchainLatencyCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSwapchainLatencyCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainLatencyCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainLatencyCreateInfoNV` + public VkSwapchainLatencyCreateInfoNV asSlice(long index) { return new VkSwapchainLatencyCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainLatencyCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainLatencyCreateInfoNV` + public VkSwapchainLatencyCreateInfoNV asSlice(long index, long count) { return new VkSwapchainLatencyCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainPresentBarrierCreateInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainPresentBarrierCreateInfoNV.java index 75bb9038..6c7e458a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainPresentBarrierCreateInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkSwapchainPresentBarrierCreateInfoNV.java @@ -89,6 +89,17 @@ public final class VkSwapchainPresentBarrierCreateInfoNV extends Struct { /// @return the allocated `VkSwapchainPresentBarrierCreateInfoNV` public static VkSwapchainPresentBarrierCreateInfoNV alloc(SegmentAllocator allocator, long count) { return new VkSwapchainPresentBarrierCreateInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSwapchainPresentBarrierCreateInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSwapchainPresentBarrierCreateInfoNV` + public VkSwapchainPresentBarrierCreateInfoNV asSlice(long index) { return new VkSwapchainPresentBarrierCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSwapchainPresentBarrierCreateInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSwapchainPresentBarrierCreateInfoNV` + public VkSwapchainPresentBarrierCreateInfoNV asSlice(long index, long count) { return new VkSwapchainPresentBarrierCreateInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportSwizzleNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportSwizzleNV.java index c95cecf0..4cb2b01d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportSwizzleNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportSwizzleNV.java @@ -95,6 +95,17 @@ public final class VkViewportSwizzleNV extends Struct { /// @return the allocated `VkViewportSwizzleNV` public static VkViewportSwizzleNV alloc(SegmentAllocator allocator, long count) { return new VkViewportSwizzleNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkViewportSwizzleNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkViewportSwizzleNV` + public VkViewportSwizzleNV asSlice(long index) { return new VkViewportSwizzleNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkViewportSwizzleNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkViewportSwizzleNV` + public VkViewportSwizzleNV asSlice(long index, long count) { return new VkViewportSwizzleNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportWScalingNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportWScalingNV.java index 2c27a17a..fb15f0f7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportWScalingNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkViewportWScalingNV.java @@ -83,6 +83,17 @@ public final class VkViewportWScalingNV extends Struct { /// @return the allocated `VkViewportWScalingNV` public static VkViewportWScalingNV alloc(SegmentAllocator allocator, long count) { return new VkViewportWScalingNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkViewportWScalingNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkViewportWScalingNV` + public VkViewportWScalingNV asSlice(long index) { return new VkViewportWScalingNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkViewportWScalingNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkViewportWScalingNV` + public VkViewportWScalingNV asSlice(long index, long count) { return new VkViewportWScalingNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `xcoeff` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWin32KeyedMutexAcquireReleaseInfoNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWin32KeyedMutexAcquireReleaseInfoNV.java index cc0d02c4..24b04136 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWin32KeyedMutexAcquireReleaseInfoNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWin32KeyedMutexAcquireReleaseInfoNV.java @@ -125,6 +125,17 @@ public final class VkWin32KeyedMutexAcquireReleaseInfoNV extends Struct { /// @return the allocated `VkWin32KeyedMutexAcquireReleaseInfoNV` public static VkWin32KeyedMutexAcquireReleaseInfoNV alloc(SegmentAllocator allocator, long count) { return new VkWin32KeyedMutexAcquireReleaseInfoNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWin32KeyedMutexAcquireReleaseInfoNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWin32KeyedMutexAcquireReleaseInfoNV` + public VkWin32KeyedMutexAcquireReleaseInfoNV asSlice(long index) { return new VkWin32KeyedMutexAcquireReleaseInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWin32KeyedMutexAcquireReleaseInfoNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWin32KeyedMutexAcquireReleaseInfoNV` + public VkWin32KeyedMutexAcquireReleaseInfoNV asSlice(long index, long count) { return new VkWin32KeyedMutexAcquireReleaseInfoNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWriteDescriptorSetAccelerationStructureNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWriteDescriptorSetAccelerationStructureNV.java index cc4e8826..881f073e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWriteDescriptorSetAccelerationStructureNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/struct/VkWriteDescriptorSetAccelerationStructureNV.java @@ -95,6 +95,17 @@ public final class VkWriteDescriptorSetAccelerationStructureNV extends Struct { /// @return the allocated `VkWriteDescriptorSetAccelerationStructureNV` public static VkWriteDescriptorSetAccelerationStructureNV alloc(SegmentAllocator allocator, long count) { return new VkWriteDescriptorSetAccelerationStructureNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteDescriptorSetAccelerationStructureNV`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteDescriptorSetAccelerationStructureNV` + public VkWriteDescriptorSetAccelerationStructureNV asSlice(long index) { return new VkWriteDescriptorSetAccelerationStructureNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteDescriptorSetAccelerationStructureNV`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteDescriptorSetAccelerationStructureNV` + public VkWriteDescriptorSetAccelerationStructureNV asSlice(long index, long count) { return new VkWriteDescriptorSetAccelerationStructureNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/union/VkAccelerationStructureMotionInstanceDataNV.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/union/VkAccelerationStructureMotionInstanceDataNV.java index 5b6b080f..b81eebd3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/union/VkAccelerationStructureMotionInstanceDataNV.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nv/union/VkAccelerationStructureMotionInstanceDataNV.java @@ -95,12 +95,23 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { /// @return the allocated `VkAccelerationStructureMotionInstanceDataNV` public static VkAccelerationStructureMotionInstanceDataNV alloc(SegmentAllocator allocator, long count) { return new VkAccelerationStructureMotionInstanceDataNV(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAccelerationStructureMotionInstanceDataNV`. + /// @param index the index of the union buffer + /// @return the slice of `VkAccelerationStructureMotionInstanceDataNV` + public VkAccelerationStructureMotionInstanceDataNV asSlice(long index) { return new VkAccelerationStructureMotionInstanceDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAccelerationStructureMotionInstanceDataNV`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkAccelerationStructureMotionInstanceDataNV` + public VkAccelerationStructureMotionInstanceDataNV asSlice(long index, long count) { return new VkAccelerationStructureMotionInstanceDataNV(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `staticInstance` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment get_staticInstance(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_staticInstance, index), ML_staticInstance); } /// {@return `staticInstance`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment get_staticInstance(MemorySegment segment) { return VkAccelerationStructureMotionInstanceDataNV.get_staticInstance(segment, 0L); } /// {@return `staticInstance` at the given index} /// @param index the index @@ -108,12 +119,12 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { /// {@return `staticInstance`} public @CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment staticInstance() { return VkAccelerationStructureMotionInstanceDataNV.get_staticInstance(this.segment()); } /// Sets `staticInstance` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_staticInstance(MemorySegment segment, long index, @CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_staticInstance, index), ML_staticInstance.byteSize()); } /// Sets `staticInstance` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_staticInstance(MemorySegment segment, @CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureMotionInstanceDataNV.set_staticInstance(segment, 0L, value); } /// Sets `staticInstance` with the given value at the given index. @@ -127,11 +138,11 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { public VkAccelerationStructureMotionInstanceDataNV staticInstance(@CType("VkAccelerationStructureInstanceKHR") java.lang.foreign.MemorySegment value) { VkAccelerationStructureMotionInstanceDataNV.set_staticInstance(this.segment(), value); return this; } /// {@return `matrixMotionInstance` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment get_matrixMotionInstance(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_matrixMotionInstance, index), ML_matrixMotionInstance); } /// {@return `matrixMotionInstance`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment get_matrixMotionInstance(MemorySegment segment) { return VkAccelerationStructureMotionInstanceDataNV.get_matrixMotionInstance(segment, 0L); } /// {@return `matrixMotionInstance` at the given index} /// @param index the index @@ -139,12 +150,12 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { /// {@return `matrixMotionInstance`} public @CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment matrixMotionInstance() { return VkAccelerationStructureMotionInstanceDataNV.get_matrixMotionInstance(this.segment()); } /// Sets `matrixMotionInstance` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_matrixMotionInstance(MemorySegment segment, long index, @CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_matrixMotionInstance, index), ML_matrixMotionInstance.byteSize()); } /// Sets `matrixMotionInstance` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_matrixMotionInstance(MemorySegment segment, @CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment value) { VkAccelerationStructureMotionInstanceDataNV.set_matrixMotionInstance(segment, 0L, value); } /// Sets `matrixMotionInstance` with the given value at the given index. @@ -158,11 +169,11 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { public VkAccelerationStructureMotionInstanceDataNV matrixMotionInstance(@CType("VkAccelerationStructureMatrixMotionInstanceNV") java.lang.foreign.MemorySegment value) { VkAccelerationStructureMotionInstanceDataNV.set_matrixMotionInstance(this.segment(), value); return this; } /// {@return `srtMotionInstance` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkAccelerationStructureSRTMotionInstanceNV") java.lang.foreign.MemorySegment get_srtMotionInstance(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_srtMotionInstance, index), ML_srtMotionInstance); } /// {@return `srtMotionInstance`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkAccelerationStructureSRTMotionInstanceNV") java.lang.foreign.MemorySegment get_srtMotionInstance(MemorySegment segment) { return VkAccelerationStructureMotionInstanceDataNV.get_srtMotionInstance(segment, 0L); } /// {@return `srtMotionInstance` at the given index} /// @param index the index @@ -170,12 +181,12 @@ public final class VkAccelerationStructureMotionInstanceDataNV extends Union { /// {@return `srtMotionInstance`} public @CType("VkAccelerationStructureSRTMotionInstanceNV") java.lang.foreign.MemorySegment srtMotionInstance() { return VkAccelerationStructureMotionInstanceDataNV.get_srtMotionInstance(this.segment()); } /// Sets `srtMotionInstance` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_srtMotionInstance(MemorySegment segment, long index, @CType("VkAccelerationStructureSRTMotionInstanceNV") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_srtMotionInstance, index), ML_srtMotionInstance.byteSize()); } /// Sets `srtMotionInstance` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_srtMotionInstance(MemorySegment segment, @CType("VkAccelerationStructureSRTMotionInstanceNV") java.lang.foreign.MemorySegment value) { VkAccelerationStructureMotionInstanceDataNV.set_srtMotionInstance(segment, 0L, value); } /// Sets `srtMotionInstance` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/VKNVXMultiviewPerViewAttributes.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/VKNVXMultiviewPerViewAttributes.java index ab7a95a2..f156fdaf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/VKNVXMultiviewPerViewAttributes.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/VKNVXMultiviewPerViewAttributes.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKNVXMultiviewPerViewAttributes { +public final class VKNVXMultiviewPerViewAttributes { public static final int VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_SPEC_VERSION = 1; public static final String VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_EXTENSION_NAME = "VK_NVX_multiview_per_view_attributes"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX = 1000097000; @@ -30,7 +30,6 @@ public class VKNVXMultiviewPerViewAttributes { public static final int VK_SUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX = 0x00000002; public static final int VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX = 1000097009; - public VKNVXMultiviewPerViewAttributes(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKNVXMultiviewPerViewAttributes() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuFunctionCreateInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuFunctionCreateInfoNVX.java index 50eba35f..838f28d0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuFunctionCreateInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuFunctionCreateInfoNVX.java @@ -95,6 +95,17 @@ public final class VkCuFunctionCreateInfoNVX extends Struct { /// @return the allocated `VkCuFunctionCreateInfoNVX` public static VkCuFunctionCreateInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkCuFunctionCreateInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCuFunctionCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCuFunctionCreateInfoNVX` + public VkCuFunctionCreateInfoNVX asSlice(long index) { return new VkCuFunctionCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCuFunctionCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCuFunctionCreateInfoNVX` + public VkCuFunctionCreateInfoNVX asSlice(long index, long count) { return new VkCuFunctionCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuLaunchInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuLaunchInfoNVX.java index a443f8be..34447027 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuLaunchInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuLaunchInfoNVX.java @@ -155,6 +155,17 @@ public final class VkCuLaunchInfoNVX extends Struct { /// @return the allocated `VkCuLaunchInfoNVX` public static VkCuLaunchInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkCuLaunchInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCuLaunchInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCuLaunchInfoNVX` + public VkCuLaunchInfoNVX asSlice(long index) { return new VkCuLaunchInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCuLaunchInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCuLaunchInfoNVX` + public VkCuLaunchInfoNVX asSlice(long index, long count) { return new VkCuLaunchInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleCreateInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleCreateInfoNVX.java index 205d2920..e15984ef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleCreateInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleCreateInfoNVX.java @@ -95,6 +95,17 @@ public final class VkCuModuleCreateInfoNVX extends Struct { /// @return the allocated `VkCuModuleCreateInfoNVX` public static VkCuModuleCreateInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkCuModuleCreateInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCuModuleCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCuModuleCreateInfoNVX` + public VkCuModuleCreateInfoNVX asSlice(long index) { return new VkCuModuleCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCuModuleCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCuModuleCreateInfoNVX` + public VkCuModuleCreateInfoNVX asSlice(long index, long count) { return new VkCuModuleCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleTexturingModeCreateInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleTexturingModeCreateInfoNVX.java index ec71f6c7..af5d6867 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleTexturingModeCreateInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkCuModuleTexturingModeCreateInfoNVX.java @@ -89,6 +89,17 @@ public final class VkCuModuleTexturingModeCreateInfoNVX extends Struct { /// @return the allocated `VkCuModuleTexturingModeCreateInfoNVX` public static VkCuModuleTexturingModeCreateInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkCuModuleTexturingModeCreateInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCuModuleTexturingModeCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCuModuleTexturingModeCreateInfoNVX` + public VkCuModuleTexturingModeCreateInfoNVX asSlice(long index) { return new VkCuModuleTexturingModeCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCuModuleTexturingModeCreateInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCuModuleTexturingModeCreateInfoNVX` + public VkCuModuleTexturingModeCreateInfoNVX asSlice(long index, long count) { return new VkCuModuleTexturingModeCreateInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewAddressPropertiesNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewAddressPropertiesNVX.java index 8f501c19..a31548ef 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewAddressPropertiesNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewAddressPropertiesNVX.java @@ -95,6 +95,17 @@ public final class VkImageViewAddressPropertiesNVX extends Struct { /// @return the allocated `VkImageViewAddressPropertiesNVX` public static VkImageViewAddressPropertiesNVX alloc(SegmentAllocator allocator, long count) { return new VkImageViewAddressPropertiesNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewAddressPropertiesNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewAddressPropertiesNVX` + public VkImageViewAddressPropertiesNVX asSlice(long index) { return new VkImageViewAddressPropertiesNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewAddressPropertiesNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewAddressPropertiesNVX` + public VkImageViewAddressPropertiesNVX asSlice(long index, long count) { return new VkImageViewAddressPropertiesNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewHandleInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewHandleInfoNVX.java index acb0d9f0..5b9a5154 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewHandleInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkImageViewHandleInfoNVX.java @@ -101,6 +101,17 @@ public final class VkImageViewHandleInfoNVX extends Struct { /// @return the allocated `VkImageViewHandleInfoNVX` public static VkImageViewHandleInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkImageViewHandleInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewHandleInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewHandleInfoNVX` + public VkImageViewHandleInfoNVX asSlice(long index) { return new VkImageViewHandleInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewHandleInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewHandleInfoNVX` + public VkImageViewHandleInfoNVX asSlice(long index, long count) { return new VkImageViewHandleInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkMultiviewPerViewAttributesInfoNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkMultiviewPerViewAttributesInfoNVX.java index 2496ed5a..0e11eb1b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkMultiviewPerViewAttributesInfoNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkMultiviewPerViewAttributesInfoNVX.java @@ -95,6 +95,17 @@ public final class VkMultiviewPerViewAttributesInfoNVX extends Struct { /// @return the allocated `VkMultiviewPerViewAttributesInfoNVX` public static VkMultiviewPerViewAttributesInfoNVX alloc(SegmentAllocator allocator, long count) { return new VkMultiviewPerViewAttributesInfoNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultiviewPerViewAttributesInfoNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultiviewPerViewAttributesInfoNVX` + public VkMultiviewPerViewAttributesInfoNVX asSlice(long index) { return new VkMultiviewPerViewAttributesInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultiviewPerViewAttributesInfoNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultiviewPerViewAttributesInfoNVX` + public VkMultiviewPerViewAttributesInfoNVX asSlice(long index, long count) { return new VkMultiviewPerViewAttributesInfoNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX.java index 54515b2a..9a7ba4b9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/nvx/struct/VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX exten /// @return the allocated `VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX` public static VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX` + public VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX asSlice(long index) { return new VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX` + public VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX asSlice(long index, long count) { return new VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicClamp.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicClamp.java index cf129033..a64de3e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicClamp.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicClamp.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMFilterCubicClamp { +public final class VKQCOMFilterCubicClamp { public static final int VK_QCOM_FILTER_CUBIC_CLAMP_SPEC_VERSION = 1; public static final String VK_QCOM_FILTER_CUBIC_CLAMP_EXTENSION_NAME = "VK_QCOM_filter_cubic_clamp"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM = 1000521000; public static final int VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM = 1000521000; - public VKQCOMFilterCubicClamp(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMFilterCubicClamp() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicWeights.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicWeights.java index e58a9947..f7ad4e76 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicWeights.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFilterCubicWeights.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMFilterCubicWeights { +public final class VKQCOMFilterCubicWeights { public static final int VK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM = 0; public static final int VK_CUBIC_FILTER_WEIGHTS_ZERO_TANGENT_CARDINAL_QCOM = 1; public static final int VK_CUBIC_FILTER_WEIGHTS_B_SPLINE_QCOM = 2; @@ -33,7 +33,6 @@ public class VKQCOMFilterCubicWeights { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUBIC_WEIGHTS_FEATURES_QCOM = 1000519001; public static final int VK_STRUCTURE_TYPE_BLIT_IMAGE_CUBIC_WEIGHTS_INFO_QCOM = 1000519002; - public VKQCOMFilterCubicWeights(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMFilterCubicWeights() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFragmentDensityMapOffset.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFragmentDensityMapOffset.java index ac3a6d33..76472083 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFragmentDensityMapOffset.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMFragmentDensityMapOffset.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMFragmentDensityMapOffset { +public final class VKQCOMFragmentDensityMapOffset { public static final int VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION = 2; public static final String VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_EXTENSION_NAME = "VK_QCOM_fragment_density_map_offset"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_QCOM = 1000425000; @@ -30,7 +30,6 @@ public class VKQCOMFragmentDensityMapOffset { public static final int VK_STRUCTURE_TYPE_SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOM = 1000425002; public static final int VK_IMAGE_CREATE_FRAGMENT_DENSITY_MAP_OFFSET_BIT_QCOM = 0x00008000; - public VKQCOMFragmentDensityMapOffset(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMFragmentDensityMapOffset() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing.java index 638dc334..b2f56f6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMImageProcessing { +public final class VKQCOMImageProcessing { public static final int VK_QCOM_IMAGE_PROCESSING_SPEC_VERSION = 1; public static final String VK_QCOM_IMAGE_PROCESSING_EXTENSION_NAME = "VK_QCOM_image_processing"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_PROCESSING_FEATURES_QCOM = 1000440000; @@ -38,7 +38,6 @@ public class VKQCOMImageProcessing { public static final long VK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM = 0x1000000000L; public static final long VK_FORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT_QCOM = 0x2000000000L; - public VKQCOMImageProcessing(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMImageProcessing() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing2.java index bdb31e20..01035ce6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMImageProcessing2.java @@ -22,7 +22,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMImageProcessing2 { +public final class VKQCOMImageProcessing2 { public static final int VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MIN_QCOM = 0; public static final int VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MAX_QCOM = 1; public static final int VK_QCOM_IMAGE_PROCESSING_2_SPEC_VERSION = 1; @@ -31,7 +31,6 @@ public class VKQCOMImageProcessing2 { public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_PROCESSING_2_PROPERTIES_QCOM = 1000518001; public static final int VK_STRUCTURE_TYPE_SAMPLER_BLOCK_MATCH_WINDOW_CREATE_INFO_QCOM = 1000518002; - public VKQCOMImageProcessing2(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMImageProcessing2() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewRenderAreas.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewRenderAreas.java index 98a5af51..52d5c3bf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewRenderAreas.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewRenderAreas.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMMultiviewPerViewRenderAreas { +public final class VKQCOMMultiviewPerViewRenderAreas { public static final int VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_SPEC_VERSION = 1; public static final String VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_EXTENSION_NAME = "VK_QCOM_multiview_per_view_render_areas"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_RENDER_AREAS_FEATURES_QCOM = 1000510000; public static final int VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM = 1000510001; - public VKQCOMMultiviewPerViewRenderAreas(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMMultiviewPerViewRenderAreas() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewViewports.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewViewports.java index 128d1e49..37c63f4a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewViewports.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMMultiviewPerViewViewports.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMMultiviewPerViewViewports { +public final class VKQCOMMultiviewPerViewViewports { public static final int VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_SPEC_VERSION = 1; public static final String VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_EXTENSION_NAME = "VK_QCOM_multiview_per_view_viewports"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_VIEWPORTS_FEATURES_QCOM = 1000488000; - public VKQCOMMultiviewPerViewViewports(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMMultiviewPerViewViewports() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassShaderResolve.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassShaderResolve.java index a4614603..2a1a9866 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassShaderResolve.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassShaderResolve.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMRenderPassShaderResolve { +public final class VKQCOMRenderPassShaderResolve { public static final int VK_QCOM_RENDER_PASS_SHADER_RESOLVE_SPEC_VERSION = 4; public static final String VK_QCOM_RENDER_PASS_SHADER_RESOLVE_EXTENSION_NAME = "VK_QCOM_render_pass_shader_resolve"; public static final int VK_SUBPASS_DESCRIPTION_FRAGMENT_REGION_BIT_QCOM = 0x00000004; public static final int VK_SUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM = 0x00000008; - public VKQCOMRenderPassShaderResolve(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMRenderPassShaderResolve() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassStoreOps.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassStoreOps.java index f9bbea9a..d73148b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassStoreOps.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassStoreOps.java @@ -23,12 +23,11 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.VK13.*; -public class VKQCOMRenderPassStoreOps { +public final class VKQCOMRenderPassStoreOps { public static final int VK_QCOM_RENDER_PASS_STORE_OPS_SPEC_VERSION = 2; public static final String VK_QCOM_RENDER_PASS_STORE_OPS_EXTENSION_NAME = "VK_QCOM_render_pass_store_ops"; public static final int VK_ATTACHMENT_STORE_OP_NONE_QCOM = VK_ATTACHMENT_STORE_OP_NONE; - public VKQCOMRenderPassStoreOps(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMRenderPassStoreOps() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassTransform.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassTransform.java index 2fdcd895..69cc5516 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassTransform.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRenderPassTransform.java @@ -22,14 +22,13 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMRenderPassTransform { +public final class VKQCOMRenderPassTransform { public static final int VK_QCOM_RENDER_PASS_TRANSFORM_SPEC_VERSION = 4; public static final String VK_QCOM_RENDER_PASS_TRANSFORM_EXTENSION_NAME = "VK_QCOM_render_pass_transform"; public static final int VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM = 1000282000; public static final int VK_STRUCTURE_TYPE_RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM = 1000282001; public static final int VK_RENDER_PASS_CREATE_TRANSFORM_BIT_QCOM = 0x00000002; - public VKQCOMRenderPassTransform(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMRenderPassTransform() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRotatedCopyCommands.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRotatedCopyCommands.java index 37c2a78b..314b94d3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRotatedCopyCommands.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMRotatedCopyCommands.java @@ -22,12 +22,11 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMRotatedCopyCommands { +public final class VKQCOMRotatedCopyCommands { public static final int VK_QCOM_ROTATED_COPY_COMMANDS_SPEC_VERSION = 2; public static final String VK_QCOM_ROTATED_COPY_COMMANDS_EXTENSION_NAME = "VK_QCOM_rotated_copy_commands"; public static final int VK_STRUCTURE_TYPE_COPY_COMMAND_TRANSFORM_INFO_QCOM = 1000333000; - public VKQCOMRotatedCopyCommands(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMRotatedCopyCommands() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMYcbcrDegamma.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMYcbcrDegamma.java index cfb1617f..21884e7d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMYcbcrDegamma.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/VKQCOMYcbcrDegamma.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKQCOMYcbcrDegamma { +public final class VKQCOMYcbcrDegamma { public static final int VK_QCOM_YCBCR_DEGAMMA_SPEC_VERSION = 1; public static final String VK_QCOM_YCBCR_DEGAMMA_EXTENSION_NAME = "VK_QCOM_ycbcr_degamma"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_DEGAMMA_FEATURES_QCOM = 1000520000; public static final int VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM = 1000520001; - public VKQCOMYcbcrDegamma(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKQCOMYcbcrDegamma() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkBlitImageCubicWeightsInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkBlitImageCubicWeightsInfoQCOM.java index cd11b691..32e7d051 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkBlitImageCubicWeightsInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkBlitImageCubicWeightsInfoQCOM.java @@ -89,6 +89,17 @@ public final class VkBlitImageCubicWeightsInfoQCOM extends Struct { /// @return the allocated `VkBlitImageCubicWeightsInfoQCOM` public static VkBlitImageCubicWeightsInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkBlitImageCubicWeightsInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBlitImageCubicWeightsInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBlitImageCubicWeightsInfoQCOM` + public VkBlitImageCubicWeightsInfoQCOM asSlice(long index) { return new VkBlitImageCubicWeightsInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBlitImageCubicWeightsInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBlitImageCubicWeightsInfoQCOM` + public VkBlitImageCubicWeightsInfoQCOM asSlice(long index, long count) { return new VkBlitImageCubicWeightsInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCommandBufferInheritanceRenderPassTransformInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCommandBufferInheritanceRenderPassTransformInfoQCOM.java index 36ac74eb..a3050baf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCommandBufferInheritanceRenderPassTransformInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCommandBufferInheritanceRenderPassTransformInfoQCOM.java @@ -97,6 +97,17 @@ public final class VkCommandBufferInheritanceRenderPassTransformInfoQCOM extends /// @return the allocated `VkCommandBufferInheritanceRenderPassTransformInfoQCOM` public static VkCommandBufferInheritanceRenderPassTransformInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferInheritanceRenderPassTransformInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferInheritanceRenderPassTransformInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferInheritanceRenderPassTransformInfoQCOM` + public VkCommandBufferInheritanceRenderPassTransformInfoQCOM asSlice(long index) { return new VkCommandBufferInheritanceRenderPassTransformInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferInheritanceRenderPassTransformInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferInheritanceRenderPassTransformInfoQCOM` + public VkCommandBufferInheritanceRenderPassTransformInfoQCOM asSlice(long index, long count) { return new VkCommandBufferInheritanceRenderPassTransformInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCopyCommandTransformInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCopyCommandTransformInfoQCOM.java index 9ddf76d5..725b35be 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCopyCommandTransformInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkCopyCommandTransformInfoQCOM.java @@ -89,6 +89,17 @@ public final class VkCopyCommandTransformInfoQCOM extends Struct { /// @return the allocated `VkCopyCommandTransformInfoQCOM` public static VkCopyCommandTransformInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkCopyCommandTransformInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyCommandTransformInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyCommandTransformInfoQCOM` + public VkCopyCommandTransformInfoQCOM asSlice(long index) { return new VkCopyCommandTransformInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyCommandTransformInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyCommandTransformInfoQCOM` + public VkCopyCommandTransformInfoQCOM asSlice(long index, long count) { return new VkCopyCommandTransformInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkImageViewSampleWeightCreateInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkImageViewSampleWeightCreateInfoQCOM.java index 858b51a9..a51c8704 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkImageViewSampleWeightCreateInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkImageViewSampleWeightCreateInfoQCOM.java @@ -105,6 +105,17 @@ public final class VkImageViewSampleWeightCreateInfoQCOM extends Struct { /// @return the allocated `VkImageViewSampleWeightCreateInfoQCOM` public static VkImageViewSampleWeightCreateInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkImageViewSampleWeightCreateInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewSampleWeightCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewSampleWeightCreateInfoQCOM` + public VkImageViewSampleWeightCreateInfoQCOM asSlice(long index) { return new VkImageViewSampleWeightCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewSampleWeightCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewSampleWeightCreateInfoQCOM` + public VkImageViewSampleWeightCreateInfoQCOM asSlice(long index, long count) { return new VkImageViewSampleWeightCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.java index 32edaca1..8649d8b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.java @@ -95,6 +95,17 @@ public final class VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM extends /// @return the allocated `VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM` public static VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM` + public VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM asSlice(long index) { return new VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM` + public VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM asSlice(long index, long count) { return new VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicClampFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicClampFeaturesQCOM.java index 775c10ae..f93c55bb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicClampFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicClampFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCubicClampFeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceCubicClampFeaturesQCOM` public static VkPhysicalDeviceCubicClampFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCubicClampFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCubicClampFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCubicClampFeaturesQCOM` + public VkPhysicalDeviceCubicClampFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceCubicClampFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCubicClampFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCubicClampFeaturesQCOM` + public VkPhysicalDeviceCubicClampFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceCubicClampFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicWeightsFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicWeightsFeaturesQCOM.java index ae5bafaa..64679c22 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicWeightsFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceCubicWeightsFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceCubicWeightsFeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceCubicWeightsFeaturesQCOM` public static VkPhysicalDeviceCubicWeightsFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceCubicWeightsFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceCubicWeightsFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceCubicWeightsFeaturesQCOM` + public VkPhysicalDeviceCubicWeightsFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceCubicWeightsFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceCubicWeightsFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceCubicWeightsFeaturesQCOM` + public VkPhysicalDeviceCubicWeightsFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceCubicWeightsFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM.java index f74691f9..162a4f4e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM extends /// @return the allocated `VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM` public static VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM` + public VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM` + public VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.java index 1c6028ef..f2dfddf6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM extend /// @return the allocated `VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM` public static VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM` + public VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM asSlice(long index) { return new VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM` + public VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2FeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2FeaturesQCOM.java index 239a0214..8e974f8b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2FeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2FeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageProcessing2FeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceImageProcessing2FeaturesQCOM` public static VkPhysicalDeviceImageProcessing2FeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageProcessing2FeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageProcessing2FeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageProcessing2FeaturesQCOM` + public VkPhysicalDeviceImageProcessing2FeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceImageProcessing2FeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageProcessing2FeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageProcessing2FeaturesQCOM` + public VkPhysicalDeviceImageProcessing2FeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceImageProcessing2FeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2PropertiesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2PropertiesQCOM.java index e3f7bc04..7f133a50 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2PropertiesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessing2PropertiesQCOM.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceImageProcessing2PropertiesQCOM extends Struct /// @return the allocated `VkPhysicalDeviceImageProcessing2PropertiesQCOM` public static VkPhysicalDeviceImageProcessing2PropertiesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageProcessing2PropertiesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageProcessing2PropertiesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageProcessing2PropertiesQCOM` + public VkPhysicalDeviceImageProcessing2PropertiesQCOM asSlice(long index) { return new VkPhysicalDeviceImageProcessing2PropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageProcessing2PropertiesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageProcessing2PropertiesQCOM` + public VkPhysicalDeviceImageProcessing2PropertiesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceImageProcessing2PropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingFeaturesQCOM.java index e3493a43..bed32bb9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingFeaturesQCOM.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceImageProcessingFeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceImageProcessingFeaturesQCOM` public static VkPhysicalDeviceImageProcessingFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageProcessingFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageProcessingFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageProcessingFeaturesQCOM` + public VkPhysicalDeviceImageProcessingFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceImageProcessingFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageProcessingFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageProcessingFeaturesQCOM` + public VkPhysicalDeviceImageProcessingFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceImageProcessingFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingPropertiesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingPropertiesQCOM.java index 445adc92..5f492428 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingPropertiesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceImageProcessingPropertiesQCOM.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceImageProcessingPropertiesQCOM extends Struct /// @return the allocated `VkPhysicalDeviceImageProcessingPropertiesQCOM` public static VkPhysicalDeviceImageProcessingPropertiesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageProcessingPropertiesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageProcessingPropertiesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageProcessingPropertiesQCOM` + public VkPhysicalDeviceImageProcessingPropertiesQCOM asSlice(long index) { return new VkPhysicalDeviceImageProcessingPropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageProcessingPropertiesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageProcessingPropertiesQCOM` + public VkPhysicalDeviceImageProcessingPropertiesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceImageProcessingPropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.java index eabe9274..a7da4c36 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM exten /// @return the allocated `VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM` public static VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM` + public VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM` + public VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM.java index 82cd5515..543a0d5f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM extends /// @return the allocated `VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM` public static VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM` + public VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM` + public VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceTilePropertiesFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceTilePropertiesFeaturesQCOM.java index cda48505..73446f6e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceTilePropertiesFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceTilePropertiesFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceTilePropertiesFeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceTilePropertiesFeaturesQCOM` public static VkPhysicalDeviceTilePropertiesFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTilePropertiesFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTilePropertiesFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTilePropertiesFeaturesQCOM` + public VkPhysicalDeviceTilePropertiesFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceTilePropertiesFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTilePropertiesFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTilePropertiesFeaturesQCOM` + public VkPhysicalDeviceTilePropertiesFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceTilePropertiesFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceYcbcrDegammaFeaturesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceYcbcrDegammaFeaturesQCOM.java index d1e08904..c0faa31a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceYcbcrDegammaFeaturesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkPhysicalDeviceYcbcrDegammaFeaturesQCOM.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceYcbcrDegammaFeaturesQCOM extends Struct { /// @return the allocated `VkPhysicalDeviceYcbcrDegammaFeaturesQCOM` public static VkPhysicalDeviceYcbcrDegammaFeaturesQCOM alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceYcbcrDegammaFeaturesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceYcbcrDegammaFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceYcbcrDegammaFeaturesQCOM` + public VkPhysicalDeviceYcbcrDegammaFeaturesQCOM asSlice(long index) { return new VkPhysicalDeviceYcbcrDegammaFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceYcbcrDegammaFeaturesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceYcbcrDegammaFeaturesQCOM` + public VkPhysicalDeviceYcbcrDegammaFeaturesQCOM asSlice(long index, long count) { return new VkPhysicalDeviceYcbcrDegammaFeaturesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkRenderPassTransformBeginInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkRenderPassTransformBeginInfoQCOM.java index 891f01c8..21d6c46e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkRenderPassTransformBeginInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkRenderPassTransformBeginInfoQCOM.java @@ -89,6 +89,17 @@ public final class VkRenderPassTransformBeginInfoQCOM extends Struct { /// @return the allocated `VkRenderPassTransformBeginInfoQCOM` public static VkRenderPassTransformBeginInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkRenderPassTransformBeginInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassTransformBeginInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassTransformBeginInfoQCOM` + public VkRenderPassTransformBeginInfoQCOM asSlice(long index) { return new VkRenderPassTransformBeginInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassTransformBeginInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassTransformBeginInfoQCOM` + public VkRenderPassTransformBeginInfoQCOM asSlice(long index, long count) { return new VkRenderPassTransformBeginInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerBlockMatchWindowCreateInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerBlockMatchWindowCreateInfoQCOM.java index 50ea4c1f..0a679b29 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerBlockMatchWindowCreateInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerBlockMatchWindowCreateInfoQCOM.java @@ -97,6 +97,17 @@ public final class VkSamplerBlockMatchWindowCreateInfoQCOM extends Struct { /// @return the allocated `VkSamplerBlockMatchWindowCreateInfoQCOM` public static VkSamplerBlockMatchWindowCreateInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkSamplerBlockMatchWindowCreateInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerBlockMatchWindowCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerBlockMatchWindowCreateInfoQCOM` + public VkSamplerBlockMatchWindowCreateInfoQCOM asSlice(long index) { return new VkSamplerBlockMatchWindowCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerBlockMatchWindowCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerBlockMatchWindowCreateInfoQCOM` + public VkSamplerBlockMatchWindowCreateInfoQCOM asSlice(long index, long count) { return new VkSamplerBlockMatchWindowCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerCubicWeightsCreateInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerCubicWeightsCreateInfoQCOM.java index d6ac4f12..94d1ab29 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerCubicWeightsCreateInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerCubicWeightsCreateInfoQCOM.java @@ -89,6 +89,17 @@ public final class VkSamplerCubicWeightsCreateInfoQCOM extends Struct { /// @return the allocated `VkSamplerCubicWeightsCreateInfoQCOM` public static VkSamplerCubicWeightsCreateInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkSamplerCubicWeightsCreateInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerCubicWeightsCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerCubicWeightsCreateInfoQCOM` + public VkSamplerCubicWeightsCreateInfoQCOM asSlice(long index) { return new VkSamplerCubicWeightsCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerCubicWeightsCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerCubicWeightsCreateInfoQCOM` + public VkSamplerCubicWeightsCreateInfoQCOM asSlice(long index, long count) { return new VkSamplerCubicWeightsCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM.java index 41e6191c..b4fcfe77 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM.java @@ -95,6 +95,17 @@ public final class VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM extends St /// @return the allocated `VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM` public static VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM` + public VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM asSlice(long index) { return new VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM` + public VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM asSlice(long index, long count) { return new VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSubpassFragmentDensityMapOffsetEndInfoQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSubpassFragmentDensityMapOffsetEndInfoQCOM.java index 7880745d..ac07a35e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSubpassFragmentDensityMapOffsetEndInfoQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkSubpassFragmentDensityMapOffsetEndInfoQCOM.java @@ -95,6 +95,17 @@ public final class VkSubpassFragmentDensityMapOffsetEndInfoQCOM extends Struct { /// @return the allocated `VkSubpassFragmentDensityMapOffsetEndInfoQCOM` public static VkSubpassFragmentDensityMapOffsetEndInfoQCOM alloc(SegmentAllocator allocator, long count) { return new VkSubpassFragmentDensityMapOffsetEndInfoQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassFragmentDensityMapOffsetEndInfoQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassFragmentDensityMapOffsetEndInfoQCOM` + public VkSubpassFragmentDensityMapOffsetEndInfoQCOM asSlice(long index) { return new VkSubpassFragmentDensityMapOffsetEndInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassFragmentDensityMapOffsetEndInfoQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassFragmentDensityMapOffsetEndInfoQCOM` + public VkSubpassFragmentDensityMapOffsetEndInfoQCOM asSlice(long index, long count) { return new VkSubpassFragmentDensityMapOffsetEndInfoQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkTilePropertiesQCOM.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkTilePropertiesQCOM.java index 8cca8d0f..d51d05ba 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkTilePropertiesQCOM.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qcom/struct/VkTilePropertiesQCOM.java @@ -107,6 +107,17 @@ public final class VkTilePropertiesQCOM extends Struct { /// @return the allocated `VkTilePropertiesQCOM` public static VkTilePropertiesQCOM alloc(SegmentAllocator allocator, long count) { return new VkTilePropertiesQCOM(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTilePropertiesQCOM`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTilePropertiesQCOM` + public VkTilePropertiesQCOM asSlice(long index) { return new VkTilePropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTilePropertiesQCOM`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTilePropertiesQCOM` + public VkTilePropertiesQCOM asSlice(long index, long count) { return new VkTilePropertiesQCOM(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkExternalFormatQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkExternalFormatQNX.java index 7093e3e1..547a1987 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkExternalFormatQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkExternalFormatQNX.java @@ -89,6 +89,17 @@ public final class VkExternalFormatQNX extends Struct { /// @return the allocated `VkExternalFormatQNX` public static VkExternalFormatQNX alloc(SegmentAllocator allocator, long count) { return new VkExternalFormatQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalFormatQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalFormatQNX` + public VkExternalFormatQNX asSlice(long index) { return new VkExternalFormatQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalFormatQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalFormatQNX` + public VkExternalFormatQNX asSlice(long index, long count) { return new VkExternalFormatQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkImportScreenBufferInfoQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkImportScreenBufferInfoQNX.java index b8310506..e23ac928 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkImportScreenBufferInfoQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkImportScreenBufferInfoQNX.java @@ -89,6 +89,17 @@ public final class VkImportScreenBufferInfoQNX extends Struct { /// @return the allocated `VkImportScreenBufferInfoQNX` public static VkImportScreenBufferInfoQNX alloc(SegmentAllocator allocator, long count) { return new VkImportScreenBufferInfoQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImportScreenBufferInfoQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImportScreenBufferInfoQNX` + public VkImportScreenBufferInfoQNX asSlice(long index) { return new VkImportScreenBufferInfoQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImportScreenBufferInfoQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImportScreenBufferInfoQNX` + public VkImportScreenBufferInfoQNX asSlice(long index, long count) { return new VkImportScreenBufferInfoQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX.java index 7ea4acd7..aba593e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX extends /// @return the allocated `VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX` public static VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX` + public VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX asSlice(long index) { return new VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX` + public VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX asSlice(long index, long count) { return new VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferFormatPropertiesQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferFormatPropertiesQNX.java index 5866243e..5d310bbb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferFormatPropertiesQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferFormatPropertiesQNX.java @@ -139,6 +139,17 @@ public final class VkScreenBufferFormatPropertiesQNX extends Struct { /// @return the allocated `VkScreenBufferFormatPropertiesQNX` public static VkScreenBufferFormatPropertiesQNX alloc(SegmentAllocator allocator, long count) { return new VkScreenBufferFormatPropertiesQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkScreenBufferFormatPropertiesQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkScreenBufferFormatPropertiesQNX` + public VkScreenBufferFormatPropertiesQNX asSlice(long index) { return new VkScreenBufferFormatPropertiesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkScreenBufferFormatPropertiesQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkScreenBufferFormatPropertiesQNX` + public VkScreenBufferFormatPropertiesQNX asSlice(long index, long count) { return new VkScreenBufferFormatPropertiesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferPropertiesQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferPropertiesQNX.java index b15b61f2..4befb23e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferPropertiesQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenBufferPropertiesQNX.java @@ -95,6 +95,17 @@ public final class VkScreenBufferPropertiesQNX extends Struct { /// @return the allocated `VkScreenBufferPropertiesQNX` public static VkScreenBufferPropertiesQNX alloc(SegmentAllocator allocator, long count) { return new VkScreenBufferPropertiesQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkScreenBufferPropertiesQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkScreenBufferPropertiesQNX` + public VkScreenBufferPropertiesQNX asSlice(long index) { return new VkScreenBufferPropertiesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkScreenBufferPropertiesQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkScreenBufferPropertiesQNX` + public VkScreenBufferPropertiesQNX asSlice(long index, long count) { return new VkScreenBufferPropertiesQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenSurfaceCreateInfoQNX.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenSurfaceCreateInfoQNX.java index 5993fa3b..14bbb99b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenSurfaceCreateInfoQNX.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/qnx/struct/VkScreenSurfaceCreateInfoQNX.java @@ -101,6 +101,17 @@ public final class VkScreenSurfaceCreateInfoQNX extends Struct { /// @return the allocated `VkScreenSurfaceCreateInfoQNX` public static VkScreenSurfaceCreateInfoQNX alloc(SegmentAllocator allocator, long count) { return new VkScreenSurfaceCreateInfoQNX(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkScreenSurfaceCreateInfoQNX`. + /// @param index the index of the struct buffer + /// @return the slice of `VkScreenSurfaceCreateInfoQNX` + public VkScreenSurfaceCreateInfoQNX asSlice(long index) { return new VkScreenSurfaceCreateInfoQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkScreenSurfaceCreateInfoQNX`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkScreenSurfaceCreateInfoQNX` + public VkScreenSurfaceCreateInfoQNX asSlice(long index, long count) { return new VkScreenSurfaceCreateInfoQNX(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/VKSECAmigoProfiling.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/VKSECAmigoProfiling.java index ebb6199e..3210c361 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/VKSECAmigoProfiling.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/VKSECAmigoProfiling.java @@ -22,13 +22,12 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.*; import overrungl.vulkan.*; -public class VKSECAmigoProfiling { +public final class VKSECAmigoProfiling { public static final int VK_SEC_AMIGO_PROFILING_SPEC_VERSION = 1; public static final String VK_SEC_AMIGO_PROFILING_EXTENSION_NAME = "VK_SEC_amigo_profiling"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_AMIGO_PROFILING_FEATURES_SEC = 1000485000; public static final int VK_STRUCTURE_TYPE_AMIGO_PROFILING_SUBMIT_INFO_SEC = 1000485001; - public VKSECAmigoProfiling(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKSECAmigoProfiling() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkAmigoProfilingSubmitInfoSEC.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkAmigoProfilingSubmitInfoSEC.java index 3bd9ace9..664ef85a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkAmigoProfilingSubmitInfoSEC.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkAmigoProfilingSubmitInfoSEC.java @@ -95,6 +95,17 @@ public final class VkAmigoProfilingSubmitInfoSEC extends Struct { /// @return the allocated `VkAmigoProfilingSubmitInfoSEC` public static VkAmigoProfilingSubmitInfoSEC alloc(SegmentAllocator allocator, long count) { return new VkAmigoProfilingSubmitInfoSEC(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAmigoProfilingSubmitInfoSEC`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAmigoProfilingSubmitInfoSEC` + public VkAmigoProfilingSubmitInfoSEC asSlice(long index) { return new VkAmigoProfilingSubmitInfoSEC(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAmigoProfilingSubmitInfoSEC`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAmigoProfilingSubmitInfoSEC` + public VkAmigoProfilingSubmitInfoSEC asSlice(long index, long count) { return new VkAmigoProfilingSubmitInfoSEC(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkPhysicalDeviceAmigoProfilingFeaturesSEC.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkPhysicalDeviceAmigoProfilingFeaturesSEC.java index 10b0e298..b0ee2ab0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkPhysicalDeviceAmigoProfilingFeaturesSEC.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/sec/struct/VkPhysicalDeviceAmigoProfilingFeaturesSEC.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceAmigoProfilingFeaturesSEC extends Struct { /// @return the allocated `VkPhysicalDeviceAmigoProfilingFeaturesSEC` public static VkPhysicalDeviceAmigoProfilingFeaturesSEC alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceAmigoProfilingFeaturesSEC(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceAmigoProfilingFeaturesSEC`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceAmigoProfilingFeaturesSEC` + public VkPhysicalDeviceAmigoProfilingFeaturesSEC asSlice(long index) { return new VkPhysicalDeviceAmigoProfilingFeaturesSEC(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceAmigoProfilingFeaturesSEC`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceAmigoProfilingFeaturesSEC` + public VkPhysicalDeviceAmigoProfilingFeaturesSEC asSlice(long index, long count) { return new VkPhysicalDeviceAmigoProfilingFeaturesSEC(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAllocationCallbacks.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAllocationCallbacks.java index e2f2ab9a..4880c8c4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAllocationCallbacks.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAllocationCallbacks.java @@ -107,6 +107,17 @@ public final class VkAllocationCallbacks extends Struct { /// @return the allocated `VkAllocationCallbacks` public static VkAllocationCallbacks alloc(SegmentAllocator allocator, long count) { return new VkAllocationCallbacks(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAllocationCallbacks`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAllocationCallbacks` + public VkAllocationCallbacks asSlice(long index) { return new VkAllocationCallbacks(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAllocationCallbacks`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAllocationCallbacks` + public VkAllocationCallbacks asSlice(long index, long count) { return new VkAllocationCallbacks(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pUserData` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkApplicationInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkApplicationInfo.java index 16461e9a..f4d36c26 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkApplicationInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkApplicationInfo.java @@ -113,6 +113,17 @@ public final class VkApplicationInfo extends Struct { /// @return the allocated `VkApplicationInfo` public static VkApplicationInfo alloc(SegmentAllocator allocator, long count) { return new VkApplicationInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkApplicationInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkApplicationInfo` + public VkApplicationInfo asSlice(long index) { return new VkApplicationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkApplicationInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkApplicationInfo` + public VkApplicationInfo asSlice(long index, long count) { return new VkApplicationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription.java index d9e278b9..e9b2c197 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription.java @@ -125,6 +125,17 @@ public final class VkAttachmentDescription extends Struct { /// @return the allocated `VkAttachmentDescription` public static VkAttachmentDescription alloc(SegmentAllocator allocator, long count) { return new VkAttachmentDescription(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentDescription`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentDescription` + public VkAttachmentDescription asSlice(long index) { return new VkAttachmentDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentDescription`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentDescription` + public VkAttachmentDescription asSlice(long index, long count) { return new VkAttachmentDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription2.java index 03f9f8d0..2a089a74 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescription2.java @@ -137,6 +137,17 @@ public final class VkAttachmentDescription2 extends Struct { /// @return the allocated `VkAttachmentDescription2` public static VkAttachmentDescription2 alloc(SegmentAllocator allocator, long count) { return new VkAttachmentDescription2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentDescription2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentDescription2` + public VkAttachmentDescription2 asSlice(long index) { return new VkAttachmentDescription2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentDescription2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentDescription2` + public VkAttachmentDescription2 asSlice(long index, long count) { return new VkAttachmentDescription2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescriptionStencilLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescriptionStencilLayout.java index 5a4ed7ec..b0c3944b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescriptionStencilLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentDescriptionStencilLayout.java @@ -95,6 +95,17 @@ public final class VkAttachmentDescriptionStencilLayout extends Struct { /// @return the allocated `VkAttachmentDescriptionStencilLayout` public static VkAttachmentDescriptionStencilLayout alloc(SegmentAllocator allocator, long count) { return new VkAttachmentDescriptionStencilLayout(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentDescriptionStencilLayout`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentDescriptionStencilLayout` + public VkAttachmentDescriptionStencilLayout asSlice(long index) { return new VkAttachmentDescriptionStencilLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentDescriptionStencilLayout`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentDescriptionStencilLayout` + public VkAttachmentDescriptionStencilLayout asSlice(long index, long count) { return new VkAttachmentDescriptionStencilLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference.java index b704d3f7..5ba3f081 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference.java @@ -83,6 +83,17 @@ public final class VkAttachmentReference extends Struct { /// @return the allocated `VkAttachmentReference` public static VkAttachmentReference alloc(SegmentAllocator allocator, long count) { return new VkAttachmentReference(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentReference`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentReference` + public VkAttachmentReference asSlice(long index) { return new VkAttachmentReference(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentReference`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentReference` + public VkAttachmentReference asSlice(long index, long count) { return new VkAttachmentReference(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `attachment` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference2.java index 3083f11c..059e7c74 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReference2.java @@ -101,6 +101,17 @@ public final class VkAttachmentReference2 extends Struct { /// @return the allocated `VkAttachmentReference2` public static VkAttachmentReference2 alloc(SegmentAllocator allocator, long count) { return new VkAttachmentReference2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentReference2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentReference2` + public VkAttachmentReference2 asSlice(long index) { return new VkAttachmentReference2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentReference2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentReference2` + public VkAttachmentReference2 asSlice(long index, long count) { return new VkAttachmentReference2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReferenceStencilLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReferenceStencilLayout.java index 5da68c13..9fa8dbee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReferenceStencilLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkAttachmentReferenceStencilLayout.java @@ -89,6 +89,17 @@ public final class VkAttachmentReferenceStencilLayout extends Struct { /// @return the allocated `VkAttachmentReferenceStencilLayout` public static VkAttachmentReferenceStencilLayout alloc(SegmentAllocator allocator, long count) { return new VkAttachmentReferenceStencilLayout(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkAttachmentReferenceStencilLayout`. + /// @param index the index of the struct buffer + /// @return the slice of `VkAttachmentReferenceStencilLayout` + public VkAttachmentReferenceStencilLayout asSlice(long index) { return new VkAttachmentReferenceStencilLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkAttachmentReferenceStencilLayout`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkAttachmentReferenceStencilLayout` + public VkAttachmentReferenceStencilLayout asSlice(long index, long count) { return new VkAttachmentReferenceStencilLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseInStructure.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseInStructure.java index c5e506e4..10109b62 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseInStructure.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseInStructure.java @@ -83,6 +83,17 @@ public final class VkBaseInStructure extends Struct { /// @return the allocated `VkBaseInStructure` public static VkBaseInStructure alloc(SegmentAllocator allocator, long count) { return new VkBaseInStructure(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBaseInStructure`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBaseInStructure` + public VkBaseInStructure asSlice(long index) { return new VkBaseInStructure(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBaseInStructure`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBaseInStructure` + public VkBaseInStructure asSlice(long index, long count) { return new VkBaseInStructure(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseOutStructure.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseOutStructure.java index 98bbd95e..70e33d15 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseOutStructure.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBaseOutStructure.java @@ -83,6 +83,17 @@ public final class VkBaseOutStructure extends Struct { /// @return the allocated `VkBaseOutStructure` public static VkBaseOutStructure alloc(SegmentAllocator allocator, long count) { return new VkBaseOutStructure(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBaseOutStructure`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBaseOutStructure` + public VkBaseOutStructure asSlice(long index) { return new VkBaseOutStructure(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBaseOutStructure`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBaseOutStructure` + public VkBaseOutStructure asSlice(long index, long count) { return new VkBaseOutStructure(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryDeviceGroupInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryDeviceGroupInfo.java index 37fcab8e..b15d7a0a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryDeviceGroupInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryDeviceGroupInfo.java @@ -95,6 +95,17 @@ public final class VkBindBufferMemoryDeviceGroupInfo extends Struct { /// @return the allocated `VkBindBufferMemoryDeviceGroupInfo` public static VkBindBufferMemoryDeviceGroupInfo alloc(SegmentAllocator allocator, long count) { return new VkBindBufferMemoryDeviceGroupInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindBufferMemoryDeviceGroupInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindBufferMemoryDeviceGroupInfo` + public VkBindBufferMemoryDeviceGroupInfo asSlice(long index) { return new VkBindBufferMemoryDeviceGroupInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindBufferMemoryDeviceGroupInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindBufferMemoryDeviceGroupInfo` + public VkBindBufferMemoryDeviceGroupInfo asSlice(long index, long count) { return new VkBindBufferMemoryDeviceGroupInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryInfo.java index e8aeb497..aa7d282b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindBufferMemoryInfo.java @@ -101,6 +101,17 @@ public final class VkBindBufferMemoryInfo extends Struct { /// @return the allocated `VkBindBufferMemoryInfo` public static VkBindBufferMemoryInfo alloc(SegmentAllocator allocator, long count) { return new VkBindBufferMemoryInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindBufferMemoryInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindBufferMemoryInfo` + public VkBindBufferMemoryInfo asSlice(long index) { return new VkBindBufferMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindBufferMemoryInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindBufferMemoryInfo` + public VkBindBufferMemoryInfo asSlice(long index, long count) { return new VkBindBufferMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindDescriptorSetsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindDescriptorSetsInfo.java index eb80ab38..5293dd35 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindDescriptorSetsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindDescriptorSetsInfo.java @@ -125,6 +125,17 @@ public final class VkBindDescriptorSetsInfo extends Struct { /// @return the allocated `VkBindDescriptorSetsInfo` public static VkBindDescriptorSetsInfo alloc(SegmentAllocator allocator, long count) { return new VkBindDescriptorSetsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindDescriptorSetsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindDescriptorSetsInfo` + public VkBindDescriptorSetsInfo asSlice(long index) { return new VkBindDescriptorSetsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindDescriptorSetsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindDescriptorSetsInfo` + public VkBindDescriptorSetsInfo asSlice(long index, long count) { return new VkBindDescriptorSetsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryDeviceGroupInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryDeviceGroupInfo.java index 9fbe9e02..557043c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryDeviceGroupInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryDeviceGroupInfo.java @@ -107,6 +107,17 @@ public final class VkBindImageMemoryDeviceGroupInfo extends Struct { /// @return the allocated `VkBindImageMemoryDeviceGroupInfo` public static VkBindImageMemoryDeviceGroupInfo alloc(SegmentAllocator allocator, long count) { return new VkBindImageMemoryDeviceGroupInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindImageMemoryDeviceGroupInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindImageMemoryDeviceGroupInfo` + public VkBindImageMemoryDeviceGroupInfo asSlice(long index) { return new VkBindImageMemoryDeviceGroupInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindImageMemoryDeviceGroupInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindImageMemoryDeviceGroupInfo` + public VkBindImageMemoryDeviceGroupInfo asSlice(long index, long count) { return new VkBindImageMemoryDeviceGroupInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryInfo.java index 0726e175..8650b5e5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImageMemoryInfo.java @@ -101,6 +101,17 @@ public final class VkBindImageMemoryInfo extends Struct { /// @return the allocated `VkBindImageMemoryInfo` public static VkBindImageMemoryInfo alloc(SegmentAllocator allocator, long count) { return new VkBindImageMemoryInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindImageMemoryInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindImageMemoryInfo` + public VkBindImageMemoryInfo asSlice(long index) { return new VkBindImageMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindImageMemoryInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindImageMemoryInfo` + public VkBindImageMemoryInfo asSlice(long index, long count) { return new VkBindImageMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImagePlaneMemoryInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImagePlaneMemoryInfo.java index a686a2f9..b594583e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImagePlaneMemoryInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindImagePlaneMemoryInfo.java @@ -89,6 +89,17 @@ public final class VkBindImagePlaneMemoryInfo extends Struct { /// @return the allocated `VkBindImagePlaneMemoryInfo` public static VkBindImagePlaneMemoryInfo alloc(SegmentAllocator allocator, long count) { return new VkBindImagePlaneMemoryInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindImagePlaneMemoryInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindImagePlaneMemoryInfo` + public VkBindImagePlaneMemoryInfo asSlice(long index) { return new VkBindImagePlaneMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindImagePlaneMemoryInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindImagePlaneMemoryInfo` + public VkBindImagePlaneMemoryInfo asSlice(long index, long count) { return new VkBindImagePlaneMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindMemoryStatus.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindMemoryStatus.java index 88704719..3444c718 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindMemoryStatus.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindMemoryStatus.java @@ -89,6 +89,17 @@ public final class VkBindMemoryStatus extends Struct { /// @return the allocated `VkBindMemoryStatus` public static VkBindMemoryStatus alloc(SegmentAllocator allocator, long count) { return new VkBindMemoryStatus(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindMemoryStatus`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindMemoryStatus` + public VkBindMemoryStatus asSlice(long index) { return new VkBindMemoryStatus(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindMemoryStatus`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindMemoryStatus` + public VkBindMemoryStatus asSlice(long index, long count) { return new VkBindMemoryStatus(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindSparseInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindSparseInfo.java index 226ebadf..f2d69bb8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindSparseInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBindSparseInfo.java @@ -143,6 +143,17 @@ public final class VkBindSparseInfo extends Struct { /// @return the allocated `VkBindSparseInfo` public static VkBindSparseInfo alloc(SegmentAllocator allocator, long count) { return new VkBindSparseInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBindSparseInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBindSparseInfo` + public VkBindSparseInfo asSlice(long index) { return new VkBindSparseInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBindSparseInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBindSparseInfo` + public VkBindSparseInfo asSlice(long index, long count) { return new VkBindSparseInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBlitImageInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBlitImageInfo2.java index 2e605c5c..2f562b9a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBlitImageInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBlitImageInfo2.java @@ -125,6 +125,17 @@ public final class VkBlitImageInfo2 extends Struct { /// @return the allocated `VkBlitImageInfo2` public static VkBlitImageInfo2 alloc(SegmentAllocator allocator, long count) { return new VkBlitImageInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBlitImageInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBlitImageInfo2` + public VkBlitImageInfo2 asSlice(long index) { return new VkBlitImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBlitImageInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBlitImageInfo2` + public VkBlitImageInfo2 asSlice(long index, long count) { return new VkBlitImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy.java index d7a0c302..bfd756af 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy.java @@ -89,6 +89,17 @@ public final class VkBufferCopy extends Struct { /// @return the allocated `VkBufferCopy` public static VkBufferCopy alloc(SegmentAllocator allocator, long count) { return new VkBufferCopy(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCopy`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCopy` + public VkBufferCopy asSlice(long index) { return new VkBufferCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCopy`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCopy` + public VkBufferCopy asSlice(long index, long count) { return new VkBufferCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcOffset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy2.java index a40ede7b..965dfcf1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCopy2.java @@ -101,6 +101,17 @@ public final class VkBufferCopy2 extends Struct { /// @return the allocated `VkBufferCopy2` public static VkBufferCopy2 alloc(SegmentAllocator allocator, long count) { return new VkBufferCopy2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCopy2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCopy2` + public VkBufferCopy2 asSlice(long index) { return new VkBufferCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCopy2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCopy2` + public VkBufferCopy2 asSlice(long index, long count) { return new VkBufferCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCreateInfo.java index ec95fd2c..b3974365 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferCreateInfo.java @@ -119,6 +119,17 @@ public final class VkBufferCreateInfo extends Struct { /// @return the allocated `VkBufferCreateInfo` public static VkBufferCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkBufferCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferCreateInfo` + public VkBufferCreateInfo asSlice(long index) { return new VkBufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferCreateInfo` + public VkBufferCreateInfo asSlice(long index, long count) { return new VkBufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferDeviceAddressInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferDeviceAddressInfo.java index d300b32d..e6a8c7d3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferDeviceAddressInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferDeviceAddressInfo.java @@ -89,6 +89,17 @@ public final class VkBufferDeviceAddressInfo extends Struct { /// @return the allocated `VkBufferDeviceAddressInfo` public static VkBufferDeviceAddressInfo alloc(SegmentAllocator allocator, long count) { return new VkBufferDeviceAddressInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferDeviceAddressInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferDeviceAddressInfo` + public VkBufferDeviceAddressInfo asSlice(long index) { return new VkBufferDeviceAddressInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferDeviceAddressInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferDeviceAddressInfo` + public VkBufferDeviceAddressInfo asSlice(long index, long count) { return new VkBufferDeviceAddressInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy.java index 7efb6c0d..c17de83e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy.java @@ -113,6 +113,17 @@ public final class VkBufferImageCopy extends Struct { /// @return the allocated `VkBufferImageCopy` public static VkBufferImageCopy alloc(SegmentAllocator allocator, long count) { return new VkBufferImageCopy(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferImageCopy`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferImageCopy` + public VkBufferImageCopy asSlice(long index) { return new VkBufferImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferImageCopy`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferImageCopy` + public VkBufferImageCopy asSlice(long index, long count) { return new VkBufferImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bufferOffset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy2.java index 28e2e0c1..38aefc20 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferImageCopy2.java @@ -125,6 +125,17 @@ public final class VkBufferImageCopy2 extends Struct { /// @return the allocated `VkBufferImageCopy2` public static VkBufferImageCopy2 alloc(SegmentAllocator allocator, long count) { return new VkBufferImageCopy2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferImageCopy2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferImageCopy2` + public VkBufferImageCopy2 asSlice(long index) { return new VkBufferImageCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferImageCopy2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferImageCopy2` + public VkBufferImageCopy2 asSlice(long index, long count) { return new VkBufferImageCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier.java index 7afc78b1..d1799c71 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier.java @@ -125,6 +125,17 @@ public final class VkBufferMemoryBarrier extends Struct { /// @return the allocated `VkBufferMemoryBarrier` public static VkBufferMemoryBarrier alloc(SegmentAllocator allocator, long count) { return new VkBufferMemoryBarrier(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferMemoryBarrier`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferMemoryBarrier` + public VkBufferMemoryBarrier asSlice(long index) { return new VkBufferMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferMemoryBarrier`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferMemoryBarrier` + public VkBufferMemoryBarrier asSlice(long index, long count) { return new VkBufferMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier2.java index 19846f97..5eb1f5e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryBarrier2.java @@ -137,6 +137,17 @@ public final class VkBufferMemoryBarrier2 extends Struct { /// @return the allocated `VkBufferMemoryBarrier2` public static VkBufferMemoryBarrier2 alloc(SegmentAllocator allocator, long count) { return new VkBufferMemoryBarrier2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferMemoryBarrier2` + public VkBufferMemoryBarrier2 asSlice(long index) { return new VkBufferMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferMemoryBarrier2` + public VkBufferMemoryBarrier2 asSlice(long index, long count) { return new VkBufferMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryRequirementsInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryRequirementsInfo2.java index e2c8f916..dc89e6a2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryRequirementsInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferMemoryRequirementsInfo2.java @@ -89,6 +89,17 @@ public final class VkBufferMemoryRequirementsInfo2 extends Struct { /// @return the allocated `VkBufferMemoryRequirementsInfo2` public static VkBufferMemoryRequirementsInfo2 alloc(SegmentAllocator allocator, long count) { return new VkBufferMemoryRequirementsInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferMemoryRequirementsInfo2` + public VkBufferMemoryRequirementsInfo2 asSlice(long index) { return new VkBufferMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferMemoryRequirementsInfo2` + public VkBufferMemoryRequirementsInfo2 asSlice(long index, long count) { return new VkBufferMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferOpaqueCaptureAddressCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferOpaqueCaptureAddressCreateInfo.java index f44f2293..f4d9c52e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferOpaqueCaptureAddressCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferOpaqueCaptureAddressCreateInfo.java @@ -89,6 +89,17 @@ public final class VkBufferOpaqueCaptureAddressCreateInfo extends Struct { /// @return the allocated `VkBufferOpaqueCaptureAddressCreateInfo` public static VkBufferOpaqueCaptureAddressCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkBufferOpaqueCaptureAddressCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferOpaqueCaptureAddressCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferOpaqueCaptureAddressCreateInfo` + public VkBufferOpaqueCaptureAddressCreateInfo asSlice(long index) { return new VkBufferOpaqueCaptureAddressCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferOpaqueCaptureAddressCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferOpaqueCaptureAddressCreateInfo` + public VkBufferOpaqueCaptureAddressCreateInfo asSlice(long index, long count) { return new VkBufferOpaqueCaptureAddressCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferUsageFlags2CreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferUsageFlags2CreateInfo.java index 188b3fa9..5b754611 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferUsageFlags2CreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferUsageFlags2CreateInfo.java @@ -89,6 +89,17 @@ public final class VkBufferUsageFlags2CreateInfo extends Struct { /// @return the allocated `VkBufferUsageFlags2CreateInfo` public static VkBufferUsageFlags2CreateInfo alloc(SegmentAllocator allocator, long count) { return new VkBufferUsageFlags2CreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferUsageFlags2CreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferUsageFlags2CreateInfo` + public VkBufferUsageFlags2CreateInfo asSlice(long index) { return new VkBufferUsageFlags2CreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferUsageFlags2CreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferUsageFlags2CreateInfo` + public VkBufferUsageFlags2CreateInfo asSlice(long index, long count) { return new VkBufferUsageFlags2CreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferViewCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferViewCreateInfo.java index 5b93efe1..0ef3c955 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferViewCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkBufferViewCreateInfo.java @@ -113,6 +113,17 @@ public final class VkBufferViewCreateInfo extends Struct { /// @return the allocated `VkBufferViewCreateInfo` public static VkBufferViewCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkBufferViewCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkBufferViewCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkBufferViewCreateInfo` + public VkBufferViewCreateInfo asSlice(long index) { return new VkBufferViewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkBufferViewCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkBufferViewCreateInfo` + public VkBufferViewCreateInfo asSlice(long index, long count) { return new VkBufferViewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearAttachment.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearAttachment.java index bbdb2a83..44b83ae7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearAttachment.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearAttachment.java @@ -91,6 +91,17 @@ public final class VkClearAttachment extends Struct { /// @return the allocated `VkClearAttachment` public static VkClearAttachment alloc(SegmentAllocator allocator, long count) { return new VkClearAttachment(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkClearAttachment`. + /// @param index the index of the struct buffer + /// @return the slice of `VkClearAttachment` + public VkClearAttachment asSlice(long index) { return new VkClearAttachment(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkClearAttachment`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkClearAttachment` + public VkClearAttachment asSlice(long index, long count) { return new VkClearAttachment(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspectMask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearDepthStencilValue.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearDepthStencilValue.java index fa50a973..7104b8b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearDepthStencilValue.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearDepthStencilValue.java @@ -83,6 +83,17 @@ public final class VkClearDepthStencilValue extends Struct { /// @return the allocated `VkClearDepthStencilValue` public static VkClearDepthStencilValue alloc(SegmentAllocator allocator, long count) { return new VkClearDepthStencilValue(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkClearDepthStencilValue`. + /// @param index the index of the struct buffer + /// @return the slice of `VkClearDepthStencilValue` + public VkClearDepthStencilValue asSlice(long index) { return new VkClearDepthStencilValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkClearDepthStencilValue`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkClearDepthStencilValue` + public VkClearDepthStencilValue asSlice(long index, long count) { return new VkClearDepthStencilValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `depth` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearRect.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearRect.java index d5eb6c4b..2bee0981 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearRect.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkClearRect.java @@ -91,6 +91,17 @@ public final class VkClearRect extends Struct { /// @return the allocated `VkClearRect` public static VkClearRect alloc(SegmentAllocator allocator, long count) { return new VkClearRect(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkClearRect`. + /// @param index the index of the struct buffer + /// @return the slice of `VkClearRect` + public VkClearRect asSlice(long index) { return new VkClearRect(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkClearRect`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkClearRect` + public VkClearRect asSlice(long index, long count) { return new VkClearRect(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `rect` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferAllocateInfo.java index 4f5ff952..14a82c02 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferAllocateInfo.java @@ -101,6 +101,17 @@ public final class VkCommandBufferAllocateInfo extends Struct { /// @return the allocated `VkCommandBufferAllocateInfo` public static VkCommandBufferAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferAllocateInfo` + public VkCommandBufferAllocateInfo asSlice(long index) { return new VkCommandBufferAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferAllocateInfo` + public VkCommandBufferAllocateInfo asSlice(long index, long count) { return new VkCommandBufferAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferBeginInfo.java index f32525bb..ebde2bf6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferBeginInfo.java @@ -95,6 +95,17 @@ public final class VkCommandBufferBeginInfo extends Struct { /// @return the allocated `VkCommandBufferBeginInfo` public static VkCommandBufferBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferBeginInfo` + public VkCommandBufferBeginInfo asSlice(long index) { return new VkCommandBufferBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferBeginInfo` + public VkCommandBufferBeginInfo asSlice(long index, long count) { return new VkCommandBufferBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceInfo.java index 3246ac8f..3f035858 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceInfo.java @@ -119,6 +119,17 @@ public final class VkCommandBufferInheritanceInfo extends Struct { /// @return the allocated `VkCommandBufferInheritanceInfo` public static VkCommandBufferInheritanceInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferInheritanceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferInheritanceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferInheritanceInfo` + public VkCommandBufferInheritanceInfo asSlice(long index) { return new VkCommandBufferInheritanceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferInheritanceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferInheritanceInfo` + public VkCommandBufferInheritanceInfo asSlice(long index, long count) { return new VkCommandBufferInheritanceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceRenderingInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceRenderingInfo.java index 71d41ae2..96950115 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceRenderingInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferInheritanceRenderingInfo.java @@ -125,6 +125,17 @@ public final class VkCommandBufferInheritanceRenderingInfo extends Struct { /// @return the allocated `VkCommandBufferInheritanceRenderingInfo` public static VkCommandBufferInheritanceRenderingInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferInheritanceRenderingInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferInheritanceRenderingInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferInheritanceRenderingInfo` + public VkCommandBufferInheritanceRenderingInfo asSlice(long index) { return new VkCommandBufferInheritanceRenderingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferInheritanceRenderingInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferInheritanceRenderingInfo` + public VkCommandBufferInheritanceRenderingInfo asSlice(long index, long count) { return new VkCommandBufferInheritanceRenderingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferSubmitInfo.java index 9e78eef3..ef155ecf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandBufferSubmitInfo.java @@ -95,6 +95,17 @@ public final class VkCommandBufferSubmitInfo extends Struct { /// @return the allocated `VkCommandBufferSubmitInfo` public static VkCommandBufferSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandBufferSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandBufferSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandBufferSubmitInfo` + public VkCommandBufferSubmitInfo asSlice(long index) { return new VkCommandBufferSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandBufferSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandBufferSubmitInfo` + public VkCommandBufferSubmitInfo asSlice(long index, long count) { return new VkCommandBufferSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolCreateInfo.java index 10be9653..dab682e7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolCreateInfo.java @@ -95,6 +95,17 @@ public final class VkCommandPoolCreateInfo extends Struct { /// @return the allocated `VkCommandPoolCreateInfo` public static VkCommandPoolCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandPoolCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandPoolCreateInfo` + public VkCommandPoolCreateInfo asSlice(long index) { return new VkCommandPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandPoolCreateInfo` + public VkCommandPoolCreateInfo asSlice(long index, long count) { return new VkCommandPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryConsumption.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryConsumption.java index b1122d4e..18a7967f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryConsumption.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryConsumption.java @@ -101,6 +101,17 @@ public final class VkCommandPoolMemoryConsumption extends Struct { /// @return the allocated `VkCommandPoolMemoryConsumption` public static VkCommandPoolMemoryConsumption alloc(SegmentAllocator allocator, long count) { return new VkCommandPoolMemoryConsumption(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandPoolMemoryConsumption`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandPoolMemoryConsumption` + public VkCommandPoolMemoryConsumption asSlice(long index) { return new VkCommandPoolMemoryConsumption(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandPoolMemoryConsumption`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandPoolMemoryConsumption` + public VkCommandPoolMemoryConsumption asSlice(long index, long count) { return new VkCommandPoolMemoryConsumption(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryReservationCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryReservationCreateInfo.java index 9b73d08f..b5906342 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryReservationCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCommandPoolMemoryReservationCreateInfo.java @@ -95,6 +95,17 @@ public final class VkCommandPoolMemoryReservationCreateInfo extends Struct { /// @return the allocated `VkCommandPoolMemoryReservationCreateInfo` public static VkCommandPoolMemoryReservationCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkCommandPoolMemoryReservationCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCommandPoolMemoryReservationCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCommandPoolMemoryReservationCreateInfo` + public VkCommandPoolMemoryReservationCreateInfo asSlice(long index) { return new VkCommandPoolMemoryReservationCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCommandPoolMemoryReservationCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCommandPoolMemoryReservationCreateInfo` + public VkCommandPoolMemoryReservationCreateInfo asSlice(long index, long count) { return new VkCommandPoolMemoryReservationCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComponentMapping.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComponentMapping.java index 71ff7ec9..f7009300 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComponentMapping.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComponentMapping.java @@ -95,6 +95,17 @@ public final class VkComponentMapping extends Struct { /// @return the allocated `VkComponentMapping` public static VkComponentMapping alloc(SegmentAllocator allocator, long count) { return new VkComponentMapping(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkComponentMapping`. + /// @param index the index of the struct buffer + /// @return the slice of `VkComponentMapping` + public VkComponentMapping asSlice(long index) { return new VkComponentMapping(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkComponentMapping`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkComponentMapping` + public VkComponentMapping asSlice(long index, long count) { return new VkComponentMapping(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `r` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComputePipelineCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComputePipelineCreateInfo.java index 31c646d3..961ebd90 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComputePipelineCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkComputePipelineCreateInfo.java @@ -115,6 +115,17 @@ public final class VkComputePipelineCreateInfo extends Struct { /// @return the allocated `VkComputePipelineCreateInfo` public static VkComputePipelineCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkComputePipelineCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkComputePipelineCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkComputePipelineCreateInfo` + public VkComputePipelineCreateInfo asSlice(long index) { return new VkComputePipelineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkComputePipelineCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkComputePipelineCreateInfo` + public VkComputePipelineCreateInfo asSlice(long index, long count) { return new VkComputePipelineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkConformanceVersion.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkConformanceVersion.java index 0cfdd2ee..85420628 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkConformanceVersion.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkConformanceVersion.java @@ -95,6 +95,17 @@ public final class VkConformanceVersion extends Struct { /// @return the allocated `VkConformanceVersion` public static VkConformanceVersion alloc(SegmentAllocator allocator, long count) { return new VkConformanceVersion(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkConformanceVersion`. + /// @param index the index of the struct buffer + /// @return the slice of `VkConformanceVersion` + public VkConformanceVersion asSlice(long index) { return new VkConformanceVersion(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkConformanceVersion`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkConformanceVersion` + public VkConformanceVersion asSlice(long index, long count) { return new VkConformanceVersion(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `major` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferInfo2.java index e0200be4..edb3c1ae 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferInfo2.java @@ -107,6 +107,17 @@ public final class VkCopyBufferInfo2 extends Struct { /// @return the allocated `VkCopyBufferInfo2` public static VkCopyBufferInfo2 alloc(SegmentAllocator allocator, long count) { return new VkCopyBufferInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyBufferInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyBufferInfo2` + public VkCopyBufferInfo2 asSlice(long index) { return new VkCopyBufferInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyBufferInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyBufferInfo2` + public VkCopyBufferInfo2 asSlice(long index, long count) { return new VkCopyBufferInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferToImageInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferToImageInfo2.java index 62f45ac7..3c405ede 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferToImageInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyBufferToImageInfo2.java @@ -113,6 +113,17 @@ public final class VkCopyBufferToImageInfo2 extends Struct { /// @return the allocated `VkCopyBufferToImageInfo2` public static VkCopyBufferToImageInfo2 alloc(SegmentAllocator allocator, long count) { return new VkCopyBufferToImageInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyBufferToImageInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyBufferToImageInfo2` + public VkCopyBufferToImageInfo2 asSlice(long index) { return new VkCopyBufferToImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyBufferToImageInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyBufferToImageInfo2` + public VkCopyBufferToImageInfo2 asSlice(long index, long count) { return new VkCopyBufferToImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyDescriptorSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyDescriptorSet.java index 83bc628d..ab081ef0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyDescriptorSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyDescriptorSet.java @@ -125,6 +125,17 @@ public final class VkCopyDescriptorSet extends Struct { /// @return the allocated `VkCopyDescriptorSet` public static VkCopyDescriptorSet alloc(SegmentAllocator allocator, long count) { return new VkCopyDescriptorSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyDescriptorSet`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyDescriptorSet` + public VkCopyDescriptorSet asSlice(long index) { return new VkCopyDescriptorSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyDescriptorSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyDescriptorSet` + public VkCopyDescriptorSet asSlice(long index, long count) { return new VkCopyDescriptorSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageInfo2.java index ceb66650..c9d98813 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageInfo2.java @@ -119,6 +119,17 @@ public final class VkCopyImageInfo2 extends Struct { /// @return the allocated `VkCopyImageInfo2` public static VkCopyImageInfo2 alloc(SegmentAllocator allocator, long count) { return new VkCopyImageInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyImageInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyImageInfo2` + public VkCopyImageInfo2 asSlice(long index) { return new VkCopyImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyImageInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyImageInfo2` + public VkCopyImageInfo2 asSlice(long index, long count) { return new VkCopyImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToBufferInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToBufferInfo2.java index 0204ab42..ec4d79f5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToBufferInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToBufferInfo2.java @@ -113,6 +113,17 @@ public final class VkCopyImageToBufferInfo2 extends Struct { /// @return the allocated `VkCopyImageToBufferInfo2` public static VkCopyImageToBufferInfo2 alloc(SegmentAllocator allocator, long count) { return new VkCopyImageToBufferInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyImageToBufferInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyImageToBufferInfo2` + public VkCopyImageToBufferInfo2 asSlice(long index) { return new VkCopyImageToBufferInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyImageToBufferInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyImageToBufferInfo2` + public VkCopyImageToBufferInfo2 asSlice(long index, long count) { return new VkCopyImageToBufferInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToImageInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToImageInfo.java index cf0c8cd9..95deddf8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToImageInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToImageInfo.java @@ -125,6 +125,17 @@ public final class VkCopyImageToImageInfo extends Struct { /// @return the allocated `VkCopyImageToImageInfo` public static VkCopyImageToImageInfo alloc(SegmentAllocator allocator, long count) { return new VkCopyImageToImageInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyImageToImageInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyImageToImageInfo` + public VkCopyImageToImageInfo asSlice(long index) { return new VkCopyImageToImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyImageToImageInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyImageToImageInfo` + public VkCopyImageToImageInfo asSlice(long index, long count) { return new VkCopyImageToImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToMemoryInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToMemoryInfo.java index 54ab0bff..e5faf06e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToMemoryInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyImageToMemoryInfo.java @@ -113,6 +113,17 @@ public final class VkCopyImageToMemoryInfo extends Struct { /// @return the allocated `VkCopyImageToMemoryInfo` public static VkCopyImageToMemoryInfo alloc(SegmentAllocator allocator, long count) { return new VkCopyImageToMemoryInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyImageToMemoryInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyImageToMemoryInfo` + public VkCopyImageToMemoryInfo asSlice(long index) { return new VkCopyImageToMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyImageToMemoryInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyImageToMemoryInfo` + public VkCopyImageToMemoryInfo asSlice(long index, long count) { return new VkCopyImageToMemoryInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyMemoryToImageInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyMemoryToImageInfo.java index 0a5703f7..c94d027c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyMemoryToImageInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkCopyMemoryToImageInfo.java @@ -113,6 +113,17 @@ public final class VkCopyMemoryToImageInfo extends Struct { /// @return the allocated `VkCopyMemoryToImageInfo` public static VkCopyMemoryToImageInfo alloc(SegmentAllocator allocator, long count) { return new VkCopyMemoryToImageInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkCopyMemoryToImageInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkCopyMemoryToImageInfo` + public VkCopyMemoryToImageInfo asSlice(long index) { return new VkCopyMemoryToImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkCopyMemoryToImageInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkCopyMemoryToImageInfo` + public VkCopyMemoryToImageInfo asSlice(long index, long count) { return new VkCopyMemoryToImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDependencyInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDependencyInfo.java index a9a9779b..ed642643 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDependencyInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDependencyInfo.java @@ -125,6 +125,17 @@ public final class VkDependencyInfo extends Struct { /// @return the allocated `VkDependencyInfo` public static VkDependencyInfo alloc(SegmentAllocator allocator, long count) { return new VkDependencyInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDependencyInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDependencyInfo` + public VkDependencyInfo asSlice(long index) { return new VkDependencyInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDependencyInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDependencyInfo` + public VkDependencyInfo asSlice(long index, long count) { return new VkDependencyInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorBufferInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorBufferInfo.java index d1bd5b99..a4869557 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorBufferInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorBufferInfo.java @@ -89,6 +89,17 @@ public final class VkDescriptorBufferInfo extends Struct { /// @return the allocated `VkDescriptorBufferInfo` public static VkDescriptorBufferInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorBufferInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorBufferInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorBufferInfo` + public VkDescriptorBufferInfo asSlice(long index) { return new VkDescriptorBufferInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorBufferInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorBufferInfo` + public VkDescriptorBufferInfo asSlice(long index, long count) { return new VkDescriptorBufferInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `buffer` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorImageInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorImageInfo.java index e7081de9..d5000074 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorImageInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorImageInfo.java @@ -89,6 +89,17 @@ public final class VkDescriptorImageInfo extends Struct { /// @return the allocated `VkDescriptorImageInfo` public static VkDescriptorImageInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorImageInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorImageInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorImageInfo` + public VkDescriptorImageInfo asSlice(long index) { return new VkDescriptorImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorImageInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorImageInfo` + public VkDescriptorImageInfo asSlice(long index, long count) { return new VkDescriptorImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sampler` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolCreateInfo.java index 94b0a676..9ae37a81 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolCreateInfo.java @@ -107,6 +107,17 @@ public final class VkDescriptorPoolCreateInfo extends Struct { /// @return the allocated `VkDescriptorPoolCreateInfo` public static VkDescriptorPoolCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorPoolCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorPoolCreateInfo` + public VkDescriptorPoolCreateInfo asSlice(long index) { return new VkDescriptorPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorPoolCreateInfo` + public VkDescriptorPoolCreateInfo asSlice(long index, long count) { return new VkDescriptorPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolInlineUniformBlockCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolInlineUniformBlockCreateInfo.java index 7a9fe159..2e321a53 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolInlineUniformBlockCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolInlineUniformBlockCreateInfo.java @@ -89,6 +89,17 @@ public final class VkDescriptorPoolInlineUniformBlockCreateInfo extends Struct { /// @return the allocated `VkDescriptorPoolInlineUniformBlockCreateInfo` public static VkDescriptorPoolInlineUniformBlockCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorPoolInlineUniformBlockCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorPoolInlineUniformBlockCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorPoolInlineUniformBlockCreateInfo` + public VkDescriptorPoolInlineUniformBlockCreateInfo asSlice(long index) { return new VkDescriptorPoolInlineUniformBlockCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorPoolInlineUniformBlockCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorPoolInlineUniformBlockCreateInfo` + public VkDescriptorPoolInlineUniformBlockCreateInfo asSlice(long index, long count) { return new VkDescriptorPoolInlineUniformBlockCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolSize.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolSize.java index 9733aeea..54037fb4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolSize.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorPoolSize.java @@ -83,6 +83,17 @@ public final class VkDescriptorPoolSize extends Struct { /// @return the allocated `VkDescriptorPoolSize` public static VkDescriptorPoolSize alloc(SegmentAllocator allocator, long count) { return new VkDescriptorPoolSize(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorPoolSize`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorPoolSize` + public VkDescriptorPoolSize asSlice(long index) { return new VkDescriptorPoolSize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorPoolSize`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorPoolSize` + public VkDescriptorPoolSize asSlice(long index, long count) { return new VkDescriptorPoolSize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `type` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetAllocateInfo.java index d1bfd4b0..fb5c8d04 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetAllocateInfo.java @@ -101,6 +101,17 @@ public final class VkDescriptorSetAllocateInfo extends Struct { /// @return the allocated `VkDescriptorSetAllocateInfo` public static VkDescriptorSetAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetAllocateInfo` + public VkDescriptorSetAllocateInfo asSlice(long index) { return new VkDescriptorSetAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetAllocateInfo` + public VkDescriptorSetAllocateInfo asSlice(long index, long count) { return new VkDescriptorSetAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBinding.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBinding.java index 444dee1c..2144fb71 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBinding.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBinding.java @@ -101,6 +101,17 @@ public final class VkDescriptorSetLayoutBinding extends Struct { /// @return the allocated `VkDescriptorSetLayoutBinding` public static VkDescriptorSetLayoutBinding alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetLayoutBinding(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetLayoutBinding`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetLayoutBinding` + public VkDescriptorSetLayoutBinding asSlice(long index) { return new VkDescriptorSetLayoutBinding(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetLayoutBinding`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetLayoutBinding` + public VkDescriptorSetLayoutBinding asSlice(long index, long count) { return new VkDescriptorSetLayoutBinding(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `binding` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBindingFlagsCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBindingFlagsCreateInfo.java index a289e419..db069948 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBindingFlagsCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutBindingFlagsCreateInfo.java @@ -95,6 +95,17 @@ public final class VkDescriptorSetLayoutBindingFlagsCreateInfo extends Struct { /// @return the allocated `VkDescriptorSetLayoutBindingFlagsCreateInfo` public static VkDescriptorSetLayoutBindingFlagsCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetLayoutBindingFlagsCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetLayoutBindingFlagsCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetLayoutBindingFlagsCreateInfo` + public VkDescriptorSetLayoutBindingFlagsCreateInfo asSlice(long index) { return new VkDescriptorSetLayoutBindingFlagsCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetLayoutBindingFlagsCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetLayoutBindingFlagsCreateInfo` + public VkDescriptorSetLayoutBindingFlagsCreateInfo asSlice(long index, long count) { return new VkDescriptorSetLayoutBindingFlagsCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutCreateInfo.java index 2542c919..c4652b70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutCreateInfo.java @@ -101,6 +101,17 @@ public final class VkDescriptorSetLayoutCreateInfo extends Struct { /// @return the allocated `VkDescriptorSetLayoutCreateInfo` public static VkDescriptorSetLayoutCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetLayoutCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetLayoutCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetLayoutCreateInfo` + public VkDescriptorSetLayoutCreateInfo asSlice(long index) { return new VkDescriptorSetLayoutCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetLayoutCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetLayoutCreateInfo` + public VkDescriptorSetLayoutCreateInfo asSlice(long index, long count) { return new VkDescriptorSetLayoutCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutSupport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutSupport.java index 90482133..b6f844eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutSupport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetLayoutSupport.java @@ -89,6 +89,17 @@ public final class VkDescriptorSetLayoutSupport extends Struct { /// @return the allocated `VkDescriptorSetLayoutSupport` public static VkDescriptorSetLayoutSupport alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetLayoutSupport(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetLayoutSupport`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetLayoutSupport` + public VkDescriptorSetLayoutSupport asSlice(long index) { return new VkDescriptorSetLayoutSupport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetLayoutSupport`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetLayoutSupport` + public VkDescriptorSetLayoutSupport asSlice(long index, long count) { return new VkDescriptorSetLayoutSupport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountAllocateInfo.java index 53a3a7dc..a9fdb181 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountAllocateInfo.java @@ -95,6 +95,17 @@ public final class VkDescriptorSetVariableDescriptorCountAllocateInfo extends St /// @return the allocated `VkDescriptorSetVariableDescriptorCountAllocateInfo` public static VkDescriptorSetVariableDescriptorCountAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetVariableDescriptorCountAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetVariableDescriptorCountAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetVariableDescriptorCountAllocateInfo` + public VkDescriptorSetVariableDescriptorCountAllocateInfo asSlice(long index) { return new VkDescriptorSetVariableDescriptorCountAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetVariableDescriptorCountAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetVariableDescriptorCountAllocateInfo` + public VkDescriptorSetVariableDescriptorCountAllocateInfo asSlice(long index, long count) { return new VkDescriptorSetVariableDescriptorCountAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountLayoutSupport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountLayoutSupport.java index 68b95a81..d0a2e766 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountLayoutSupport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorSetVariableDescriptorCountLayoutSupport.java @@ -89,6 +89,17 @@ public final class VkDescriptorSetVariableDescriptorCountLayoutSupport extends S /// @return the allocated `VkDescriptorSetVariableDescriptorCountLayoutSupport` public static VkDescriptorSetVariableDescriptorCountLayoutSupport alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetVariableDescriptorCountLayoutSupport(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetVariableDescriptorCountLayoutSupport`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetVariableDescriptorCountLayoutSupport` + public VkDescriptorSetVariableDescriptorCountLayoutSupport asSlice(long index) { return new VkDescriptorSetVariableDescriptorCountLayoutSupport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetVariableDescriptorCountLayoutSupport`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetVariableDescriptorCountLayoutSupport` + public VkDescriptorSetVariableDescriptorCountLayoutSupport asSlice(long index, long count) { return new VkDescriptorSetVariableDescriptorCountLayoutSupport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateCreateInfo.java index 919e24af..cd755f2a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateCreateInfo.java @@ -131,6 +131,17 @@ public final class VkDescriptorUpdateTemplateCreateInfo extends Struct { /// @return the allocated `VkDescriptorUpdateTemplateCreateInfo` public static VkDescriptorUpdateTemplateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDescriptorUpdateTemplateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorUpdateTemplateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorUpdateTemplateCreateInfo` + public VkDescriptorUpdateTemplateCreateInfo asSlice(long index) { return new VkDescriptorUpdateTemplateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorUpdateTemplateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorUpdateTemplateCreateInfo` + public VkDescriptorUpdateTemplateCreateInfo asSlice(long index, long count) { return new VkDescriptorUpdateTemplateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateEntry.java index 54fbe3a1..78dabccf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDescriptorUpdateTemplateEntry.java @@ -107,6 +107,17 @@ public final class VkDescriptorUpdateTemplateEntry extends Struct { /// @return the allocated `VkDescriptorUpdateTemplateEntry` public static VkDescriptorUpdateTemplateEntry alloc(SegmentAllocator allocator, long count) { return new VkDescriptorUpdateTemplateEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorUpdateTemplateEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorUpdateTemplateEntry` + public VkDescriptorUpdateTemplateEntry asSlice(long index) { return new VkDescriptorUpdateTemplateEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorUpdateTemplateEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorUpdateTemplateEntry` + public VkDescriptorUpdateTemplateEntry asSlice(long index, long count) { return new VkDescriptorUpdateTemplateEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `dstBinding` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceBufferMemoryRequirements.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceBufferMemoryRequirements.java index 7a56ac6f..abe95bc2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceBufferMemoryRequirements.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceBufferMemoryRequirements.java @@ -89,6 +89,17 @@ public final class VkDeviceBufferMemoryRequirements extends Struct { /// @return the allocated `VkDeviceBufferMemoryRequirements` public static VkDeviceBufferMemoryRequirements alloc(SegmentAllocator allocator, long count) { return new VkDeviceBufferMemoryRequirements(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceBufferMemoryRequirements`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceBufferMemoryRequirements` + public VkDeviceBufferMemoryRequirements asSlice(long index) { return new VkDeviceBufferMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceBufferMemoryRequirements`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceBufferMemoryRequirements` + public VkDeviceBufferMemoryRequirements asSlice(long index, long count) { return new VkDeviceBufferMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceCreateInfo.java index ae544fc5..a8a8bbc0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceCreateInfo.java @@ -131,6 +131,17 @@ public final class VkDeviceCreateInfo extends Struct { /// @return the allocated `VkDeviceCreateInfo` public static VkDeviceCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceCreateInfo` + public VkDeviceCreateInfo asSlice(long index) { return new VkDeviceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceCreateInfo` + public VkDeviceCreateInfo asSlice(long index, long count) { return new VkDeviceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupBindSparseInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupBindSparseInfo.java index 230544b0..73a79815 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupBindSparseInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupBindSparseInfo.java @@ -95,6 +95,17 @@ public final class VkDeviceGroupBindSparseInfo extends Struct { /// @return the allocated `VkDeviceGroupBindSparseInfo` public static VkDeviceGroupBindSparseInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupBindSparseInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupBindSparseInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupBindSparseInfo` + public VkDeviceGroupBindSparseInfo asSlice(long index) { return new VkDeviceGroupBindSparseInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupBindSparseInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupBindSparseInfo` + public VkDeviceGroupBindSparseInfo asSlice(long index, long count) { return new VkDeviceGroupBindSparseInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupCommandBufferBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupCommandBufferBeginInfo.java index 40d802c1..a19b4f7e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupCommandBufferBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupCommandBufferBeginInfo.java @@ -89,6 +89,17 @@ public final class VkDeviceGroupCommandBufferBeginInfo extends Struct { /// @return the allocated `VkDeviceGroupCommandBufferBeginInfo` public static VkDeviceGroupCommandBufferBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupCommandBufferBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupCommandBufferBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupCommandBufferBeginInfo` + public VkDeviceGroupCommandBufferBeginInfo asSlice(long index) { return new VkDeviceGroupCommandBufferBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupCommandBufferBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupCommandBufferBeginInfo` + public VkDeviceGroupCommandBufferBeginInfo asSlice(long index, long count) { return new VkDeviceGroupCommandBufferBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupDeviceCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupDeviceCreateInfo.java index bbbb566a..5ac05599 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupDeviceCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupDeviceCreateInfo.java @@ -95,6 +95,17 @@ public final class VkDeviceGroupDeviceCreateInfo extends Struct { /// @return the allocated `VkDeviceGroupDeviceCreateInfo` public static VkDeviceGroupDeviceCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupDeviceCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupDeviceCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupDeviceCreateInfo` + public VkDeviceGroupDeviceCreateInfo asSlice(long index) { return new VkDeviceGroupDeviceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupDeviceCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupDeviceCreateInfo` + public VkDeviceGroupDeviceCreateInfo asSlice(long index, long count) { return new VkDeviceGroupDeviceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupRenderPassBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupRenderPassBeginInfo.java index 3d6095d9..3397eb5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupRenderPassBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupRenderPassBeginInfo.java @@ -101,6 +101,17 @@ public final class VkDeviceGroupRenderPassBeginInfo extends Struct { /// @return the allocated `VkDeviceGroupRenderPassBeginInfo` public static VkDeviceGroupRenderPassBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupRenderPassBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupRenderPassBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupRenderPassBeginInfo` + public VkDeviceGroupRenderPassBeginInfo asSlice(long index) { return new VkDeviceGroupRenderPassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupRenderPassBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupRenderPassBeginInfo` + public VkDeviceGroupRenderPassBeginInfo asSlice(long index, long count) { return new VkDeviceGroupRenderPassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupSubmitInfo.java index b82b26cf..410a438d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceGroupSubmitInfo.java @@ -119,6 +119,17 @@ public final class VkDeviceGroupSubmitInfo extends Struct { /// @return the allocated `VkDeviceGroupSubmitInfo` public static VkDeviceGroupSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceGroupSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceGroupSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceGroupSubmitInfo` + public VkDeviceGroupSubmitInfo asSlice(long index) { return new VkDeviceGroupSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceGroupSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceGroupSubmitInfo` + public VkDeviceGroupSubmitInfo asSlice(long index, long count) { return new VkDeviceGroupSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageMemoryRequirements.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageMemoryRequirements.java index bf0b3b98..b04ace86 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageMemoryRequirements.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageMemoryRequirements.java @@ -95,6 +95,17 @@ public final class VkDeviceImageMemoryRequirements extends Struct { /// @return the allocated `VkDeviceImageMemoryRequirements` public static VkDeviceImageMemoryRequirements alloc(SegmentAllocator allocator, long count) { return new VkDeviceImageMemoryRequirements(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceImageMemoryRequirements`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceImageMemoryRequirements` + public VkDeviceImageMemoryRequirements asSlice(long index) { return new VkDeviceImageMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceImageMemoryRequirements`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceImageMemoryRequirements` + public VkDeviceImageMemoryRequirements asSlice(long index, long count) { return new VkDeviceImageMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageSubresourceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageSubresourceInfo.java index 792eed3a..fd43a20b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageSubresourceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceImageSubresourceInfo.java @@ -95,6 +95,17 @@ public final class VkDeviceImageSubresourceInfo extends Struct { /// @return the allocated `VkDeviceImageSubresourceInfo` public static VkDeviceImageSubresourceInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceImageSubresourceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceImageSubresourceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceImageSubresourceInfo` + public VkDeviceImageSubresourceInfo asSlice(long index) { return new VkDeviceImageSubresourceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceImageSubresourceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceImageSubresourceInfo` + public VkDeviceImageSubresourceInfo asSlice(long index, long count) { return new VkDeviceImageSubresourceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceMemoryOpaqueCaptureAddressInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceMemoryOpaqueCaptureAddressInfo.java index 614384bd..9cac12ea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceMemoryOpaqueCaptureAddressInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceMemoryOpaqueCaptureAddressInfo.java @@ -89,6 +89,17 @@ public final class VkDeviceMemoryOpaqueCaptureAddressInfo extends Struct { /// @return the allocated `VkDeviceMemoryOpaqueCaptureAddressInfo` public static VkDeviceMemoryOpaqueCaptureAddressInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceMemoryOpaqueCaptureAddressInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceMemoryOpaqueCaptureAddressInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceMemoryOpaqueCaptureAddressInfo` + public VkDeviceMemoryOpaqueCaptureAddressInfo asSlice(long index) { return new VkDeviceMemoryOpaqueCaptureAddressInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceMemoryOpaqueCaptureAddressInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceMemoryOpaqueCaptureAddressInfo` + public VkDeviceMemoryOpaqueCaptureAddressInfo asSlice(long index, long count) { return new VkDeviceMemoryOpaqueCaptureAddressInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceObjectReservationCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceObjectReservationCreateInfo.java index 3487bc17..26241179 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceObjectReservationCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceObjectReservationCreateInfo.java @@ -329,6 +329,17 @@ public final class VkDeviceObjectReservationCreateInfo extends Struct { /// @return the allocated `VkDeviceObjectReservationCreateInfo` public static VkDeviceObjectReservationCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceObjectReservationCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceObjectReservationCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceObjectReservationCreateInfo` + public VkDeviceObjectReservationCreateInfo asSlice(long index) { return new VkDeviceObjectReservationCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceObjectReservationCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceObjectReservationCreateInfo` + public VkDeviceObjectReservationCreateInfo asSlice(long index, long count) { return new VkDeviceObjectReservationCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDevicePrivateDataCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDevicePrivateDataCreateInfo.java index 61e98357..f5069390 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDevicePrivateDataCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDevicePrivateDataCreateInfo.java @@ -89,6 +89,17 @@ public final class VkDevicePrivateDataCreateInfo extends Struct { /// @return the allocated `VkDevicePrivateDataCreateInfo` public static VkDevicePrivateDataCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDevicePrivateDataCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDevicePrivateDataCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDevicePrivateDataCreateInfo` + public VkDevicePrivateDataCreateInfo asSlice(long index) { return new VkDevicePrivateDataCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDevicePrivateDataCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDevicePrivateDataCreateInfo` + public VkDevicePrivateDataCreateInfo asSlice(long index, long count) { return new VkDevicePrivateDataCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueCreateInfo.java index 036b95f2..c193c5b2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueCreateInfo.java @@ -107,6 +107,17 @@ public final class VkDeviceQueueCreateInfo extends Struct { /// @return the allocated `VkDeviceQueueCreateInfo` public static VkDeviceQueueCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceQueueCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceQueueCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceQueueCreateInfo` + public VkDeviceQueueCreateInfo asSlice(long index) { return new VkDeviceQueueCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceQueueCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceQueueCreateInfo` + public VkDeviceQueueCreateInfo asSlice(long index, long count) { return new VkDeviceQueueCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueGlobalPriorityCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueGlobalPriorityCreateInfo.java index 74e1e348..8a35f8b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueGlobalPriorityCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueGlobalPriorityCreateInfo.java @@ -89,6 +89,17 @@ public final class VkDeviceQueueGlobalPriorityCreateInfo extends Struct { /// @return the allocated `VkDeviceQueueGlobalPriorityCreateInfo` public static VkDeviceQueueGlobalPriorityCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkDeviceQueueGlobalPriorityCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceQueueGlobalPriorityCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceQueueGlobalPriorityCreateInfo` + public VkDeviceQueueGlobalPriorityCreateInfo asSlice(long index) { return new VkDeviceQueueGlobalPriorityCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceQueueGlobalPriorityCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceQueueGlobalPriorityCreateInfo` + public VkDeviceQueueGlobalPriorityCreateInfo asSlice(long index, long count) { return new VkDeviceQueueGlobalPriorityCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueInfo2.java index eecec5e3..89875991 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDeviceQueueInfo2.java @@ -101,6 +101,17 @@ public final class VkDeviceQueueInfo2 extends Struct { /// @return the allocated `VkDeviceQueueInfo2` public static VkDeviceQueueInfo2 alloc(SegmentAllocator allocator, long count) { return new VkDeviceQueueInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDeviceQueueInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDeviceQueueInfo2` + public VkDeviceQueueInfo2 asSlice(long index) { return new VkDeviceQueueInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDeviceQueueInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDeviceQueueInfo2` + public VkDeviceQueueInfo2 asSlice(long index, long count) { return new VkDeviceQueueInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDispatchIndirectCommand.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDispatchIndirectCommand.java index 0950f387..abea3bdc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDispatchIndirectCommand.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDispatchIndirectCommand.java @@ -89,6 +89,17 @@ public final class VkDispatchIndirectCommand extends Struct { /// @return the allocated `VkDispatchIndirectCommand` public static VkDispatchIndirectCommand alloc(SegmentAllocator allocator, long count) { return new VkDispatchIndirectCommand(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDispatchIndirectCommand`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDispatchIndirectCommand` + public VkDispatchIndirectCommand asSlice(long index) { return new VkDispatchIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDispatchIndirectCommand`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDispatchIndirectCommand` + public VkDispatchIndirectCommand asSlice(long index, long count) { return new VkDispatchIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndexedIndirectCommand.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndexedIndirectCommand.java index 3a437e17..87b096fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndexedIndirectCommand.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndexedIndirectCommand.java @@ -101,6 +101,17 @@ public final class VkDrawIndexedIndirectCommand extends Struct { /// @return the allocated `VkDrawIndexedIndirectCommand` public static VkDrawIndexedIndirectCommand alloc(SegmentAllocator allocator, long count) { return new VkDrawIndexedIndirectCommand(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrawIndexedIndirectCommand`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrawIndexedIndirectCommand` + public VkDrawIndexedIndirectCommand asSlice(long index) { return new VkDrawIndexedIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrawIndexedIndirectCommand`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrawIndexedIndirectCommand` + public VkDrawIndexedIndirectCommand asSlice(long index, long count) { return new VkDrawIndexedIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `indexCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndirectCommand.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndirectCommand.java index 5e0c171a..227c6810 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndirectCommand.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkDrawIndirectCommand.java @@ -95,6 +95,17 @@ public final class VkDrawIndirectCommand extends Struct { /// @return the allocated `VkDrawIndirectCommand` public static VkDrawIndirectCommand alloc(SegmentAllocator allocator, long count) { return new VkDrawIndirectCommand(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDrawIndirectCommand`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDrawIndirectCommand` + public VkDrawIndirectCommand asSlice(long index) { return new VkDrawIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDrawIndirectCommand`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDrawIndirectCommand` + public VkDrawIndirectCommand asSlice(long index, long count) { return new VkDrawIndirectCommand(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `vertexCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkEventCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkEventCreateInfo.java index 5ae1dc3e..b82c558a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkEventCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkEventCreateInfo.java @@ -89,6 +89,17 @@ public final class VkEventCreateInfo extends Struct { /// @return the allocated `VkEventCreateInfo` public static VkEventCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkEventCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkEventCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkEventCreateInfo` + public VkEventCreateInfo asSlice(long index) { return new VkEventCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkEventCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkEventCreateInfo` + public VkEventCreateInfo asSlice(long index, long count) { return new VkEventCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportFenceCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportFenceCreateInfo.java index 3f8b3698..0b528a76 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportFenceCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportFenceCreateInfo.java @@ -89,6 +89,17 @@ public final class VkExportFenceCreateInfo extends Struct { /// @return the allocated `VkExportFenceCreateInfo` public static VkExportFenceCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkExportFenceCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportFenceCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportFenceCreateInfo` + public VkExportFenceCreateInfo asSlice(long index) { return new VkExportFenceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportFenceCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportFenceCreateInfo` + public VkExportFenceCreateInfo asSlice(long index, long count) { return new VkExportFenceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportMemoryAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportMemoryAllocateInfo.java index b539da89..3aea0ff7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportMemoryAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportMemoryAllocateInfo.java @@ -89,6 +89,17 @@ public final class VkExportMemoryAllocateInfo extends Struct { /// @return the allocated `VkExportMemoryAllocateInfo` public static VkExportMemoryAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkExportMemoryAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportMemoryAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportMemoryAllocateInfo` + public VkExportMemoryAllocateInfo asSlice(long index) { return new VkExportMemoryAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportMemoryAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportMemoryAllocateInfo` + public VkExportMemoryAllocateInfo asSlice(long index, long count) { return new VkExportMemoryAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportSemaphoreCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportSemaphoreCreateInfo.java index 7689ec8a..1d4b50b2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportSemaphoreCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExportSemaphoreCreateInfo.java @@ -89,6 +89,17 @@ public final class VkExportSemaphoreCreateInfo extends Struct { /// @return the allocated `VkExportSemaphoreCreateInfo` public static VkExportSemaphoreCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkExportSemaphoreCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExportSemaphoreCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExportSemaphoreCreateInfo` + public VkExportSemaphoreCreateInfo asSlice(long index) { return new VkExportSemaphoreCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExportSemaphoreCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExportSemaphoreCreateInfo` + public VkExportSemaphoreCreateInfo asSlice(long index, long count) { return new VkExportSemaphoreCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtensionProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtensionProperties.java index e4397be3..ec7297d3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtensionProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtensionProperties.java @@ -27,7 +27,7 @@ /// ## Members /// ### extensionName -/// [Byte offset handle][#MH_extensionName] - [Memory layout][#ML_extensionName] - [Getter][#extensionName(long)] - [Setter][#extensionName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_extensionName] - [Memory layout][#ML_extensionName] - [Getter][#extensionName()] - [Setter][#extensionName(java.lang.foreign.MemorySegment)] /// ### specVersion /// [VarHandle][#VH_specVersion] - [Getter][#specVersion()] - [Setter][#specVersion(int)] /// ## Layout @@ -44,8 +44,8 @@ public final class VkExtensionProperties extends Struct { MemoryLayout.sequenceLayout(VK_MAX_EXTENSION_NAME_SIZE, ValueLayout.JAVA_BYTE).withName("extensionName"), ValueLayout.JAVA_INT.withName("specVersion") ); - /// The byte offset handle of `extensionName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_extensionName = LAYOUT.byteOffsetHandle(PathElement.groupElement("extensionName"), PathElement.sequenceElement()); + /// The byte offset of `extensionName`. + public static final long OFFSET_extensionName = LAYOUT.byteOffset(PathElement.groupElement("extensionName")); /// The memory layout of `extensionName`. public static final MemoryLayout ML_extensionName = LAYOUT.select(PathElement.groupElement("extensionName")); /// The [VarHandle] of `specVersion` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -86,50 +86,47 @@ public final class VkExtensionProperties extends Struct { /// @return the allocated `VkExtensionProperties` public static VkExtensionProperties alloc(SegmentAllocator allocator, long count) { return new VkExtensionProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExtensionProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExtensionProperties` + public VkExtensionProperties asSlice(long index) { return new VkExtensionProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExtensionProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExtensionProperties` + public VkExtensionProperties asSlice(long index, long count) { return new VkExtensionProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `extensionName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_extensionName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_extensionName.invokeExact(0L, elementIndex), index), ML_extensionName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_extensionName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_extensionName, index), ML_extensionName); } /// {@return `extensionName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_extensionName(MemorySegment segment, long elementIndex) { return VkExtensionProperties.get_extensionName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_extensionName(MemorySegment segment) { return VkExtensionProperties.get_extensionName(segment, 0L); } /// {@return `extensionName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment extensionNameAt(long index, long elementIndex) { return VkExtensionProperties.get_extensionName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment extensionNameAt(long index) { return VkExtensionProperties.get_extensionName(this.segment(), index); } /// {@return `extensionName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment extensionName(long elementIndex) { return VkExtensionProperties.get_extensionName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment extensionName() { return VkExtensionProperties.get_extensionName(this.segment()); } /// Sets `extensionName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_extensionName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_extensionName.invokeExact(0L, elementIndex), index), ML_extensionName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_extensionName(MemorySegment segment, long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_extensionName, index), ML_extensionName.byteSize()); } /// Sets `extensionName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_extensionName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_extensionName(MemorySegment segment, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(segment, 0L, value); } /// Sets `extensionName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkExtensionProperties extensionNameAt(long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(this.segment(), index, elementIndex, value); return this; } + public VkExtensionProperties extensionNameAt(long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(this.segment(), index, value); return this; } /// Sets `extensionName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkExtensionProperties extensionName(long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(this.segment(), elementIndex, value); return this; } + public VkExtensionProperties extensionName(@CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkExtensionProperties.set_extensionName(this.segment(), value); return this; } /// {@return `specVersion` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent2D.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent2D.java index e76b9c7b..632bb006 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent2D.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent2D.java @@ -83,6 +83,17 @@ public final class VkExtent2D extends Struct { /// @return the allocated `VkExtent2D` public static VkExtent2D alloc(SegmentAllocator allocator, long count) { return new VkExtent2D(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExtent2D`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExtent2D` + public VkExtent2D asSlice(long index) { return new VkExtent2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExtent2D`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExtent2D` + public VkExtent2D asSlice(long index, long count) { return new VkExtent2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `width` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent3D.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent3D.java index 4b466f56..f2bd027a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent3D.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExtent3D.java @@ -89,6 +89,17 @@ public final class VkExtent3D extends Struct { /// @return the allocated `VkExtent3D` public static VkExtent3D alloc(SegmentAllocator allocator, long count) { return new VkExtent3D(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExtent3D`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExtent3D` + public VkExtent3D asSlice(long index) { return new VkExtent3D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExtent3D`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExtent3D` + public VkExtent3D asSlice(long index, long count) { return new VkExtent3D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `width` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalBufferProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalBufferProperties.java index ba1fa815..1b7762a7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalBufferProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalBufferProperties.java @@ -91,6 +91,17 @@ public final class VkExternalBufferProperties extends Struct { /// @return the allocated `VkExternalBufferProperties` public static VkExternalBufferProperties alloc(SegmentAllocator allocator, long count) { return new VkExternalBufferProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalBufferProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalBufferProperties` + public VkExternalBufferProperties asSlice(long index) { return new VkExternalBufferProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalBufferProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalBufferProperties` + public VkExternalBufferProperties asSlice(long index, long count) { return new VkExternalBufferProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalFenceProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalFenceProperties.java index 1776d3aa..8db34db4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalFenceProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalFenceProperties.java @@ -101,6 +101,17 @@ public final class VkExternalFenceProperties extends Struct { /// @return the allocated `VkExternalFenceProperties` public static VkExternalFenceProperties alloc(SegmentAllocator allocator, long count) { return new VkExternalFenceProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalFenceProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalFenceProperties` + public VkExternalFenceProperties asSlice(long index) { return new VkExternalFenceProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalFenceProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalFenceProperties` + public VkExternalFenceProperties asSlice(long index, long count) { return new VkExternalFenceProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalImageFormatProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalImageFormatProperties.java index f8e97bc4..b2437d88 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalImageFormatProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalImageFormatProperties.java @@ -91,6 +91,17 @@ public final class VkExternalImageFormatProperties extends Struct { /// @return the allocated `VkExternalImageFormatProperties` public static VkExternalImageFormatProperties alloc(SegmentAllocator allocator, long count) { return new VkExternalImageFormatProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalImageFormatProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalImageFormatProperties` + public VkExternalImageFormatProperties asSlice(long index) { return new VkExternalImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalImageFormatProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalImageFormatProperties` + public VkExternalImageFormatProperties asSlice(long index, long count) { return new VkExternalImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryBufferCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryBufferCreateInfo.java index 1c5bde17..13cc9cf7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryBufferCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryBufferCreateInfo.java @@ -89,6 +89,17 @@ public final class VkExternalMemoryBufferCreateInfo extends Struct { /// @return the allocated `VkExternalMemoryBufferCreateInfo` public static VkExternalMemoryBufferCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkExternalMemoryBufferCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalMemoryBufferCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalMemoryBufferCreateInfo` + public VkExternalMemoryBufferCreateInfo asSlice(long index) { return new VkExternalMemoryBufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalMemoryBufferCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalMemoryBufferCreateInfo` + public VkExternalMemoryBufferCreateInfo asSlice(long index, long count) { return new VkExternalMemoryBufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryImageCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryImageCreateInfo.java index 63d54e2b..c6c7a6b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryImageCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryImageCreateInfo.java @@ -89,6 +89,17 @@ public final class VkExternalMemoryImageCreateInfo extends Struct { /// @return the allocated `VkExternalMemoryImageCreateInfo` public static VkExternalMemoryImageCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkExternalMemoryImageCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalMemoryImageCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalMemoryImageCreateInfo` + public VkExternalMemoryImageCreateInfo asSlice(long index) { return new VkExternalMemoryImageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalMemoryImageCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalMemoryImageCreateInfo` + public VkExternalMemoryImageCreateInfo asSlice(long index, long count) { return new VkExternalMemoryImageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryProperties.java index 665659c4..54a81ece 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalMemoryProperties.java @@ -89,6 +89,17 @@ public final class VkExternalMemoryProperties extends Struct { /// @return the allocated `VkExternalMemoryProperties` public static VkExternalMemoryProperties alloc(SegmentAllocator allocator, long count) { return new VkExternalMemoryProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalMemoryProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalMemoryProperties` + public VkExternalMemoryProperties asSlice(long index) { return new VkExternalMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalMemoryProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalMemoryProperties` + public VkExternalMemoryProperties asSlice(long index, long count) { return new VkExternalMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `externalMemoryFeatures` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalSemaphoreProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalSemaphoreProperties.java index f2a40bb5..882a984c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalSemaphoreProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkExternalSemaphoreProperties.java @@ -101,6 +101,17 @@ public final class VkExternalSemaphoreProperties extends Struct { /// @return the allocated `VkExternalSemaphoreProperties` public static VkExternalSemaphoreProperties alloc(SegmentAllocator allocator, long count) { return new VkExternalSemaphoreProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkExternalSemaphoreProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkExternalSemaphoreProperties` + public VkExternalSemaphoreProperties asSlice(long index) { return new VkExternalSemaphoreProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkExternalSemaphoreProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkExternalSemaphoreProperties` + public VkExternalSemaphoreProperties asSlice(long index, long count) { return new VkExternalSemaphoreProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultCallbackInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultCallbackInfo.java index 57a64ea2..5fe4860f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultCallbackInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultCallbackInfo.java @@ -101,6 +101,17 @@ public final class VkFaultCallbackInfo extends Struct { /// @return the allocated `VkFaultCallbackInfo` public static VkFaultCallbackInfo alloc(SegmentAllocator allocator, long count) { return new VkFaultCallbackInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFaultCallbackInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFaultCallbackInfo` + public VkFaultCallbackInfo asSlice(long index) { return new VkFaultCallbackInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFaultCallbackInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFaultCallbackInfo` + public VkFaultCallbackInfo asSlice(long index, long count) { return new VkFaultCallbackInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultData.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultData.java index 353d04e1..f51f6f97 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultData.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFaultData.java @@ -95,6 +95,17 @@ public final class VkFaultData extends Struct { /// @return the allocated `VkFaultData` public static VkFaultData alloc(SegmentAllocator allocator, long count) { return new VkFaultData(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFaultData`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFaultData` + public VkFaultData asSlice(long index) { return new VkFaultData(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFaultData`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFaultData` + public VkFaultData asSlice(long index, long count) { return new VkFaultData(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFenceCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFenceCreateInfo.java index dde4351a..75fbe854 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFenceCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFenceCreateInfo.java @@ -89,6 +89,17 @@ public final class VkFenceCreateInfo extends Struct { /// @return the allocated `VkFenceCreateInfo` public static VkFenceCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkFenceCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFenceCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFenceCreateInfo` + public VkFenceCreateInfo asSlice(long index) { return new VkFenceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFenceCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFenceCreateInfo` + public VkFenceCreateInfo asSlice(long index, long count) { return new VkFenceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties.java index 86ad6255..e294fade 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties.java @@ -89,6 +89,17 @@ public final class VkFormatProperties extends Struct { /// @return the allocated `VkFormatProperties` public static VkFormatProperties alloc(SegmentAllocator allocator, long count) { return new VkFormatProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFormatProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFormatProperties` + public VkFormatProperties asSlice(long index) { return new VkFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFormatProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFormatProperties` + public VkFormatProperties asSlice(long index, long count) { return new VkFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `linearTilingFeatures` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties2.java index 646aed66..c71a4f3f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties2.java @@ -91,6 +91,17 @@ public final class VkFormatProperties2 extends Struct { /// @return the allocated `VkFormatProperties2` public static VkFormatProperties2 alloc(SegmentAllocator allocator, long count) { return new VkFormatProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFormatProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFormatProperties2` + public VkFormatProperties2 asSlice(long index) { return new VkFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFormatProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFormatProperties2` + public VkFormatProperties2 asSlice(long index, long count) { return new VkFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties3.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties3.java index ba1a9743..88213439 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties3.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFormatProperties3.java @@ -101,6 +101,17 @@ public final class VkFormatProperties3 extends Struct { /// @return the allocated `VkFormatProperties3` public static VkFormatProperties3 alloc(SegmentAllocator allocator, long count) { return new VkFormatProperties3(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFormatProperties3`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFormatProperties3` + public VkFormatProperties3 asSlice(long index) { return new VkFormatProperties3(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFormatProperties3`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFormatProperties3` + public VkFormatProperties3 asSlice(long index, long count) { return new VkFormatProperties3(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentImageInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentImageInfo.java index 99a549b4..682be4a8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentImageInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentImageInfo.java @@ -125,6 +125,17 @@ public final class VkFramebufferAttachmentImageInfo extends Struct { /// @return the allocated `VkFramebufferAttachmentImageInfo` public static VkFramebufferAttachmentImageInfo alloc(SegmentAllocator allocator, long count) { return new VkFramebufferAttachmentImageInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFramebufferAttachmentImageInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFramebufferAttachmentImageInfo` + public VkFramebufferAttachmentImageInfo asSlice(long index) { return new VkFramebufferAttachmentImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFramebufferAttachmentImageInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFramebufferAttachmentImageInfo` + public VkFramebufferAttachmentImageInfo asSlice(long index, long count) { return new VkFramebufferAttachmentImageInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentsCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentsCreateInfo.java index f3cee343..8e714390 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentsCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferAttachmentsCreateInfo.java @@ -95,6 +95,17 @@ public final class VkFramebufferAttachmentsCreateInfo extends Struct { /// @return the allocated `VkFramebufferAttachmentsCreateInfo` public static VkFramebufferAttachmentsCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkFramebufferAttachmentsCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFramebufferAttachmentsCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFramebufferAttachmentsCreateInfo` + public VkFramebufferAttachmentsCreateInfo asSlice(long index) { return new VkFramebufferAttachmentsCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFramebufferAttachmentsCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFramebufferAttachmentsCreateInfo` + public VkFramebufferAttachmentsCreateInfo asSlice(long index, long count) { return new VkFramebufferAttachmentsCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferCreateInfo.java index 7dbfc47b..fcc0d69f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkFramebufferCreateInfo.java @@ -125,6 +125,17 @@ public final class VkFramebufferCreateInfo extends Struct { /// @return the allocated `VkFramebufferCreateInfo` public static VkFramebufferCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkFramebufferCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkFramebufferCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkFramebufferCreateInfo` + public VkFramebufferCreateInfo asSlice(long index) { return new VkFramebufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkFramebufferCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkFramebufferCreateInfo` + public VkFramebufferCreateInfo asSlice(long index, long count) { return new VkFramebufferCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkGraphicsPipelineCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkGraphicsPipelineCreateInfo.java index 6073a296..7c39eba1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkGraphicsPipelineCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkGraphicsPipelineCreateInfo.java @@ -185,6 +185,17 @@ public final class VkGraphicsPipelineCreateInfo extends Struct { /// @return the allocated `VkGraphicsPipelineCreateInfo` public static VkGraphicsPipelineCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkGraphicsPipelineCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkGraphicsPipelineCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkGraphicsPipelineCreateInfo` + public VkGraphicsPipelineCreateInfo asSlice(long index) { return new VkGraphicsPipelineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkGraphicsPipelineCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkGraphicsPipelineCreateInfo` + public VkGraphicsPipelineCreateInfo asSlice(long index, long count) { return new VkGraphicsPipelineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageCopyDevicePerformanceQuery.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageCopyDevicePerformanceQuery.java index 776019f0..2335a3c1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageCopyDevicePerformanceQuery.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageCopyDevicePerformanceQuery.java @@ -95,6 +95,17 @@ public final class VkHostImageCopyDevicePerformanceQuery extends Struct { /// @return the allocated `VkHostImageCopyDevicePerformanceQuery` public static VkHostImageCopyDevicePerformanceQuery alloc(SegmentAllocator allocator, long count) { return new VkHostImageCopyDevicePerformanceQuery(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkHostImageCopyDevicePerformanceQuery`. + /// @param index the index of the struct buffer + /// @return the slice of `VkHostImageCopyDevicePerformanceQuery` + public VkHostImageCopyDevicePerformanceQuery asSlice(long index) { return new VkHostImageCopyDevicePerformanceQuery(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkHostImageCopyDevicePerformanceQuery`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkHostImageCopyDevicePerformanceQuery` + public VkHostImageCopyDevicePerformanceQuery asSlice(long index, long count) { return new VkHostImageCopyDevicePerformanceQuery(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageLayoutTransitionInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageLayoutTransitionInfo.java index 5649a5e9..206bd379 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageLayoutTransitionInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkHostImageLayoutTransitionInfo.java @@ -109,6 +109,17 @@ public final class VkHostImageLayoutTransitionInfo extends Struct { /// @return the allocated `VkHostImageLayoutTransitionInfo` public static VkHostImageLayoutTransitionInfo alloc(SegmentAllocator allocator, long count) { return new VkHostImageLayoutTransitionInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkHostImageLayoutTransitionInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkHostImageLayoutTransitionInfo` + public VkHostImageLayoutTransitionInfo asSlice(long index) { return new VkHostImageLayoutTransitionInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkHostImageLayoutTransitionInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkHostImageLayoutTransitionInfo` + public VkHostImageLayoutTransitionInfo asSlice(long index, long count) { return new VkHostImageLayoutTransitionInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit.java index 4192d5f2..5a7cf2f3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit.java @@ -28,11 +28,11 @@ /// ### srcSubresource /// [Byte offset][#OFFSET_srcSubresource] - [Memory layout][#ML_srcSubresource] - [Getter][#srcSubresource()] - [Setter][#srcSubresource(java.lang.foreign.MemorySegment)] /// ### srcOffsets -/// [Byte offset handle][#MH_srcOffsets] - [Memory layout][#ML_srcOffsets] - [Getter][#srcOffsets(long)] - [Setter][#srcOffsets(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_srcOffsets] - [Memory layout][#ML_srcOffsets] - [Getter][#srcOffsets()] - [Setter][#srcOffsets(java.lang.foreign.MemorySegment)] /// ### dstSubresource /// [Byte offset][#OFFSET_dstSubresource] - [Memory layout][#ML_dstSubresource] - [Getter][#dstSubresource()] - [Setter][#dstSubresource(java.lang.foreign.MemorySegment)] /// ### dstOffsets -/// [Byte offset handle][#MH_dstOffsets] - [Memory layout][#ML_dstOffsets] - [Getter][#dstOffsets(long)] - [Setter][#dstOffsets(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_dstOffsets] - [Memory layout][#ML_dstOffsets] - [Getter][#dstOffsets()] - [Setter][#dstOffsets(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -55,16 +55,16 @@ public final class VkImageBlit extends Struct { public static final long OFFSET_srcSubresource = LAYOUT.byteOffset(PathElement.groupElement("srcSubresource")); /// The memory layout of `srcSubresource`. public static final MemoryLayout ML_srcSubresource = LAYOUT.select(PathElement.groupElement("srcSubresource")); - /// The byte offset handle of `srcOffsets` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_srcOffsets = LAYOUT.byteOffsetHandle(PathElement.groupElement("srcOffsets"), PathElement.sequenceElement()); + /// The byte offset of `srcOffsets`. + public static final long OFFSET_srcOffsets = LAYOUT.byteOffset(PathElement.groupElement("srcOffsets")); /// The memory layout of `srcOffsets`. public static final MemoryLayout ML_srcOffsets = LAYOUT.select(PathElement.groupElement("srcOffsets")); /// The byte offset of `dstSubresource`. public static final long OFFSET_dstSubresource = LAYOUT.byteOffset(PathElement.groupElement("dstSubresource")); /// The memory layout of `dstSubresource`. public static final MemoryLayout ML_dstSubresource = LAYOUT.select(PathElement.groupElement("dstSubresource")); - /// The byte offset handle of `dstOffsets` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_dstOffsets = LAYOUT.byteOffsetHandle(PathElement.groupElement("dstOffsets"), PathElement.sequenceElement()); + /// The byte offset of `dstOffsets`. + public static final long OFFSET_dstOffsets = LAYOUT.byteOffset(PathElement.groupElement("dstOffsets")); /// The memory layout of `dstOffsets`. public static final MemoryLayout ML_dstOffsets = LAYOUT.select(PathElement.groupElement("dstOffsets")); @@ -103,6 +103,17 @@ public final class VkImageBlit extends Struct { /// @return the allocated `VkImageBlit` public static VkImageBlit alloc(SegmentAllocator allocator, long count) { return new VkImageBlit(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageBlit`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageBlit` + public VkImageBlit asSlice(long index) { return new VkImageBlit(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageBlit`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageBlit` + public VkImageBlit asSlice(long index, long count) { return new VkImageBlit(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcSubresource` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -135,49 +146,35 @@ public final class VkImageBlit extends Struct { public VkImageBlit srcSubresource(@CType("VkImageSubresourceLayers") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcSubresource(this.segment(), value); return this; } /// {@return `srcOffsets` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_srcOffsets.invokeExact(0L, elementIndex), index), ML_srcOffsets); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_srcOffsets, index), ML_srcOffsets); } /// {@return `srcOffsets`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long elementIndex) { return VkImageBlit.get_srcOffsets(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment) { return VkImageBlit.get_srcOffsets(segment, 0L); } /// {@return `srcOffsets` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsetsAt(long index, long elementIndex) { return VkImageBlit.get_srcOffsets(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsetsAt(long index) { return VkImageBlit.get_srcOffsets(this.segment(), index); } /// {@return `srcOffsets`} - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsets(long elementIndex) { return VkImageBlit.get_srcOffsets(this.segment(), elementIndex); } + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsets() { return VkImageBlit.get_srcOffsets(this.segment()); } /// Sets `srcOffsets` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_srcOffsets(MemorySegment segment, long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_srcOffsets.invokeExact(0L, elementIndex), index), ML_srcOffsets.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_srcOffsets(MemorySegment segment, long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_srcOffsets, index), ML_srcOffsets.byteSize()); } /// Sets `srcOffsets` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_srcOffsets(MemorySegment segment, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_srcOffsets(MemorySegment segment, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(segment, 0L, value); } /// Sets `srcOffsets` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkImageBlit srcOffsetsAt(long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(this.segment(), index, elementIndex, value); return this; } + public VkImageBlit srcOffsetsAt(long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(this.segment(), index, value); return this; } /// Sets `srcOffsets` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkImageBlit srcOffsets(long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(this.segment(), elementIndex, value); return this; } + public VkImageBlit srcOffsets(@CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_srcOffsets(this.segment(), value); return this; } /// {@return `dstSubresource` at the given index} /// @param segment the segment of the struct @@ -211,48 +208,34 @@ public static void set_srcOffsets(MemorySegment segment, long index, long elemen public VkImageBlit dstSubresource(@CType("VkImageSubresourceLayers") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstSubresource(this.segment(), value); return this; } /// {@return `dstOffsets` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_dstOffsets.invokeExact(0L, elementIndex), index), ML_dstOffsets); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_dstOffsets, index), ML_dstOffsets); } /// {@return `dstOffsets`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long elementIndex) { return VkImageBlit.get_dstOffsets(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment) { return VkImageBlit.get_dstOffsets(segment, 0L); } /// {@return `dstOffsets` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsetsAt(long index, long elementIndex) { return VkImageBlit.get_dstOffsets(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsetsAt(long index) { return VkImageBlit.get_dstOffsets(this.segment(), index); } /// {@return `dstOffsets`} - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsets(long elementIndex) { return VkImageBlit.get_dstOffsets(this.segment(), elementIndex); } + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsets() { return VkImageBlit.get_dstOffsets(this.segment()); } /// Sets `dstOffsets` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_dstOffsets(MemorySegment segment, long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_dstOffsets.invokeExact(0L, elementIndex), index), ML_dstOffsets.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_dstOffsets(MemorySegment segment, long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_dstOffsets, index), ML_dstOffsets.byteSize()); } /// Sets `dstOffsets` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_dstOffsets(MemorySegment segment, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_dstOffsets(MemorySegment segment, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(segment, 0L, value); } /// Sets `dstOffsets` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkImageBlit dstOffsetsAt(long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(this.segment(), index, elementIndex, value); return this; } + public VkImageBlit dstOffsetsAt(long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(this.segment(), index, value); return this; } /// Sets `dstOffsets` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkImageBlit dstOffsets(long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(this.segment(), elementIndex, value); return this; } + public VkImageBlit dstOffsets(@CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit.set_dstOffsets(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit2.java index d95539ee..0573fec7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageBlit2.java @@ -32,11 +32,11 @@ /// ### srcSubresource /// [Byte offset][#OFFSET_srcSubresource] - [Memory layout][#ML_srcSubresource] - [Getter][#srcSubresource()] - [Setter][#srcSubresource(java.lang.foreign.MemorySegment)] /// ### srcOffsets -/// [Byte offset handle][#MH_srcOffsets] - [Memory layout][#ML_srcOffsets] - [Getter][#srcOffsets(long)] - [Setter][#srcOffsets(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_srcOffsets] - [Memory layout][#ML_srcOffsets] - [Getter][#srcOffsets()] - [Setter][#srcOffsets(java.lang.foreign.MemorySegment)] /// ### dstSubresource /// [Byte offset][#OFFSET_dstSubresource] - [Memory layout][#ML_dstSubresource] - [Getter][#dstSubresource()] - [Setter][#dstSubresource(java.lang.foreign.MemorySegment)] /// ### dstOffsets -/// [Byte offset handle][#MH_dstOffsets] - [Memory layout][#ML_dstOffsets] - [Getter][#dstOffsets(long)] - [Setter][#dstOffsets(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_dstOffsets] - [Memory layout][#ML_dstOffsets] - [Getter][#dstOffsets()] - [Setter][#dstOffsets(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -67,16 +67,16 @@ public final class VkImageBlit2 extends Struct { public static final long OFFSET_srcSubresource = LAYOUT.byteOffset(PathElement.groupElement("srcSubresource")); /// The memory layout of `srcSubresource`. public static final MemoryLayout ML_srcSubresource = LAYOUT.select(PathElement.groupElement("srcSubresource")); - /// The byte offset handle of `srcOffsets` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_srcOffsets = LAYOUT.byteOffsetHandle(PathElement.groupElement("srcOffsets"), PathElement.sequenceElement()); + /// The byte offset of `srcOffsets`. + public static final long OFFSET_srcOffsets = LAYOUT.byteOffset(PathElement.groupElement("srcOffsets")); /// The memory layout of `srcOffsets`. public static final MemoryLayout ML_srcOffsets = LAYOUT.select(PathElement.groupElement("srcOffsets")); /// The byte offset of `dstSubresource`. public static final long OFFSET_dstSubresource = LAYOUT.byteOffset(PathElement.groupElement("dstSubresource")); /// The memory layout of `dstSubresource`. public static final MemoryLayout ML_dstSubresource = LAYOUT.select(PathElement.groupElement("dstSubresource")); - /// The byte offset handle of `dstOffsets` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_dstOffsets = LAYOUT.byteOffsetHandle(PathElement.groupElement("dstOffsets"), PathElement.sequenceElement()); + /// The byte offset of `dstOffsets`. + public static final long OFFSET_dstOffsets = LAYOUT.byteOffset(PathElement.groupElement("dstOffsets")); /// The memory layout of `dstOffsets`. public static final MemoryLayout ML_dstOffsets = LAYOUT.select(PathElement.groupElement("dstOffsets")); @@ -115,6 +115,17 @@ public final class VkImageBlit2 extends Struct { /// @return the allocated `VkImageBlit2` public static VkImageBlit2 alloc(SegmentAllocator allocator, long count) { return new VkImageBlit2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageBlit2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageBlit2` + public VkImageBlit2 asSlice(long index) { return new VkImageBlit2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageBlit2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageBlit2` + public VkImageBlit2 asSlice(long index, long count) { return new VkImageBlit2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -209,49 +220,35 @@ public final class VkImageBlit2 extends Struct { public VkImageBlit2 srcSubresource(@CType("VkImageSubresourceLayers") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcSubresource(this.segment(), value); return this; } /// {@return `srcOffsets` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_srcOffsets.invokeExact(0L, elementIndex), index), ML_srcOffsets); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_srcOffsets, index), ML_srcOffsets); } /// {@return `srcOffsets`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment, long elementIndex) { return VkImageBlit2.get_srcOffsets(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_srcOffsets(MemorySegment segment) { return VkImageBlit2.get_srcOffsets(segment, 0L); } /// {@return `srcOffsets` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsetsAt(long index, long elementIndex) { return VkImageBlit2.get_srcOffsets(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsetsAt(long index) { return VkImageBlit2.get_srcOffsets(this.segment(), index); } /// {@return `srcOffsets`} - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsets(long elementIndex) { return VkImageBlit2.get_srcOffsets(this.segment(), elementIndex); } + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment srcOffsets() { return VkImageBlit2.get_srcOffsets(this.segment()); } /// Sets `srcOffsets` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_srcOffsets(MemorySegment segment, long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_srcOffsets.invokeExact(0L, elementIndex), index), ML_srcOffsets.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_srcOffsets(MemorySegment segment, long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_srcOffsets, index), ML_srcOffsets.byteSize()); } /// Sets `srcOffsets` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_srcOffsets(MemorySegment segment, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_srcOffsets(MemorySegment segment, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(segment, 0L, value); } /// Sets `srcOffsets` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkImageBlit2 srcOffsetsAt(long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(this.segment(), index, elementIndex, value); return this; } + public VkImageBlit2 srcOffsetsAt(long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(this.segment(), index, value); return this; } /// Sets `srcOffsets` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkImageBlit2 srcOffsets(long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(this.segment(), elementIndex, value); return this; } + public VkImageBlit2 srcOffsets(@CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_srcOffsets(this.segment(), value); return this; } /// {@return `dstSubresource` at the given index} /// @param segment the segment of the struct @@ -285,48 +282,34 @@ public static void set_srcOffsets(MemorySegment segment, long index, long elemen public VkImageBlit2 dstSubresource(@CType("VkImageSubresourceLayers") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstSubresource(this.segment(), value); return this; } /// {@return `dstOffsets` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_dstOffsets.invokeExact(0L, elementIndex), index), ML_dstOffsets); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_dstOffsets, index), ML_dstOffsets); } /// {@return `dstOffsets`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment, long elementIndex) { return VkImageBlit2.get_dstOffsets(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment get_dstOffsets(MemorySegment segment) { return VkImageBlit2.get_dstOffsets(segment, 0L); } /// {@return `dstOffsets` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsetsAt(long index, long elementIndex) { return VkImageBlit2.get_dstOffsets(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsetsAt(long index) { return VkImageBlit2.get_dstOffsets(this.segment(), index); } /// {@return `dstOffsets`} - /// @param elementIndex the index of the element - public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsets(long elementIndex) { return VkImageBlit2.get_dstOffsets(this.segment(), elementIndex); } + public @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment dstOffsets() { return VkImageBlit2.get_dstOffsets(this.segment()); } /// Sets `dstOffsets` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_dstOffsets(MemorySegment segment, long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_dstOffsets.invokeExact(0L, elementIndex), index), ML_dstOffsets.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_dstOffsets(MemorySegment segment, long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_dstOffsets, index), ML_dstOffsets.byteSize()); } /// Sets `dstOffsets` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_dstOffsets(MemorySegment segment, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_dstOffsets(MemorySegment segment, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(segment, 0L, value); } /// Sets `dstOffsets` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkImageBlit2 dstOffsetsAt(long index, long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(this.segment(), index, elementIndex, value); return this; } + public VkImageBlit2 dstOffsetsAt(long index, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(this.segment(), index, value); return this; } /// Sets `dstOffsets` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkImageBlit2 dstOffsets(long elementIndex, @CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(this.segment(), elementIndex, value); return this; } + public VkImageBlit2 dstOffsets(@CType("VkOffset3D[2]") java.lang.foreign.MemorySegment value) { VkImageBlit2.set_dstOffsets(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy.java index 8654b6ec..d4e35726 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy.java @@ -111,6 +111,17 @@ public final class VkImageCopy extends Struct { /// @return the allocated `VkImageCopy` public static VkImageCopy alloc(SegmentAllocator allocator, long count) { return new VkImageCopy(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCopy`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCopy` + public VkImageCopy asSlice(long index) { return new VkImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCopy`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCopy` + public VkImageCopy asSlice(long index, long count) { return new VkImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcSubresource` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy2.java index ecbabddc..63636487 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCopy2.java @@ -123,6 +123,17 @@ public final class VkImageCopy2 extends Struct { /// @return the allocated `VkImageCopy2` public static VkImageCopy2 alloc(SegmentAllocator allocator, long count) { return new VkImageCopy2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCopy2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCopy2` + public VkImageCopy2 asSlice(long index) { return new VkImageCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCopy2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCopy2` + public VkImageCopy2 asSlice(long index, long count) { return new VkImageCopy2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCreateInfo.java index 15ffa4d3..4df62843 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageCreateInfo.java @@ -163,6 +163,17 @@ public final class VkImageCreateInfo extends Struct { /// @return the allocated `VkImageCreateInfo` public static VkImageCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkImageCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageCreateInfo` + public VkImageCreateInfo asSlice(long index) { return new VkImageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageCreateInfo` + public VkImageCreateInfo asSlice(long index, long count) { return new VkImageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatListCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatListCreateInfo.java index 9bea1822..50774cfb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatListCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatListCreateInfo.java @@ -95,6 +95,17 @@ public final class VkImageFormatListCreateInfo extends Struct { /// @return the allocated `VkImageFormatListCreateInfo` public static VkImageFormatListCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkImageFormatListCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageFormatListCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageFormatListCreateInfo` + public VkImageFormatListCreateInfo asSlice(long index) { return new VkImageFormatListCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageFormatListCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageFormatListCreateInfo` + public VkImageFormatListCreateInfo asSlice(long index, long count) { return new VkImageFormatListCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties.java index 7c76c9ca..9120af29 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties.java @@ -103,6 +103,17 @@ public final class VkImageFormatProperties extends Struct { /// @return the allocated `VkImageFormatProperties` public static VkImageFormatProperties alloc(SegmentAllocator allocator, long count) { return new VkImageFormatProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageFormatProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageFormatProperties` + public VkImageFormatProperties asSlice(long index) { return new VkImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageFormatProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageFormatProperties` + public VkImageFormatProperties asSlice(long index, long count) { return new VkImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `maxExtent` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties2.java index 6cee5c7e..df506a1a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageFormatProperties2.java @@ -91,6 +91,17 @@ public final class VkImageFormatProperties2 extends Struct { /// @return the allocated `VkImageFormatProperties2` public static VkImageFormatProperties2 alloc(SegmentAllocator allocator, long count) { return new VkImageFormatProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageFormatProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageFormatProperties2` + public VkImageFormatProperties2 asSlice(long index) { return new VkImageFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageFormatProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageFormatProperties2` + public VkImageFormatProperties2 asSlice(long index, long count) { return new VkImageFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier.java index c09d2f55..7e033907 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier.java @@ -133,6 +133,17 @@ public final class VkImageMemoryBarrier extends Struct { /// @return the allocated `VkImageMemoryBarrier` public static VkImageMemoryBarrier alloc(SegmentAllocator allocator, long count) { return new VkImageMemoryBarrier(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageMemoryBarrier`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageMemoryBarrier` + public VkImageMemoryBarrier asSlice(long index) { return new VkImageMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageMemoryBarrier`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageMemoryBarrier` + public VkImageMemoryBarrier asSlice(long index, long count) { return new VkImageMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier2.java index d2db94dd..de254877 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryBarrier2.java @@ -145,6 +145,17 @@ public final class VkImageMemoryBarrier2 extends Struct { /// @return the allocated `VkImageMemoryBarrier2` public static VkImageMemoryBarrier2 alloc(SegmentAllocator allocator, long count) { return new VkImageMemoryBarrier2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageMemoryBarrier2` + public VkImageMemoryBarrier2 asSlice(long index) { return new VkImageMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageMemoryBarrier2` + public VkImageMemoryBarrier2 asSlice(long index, long count) { return new VkImageMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryRequirementsInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryRequirementsInfo2.java index 7fb0527c..db77b098 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryRequirementsInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageMemoryRequirementsInfo2.java @@ -89,6 +89,17 @@ public final class VkImageMemoryRequirementsInfo2 extends Struct { /// @return the allocated `VkImageMemoryRequirementsInfo2` public static VkImageMemoryRequirementsInfo2 alloc(SegmentAllocator allocator, long count) { return new VkImageMemoryRequirementsInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageMemoryRequirementsInfo2` + public VkImageMemoryRequirementsInfo2 asSlice(long index) { return new VkImageMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageMemoryRequirementsInfo2` + public VkImageMemoryRequirementsInfo2 asSlice(long index, long count) { return new VkImageMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImagePlaneMemoryRequirementsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImagePlaneMemoryRequirementsInfo.java index 546f15a1..3fe5e587 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImagePlaneMemoryRequirementsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImagePlaneMemoryRequirementsInfo.java @@ -89,6 +89,17 @@ public final class VkImagePlaneMemoryRequirementsInfo extends Struct { /// @return the allocated `VkImagePlaneMemoryRequirementsInfo` public static VkImagePlaneMemoryRequirementsInfo alloc(SegmentAllocator allocator, long count) { return new VkImagePlaneMemoryRequirementsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImagePlaneMemoryRequirementsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImagePlaneMemoryRequirementsInfo` + public VkImagePlaneMemoryRequirementsInfo asSlice(long index) { return new VkImagePlaneMemoryRequirementsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImagePlaneMemoryRequirementsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImagePlaneMemoryRequirementsInfo` + public VkImagePlaneMemoryRequirementsInfo asSlice(long index, long count) { return new VkImagePlaneMemoryRequirementsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve.java index 11f5fc56..ecfa27e6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve.java @@ -111,6 +111,17 @@ public final class VkImageResolve extends Struct { /// @return the allocated `VkImageResolve` public static VkImageResolve alloc(SegmentAllocator allocator, long count) { return new VkImageResolve(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageResolve`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageResolve` + public VkImageResolve asSlice(long index) { return new VkImageResolve(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageResolve`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageResolve` + public VkImageResolve asSlice(long index, long count) { return new VkImageResolve(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcSubresource` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve2.java index 89c4635a..567ddbdf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageResolve2.java @@ -123,6 +123,17 @@ public final class VkImageResolve2 extends Struct { /// @return the allocated `VkImageResolve2` public static VkImageResolve2 alloc(SegmentAllocator allocator, long count) { return new VkImageResolve2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageResolve2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageResolve2` + public VkImageResolve2 asSlice(long index) { return new VkImageResolve2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageResolve2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageResolve2` + public VkImageResolve2 asSlice(long index, long count) { return new VkImageResolve2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSparseMemoryRequirementsInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSparseMemoryRequirementsInfo2.java index 7f6f5c54..0442b907 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSparseMemoryRequirementsInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSparseMemoryRequirementsInfo2.java @@ -89,6 +89,17 @@ public final class VkImageSparseMemoryRequirementsInfo2 extends Struct { /// @return the allocated `VkImageSparseMemoryRequirementsInfo2` public static VkImageSparseMemoryRequirementsInfo2 alloc(SegmentAllocator allocator, long count) { return new VkImageSparseMemoryRequirementsInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSparseMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSparseMemoryRequirementsInfo2` + public VkImageSparseMemoryRequirementsInfo2 asSlice(long index) { return new VkImageSparseMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSparseMemoryRequirementsInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSparseMemoryRequirementsInfo2` + public VkImageSparseMemoryRequirementsInfo2 asSlice(long index, long count) { return new VkImageSparseMemoryRequirementsInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageStencilUsageCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageStencilUsageCreateInfo.java index 155ffb31..fa7a15b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageStencilUsageCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageStencilUsageCreateInfo.java @@ -89,6 +89,17 @@ public final class VkImageStencilUsageCreateInfo extends Struct { /// @return the allocated `VkImageStencilUsageCreateInfo` public static VkImageStencilUsageCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkImageStencilUsageCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageStencilUsageCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageStencilUsageCreateInfo` + public VkImageStencilUsageCreateInfo asSlice(long index) { return new VkImageStencilUsageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageStencilUsageCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageStencilUsageCreateInfo` + public VkImageStencilUsageCreateInfo asSlice(long index, long count) { return new VkImageStencilUsageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource.java index 5bb18eb4..38c21563 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource.java @@ -89,6 +89,17 @@ public final class VkImageSubresource extends Struct { /// @return the allocated `VkImageSubresource` public static VkImageSubresource alloc(SegmentAllocator allocator, long count) { return new VkImageSubresource(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSubresource`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSubresource` + public VkImageSubresource asSlice(long index) { return new VkImageSubresource(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSubresource`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSubresource` + public VkImageSubresource asSlice(long index, long count) { return new VkImageSubresource(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspectMask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource2.java index 95d9d54c..d9a21616 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresource2.java @@ -91,6 +91,17 @@ public final class VkImageSubresource2 extends Struct { /// @return the allocated `VkImageSubresource2` public static VkImageSubresource2 alloc(SegmentAllocator allocator, long count) { return new VkImageSubresource2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSubresource2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSubresource2` + public VkImageSubresource2 asSlice(long index) { return new VkImageSubresource2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSubresource2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSubresource2` + public VkImageSubresource2 asSlice(long index, long count) { return new VkImageSubresource2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceLayers.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceLayers.java index 163889ca..62c85c85 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceLayers.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceLayers.java @@ -95,6 +95,17 @@ public final class VkImageSubresourceLayers extends Struct { /// @return the allocated `VkImageSubresourceLayers` public static VkImageSubresourceLayers alloc(SegmentAllocator allocator, long count) { return new VkImageSubresourceLayers(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSubresourceLayers`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSubresourceLayers` + public VkImageSubresourceLayers asSlice(long index) { return new VkImageSubresourceLayers(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSubresourceLayers`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSubresourceLayers` + public VkImageSubresourceLayers asSlice(long index, long count) { return new VkImageSubresourceLayers(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspectMask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceRange.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceRange.java index 2bced64b..234f390a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceRange.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageSubresourceRange.java @@ -101,6 +101,17 @@ public final class VkImageSubresourceRange extends Struct { /// @return the allocated `VkImageSubresourceRange` public static VkImageSubresourceRange alloc(SegmentAllocator allocator, long count) { return new VkImageSubresourceRange(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageSubresourceRange`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageSubresourceRange` + public VkImageSubresourceRange asSlice(long index) { return new VkImageSubresourceRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageSubresourceRange`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageSubresourceRange` + public VkImageSubresourceRange asSlice(long index, long count) { return new VkImageSubresourceRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspectMask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageToMemoryCopy.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageToMemoryCopy.java index bee8a6ab..9410a029 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageToMemoryCopy.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageToMemoryCopy.java @@ -125,6 +125,17 @@ public final class VkImageToMemoryCopy extends Struct { /// @return the allocated `VkImageToMemoryCopy` public static VkImageToMemoryCopy alloc(SegmentAllocator allocator, long count) { return new VkImageToMemoryCopy(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageToMemoryCopy`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageToMemoryCopy` + public VkImageToMemoryCopy asSlice(long index) { return new VkImageToMemoryCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageToMemoryCopy`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageToMemoryCopy` + public VkImageToMemoryCopy asSlice(long index, long count) { return new VkImageToMemoryCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewCreateInfo.java index 5c66d878..f03bcfcb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewCreateInfo.java @@ -123,6 +123,17 @@ public final class VkImageViewCreateInfo extends Struct { /// @return the allocated `VkImageViewCreateInfo` public static VkImageViewCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkImageViewCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewCreateInfo` + public VkImageViewCreateInfo asSlice(long index) { return new VkImageViewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewCreateInfo` + public VkImageViewCreateInfo asSlice(long index, long count) { return new VkImageViewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewUsageCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewUsageCreateInfo.java index 4d7f1c6d..581fbfe1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewUsageCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkImageViewUsageCreateInfo.java @@ -89,6 +89,17 @@ public final class VkImageViewUsageCreateInfo extends Struct { /// @return the allocated `VkImageViewUsageCreateInfo` public static VkImageViewUsageCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkImageViewUsageCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkImageViewUsageCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkImageViewUsageCreateInfo` + public VkImageViewUsageCreateInfo asSlice(long index) { return new VkImageViewUsageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkImageViewUsageCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkImageViewUsageCreateInfo` + public VkImageViewUsageCreateInfo asSlice(long index, long count) { return new VkImageViewUsageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInputAttachmentAspectReference.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInputAttachmentAspectReference.java index b7bc3e85..8a01308d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInputAttachmentAspectReference.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInputAttachmentAspectReference.java @@ -89,6 +89,17 @@ public final class VkInputAttachmentAspectReference extends Struct { /// @return the allocated `VkInputAttachmentAspectReference` public static VkInputAttachmentAspectReference alloc(SegmentAllocator allocator, long count) { return new VkInputAttachmentAspectReference(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkInputAttachmentAspectReference`. + /// @param index the index of the struct buffer + /// @return the slice of `VkInputAttachmentAspectReference` + public VkInputAttachmentAspectReference asSlice(long index) { return new VkInputAttachmentAspectReference(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkInputAttachmentAspectReference`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkInputAttachmentAspectReference` + public VkInputAttachmentAspectReference asSlice(long index, long count) { return new VkInputAttachmentAspectReference(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `subpass` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInstanceCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInstanceCreateInfo.java index efb3b9a1..4ad265c1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInstanceCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkInstanceCreateInfo.java @@ -119,6 +119,17 @@ public final class VkInstanceCreateInfo extends Struct { /// @return the allocated `VkInstanceCreateInfo` public static VkInstanceCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkInstanceCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkInstanceCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkInstanceCreateInfo` + public VkInstanceCreateInfo asSlice(long index) { return new VkInstanceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkInstanceCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkInstanceCreateInfo` + public VkInstanceCreateInfo asSlice(long index, long count) { return new VkInstanceCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkLayerProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkLayerProperties.java index 330a9cd2..fce3ba21 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkLayerProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkLayerProperties.java @@ -28,13 +28,13 @@ /// ## Members /// ### layerName -/// [Byte offset handle][#MH_layerName] - [Memory layout][#ML_layerName] - [Getter][#layerName(long)] - [Setter][#layerName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_layerName] - [Memory layout][#ML_layerName] - [Getter][#layerName()] - [Setter][#layerName(java.lang.foreign.MemorySegment)] /// ### specVersion /// [VarHandle][#VH_specVersion] - [Getter][#specVersion()] - [Setter][#specVersion(int)] /// ### implementationVersion /// [VarHandle][#VH_implementationVersion] - [Getter][#implementationVersion()] - [Setter][#implementationVersion(int)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -53,16 +53,16 @@ public final class VkLayerProperties extends Struct { ValueLayout.JAVA_INT.withName("implementationVersion"), MemoryLayout.sequenceLayout(VK_MAX_DESCRIPTION_SIZE, ValueLayout.JAVA_BYTE).withName("description") ); - /// The byte offset handle of `layerName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_layerName = LAYOUT.byteOffsetHandle(PathElement.groupElement("layerName"), PathElement.sequenceElement()); + /// The byte offset of `layerName`. + public static final long OFFSET_layerName = LAYOUT.byteOffset(PathElement.groupElement("layerName")); /// The memory layout of `layerName`. public static final MemoryLayout ML_layerName = LAYOUT.select(PathElement.groupElement("layerName")); /// The [VarHandle] of `specVersion` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_specVersion = LAYOUT.arrayElementVarHandle(PathElement.groupElement("specVersion")); /// The [VarHandle] of `implementationVersion` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_implementationVersion = LAYOUT.arrayElementVarHandle(PathElement.groupElement("implementationVersion")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); @@ -101,50 +101,47 @@ public final class VkLayerProperties extends Struct { /// @return the allocated `VkLayerProperties` public static VkLayerProperties alloc(SegmentAllocator allocator, long count) { return new VkLayerProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkLayerProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkLayerProperties` + public VkLayerProperties asSlice(long index) { return new VkLayerProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkLayerProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkLayerProperties` + public VkLayerProperties asSlice(long index, long count) { return new VkLayerProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `layerName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layerName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_layerName.invokeExact(0L, elementIndex), index), ML_layerName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layerName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_layerName, index), ML_layerName); } /// {@return `layerName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layerName(MemorySegment segment, long elementIndex) { return VkLayerProperties.get_layerName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layerName(MemorySegment segment) { return VkLayerProperties.get_layerName(segment, 0L); } /// {@return `layerName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerNameAt(long index, long elementIndex) { return VkLayerProperties.get_layerName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerNameAt(long index) { return VkLayerProperties.get_layerName(this.segment(), index); } /// {@return `layerName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerName(long elementIndex) { return VkLayerProperties.get_layerName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerName() { return VkLayerProperties.get_layerName(this.segment()); } /// Sets `layerName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_layerName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_layerName.invokeExact(0L, elementIndex), index), ML_layerName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_layerName(MemorySegment segment, long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_layerName, index), ML_layerName.byteSize()); } /// Sets `layerName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_layerName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_layerName(MemorySegment segment, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(segment, 0L, value); } /// Sets `layerName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkLayerProperties layerNameAt(long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(this.segment(), index, elementIndex, value); return this; } + public VkLayerProperties layerNameAt(long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(this.segment(), index, value); return this; } /// Sets `layerName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkLayerProperties layerName(long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(this.segment(), elementIndex, value); return this; } + public VkLayerProperties layerName(@CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_layerName(this.segment(), value); return this; } /// {@return `specVersion` at the given index} /// @param segment the segment of the struct @@ -209,48 +206,34 @@ public static void set_layerName(MemorySegment segment, long index, long element public VkLayerProperties implementationVersion(@CType("uint32_t") int value) { VkLayerProperties.set_implementationVersion(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkLayerProperties.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkLayerProperties.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkLayerProperties.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkLayerProperties.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkLayerProperties.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkLayerProperties.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkLayerProperties descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(this.segment(), index, elementIndex, value); return this; } + public VkLayerProperties descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkLayerProperties description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(this.segment(), elementIndex, value); return this; } + public VkLayerProperties description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkLayerProperties.set_description(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMappedMemoryRange.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMappedMemoryRange.java index 805830a0..ec9eb848 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMappedMemoryRange.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMappedMemoryRange.java @@ -101,6 +101,17 @@ public final class VkMappedMemoryRange extends Struct { /// @return the allocated `VkMappedMemoryRange` public static VkMappedMemoryRange alloc(SegmentAllocator allocator, long count) { return new VkMappedMemoryRange(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMappedMemoryRange`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMappedMemoryRange` + public VkMappedMemoryRange asSlice(long index) { return new VkMappedMemoryRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMappedMemoryRange`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMappedMemoryRange` + public VkMappedMemoryRange asSlice(long index, long count) { return new VkMappedMemoryRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateFlagsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateFlagsInfo.java index bb16b4e1..e3ba54e4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateFlagsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateFlagsInfo.java @@ -95,6 +95,17 @@ public final class VkMemoryAllocateFlagsInfo extends Struct { /// @return the allocated `VkMemoryAllocateFlagsInfo` public static VkMemoryAllocateFlagsInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryAllocateFlagsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryAllocateFlagsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryAllocateFlagsInfo` + public VkMemoryAllocateFlagsInfo asSlice(long index) { return new VkMemoryAllocateFlagsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryAllocateFlagsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryAllocateFlagsInfo` + public VkMemoryAllocateFlagsInfo asSlice(long index, long count) { return new VkMemoryAllocateFlagsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateInfo.java index e112686e..07aa683c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryAllocateInfo.java @@ -95,6 +95,17 @@ public final class VkMemoryAllocateInfo extends Struct { /// @return the allocated `VkMemoryAllocateInfo` public static VkMemoryAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryAllocateInfo` + public VkMemoryAllocateInfo asSlice(long index) { return new VkMemoryAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryAllocateInfo` + public VkMemoryAllocateInfo asSlice(long index, long count) { return new VkMemoryAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier.java index 5589eebd..b29e6699 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier.java @@ -95,6 +95,17 @@ public final class VkMemoryBarrier extends Struct { /// @return the allocated `VkMemoryBarrier` public static VkMemoryBarrier alloc(SegmentAllocator allocator, long count) { return new VkMemoryBarrier(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryBarrier`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryBarrier` + public VkMemoryBarrier asSlice(long index) { return new VkMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryBarrier`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryBarrier` + public VkMemoryBarrier asSlice(long index, long count) { return new VkMemoryBarrier(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier2.java index 079eb474..a264a506 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryBarrier2.java @@ -107,6 +107,17 @@ public final class VkMemoryBarrier2 extends Struct { /// @return the allocated `VkMemoryBarrier2` public static VkMemoryBarrier2 alloc(SegmentAllocator allocator, long count) { return new VkMemoryBarrier2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryBarrier2` + public VkMemoryBarrier2 asSlice(long index) { return new VkMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryBarrier2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryBarrier2` + public VkMemoryBarrier2 asSlice(long index, long count) { return new VkMemoryBarrier2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedAllocateInfo.java index 64f33905..f037b450 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedAllocateInfo.java @@ -95,6 +95,17 @@ public final class VkMemoryDedicatedAllocateInfo extends Struct { /// @return the allocated `VkMemoryDedicatedAllocateInfo` public static VkMemoryDedicatedAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryDedicatedAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryDedicatedAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryDedicatedAllocateInfo` + public VkMemoryDedicatedAllocateInfo asSlice(long index) { return new VkMemoryDedicatedAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryDedicatedAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryDedicatedAllocateInfo` + public VkMemoryDedicatedAllocateInfo asSlice(long index, long count) { return new VkMemoryDedicatedAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedRequirements.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedRequirements.java index 7d829c81..aea64336 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedRequirements.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryDedicatedRequirements.java @@ -95,6 +95,17 @@ public final class VkMemoryDedicatedRequirements extends Struct { /// @return the allocated `VkMemoryDedicatedRequirements` public static VkMemoryDedicatedRequirements alloc(SegmentAllocator allocator, long count) { return new VkMemoryDedicatedRequirements(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryDedicatedRequirements`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryDedicatedRequirements` + public VkMemoryDedicatedRequirements asSlice(long index) { return new VkMemoryDedicatedRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryDedicatedRequirements`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryDedicatedRequirements` + public VkMemoryDedicatedRequirements asSlice(long index, long count) { return new VkMemoryDedicatedRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryHeap.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryHeap.java index 358b5b24..16cd8b63 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryHeap.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryHeap.java @@ -83,6 +83,17 @@ public final class VkMemoryHeap extends Struct { /// @return the allocated `VkMemoryHeap` public static VkMemoryHeap alloc(SegmentAllocator allocator, long count) { return new VkMemoryHeap(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryHeap`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryHeap` + public VkMemoryHeap asSlice(long index) { return new VkMemoryHeap(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryHeap`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryHeap` + public VkMemoryHeap asSlice(long index, long count) { return new VkMemoryHeap(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `size` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryMapInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryMapInfo.java index dd2580d5..96a6e543 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryMapInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryMapInfo.java @@ -107,6 +107,17 @@ public final class VkMemoryMapInfo extends Struct { /// @return the allocated `VkMemoryMapInfo` public static VkMemoryMapInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryMapInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryMapInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryMapInfo` + public VkMemoryMapInfo asSlice(long index) { return new VkMemoryMapInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryMapInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryMapInfo` + public VkMemoryMapInfo asSlice(long index, long count) { return new VkMemoryMapInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryOpaqueCaptureAddressAllocateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryOpaqueCaptureAddressAllocateInfo.java index e8c10169..736269d0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryOpaqueCaptureAddressAllocateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryOpaqueCaptureAddressAllocateInfo.java @@ -89,6 +89,17 @@ public final class VkMemoryOpaqueCaptureAddressAllocateInfo extends Struct { /// @return the allocated `VkMemoryOpaqueCaptureAddressAllocateInfo` public static VkMemoryOpaqueCaptureAddressAllocateInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryOpaqueCaptureAddressAllocateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryOpaqueCaptureAddressAllocateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryOpaqueCaptureAddressAllocateInfo` + public VkMemoryOpaqueCaptureAddressAllocateInfo asSlice(long index) { return new VkMemoryOpaqueCaptureAddressAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryOpaqueCaptureAddressAllocateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryOpaqueCaptureAddressAllocateInfo` + public VkMemoryOpaqueCaptureAddressAllocateInfo asSlice(long index, long count) { return new VkMemoryOpaqueCaptureAddressAllocateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements.java index 9ed8d066..ade87564 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements.java @@ -89,6 +89,17 @@ public final class VkMemoryRequirements extends Struct { /// @return the allocated `VkMemoryRequirements` public static VkMemoryRequirements alloc(SegmentAllocator allocator, long count) { return new VkMemoryRequirements(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryRequirements`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryRequirements` + public VkMemoryRequirements asSlice(long index) { return new VkMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryRequirements`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryRequirements` + public VkMemoryRequirements asSlice(long index, long count) { return new VkMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `size` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements2.java index fe94c221..7858adfb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryRequirements2.java @@ -91,6 +91,17 @@ public final class VkMemoryRequirements2 extends Struct { /// @return the allocated `VkMemoryRequirements2` public static VkMemoryRequirements2 alloc(SegmentAllocator allocator, long count) { return new VkMemoryRequirements2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryRequirements2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryRequirements2` + public VkMemoryRequirements2 asSlice(long index) { return new VkMemoryRequirements2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryRequirements2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryRequirements2` + public VkMemoryRequirements2 asSlice(long index, long count) { return new VkMemoryRequirements2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryToImageCopy.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryToImageCopy.java index 65dfc6cf..d9cfe6ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryToImageCopy.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryToImageCopy.java @@ -125,6 +125,17 @@ public final class VkMemoryToImageCopy extends Struct { /// @return the allocated `VkMemoryToImageCopy` public static VkMemoryToImageCopy alloc(SegmentAllocator allocator, long count) { return new VkMemoryToImageCopy(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryToImageCopy`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryToImageCopy` + public VkMemoryToImageCopy asSlice(long index) { return new VkMemoryToImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryToImageCopy`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryToImageCopy` + public VkMemoryToImageCopy asSlice(long index, long count) { return new VkMemoryToImageCopy(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryType.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryType.java index f28e438c..d8517ffc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryType.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryType.java @@ -83,6 +83,17 @@ public final class VkMemoryType extends Struct { /// @return the allocated `VkMemoryType` public static VkMemoryType alloc(SegmentAllocator allocator, long count) { return new VkMemoryType(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryType`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryType` + public VkMemoryType asSlice(long index) { return new VkMemoryType(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryType`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryType` + public VkMemoryType asSlice(long index, long count) { return new VkMemoryType(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `propertyFlags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryUnmapInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryUnmapInfo.java index c634274b..9dd9f0ce 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryUnmapInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkMemoryUnmapInfo.java @@ -95,6 +95,17 @@ public final class VkMemoryUnmapInfo extends Struct { /// @return the allocated `VkMemoryUnmapInfo` public static VkMemoryUnmapInfo alloc(SegmentAllocator allocator, long count) { return new VkMemoryUnmapInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkMemoryUnmapInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkMemoryUnmapInfo` + public VkMemoryUnmapInfo asSlice(long index) { return new VkMemoryUnmapInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkMemoryUnmapInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkMemoryUnmapInfo` + public VkMemoryUnmapInfo asSlice(long index, long count) { return new VkMemoryUnmapInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset2D.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset2D.java index 9506207f..f9fac135 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset2D.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset2D.java @@ -83,6 +83,17 @@ public final class VkOffset2D extends Struct { /// @return the allocated `VkOffset2D` public static VkOffset2D alloc(SegmentAllocator allocator, long count) { return new VkOffset2D(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOffset2D`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOffset2D` + public VkOffset2D asSlice(long index) { return new VkOffset2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOffset2D`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOffset2D` + public VkOffset2D asSlice(long index, long count) { return new VkOffset2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset3D.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset3D.java index c31908f9..39ccf213 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset3D.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkOffset3D.java @@ -89,6 +89,17 @@ public final class VkOffset3D extends Struct { /// @return the allocated `VkOffset3D` public static VkOffset3D alloc(SegmentAllocator allocator, long count) { return new VkOffset3D(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkOffset3D`. + /// @param index the index of the struct buffer + /// @return the slice of `VkOffset3D` + public VkOffset3D asSlice(long index) { return new VkOffset3D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkOffset3D`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkOffset3D` + public VkOffset3D asSlice(long index, long count) { return new VkOffset3D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice16BitStorageFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice16BitStorageFeatures.java index 69669f1c..90bbe0e8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice16BitStorageFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice16BitStorageFeatures.java @@ -107,6 +107,17 @@ public final class VkPhysicalDevice16BitStorageFeatures extends Struct { /// @return the allocated `VkPhysicalDevice16BitStorageFeatures` public static VkPhysicalDevice16BitStorageFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevice16BitStorageFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevice16BitStorageFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevice16BitStorageFeatures` + public VkPhysicalDevice16BitStorageFeatures asSlice(long index) { return new VkPhysicalDevice16BitStorageFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevice16BitStorageFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevice16BitStorageFeatures` + public VkPhysicalDevice16BitStorageFeatures asSlice(long index, long count) { return new VkPhysicalDevice16BitStorageFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice8BitStorageFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice8BitStorageFeatures.java index 05ce4f14..6cd5cac2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice8BitStorageFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevice8BitStorageFeatures.java @@ -101,6 +101,17 @@ public final class VkPhysicalDevice8BitStorageFeatures extends Struct { /// @return the allocated `VkPhysicalDevice8BitStorageFeatures` public static VkPhysicalDevice8BitStorageFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevice8BitStorageFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevice8BitStorageFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevice8BitStorageFeatures` + public VkPhysicalDevice8BitStorageFeatures asSlice(long index) { return new VkPhysicalDevice8BitStorageFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevice8BitStorageFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevice8BitStorageFeatures` + public VkPhysicalDevice8BitStorageFeatures asSlice(long index, long count) { return new VkPhysicalDevice8BitStorageFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceBufferDeviceAddressFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceBufferDeviceAddressFeatures.java index 4da1aa6e..d6c9d3e8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceBufferDeviceAddressFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceBufferDeviceAddressFeatures.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceBufferDeviceAddressFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceBufferDeviceAddressFeatures` public static VkPhysicalDeviceBufferDeviceAddressFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceBufferDeviceAddressFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceBufferDeviceAddressFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceBufferDeviceAddressFeatures` + public VkPhysicalDeviceBufferDeviceAddressFeatures asSlice(long index) { return new VkPhysicalDeviceBufferDeviceAddressFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceBufferDeviceAddressFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceBufferDeviceAddressFeatures` + public VkPhysicalDeviceBufferDeviceAddressFeatures asSlice(long index, long count) { return new VkPhysicalDeviceBufferDeviceAddressFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDepthStencilResolveProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDepthStencilResolveProperties.java index f0075409..6a8bbec1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDepthStencilResolveProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDepthStencilResolveProperties.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceDepthStencilResolveProperties extends Struct /// @return the allocated `VkPhysicalDeviceDepthStencilResolveProperties` public static VkPhysicalDeviceDepthStencilResolveProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDepthStencilResolveProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDepthStencilResolveProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDepthStencilResolveProperties` + public VkPhysicalDeviceDepthStencilResolveProperties asSlice(long index) { return new VkPhysicalDeviceDepthStencilResolveProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDepthStencilResolveProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDepthStencilResolveProperties` + public VkPhysicalDeviceDepthStencilResolveProperties asSlice(long index, long count) { return new VkPhysicalDeviceDepthStencilResolveProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingFeatures.java index 6be29555..67e48a23 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingFeatures.java @@ -203,6 +203,17 @@ public final class VkPhysicalDeviceDescriptorIndexingFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceDescriptorIndexingFeatures` public static VkPhysicalDeviceDescriptorIndexingFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorIndexingFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorIndexingFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorIndexingFeatures` + public VkPhysicalDeviceDescriptorIndexingFeatures asSlice(long index) { return new VkPhysicalDeviceDescriptorIndexingFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorIndexingFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorIndexingFeatures` + public VkPhysicalDeviceDescriptorIndexingFeatures asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorIndexingFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingProperties.java index 51704839..b2c18d96 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDescriptorIndexingProperties.java @@ -221,6 +221,17 @@ public final class VkPhysicalDeviceDescriptorIndexingProperties extends Struct { /// @return the allocated `VkPhysicalDeviceDescriptorIndexingProperties` public static VkPhysicalDeviceDescriptorIndexingProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorIndexingProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorIndexingProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorIndexingProperties` + public VkPhysicalDeviceDescriptorIndexingProperties asSlice(long index) { return new VkPhysicalDeviceDescriptorIndexingProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorIndexingProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorIndexingProperties` + public VkPhysicalDeviceDescriptorIndexingProperties asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorIndexingProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDriverProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDriverProperties.java index 09d6147d..c477ac27 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDriverProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDriverProperties.java @@ -34,9 +34,9 @@ /// ### driverID /// [VarHandle][#VH_driverID] - [Getter][#driverID()] - [Setter][#driverID(int)] /// ### driverName -/// [Byte offset handle][#MH_driverName] - [Memory layout][#ML_driverName] - [Getter][#driverName(long)] - [Setter][#driverName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverName] - [Memory layout][#ML_driverName] - [Getter][#driverName()] - [Setter][#driverName(java.lang.foreign.MemorySegment)] /// ### driverInfo -/// [Byte offset handle][#MH_driverInfo] - [Memory layout][#ML_driverInfo] - [Getter][#driverInfo(long)] - [Setter][#driverInfo(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverInfo] - [Memory layout][#ML_driverInfo] - [Getter][#driverInfo()] - [Setter][#driverInfo(java.lang.foreign.MemorySegment)] /// ### conformanceVersion /// [Byte offset][#OFFSET_conformanceVersion] - [Memory layout][#ML_conformanceVersion] - [Getter][#conformanceVersion()] - [Setter][#conformanceVersion(java.lang.foreign.MemorySegment)] /// ## Layout @@ -67,12 +67,12 @@ public final class VkPhysicalDeviceDriverProperties extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `driverID` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_driverID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("driverID")); - /// The byte offset handle of `driverName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverName = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverName"), PathElement.sequenceElement()); + /// The byte offset of `driverName`. + public static final long OFFSET_driverName = LAYOUT.byteOffset(PathElement.groupElement("driverName")); /// The memory layout of `driverName`. public static final MemoryLayout ML_driverName = LAYOUT.select(PathElement.groupElement("driverName")); - /// The byte offset handle of `driverInfo` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverInfo = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverInfo"), PathElement.sequenceElement()); + /// The byte offset of `driverInfo`. + public static final long OFFSET_driverInfo = LAYOUT.byteOffset(PathElement.groupElement("driverInfo")); /// The memory layout of `driverInfo`. public static final MemoryLayout ML_driverInfo = LAYOUT.select(PathElement.groupElement("driverInfo")); /// The byte offset of `conformanceVersion`. @@ -115,6 +115,17 @@ public final class VkPhysicalDeviceDriverProperties extends Struct { /// @return the allocated `VkPhysicalDeviceDriverProperties` public static VkPhysicalDeviceDriverProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDriverProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDriverProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDriverProperties` + public VkPhysicalDeviceDriverProperties asSlice(long index) { return new VkPhysicalDeviceDriverProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDriverProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDriverProperties` + public VkPhysicalDeviceDriverProperties asSlice(long index, long count) { return new VkPhysicalDeviceDriverProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -209,94 +220,66 @@ public final class VkPhysicalDeviceDriverProperties extends Struct { public VkPhysicalDeviceDriverProperties driverID(@CType("VkDriverId") int value) { VkPhysicalDeviceDriverProperties.set_driverID(this.segment(), value); return this; } /// {@return `driverName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverName.invokeExact(0L, elementIndex), index), ML_driverName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverName, index), ML_driverName); } /// {@return `driverName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment) { return VkPhysicalDeviceDriverProperties.get_driverName(segment, 0L); } /// {@return `driverName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverNameAt(long index, long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverNameAt(long index) { return VkPhysicalDeviceDriverProperties.get_driverName(this.segment(), index); } /// {@return `driverName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverName(long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverName() { return VkPhysicalDeviceDriverProperties.get_driverName(this.segment()); } /// Sets `driverName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverName.invokeExact(0L, elementIndex), index), ML_driverName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverName(MemorySegment segment, long index, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverName, index), ML_driverName.byteSize()); } /// Sets `driverName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverName(MemorySegment segment, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(segment, 0L, value); } /// Sets `driverName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceDriverProperties driverNameAt(long index, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceDriverProperties driverNameAt(long index, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(this.segment(), index, value); return this; } /// Sets `driverName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceDriverProperties driverName(long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceDriverProperties driverName(@CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverName(this.segment(), value); return this; } /// {@return `driverInfo` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverInfo.invokeExact(0L, elementIndex), index), ML_driverInfo); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverInfo, index), ML_driverInfo); } /// {@return `driverInfo`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverInfo(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment) { return VkPhysicalDeviceDriverProperties.get_driverInfo(segment, 0L); } /// {@return `driverInfo` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfoAt(long index, long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverInfo(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfoAt(long index) { return VkPhysicalDeviceDriverProperties.get_driverInfo(this.segment(), index); } /// {@return `driverInfo`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfo(long elementIndex) { return VkPhysicalDeviceDriverProperties.get_driverInfo(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfo() { return VkPhysicalDeviceDriverProperties.get_driverInfo(this.segment()); } /// Sets `driverInfo` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverInfo(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverInfo.invokeExact(0L, elementIndex), index), ML_driverInfo.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverInfo(MemorySegment segment, long index, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverInfo, index), ML_driverInfo.byteSize()); } /// Sets `driverInfo` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverInfo(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverInfo(MemorySegment segment, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(segment, 0L, value); } /// Sets `driverInfo` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceDriverProperties driverInfoAt(long index, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceDriverProperties driverInfoAt(long index, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(this.segment(), index, value); return this; } /// Sets `driverInfo` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceDriverProperties driverInfo(long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceDriverProperties driverInfo(@CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceDriverProperties.set_driverInfo(this.segment(), value); return this; } /// {@return `conformanceVersion` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingFeatures.java index 37199358..86e5b39d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDynamicRenderingFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceDynamicRenderingFeatures` public static VkPhysicalDeviceDynamicRenderingFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDynamicRenderingFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDynamicRenderingFeatures` + public VkPhysicalDeviceDynamicRenderingFeatures asSlice(long index) { return new VkPhysicalDeviceDynamicRenderingFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDynamicRenderingFeatures` + public VkPhysicalDeviceDynamicRenderingFeatures asSlice(long index, long count) { return new VkPhysicalDeviceDynamicRenderingFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingLocalReadFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingLocalReadFeatures.java index 31c73880..52e8d3b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingLocalReadFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceDynamicRenderingLocalReadFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDynamicRenderingLocalReadFeatures extends Str /// @return the allocated `VkPhysicalDeviceDynamicRenderingLocalReadFeatures` public static VkPhysicalDeviceDynamicRenderingLocalReadFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDynamicRenderingLocalReadFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingLocalReadFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDynamicRenderingLocalReadFeatures` + public VkPhysicalDeviceDynamicRenderingLocalReadFeatures asSlice(long index) { return new VkPhysicalDeviceDynamicRenderingLocalReadFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDynamicRenderingLocalReadFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDynamicRenderingLocalReadFeatures` + public VkPhysicalDeviceDynamicRenderingLocalReadFeatures asSlice(long index, long count) { return new VkPhysicalDeviceDynamicRenderingLocalReadFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalBufferInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalBufferInfo.java index 44359576..af28e683 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalBufferInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalBufferInfo.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceExternalBufferInfo extends Struct { /// @return the allocated `VkPhysicalDeviceExternalBufferInfo` public static VkPhysicalDeviceExternalBufferInfo alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalBufferInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalBufferInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalBufferInfo` + public VkPhysicalDeviceExternalBufferInfo asSlice(long index) { return new VkPhysicalDeviceExternalBufferInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalBufferInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalBufferInfo` + public VkPhysicalDeviceExternalBufferInfo asSlice(long index, long count) { return new VkPhysicalDeviceExternalBufferInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalFenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalFenceInfo.java index 3ab4100f..b700d9dd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalFenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalFenceInfo.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalFenceInfo extends Struct { /// @return the allocated `VkPhysicalDeviceExternalFenceInfo` public static VkPhysicalDeviceExternalFenceInfo alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalFenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalFenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalFenceInfo` + public VkPhysicalDeviceExternalFenceInfo asSlice(long index) { return new VkPhysicalDeviceExternalFenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalFenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalFenceInfo` + public VkPhysicalDeviceExternalFenceInfo asSlice(long index, long count) { return new VkPhysicalDeviceExternalFenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalImageFormatInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalImageFormatInfo.java index 5aeb395b..26a8dfc5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalImageFormatInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalImageFormatInfo.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalImageFormatInfo extends Struct { /// @return the allocated `VkPhysicalDeviceExternalImageFormatInfo` public static VkPhysicalDeviceExternalImageFormatInfo alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalImageFormatInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalImageFormatInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalImageFormatInfo` + public VkPhysicalDeviceExternalImageFormatInfo asSlice(long index) { return new VkPhysicalDeviceExternalImageFormatInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalImageFormatInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalImageFormatInfo` + public VkPhysicalDeviceExternalImageFormatInfo asSlice(long index, long count) { return new VkPhysicalDeviceExternalImageFormatInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalSemaphoreInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalSemaphoreInfo.java index 2ddc04bd..a1225ef9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalSemaphoreInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceExternalSemaphoreInfo.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceExternalSemaphoreInfo extends Struct { /// @return the allocated `VkPhysicalDeviceExternalSemaphoreInfo` public static VkPhysicalDeviceExternalSemaphoreInfo alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceExternalSemaphoreInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceExternalSemaphoreInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceExternalSemaphoreInfo` + public VkPhysicalDeviceExternalSemaphoreInfo asSlice(long index) { return new VkPhysicalDeviceExternalSemaphoreInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceExternalSemaphoreInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceExternalSemaphoreInfo` + public VkPhysicalDeviceExternalSemaphoreInfo asSlice(long index, long count) { return new VkPhysicalDeviceExternalSemaphoreInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures.java index 4f31e47a..159bdf35 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures.java @@ -401,6 +401,17 @@ public final class VkPhysicalDeviceFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceFeatures` public static VkPhysicalDeviceFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFeatures` + public VkPhysicalDeviceFeatures asSlice(long index) { return new VkPhysicalDeviceFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFeatures` + public VkPhysicalDeviceFeatures asSlice(long index, long count) { return new VkPhysicalDeviceFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `robustBufferAccess` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures2.java index 11756a1d..b5d94704 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFeatures2.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceFeatures2 extends Struct { /// @return the allocated `VkPhysicalDeviceFeatures2` public static VkPhysicalDeviceFeatures2 alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFeatures2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFeatures2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFeatures2` + public VkPhysicalDeviceFeatures2 asSlice(long index) { return new VkPhysicalDeviceFeatures2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFeatures2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFeatures2` + public VkPhysicalDeviceFeatures2 asSlice(long index, long count) { return new VkPhysicalDeviceFeatures2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFloatControlsProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFloatControlsProperties.java index fee33949..d2569eee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFloatControlsProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceFloatControlsProperties.java @@ -185,6 +185,17 @@ public final class VkPhysicalDeviceFloatControlsProperties extends Struct { /// @return the allocated `VkPhysicalDeviceFloatControlsProperties` public static VkPhysicalDeviceFloatControlsProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceFloatControlsProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceFloatControlsProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceFloatControlsProperties` + public VkPhysicalDeviceFloatControlsProperties asSlice(long index) { return new VkPhysicalDeviceFloatControlsProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceFloatControlsProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceFloatControlsProperties` + public VkPhysicalDeviceFloatControlsProperties asSlice(long index, long count) { return new VkPhysicalDeviceFloatControlsProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGlobalPriorityQueryFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGlobalPriorityQueryFeatures.java index 6f4506e0..f0869038 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGlobalPriorityQueryFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGlobalPriorityQueryFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceGlobalPriorityQueryFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceGlobalPriorityQueryFeatures` public static VkPhysicalDeviceGlobalPriorityQueryFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceGlobalPriorityQueryFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceGlobalPriorityQueryFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceGlobalPriorityQueryFeatures` + public VkPhysicalDeviceGlobalPriorityQueryFeatures asSlice(long index) { return new VkPhysicalDeviceGlobalPriorityQueryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceGlobalPriorityQueryFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceGlobalPriorityQueryFeatures` + public VkPhysicalDeviceGlobalPriorityQueryFeatures asSlice(long index, long count) { return new VkPhysicalDeviceGlobalPriorityQueryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGroupProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGroupProperties.java index ee81d9fa..d39b5029 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGroupProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceGroupProperties.java @@ -33,7 +33,7 @@ /// ### physicalDeviceCount /// [VarHandle][#VH_physicalDeviceCount] - [Getter][#physicalDeviceCount()] - [Setter][#physicalDeviceCount(int)] /// ### physicalDevices -/// [Byte offset handle][#MH_physicalDevices] - [Memory layout][#ML_physicalDevices] - [Getter][#physicalDevices(long)] - [Setter][#physicalDevices(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_physicalDevices] - [Memory layout][#ML_physicalDevices] - [Getter][#physicalDevices()] - [Setter][#physicalDevices(java.lang.foreign.MemorySegment)] /// ### subsetAllocation /// [VarHandle][#VH_subsetAllocation] - [Getter][#subsetAllocation()] - [Setter][#subsetAllocation(int)] /// ## Layout @@ -62,8 +62,8 @@ public final class VkPhysicalDeviceGroupProperties extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `physicalDeviceCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_physicalDeviceCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("physicalDeviceCount")); - /// The byte offset handle of `physicalDevices` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_physicalDevices = LAYOUT.byteOffsetHandle(PathElement.groupElement("physicalDevices"), PathElement.sequenceElement()); + /// The byte offset of `physicalDevices`. + public static final long OFFSET_physicalDevices = LAYOUT.byteOffset(PathElement.groupElement("physicalDevices")); /// The memory layout of `physicalDevices`. public static final MemoryLayout ML_physicalDevices = LAYOUT.select(PathElement.groupElement("physicalDevices")); /// The [VarHandle] of `subsetAllocation` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -104,6 +104,17 @@ public final class VkPhysicalDeviceGroupProperties extends Struct { /// @return the allocated `VkPhysicalDeviceGroupProperties` public static VkPhysicalDeviceGroupProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceGroupProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceGroupProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceGroupProperties` + public VkPhysicalDeviceGroupProperties asSlice(long index) { return new VkPhysicalDeviceGroupProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceGroupProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceGroupProperties` + public VkPhysicalDeviceGroupProperties asSlice(long index, long count) { return new VkPhysicalDeviceGroupProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -198,49 +209,35 @@ public final class VkPhysicalDeviceGroupProperties extends Struct { public VkPhysicalDeviceGroupProperties physicalDeviceCount(@CType("uint32_t") int value) { VkPhysicalDeviceGroupProperties.set_physicalDeviceCount(this.segment(), value); return this; } /// {@return `physicalDevices` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_physicalDevices(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_physicalDevices.invokeExact(0L, elementIndex), index), ML_physicalDevices); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_physicalDevices(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_physicalDevices, index), ML_physicalDevices); } /// {@return `physicalDevices`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_physicalDevices(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceGroupProperties.get_physicalDevices(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment get_physicalDevices(MemorySegment segment) { return VkPhysicalDeviceGroupProperties.get_physicalDevices(segment, 0L); } /// {@return `physicalDevices` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment physicalDevicesAt(long index, long elementIndex) { return VkPhysicalDeviceGroupProperties.get_physicalDevices(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment physicalDevicesAt(long index) { return VkPhysicalDeviceGroupProperties.get_physicalDevices(this.segment(), index); } /// {@return `physicalDevices`} - /// @param elementIndex the index of the element - public @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment physicalDevices(long elementIndex) { return VkPhysicalDeviceGroupProperties.get_physicalDevices(this.segment(), elementIndex); } + public @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment physicalDevices() { return VkPhysicalDeviceGroupProperties.get_physicalDevices(this.segment()); } /// Sets `physicalDevices` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_physicalDevices(MemorySegment segment, long index, long elementIndex, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_physicalDevices.invokeExact(0L, elementIndex), index), ML_physicalDevices.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_physicalDevices(MemorySegment segment, long index, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_physicalDevices, index), ML_physicalDevices.byteSize()); } /// Sets `physicalDevices` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_physicalDevices(MemorySegment segment, long elementIndex, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_physicalDevices(MemorySegment segment, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(segment, 0L, value); } /// Sets `physicalDevices` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceGroupProperties physicalDevicesAt(long index, long elementIndex, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceGroupProperties physicalDevicesAt(long index, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(this.segment(), index, value); return this; } /// Sets `physicalDevices` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceGroupProperties physicalDevices(long elementIndex, @CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceGroupProperties physicalDevices(@CType("VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceGroupProperties.set_physicalDevices(this.segment(), value); return this; } /// {@return `subsetAllocation` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyFeatures.java index 9ebf72ea..82f1fafc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceHostImageCopyFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceHostImageCopyFeatures` public static VkPhysicalDeviceHostImageCopyFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceHostImageCopyFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceHostImageCopyFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceHostImageCopyFeatures` + public VkPhysicalDeviceHostImageCopyFeatures asSlice(long index) { return new VkPhysicalDeviceHostImageCopyFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceHostImageCopyFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceHostImageCopyFeatures` + public VkPhysicalDeviceHostImageCopyFeatures asSlice(long index, long count) { return new VkPhysicalDeviceHostImageCopyFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyProperties.java index 8a61e489..a7480daa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostImageCopyProperties.java @@ -39,7 +39,7 @@ /// ### pCopyDstLayouts /// [VarHandle][#VH_pCopyDstLayouts] - [Getter][#pCopyDstLayouts()] - [Setter][#pCopyDstLayouts(java.lang.foreign.MemorySegment)] /// ### optimalTilingLayoutUUID -/// [Byte offset handle][#MH_optimalTilingLayoutUUID] - [Memory layout][#ML_optimalTilingLayoutUUID] - [Getter][#optimalTilingLayoutUUID(long)] - [Setter][#optimalTilingLayoutUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_optimalTilingLayoutUUID] - [Memory layout][#ML_optimalTilingLayoutUUID] - [Getter][#optimalTilingLayoutUUID()] - [Setter][#optimalTilingLayoutUUID(java.lang.foreign.MemorySegment)] /// ### identicalMemoryTypeRequirements /// [VarHandle][#VH_identicalMemoryTypeRequirements] - [Getter][#identicalMemoryTypeRequirements()] - [Setter][#identicalMemoryTypeRequirements(int)] /// ## Layout @@ -80,8 +80,8 @@ public final class VkPhysicalDeviceHostImageCopyProperties extends Struct { public static final VarHandle VH_copyDstLayoutCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("copyDstLayoutCount")); /// The [VarHandle] of `pCopyDstLayouts` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pCopyDstLayouts = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pCopyDstLayouts")); - /// The byte offset handle of `optimalTilingLayoutUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_optimalTilingLayoutUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("optimalTilingLayoutUUID"), PathElement.sequenceElement()); + /// The byte offset of `optimalTilingLayoutUUID`. + public static final long OFFSET_optimalTilingLayoutUUID = LAYOUT.byteOffset(PathElement.groupElement("optimalTilingLayoutUUID")); /// The memory layout of `optimalTilingLayoutUUID`. public static final MemoryLayout ML_optimalTilingLayoutUUID = LAYOUT.select(PathElement.groupElement("optimalTilingLayoutUUID")); /// The [VarHandle] of `identicalMemoryTypeRequirements` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -122,6 +122,17 @@ public final class VkPhysicalDeviceHostImageCopyProperties extends Struct { /// @return the allocated `VkPhysicalDeviceHostImageCopyProperties` public static VkPhysicalDeviceHostImageCopyProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceHostImageCopyProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceHostImageCopyProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceHostImageCopyProperties` + public VkPhysicalDeviceHostImageCopyProperties asSlice(long index) { return new VkPhysicalDeviceHostImageCopyProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceHostImageCopyProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceHostImageCopyProperties` + public VkPhysicalDeviceHostImageCopyProperties asSlice(long index, long count) { return new VkPhysicalDeviceHostImageCopyProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -309,49 +320,35 @@ public final class VkPhysicalDeviceHostImageCopyProperties extends Struct { public VkPhysicalDeviceHostImageCopyProperties pCopyDstLayouts(@CType("VkImageLayout *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_pCopyDstLayouts(this.segment(), value); return this; } /// {@return `optimalTilingLayoutUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_optimalTilingLayoutUUID.invokeExact(0L, elementIndex), index), ML_optimalTilingLayoutUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_optimalTilingLayoutUUID, index), ML_optimalTilingLayoutUUID); } /// {@return `optimalTilingLayoutUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment) { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(segment, 0L); } /// {@return `optimalTilingLayoutUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUIDAt(long index) { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(this.segment(), index); } /// {@return `optimalTilingLayoutUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUID(long elementIndex) { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUID() { return VkPhysicalDeviceHostImageCopyProperties.get_optimalTilingLayoutUUID(this.segment()); } /// Sets `optimalTilingLayoutUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_optimalTilingLayoutUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_optimalTilingLayoutUUID.invokeExact(0L, elementIndex), index), ML_optimalTilingLayoutUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_optimalTilingLayoutUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_optimalTilingLayoutUUID, index), ML_optimalTilingLayoutUUID.byteSize()); } /// Sets `optimalTilingLayoutUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_optimalTilingLayoutUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_optimalTilingLayoutUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(segment, 0L, value); } /// Sets `optimalTilingLayoutUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceHostImageCopyProperties optimalTilingLayoutUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceHostImageCopyProperties optimalTilingLayoutUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(this.segment(), index, value); return this; } /// Sets `optimalTilingLayoutUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceHostImageCopyProperties optimalTilingLayoutUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceHostImageCopyProperties optimalTilingLayoutUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceHostImageCopyProperties.set_optimalTilingLayoutUUID(this.segment(), value); return this; } /// {@return `identicalMemoryTypeRequirements` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostQueryResetFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostQueryResetFeatures.java index 6662974c..75b7868c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostQueryResetFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceHostQueryResetFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceHostQueryResetFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceHostQueryResetFeatures` public static VkPhysicalDeviceHostQueryResetFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceHostQueryResetFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceHostQueryResetFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceHostQueryResetFeatures` + public VkPhysicalDeviceHostQueryResetFeatures asSlice(long index) { return new VkPhysicalDeviceHostQueryResetFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceHostQueryResetFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceHostQueryResetFeatures` + public VkPhysicalDeviceHostQueryResetFeatures asSlice(long index, long count) { return new VkPhysicalDeviceHostQueryResetFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIDProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIDProperties.java index 1f487791..49b041f9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIDProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIDProperties.java @@ -33,11 +33,11 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### deviceUUID -/// [Byte offset handle][#MH_deviceUUID] - [Memory layout][#ML_deviceUUID] - [Getter][#deviceUUID(long)] - [Setter][#deviceUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceUUID] - [Memory layout][#ML_deviceUUID] - [Getter][#deviceUUID()] - [Setter][#deviceUUID(java.lang.foreign.MemorySegment)] /// ### driverUUID -/// [Byte offset handle][#MH_driverUUID] - [Memory layout][#ML_driverUUID] - [Getter][#driverUUID(long)] - [Setter][#driverUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverUUID] - [Memory layout][#ML_driverUUID] - [Getter][#driverUUID()] - [Setter][#driverUUID(java.lang.foreign.MemorySegment)] /// ### deviceLUID -/// [Byte offset handle][#MH_deviceLUID] - [Memory layout][#ML_deviceLUID] - [Getter][#deviceLUID(long)] - [Setter][#deviceLUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceLUID] - [Memory layout][#ML_deviceLUID] - [Getter][#deviceLUID()] - [Setter][#deviceLUID(java.lang.foreign.MemorySegment)] /// ### deviceNodeMask /// [VarHandle][#VH_deviceNodeMask] - [Getter][#deviceNodeMask()] - [Setter][#deviceNodeMask(int)] /// ### deviceLUIDValid @@ -70,16 +70,16 @@ public final class VkPhysicalDeviceIDProperties extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `deviceUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceUUID"), PathElement.sequenceElement()); + /// The byte offset of `deviceUUID`. + public static final long OFFSET_deviceUUID = LAYOUT.byteOffset(PathElement.groupElement("deviceUUID")); /// The memory layout of `deviceUUID`. public static final MemoryLayout ML_deviceUUID = LAYOUT.select(PathElement.groupElement("deviceUUID")); - /// The byte offset handle of `driverUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverUUID"), PathElement.sequenceElement()); + /// The byte offset of `driverUUID`. + public static final long OFFSET_driverUUID = LAYOUT.byteOffset(PathElement.groupElement("driverUUID")); /// The memory layout of `driverUUID`. public static final MemoryLayout ML_driverUUID = LAYOUT.select(PathElement.groupElement("driverUUID")); - /// The byte offset handle of `deviceLUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceLUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceLUID"), PathElement.sequenceElement()); + /// The byte offset of `deviceLUID`. + public static final long OFFSET_deviceLUID = LAYOUT.byteOffset(PathElement.groupElement("deviceLUID")); /// The memory layout of `deviceLUID`. public static final MemoryLayout ML_deviceLUID = LAYOUT.select(PathElement.groupElement("deviceLUID")); /// The [VarHandle] of `deviceNodeMask` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -122,6 +122,17 @@ public final class VkPhysicalDeviceIDProperties extends Struct { /// @return the allocated `VkPhysicalDeviceIDProperties` public static VkPhysicalDeviceIDProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceIDProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceIDProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceIDProperties` + public VkPhysicalDeviceIDProperties asSlice(long index) { return new VkPhysicalDeviceIDProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceIDProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceIDProperties` + public VkPhysicalDeviceIDProperties asSlice(long index, long count) { return new VkPhysicalDeviceIDProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -185,139 +196,97 @@ public final class VkPhysicalDeviceIDProperties extends Struct { public VkPhysicalDeviceIDProperties pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_pNext(this.segment(), value); return this; } /// {@return `deviceUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceUUID.invokeExact(0L, elementIndex), index), ML_deviceUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceUUID, index), ML_deviceUUID); } /// {@return `deviceUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment) { return VkPhysicalDeviceIDProperties.get_deviceUUID(segment, 0L); } /// {@return `deviceUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUIDAt(long index) { return VkPhysicalDeviceIDProperties.get_deviceUUID(this.segment(), index); } /// {@return `deviceUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUID(long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUID() { return VkPhysicalDeviceIDProperties.get_deviceUUID(this.segment()); } /// Sets `deviceUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceUUID.invokeExact(0L, elementIndex), index), ML_deviceUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceUUID, index), ML_deviceUUID.byteSize()); } /// Sets `deviceUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(segment, 0L, value); } /// Sets `deviceUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties deviceUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties deviceUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(this.segment(), index, value); return this; } /// Sets `deviceUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties deviceUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties deviceUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceUUID(this.segment(), value); return this; } /// {@return `driverUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverUUID.invokeExact(0L, elementIndex), index), ML_driverUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverUUID, index), ML_driverUUID); } /// {@return `driverUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceIDProperties.get_driverUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment) { return VkPhysicalDeviceIDProperties.get_driverUUID(segment, 0L); } /// {@return `driverUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceIDProperties.get_driverUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUIDAt(long index) { return VkPhysicalDeviceIDProperties.get_driverUUID(this.segment(), index); } /// {@return `driverUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUID(long elementIndex) { return VkPhysicalDeviceIDProperties.get_driverUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUID() { return VkPhysicalDeviceIDProperties.get_driverUUID(this.segment()); } /// Sets `driverUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverUUID.invokeExact(0L, elementIndex), index), ML_driverUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverUUID, index), ML_driverUUID.byteSize()); } /// Sets `driverUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(segment, 0L, value); } /// Sets `driverUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties driverUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties driverUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(this.segment(), index, value); return this; } /// Sets `driverUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties driverUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties driverUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_driverUUID(this.segment(), value); return this; } /// {@return `deviceLUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceLUID.invokeExact(0L, elementIndex), index), ML_deviceLUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceLUID, index), ML_deviceLUID); } /// {@return `deviceLUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceLUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment) { return VkPhysicalDeviceIDProperties.get_deviceLUID(segment, 0L); } /// {@return `deviceLUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUIDAt(long index, long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceLUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUIDAt(long index) { return VkPhysicalDeviceIDProperties.get_deviceLUID(this.segment(), index); } /// {@return `deviceLUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUID(long elementIndex) { return VkPhysicalDeviceIDProperties.get_deviceLUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUID() { return VkPhysicalDeviceIDProperties.get_deviceLUID(this.segment()); } /// Sets `deviceLUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceLUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceLUID.invokeExact(0L, elementIndex), index), ML_deviceLUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceLUID(MemorySegment segment, long index, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceLUID, index), ML_deviceLUID.byteSize()); } /// Sets `deviceLUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceLUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceLUID(MemorySegment segment, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(segment, 0L, value); } /// Sets `deviceLUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties deviceLUIDAt(long index, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties deviceLUIDAt(long index, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(this.segment(), index, value); return this; } /// Sets `deviceLUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceIDProperties deviceLUID(long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceIDProperties deviceLUID(@CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceIDProperties.set_deviceLUID(this.segment(), value); return this; } /// {@return `deviceNodeMask` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageFormatInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageFormatInfo2.java index 42e15d53..595f1a69 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageFormatInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageFormatInfo2.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceImageFormatInfo2 extends Struct { /// @return the allocated `VkPhysicalDeviceImageFormatInfo2` public static VkPhysicalDeviceImageFormatInfo2 alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageFormatInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageFormatInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageFormatInfo2` + public VkPhysicalDeviceImageFormatInfo2 asSlice(long index) { return new VkPhysicalDeviceImageFormatInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageFormatInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageFormatInfo2` + public VkPhysicalDeviceImageFormatInfo2 asSlice(long index, long count) { return new VkPhysicalDeviceImageFormatInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageRobustnessFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageRobustnessFeatures.java index bd0b2f7b..797b8c70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageRobustnessFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImageRobustnessFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImageRobustnessFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceImageRobustnessFeatures` public static VkPhysicalDeviceImageRobustnessFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImageRobustnessFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImageRobustnessFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImageRobustnessFeatures` + public VkPhysicalDeviceImageRobustnessFeatures asSlice(long index) { return new VkPhysicalDeviceImageRobustnessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImageRobustnessFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImageRobustnessFeatures` + public VkPhysicalDeviceImageRobustnessFeatures asSlice(long index, long count) { return new VkPhysicalDeviceImageRobustnessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImagelessFramebufferFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImagelessFramebufferFeatures.java index 3b48cf99..4755a041 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImagelessFramebufferFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceImagelessFramebufferFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceImagelessFramebufferFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceImagelessFramebufferFeatures` public static VkPhysicalDeviceImagelessFramebufferFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceImagelessFramebufferFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceImagelessFramebufferFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceImagelessFramebufferFeatures` + public VkPhysicalDeviceImagelessFramebufferFeatures asSlice(long index) { return new VkPhysicalDeviceImagelessFramebufferFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceImagelessFramebufferFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceImagelessFramebufferFeatures` + public VkPhysicalDeviceImagelessFramebufferFeatures asSlice(long index, long count) { return new VkPhysicalDeviceImagelessFramebufferFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIndexTypeUint8Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIndexTypeUint8Features.java index 1df38360..c81a41ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIndexTypeUint8Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceIndexTypeUint8Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceIndexTypeUint8Features extends Struct { /// @return the allocated `VkPhysicalDeviceIndexTypeUint8Features` public static VkPhysicalDeviceIndexTypeUint8Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceIndexTypeUint8Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceIndexTypeUint8Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceIndexTypeUint8Features` + public VkPhysicalDeviceIndexTypeUint8Features asSlice(long index) { return new VkPhysicalDeviceIndexTypeUint8Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceIndexTypeUint8Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceIndexTypeUint8Features` + public VkPhysicalDeviceIndexTypeUint8Features asSlice(long index, long count) { return new VkPhysicalDeviceIndexTypeUint8Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockFeatures.java index 90b90f9b..29a9c76e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockFeatures.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceInlineUniformBlockFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceInlineUniformBlockFeatures` public static VkPhysicalDeviceInlineUniformBlockFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceInlineUniformBlockFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceInlineUniformBlockFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceInlineUniformBlockFeatures` + public VkPhysicalDeviceInlineUniformBlockFeatures asSlice(long index) { return new VkPhysicalDeviceInlineUniformBlockFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceInlineUniformBlockFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceInlineUniformBlockFeatures` + public VkPhysicalDeviceInlineUniformBlockFeatures asSlice(long index, long count) { return new VkPhysicalDeviceInlineUniformBlockFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockProperties.java index b359fc0e..c5a0cd92 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceInlineUniformBlockProperties.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceInlineUniformBlockProperties extends Struct { /// @return the allocated `VkPhysicalDeviceInlineUniformBlockProperties` public static VkPhysicalDeviceInlineUniformBlockProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceInlineUniformBlockProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceInlineUniformBlockProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceInlineUniformBlockProperties` + public VkPhysicalDeviceInlineUniformBlockProperties asSlice(long index) { return new VkPhysicalDeviceInlineUniformBlockProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceInlineUniformBlockProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceInlineUniformBlockProperties` + public VkPhysicalDeviceInlineUniformBlockProperties asSlice(long index, long count) { return new VkPhysicalDeviceInlineUniformBlockProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLimits.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLimits.java index 5b21c7a2..e7caadf8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLimits.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLimits.java @@ -130,11 +130,11 @@ /// ### maxComputeSharedMemorySize /// [VarHandle][#VH_maxComputeSharedMemorySize] - [Getter][#maxComputeSharedMemorySize()] - [Setter][#maxComputeSharedMemorySize(int)] /// ### maxComputeWorkGroupCount -/// [Byte offset handle][#MH_maxComputeWorkGroupCount] - [Memory layout][#ML_maxComputeWorkGroupCount] - [Getter][#maxComputeWorkGroupCount(long)] - [Setter][#maxComputeWorkGroupCount(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_maxComputeWorkGroupCount] - [Memory layout][#ML_maxComputeWorkGroupCount] - [Getter][#maxComputeWorkGroupCount()] - [Setter][#maxComputeWorkGroupCount(java.lang.foreign.MemorySegment)] /// ### maxComputeWorkGroupInvocations /// [VarHandle][#VH_maxComputeWorkGroupInvocations] - [Getter][#maxComputeWorkGroupInvocations()] - [Setter][#maxComputeWorkGroupInvocations(int)] /// ### maxComputeWorkGroupSize -/// [Byte offset handle][#MH_maxComputeWorkGroupSize] - [Memory layout][#ML_maxComputeWorkGroupSize] - [Getter][#maxComputeWorkGroupSize(long)] - [Setter][#maxComputeWorkGroupSize(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_maxComputeWorkGroupSize] - [Memory layout][#ML_maxComputeWorkGroupSize] - [Getter][#maxComputeWorkGroupSize()] - [Setter][#maxComputeWorkGroupSize(java.lang.foreign.MemorySegment)] /// ### subPixelPrecisionBits /// [VarHandle][#VH_subPixelPrecisionBits] - [Getter][#subPixelPrecisionBits()] - [Setter][#subPixelPrecisionBits(int)] /// ### subTexelPrecisionBits @@ -152,9 +152,9 @@ /// ### maxViewports /// [VarHandle][#VH_maxViewports] - [Getter][#maxViewports()] - [Setter][#maxViewports(int)] /// ### maxViewportDimensions -/// [Byte offset handle][#MH_maxViewportDimensions] - [Memory layout][#ML_maxViewportDimensions] - [Getter][#maxViewportDimensions(long)] - [Setter][#maxViewportDimensions(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_maxViewportDimensions] - [Memory layout][#ML_maxViewportDimensions] - [Getter][#maxViewportDimensions()] - [Setter][#maxViewportDimensions(java.lang.foreign.MemorySegment)] /// ### viewportBoundsRange -/// [Byte offset handle][#MH_viewportBoundsRange] - [Memory layout][#ML_viewportBoundsRange] - [Getter][#viewportBoundsRange(long)] - [Setter][#viewportBoundsRange(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_viewportBoundsRange] - [Memory layout][#ML_viewportBoundsRange] - [Getter][#viewportBoundsRange()] - [Setter][#viewportBoundsRange(java.lang.foreign.MemorySegment)] /// ### viewportSubPixelBits /// [VarHandle][#VH_viewportSubPixelBits] - [Getter][#viewportSubPixelBits()] - [Setter][#viewportSubPixelBits(int)] /// ### minMemoryMapAlignment @@ -220,9 +220,9 @@ /// ### discreteQueuePriorities /// [VarHandle][#VH_discreteQueuePriorities] - [Getter][#discreteQueuePriorities()] - [Setter][#discreteQueuePriorities(int)] /// ### pointSizeRange -/// [Byte offset handle][#MH_pointSizeRange] - [Memory layout][#ML_pointSizeRange] - [Getter][#pointSizeRange(long)] - [Setter][#pointSizeRange(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pointSizeRange] - [Memory layout][#ML_pointSizeRange] - [Getter][#pointSizeRange()] - [Setter][#pointSizeRange(java.lang.foreign.MemorySegment)] /// ### lineWidthRange -/// [Byte offset handle][#MH_lineWidthRange] - [Memory layout][#ML_lineWidthRange] - [Getter][#lineWidthRange(long)] - [Setter][#lineWidthRange(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_lineWidthRange] - [Memory layout][#ML_lineWidthRange] - [Getter][#lineWidthRange()] - [Setter][#lineWidthRange(java.lang.foreign.MemorySegment)] /// ### pointSizeGranularity /// [VarHandle][#VH_pointSizeGranularity] - [Getter][#pointSizeGranularity()] - [Setter][#pointSizeGranularity(float)] /// ### lineWidthGranularity @@ -563,14 +563,14 @@ public final class VkPhysicalDeviceLimits extends Struct { public static final VarHandle VH_maxFragmentCombinedOutputResources = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxFragmentCombinedOutputResources")); /// The [VarHandle] of `maxComputeSharedMemorySize` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxComputeSharedMemorySize = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxComputeSharedMemorySize")); - /// The byte offset handle of `maxComputeWorkGroupCount` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_maxComputeWorkGroupCount = LAYOUT.byteOffsetHandle(PathElement.groupElement("maxComputeWorkGroupCount"), PathElement.sequenceElement()); + /// The byte offset of `maxComputeWorkGroupCount`. + public static final long OFFSET_maxComputeWorkGroupCount = LAYOUT.byteOffset(PathElement.groupElement("maxComputeWorkGroupCount")); /// The memory layout of `maxComputeWorkGroupCount`. public static final MemoryLayout ML_maxComputeWorkGroupCount = LAYOUT.select(PathElement.groupElement("maxComputeWorkGroupCount")); /// The [VarHandle] of `maxComputeWorkGroupInvocations` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxComputeWorkGroupInvocations = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxComputeWorkGroupInvocations")); - /// The byte offset handle of `maxComputeWorkGroupSize` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_maxComputeWorkGroupSize = LAYOUT.byteOffsetHandle(PathElement.groupElement("maxComputeWorkGroupSize"), PathElement.sequenceElement()); + /// The byte offset of `maxComputeWorkGroupSize`. + public static final long OFFSET_maxComputeWorkGroupSize = LAYOUT.byteOffset(PathElement.groupElement("maxComputeWorkGroupSize")); /// The memory layout of `maxComputeWorkGroupSize`. public static final MemoryLayout ML_maxComputeWorkGroupSize = LAYOUT.select(PathElement.groupElement("maxComputeWorkGroupSize")); /// The [VarHandle] of `subPixelPrecisionBits` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -589,12 +589,12 @@ public final class VkPhysicalDeviceLimits extends Struct { public static final VarHandle VH_maxSamplerAnisotropy = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxSamplerAnisotropy")); /// The [VarHandle] of `maxViewports` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_maxViewports = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxViewports")); - /// The byte offset handle of `maxViewportDimensions` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_maxViewportDimensions = LAYOUT.byteOffsetHandle(PathElement.groupElement("maxViewportDimensions"), PathElement.sequenceElement()); + /// The byte offset of `maxViewportDimensions`. + public static final long OFFSET_maxViewportDimensions = LAYOUT.byteOffset(PathElement.groupElement("maxViewportDimensions")); /// The memory layout of `maxViewportDimensions`. public static final MemoryLayout ML_maxViewportDimensions = LAYOUT.select(PathElement.groupElement("maxViewportDimensions")); - /// The byte offset handle of `viewportBoundsRange` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_viewportBoundsRange = LAYOUT.byteOffsetHandle(PathElement.groupElement("viewportBoundsRange"), PathElement.sequenceElement()); + /// The byte offset of `viewportBoundsRange`. + public static final long OFFSET_viewportBoundsRange = LAYOUT.byteOffset(PathElement.groupElement("viewportBoundsRange")); /// The memory layout of `viewportBoundsRange`. public static final MemoryLayout ML_viewportBoundsRange = LAYOUT.select(PathElement.groupElement("viewportBoundsRange")); /// The [VarHandle] of `viewportSubPixelBits` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -661,12 +661,12 @@ public final class VkPhysicalDeviceLimits extends Struct { public static final VarHandle VH_maxCombinedClipAndCullDistances = LAYOUT.arrayElementVarHandle(PathElement.groupElement("maxCombinedClipAndCullDistances")); /// The [VarHandle] of `discreteQueuePriorities` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_discreteQueuePriorities = LAYOUT.arrayElementVarHandle(PathElement.groupElement("discreteQueuePriorities")); - /// The byte offset handle of `pointSizeRange` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pointSizeRange = LAYOUT.byteOffsetHandle(PathElement.groupElement("pointSizeRange"), PathElement.sequenceElement()); + /// The byte offset of `pointSizeRange`. + public static final long OFFSET_pointSizeRange = LAYOUT.byteOffset(PathElement.groupElement("pointSizeRange")); /// The memory layout of `pointSizeRange`. public static final MemoryLayout ML_pointSizeRange = LAYOUT.select(PathElement.groupElement("pointSizeRange")); - /// The byte offset handle of `lineWidthRange` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_lineWidthRange = LAYOUT.byteOffsetHandle(PathElement.groupElement("lineWidthRange"), PathElement.sequenceElement()); + /// The byte offset of `lineWidthRange`. + public static final long OFFSET_lineWidthRange = LAYOUT.byteOffset(PathElement.groupElement("lineWidthRange")); /// The memory layout of `lineWidthRange`. public static final MemoryLayout ML_lineWidthRange = LAYOUT.select(PathElement.groupElement("lineWidthRange")); /// The [VarHandle] of `pointSizeGranularity` of type `(MemorySegment base, long baseOffset, long index)float`. @@ -719,6 +719,17 @@ public final class VkPhysicalDeviceLimits extends Struct { /// @return the allocated `VkPhysicalDeviceLimits` public static VkPhysicalDeviceLimits alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLimits(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLimits`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLimits` + public VkPhysicalDeviceLimits asSlice(long index) { return new VkPhysicalDeviceLimits(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLimits`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLimits` + public VkPhysicalDeviceLimits asSlice(long index, long count) { return new VkPhysicalDeviceLimits(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `maxImageDimension1D` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -2332,49 +2343,35 @@ public final class VkPhysicalDeviceLimits extends Struct { public VkPhysicalDeviceLimits maxComputeSharedMemorySize(@CType("uint32_t") int value) { VkPhysicalDeviceLimits.set_maxComputeSharedMemorySize(this.segment(), value); return this; } /// {@return `maxComputeWorkGroupCount` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupCount(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_maxComputeWorkGroupCount.invokeExact(0L, elementIndex), index), ML_maxComputeWorkGroupCount); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupCount(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxComputeWorkGroupCount, index), ML_maxComputeWorkGroupCount); } /// {@return `maxComputeWorkGroupCount`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupCount(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupCount(MemorySegment segment) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(segment, 0L); } /// {@return `maxComputeWorkGroupCount` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupCountAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupCountAt(long index) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(this.segment(), index); } /// {@return `maxComputeWorkGroupCount`} - /// @param elementIndex the index of the element - public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupCount(long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(this.segment(), elementIndex); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupCount() { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupCount(this.segment()); } /// Sets `maxComputeWorkGroupCount` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxComputeWorkGroupCount(MemorySegment segment, long index, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_maxComputeWorkGroupCount.invokeExact(0L, elementIndex), index), ML_maxComputeWorkGroupCount.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_maxComputeWorkGroupCount(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxComputeWorkGroupCount, index), ML_maxComputeWorkGroupCount.byteSize()); } /// Sets `maxComputeWorkGroupCount` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxComputeWorkGroupCount(MemorySegment segment, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_maxComputeWorkGroupCount(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(segment, 0L, value); } /// Sets `maxComputeWorkGroupCount` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxComputeWorkGroupCountAt(long index, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxComputeWorkGroupCountAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(this.segment(), index, value); return this; } /// Sets `maxComputeWorkGroupCount` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxComputeWorkGroupCount(long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxComputeWorkGroupCount(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupCount(this.segment(), value); return this; } /// {@return `maxComputeWorkGroupInvocations` at the given index} /// @param segment the segment of the struct @@ -2408,49 +2405,35 @@ public static void set_maxComputeWorkGroupCount(MemorySegment segment, long inde public VkPhysicalDeviceLimits maxComputeWorkGroupInvocations(@CType("uint32_t") int value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupInvocations(this.segment(), value); return this; } /// {@return `maxComputeWorkGroupSize` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupSize(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_maxComputeWorkGroupSize.invokeExact(0L, elementIndex), index), ML_maxComputeWorkGroupSize); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupSize(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxComputeWorkGroupSize, index), ML_maxComputeWorkGroupSize); } /// {@return `maxComputeWorkGroupSize`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupSize(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint32_t[3]") java.lang.foreign.MemorySegment get_maxComputeWorkGroupSize(MemorySegment segment) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(segment, 0L); } /// {@return `maxComputeWorkGroupSize` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupSizeAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupSizeAt(long index) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(this.segment(), index); } /// {@return `maxComputeWorkGroupSize`} - /// @param elementIndex the index of the element - public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupSize(long elementIndex) { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(this.segment(), elementIndex); } + public @CType("uint32_t[3]") java.lang.foreign.MemorySegment maxComputeWorkGroupSize() { return VkPhysicalDeviceLimits.get_maxComputeWorkGroupSize(this.segment()); } /// Sets `maxComputeWorkGroupSize` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxComputeWorkGroupSize(MemorySegment segment, long index, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_maxComputeWorkGroupSize.invokeExact(0L, elementIndex), index), ML_maxComputeWorkGroupSize.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_maxComputeWorkGroupSize(MemorySegment segment, long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxComputeWorkGroupSize, index), ML_maxComputeWorkGroupSize.byteSize()); } /// Sets `maxComputeWorkGroupSize` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxComputeWorkGroupSize(MemorySegment segment, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_maxComputeWorkGroupSize(MemorySegment segment, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(segment, 0L, value); } /// Sets `maxComputeWorkGroupSize` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxComputeWorkGroupSizeAt(long index, long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxComputeWorkGroupSizeAt(long index, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(this.segment(), index, value); return this; } /// Sets `maxComputeWorkGroupSize` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxComputeWorkGroupSize(long elementIndex, @CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxComputeWorkGroupSize(@CType("uint32_t[3]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxComputeWorkGroupSize(this.segment(), value); return this; } /// {@return `subPixelPrecisionBits` at the given index} /// @param segment the segment of the struct @@ -2701,94 +2684,66 @@ public static void set_maxComputeWorkGroupSize(MemorySegment segment, long index public VkPhysicalDeviceLimits maxViewports(@CType("uint32_t") int value) { VkPhysicalDeviceLimits.set_maxViewports(this.segment(), value); return this; } /// {@return `maxViewportDimensions` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint32_t[2]") java.lang.foreign.MemorySegment get_maxViewportDimensions(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_maxViewportDimensions.invokeExact(0L, elementIndex), index), ML_maxViewportDimensions); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint32_t[2]") java.lang.foreign.MemorySegment get_maxViewportDimensions(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_maxViewportDimensions, index), ML_maxViewportDimensions); } /// {@return `maxViewportDimensions`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint32_t[2]") java.lang.foreign.MemorySegment get_maxViewportDimensions(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_maxViewportDimensions(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint32_t[2]") java.lang.foreign.MemorySegment get_maxViewportDimensions(MemorySegment segment) { return VkPhysicalDeviceLimits.get_maxViewportDimensions(segment, 0L); } /// {@return `maxViewportDimensions` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint32_t[2]") java.lang.foreign.MemorySegment maxViewportDimensionsAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_maxViewportDimensions(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint32_t[2]") java.lang.foreign.MemorySegment maxViewportDimensionsAt(long index) { return VkPhysicalDeviceLimits.get_maxViewportDimensions(this.segment(), index); } /// {@return `maxViewportDimensions`} - /// @param elementIndex the index of the element - public @CType("uint32_t[2]") java.lang.foreign.MemorySegment maxViewportDimensions(long elementIndex) { return VkPhysicalDeviceLimits.get_maxViewportDimensions(this.segment(), elementIndex); } + public @CType("uint32_t[2]") java.lang.foreign.MemorySegment maxViewportDimensions() { return VkPhysicalDeviceLimits.get_maxViewportDimensions(this.segment()); } /// Sets `maxViewportDimensions` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxViewportDimensions(MemorySegment segment, long index, long elementIndex, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_maxViewportDimensions.invokeExact(0L, elementIndex), index), ML_maxViewportDimensions.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_maxViewportDimensions(MemorySegment segment, long index, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_maxViewportDimensions, index), ML_maxViewportDimensions.byteSize()); } /// Sets `maxViewportDimensions` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_maxViewportDimensions(MemorySegment segment, long elementIndex, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_maxViewportDimensions(MemorySegment segment, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(segment, 0L, value); } /// Sets `maxViewportDimensions` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxViewportDimensionsAt(long index, long elementIndex, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxViewportDimensionsAt(long index, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(this.segment(), index, value); return this; } /// Sets `maxViewportDimensions` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits maxViewportDimensions(long elementIndex, @CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits maxViewportDimensions(@CType("uint32_t[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_maxViewportDimensions(this.segment(), value); return this; } /// {@return `viewportBoundsRange` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_viewportBoundsRange(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_viewportBoundsRange.invokeExact(0L, elementIndex), index), ML_viewportBoundsRange); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("float[2]") java.lang.foreign.MemorySegment get_viewportBoundsRange(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_viewportBoundsRange, index), ML_viewportBoundsRange); } /// {@return `viewportBoundsRange`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_viewportBoundsRange(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_viewportBoundsRange(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("float[2]") java.lang.foreign.MemorySegment get_viewportBoundsRange(MemorySegment segment) { return VkPhysicalDeviceLimits.get_viewportBoundsRange(segment, 0L); } /// {@return `viewportBoundsRange` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment viewportBoundsRangeAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_viewportBoundsRange(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("float[2]") java.lang.foreign.MemorySegment viewportBoundsRangeAt(long index) { return VkPhysicalDeviceLimits.get_viewportBoundsRange(this.segment(), index); } /// {@return `viewportBoundsRange`} - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment viewportBoundsRange(long elementIndex) { return VkPhysicalDeviceLimits.get_viewportBoundsRange(this.segment(), elementIndex); } + public @CType("float[2]") java.lang.foreign.MemorySegment viewportBoundsRange() { return VkPhysicalDeviceLimits.get_viewportBoundsRange(this.segment()); } /// Sets `viewportBoundsRange` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_viewportBoundsRange(MemorySegment segment, long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_viewportBoundsRange.invokeExact(0L, elementIndex), index), ML_viewportBoundsRange.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_viewportBoundsRange(MemorySegment segment, long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_viewportBoundsRange, index), ML_viewportBoundsRange.byteSize()); } /// Sets `viewportBoundsRange` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_viewportBoundsRange(MemorySegment segment, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_viewportBoundsRange(MemorySegment segment, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(segment, 0L, value); } /// Sets `viewportBoundsRange` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits viewportBoundsRangeAt(long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits viewportBoundsRangeAt(long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(this.segment(), index, value); return this; } /// Sets `viewportBoundsRange` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits viewportBoundsRange(long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits viewportBoundsRange(@CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_viewportBoundsRange(this.segment(), value); return this; } /// {@return `viewportSubPixelBits` at the given index} /// @param segment the segment of the struct @@ -3783,94 +3738,66 @@ public static void set_viewportBoundsRange(MemorySegment segment, long index, lo public VkPhysicalDeviceLimits discreteQueuePriorities(@CType("uint32_t") int value) { VkPhysicalDeviceLimits.set_discreteQueuePriorities(this.segment(), value); return this; } /// {@return `pointSizeRange` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_pointSizeRange(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pointSizeRange.invokeExact(0L, elementIndex), index), ML_pointSizeRange); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("float[2]") java.lang.foreign.MemorySegment get_pointSizeRange(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pointSizeRange, index), ML_pointSizeRange); } /// {@return `pointSizeRange`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_pointSizeRange(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_pointSizeRange(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("float[2]") java.lang.foreign.MemorySegment get_pointSizeRange(MemorySegment segment) { return VkPhysicalDeviceLimits.get_pointSizeRange(segment, 0L); } /// {@return `pointSizeRange` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment pointSizeRangeAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_pointSizeRange(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("float[2]") java.lang.foreign.MemorySegment pointSizeRangeAt(long index) { return VkPhysicalDeviceLimits.get_pointSizeRange(this.segment(), index); } /// {@return `pointSizeRange`} - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment pointSizeRange(long elementIndex) { return VkPhysicalDeviceLimits.get_pointSizeRange(this.segment(), elementIndex); } + public @CType("float[2]") java.lang.foreign.MemorySegment pointSizeRange() { return VkPhysicalDeviceLimits.get_pointSizeRange(this.segment()); } /// Sets `pointSizeRange` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pointSizeRange(MemorySegment segment, long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pointSizeRange.invokeExact(0L, elementIndex), index), ML_pointSizeRange.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pointSizeRange(MemorySegment segment, long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pointSizeRange, index), ML_pointSizeRange.byteSize()); } /// Sets `pointSizeRange` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pointSizeRange(MemorySegment segment, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pointSizeRange(MemorySegment segment, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(segment, 0L, value); } /// Sets `pointSizeRange` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits pointSizeRangeAt(long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits pointSizeRangeAt(long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(this.segment(), index, value); return this; } /// Sets `pointSizeRange` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits pointSizeRange(long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits pointSizeRange(@CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_pointSizeRange(this.segment(), value); return this; } /// {@return `lineWidthRange` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_lineWidthRange(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_lineWidthRange.invokeExact(0L, elementIndex), index), ML_lineWidthRange); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("float[2]") java.lang.foreign.MemorySegment get_lineWidthRange(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_lineWidthRange, index), ML_lineWidthRange); } /// {@return `lineWidthRange`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("float[2]") java.lang.foreign.MemorySegment get_lineWidthRange(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceLimits.get_lineWidthRange(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("float[2]") java.lang.foreign.MemorySegment get_lineWidthRange(MemorySegment segment) { return VkPhysicalDeviceLimits.get_lineWidthRange(segment, 0L); } /// {@return `lineWidthRange` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment lineWidthRangeAt(long index, long elementIndex) { return VkPhysicalDeviceLimits.get_lineWidthRange(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("float[2]") java.lang.foreign.MemorySegment lineWidthRangeAt(long index) { return VkPhysicalDeviceLimits.get_lineWidthRange(this.segment(), index); } /// {@return `lineWidthRange`} - /// @param elementIndex the index of the element - public @CType("float[2]") java.lang.foreign.MemorySegment lineWidthRange(long elementIndex) { return VkPhysicalDeviceLimits.get_lineWidthRange(this.segment(), elementIndex); } + public @CType("float[2]") java.lang.foreign.MemorySegment lineWidthRange() { return VkPhysicalDeviceLimits.get_lineWidthRange(this.segment()); } /// Sets `lineWidthRange` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_lineWidthRange(MemorySegment segment, long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_lineWidthRange.invokeExact(0L, elementIndex), index), ML_lineWidthRange.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_lineWidthRange(MemorySegment segment, long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_lineWidthRange, index), ML_lineWidthRange.byteSize()); } /// Sets `lineWidthRange` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_lineWidthRange(MemorySegment segment, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_lineWidthRange(MemorySegment segment, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(segment, 0L, value); } /// Sets `lineWidthRange` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits lineWidthRangeAt(long index, long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceLimits lineWidthRangeAt(long index, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(this.segment(), index, value); return this; } /// Sets `lineWidthRange` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceLimits lineWidthRange(long elementIndex, @CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceLimits lineWidthRange(@CType("float[2]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceLimits.set_lineWidthRange(this.segment(), value); return this; } /// {@return `pointSizeGranularity` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationFeatures.java index 2285ebb2..e2d80b3b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationFeatures.java @@ -119,6 +119,17 @@ public final class VkPhysicalDeviceLineRasterizationFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceLineRasterizationFeatures` public static VkPhysicalDeviceLineRasterizationFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLineRasterizationFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLineRasterizationFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLineRasterizationFeatures` + public VkPhysicalDeviceLineRasterizationFeatures asSlice(long index) { return new VkPhysicalDeviceLineRasterizationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLineRasterizationFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLineRasterizationFeatures` + public VkPhysicalDeviceLineRasterizationFeatures asSlice(long index, long count) { return new VkPhysicalDeviceLineRasterizationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationProperties.java index 254aa47c..889ad44e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceLineRasterizationProperties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceLineRasterizationProperties extends Struct { /// @return the allocated `VkPhysicalDeviceLineRasterizationProperties` public static VkPhysicalDeviceLineRasterizationProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceLineRasterizationProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceLineRasterizationProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceLineRasterizationProperties` + public VkPhysicalDeviceLineRasterizationProperties asSlice(long index) { return new VkPhysicalDeviceLineRasterizationProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceLineRasterizationProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceLineRasterizationProperties` + public VkPhysicalDeviceLineRasterizationProperties asSlice(long index, long count) { return new VkPhysicalDeviceLineRasterizationProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance3Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance3Properties.java index ff10c028..aab4bdbc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance3Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance3Properties.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceMaintenance3Properties extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance3Properties` public static VkPhysicalDeviceMaintenance3Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance3Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance3Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance3Properties` + public VkPhysicalDeviceMaintenance3Properties asSlice(long index) { return new VkPhysicalDeviceMaintenance3Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance3Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance3Properties` + public VkPhysicalDeviceMaintenance3Properties asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance3Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Features.java index dc792b09..b7a771dc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMaintenance4Features extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance4Features` public static VkPhysicalDeviceMaintenance4Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance4Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance4Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance4Features` + public VkPhysicalDeviceMaintenance4Features asSlice(long index) { return new VkPhysicalDeviceMaintenance4Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance4Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance4Features` + public VkPhysicalDeviceMaintenance4Features asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance4Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Properties.java index f34dc00a..538e2574 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance4Properties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMaintenance4Properties extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance4Properties` public static VkPhysicalDeviceMaintenance4Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance4Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance4Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance4Properties` + public VkPhysicalDeviceMaintenance4Properties asSlice(long index) { return new VkPhysicalDeviceMaintenance4Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance4Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance4Properties` + public VkPhysicalDeviceMaintenance4Properties asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance4Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Features.java index 72da412e..c845faa5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMaintenance5Features extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance5Features` public static VkPhysicalDeviceMaintenance5Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance5Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance5Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance5Features` + public VkPhysicalDeviceMaintenance5Features asSlice(long index) { return new VkPhysicalDeviceMaintenance5Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance5Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance5Features` + public VkPhysicalDeviceMaintenance5Features asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance5Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Properties.java index 23a8e47e..dfdc2773 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance5Properties.java @@ -119,6 +119,17 @@ public final class VkPhysicalDeviceMaintenance5Properties extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance5Properties` public static VkPhysicalDeviceMaintenance5Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance5Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance5Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance5Properties` + public VkPhysicalDeviceMaintenance5Properties asSlice(long index) { return new VkPhysicalDeviceMaintenance5Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance5Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance5Properties` + public VkPhysicalDeviceMaintenance5Properties asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance5Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Features.java index bc091389..a25d4497 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceMaintenance6Features extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance6Features` public static VkPhysicalDeviceMaintenance6Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance6Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance6Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance6Features` + public VkPhysicalDeviceMaintenance6Features asSlice(long index) { return new VkPhysicalDeviceMaintenance6Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance6Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance6Features` + public VkPhysicalDeviceMaintenance6Features asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance6Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Properties.java index c165c37d..dcdcb634 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMaintenance6Properties.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceMaintenance6Properties extends Struct { /// @return the allocated `VkPhysicalDeviceMaintenance6Properties` public static VkPhysicalDeviceMaintenance6Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMaintenance6Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMaintenance6Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMaintenance6Properties` + public VkPhysicalDeviceMaintenance6Properties asSlice(long index) { return new VkPhysicalDeviceMaintenance6Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMaintenance6Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMaintenance6Properties` + public VkPhysicalDeviceMaintenance6Properties asSlice(long index, long count) { return new VkPhysicalDeviceMaintenance6Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties.java index fc99b22e..16f9fed0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties.java @@ -30,11 +30,11 @@ /// ### memoryTypeCount /// [VarHandle][#VH_memoryTypeCount] - [Getter][#memoryTypeCount()] - [Setter][#memoryTypeCount(int)] /// ### memoryTypes -/// [Byte offset handle][#MH_memoryTypes] - [Memory layout][#ML_memoryTypes] - [Getter][#memoryTypes(long)] - [Setter][#memoryTypes(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_memoryTypes] - [Memory layout][#ML_memoryTypes] - [Getter][#memoryTypes()] - [Setter][#memoryTypes(java.lang.foreign.MemorySegment)] /// ### memoryHeapCount /// [VarHandle][#VH_memoryHeapCount] - [Getter][#memoryHeapCount()] - [Setter][#memoryHeapCount(int)] /// ### memoryHeaps -/// [Byte offset handle][#MH_memoryHeaps] - [Memory layout][#ML_memoryHeaps] - [Getter][#memoryHeaps(long)] - [Setter][#memoryHeaps(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_memoryHeaps] - [Memory layout][#ML_memoryHeaps] - [Getter][#memoryHeaps()] - [Setter][#memoryHeaps(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -55,14 +55,14 @@ public final class VkPhysicalDeviceMemoryProperties extends Struct { ); /// The [VarHandle] of `memoryTypeCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_memoryTypeCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("memoryTypeCount")); - /// The byte offset handle of `memoryTypes` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_memoryTypes = LAYOUT.byteOffsetHandle(PathElement.groupElement("memoryTypes"), PathElement.sequenceElement()); + /// The byte offset of `memoryTypes`. + public static final long OFFSET_memoryTypes = LAYOUT.byteOffset(PathElement.groupElement("memoryTypes")); /// The memory layout of `memoryTypes`. public static final MemoryLayout ML_memoryTypes = LAYOUT.select(PathElement.groupElement("memoryTypes")); /// The [VarHandle] of `memoryHeapCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_memoryHeapCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("memoryHeapCount")); - /// The byte offset handle of `memoryHeaps` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_memoryHeaps = LAYOUT.byteOffsetHandle(PathElement.groupElement("memoryHeaps"), PathElement.sequenceElement()); + /// The byte offset of `memoryHeaps`. + public static final long OFFSET_memoryHeaps = LAYOUT.byteOffset(PathElement.groupElement("memoryHeaps")); /// The memory layout of `memoryHeaps`. public static final MemoryLayout ML_memoryHeaps = LAYOUT.select(PathElement.groupElement("memoryHeaps")); @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceMemoryProperties extends Struct { /// @return the allocated `VkPhysicalDeviceMemoryProperties` public static VkPhysicalDeviceMemoryProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryProperties` + public VkPhysicalDeviceMemoryProperties asSlice(long index) { return new VkPhysicalDeviceMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryProperties` + public VkPhysicalDeviceMemoryProperties asSlice(long index, long count) { return new VkPhysicalDeviceMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `memoryTypeCount` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -133,49 +144,35 @@ public final class VkPhysicalDeviceMemoryProperties extends Struct { public VkPhysicalDeviceMemoryProperties memoryTypeCount(@CType("uint32_t") int value) { VkPhysicalDeviceMemoryProperties.set_memoryTypeCount(this.segment(), value); return this; } /// {@return `memoryTypes` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment get_memoryTypes(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_memoryTypes.invokeExact(0L, elementIndex), index), ML_memoryTypes); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment get_memoryTypes(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_memoryTypes, index), ML_memoryTypes); } /// {@return `memoryTypes`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment get_memoryTypes(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment get_memoryTypes(MemorySegment segment) { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(segment, 0L); } /// {@return `memoryTypes` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment memoryTypesAt(long index, long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment memoryTypesAt(long index) { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(this.segment(), index); } /// {@return `memoryTypes`} - /// @param elementIndex the index of the element - public @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment memoryTypes(long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(this.segment(), elementIndex); } + public @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment memoryTypes() { return VkPhysicalDeviceMemoryProperties.get_memoryTypes(this.segment()); } /// Sets `memoryTypes` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_memoryTypes(MemorySegment segment, long index, long elementIndex, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_memoryTypes.invokeExact(0L, elementIndex), index), ML_memoryTypes.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_memoryTypes(MemorySegment segment, long index, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_memoryTypes, index), ML_memoryTypes.byteSize()); } /// Sets `memoryTypes` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_memoryTypes(MemorySegment segment, long elementIndex, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_memoryTypes(MemorySegment segment, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(segment, 0L, value); } /// Sets `memoryTypes` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryProperties memoryTypesAt(long index, long elementIndex, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceMemoryProperties memoryTypesAt(long index, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(this.segment(), index, value); return this; } /// Sets `memoryTypes` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryProperties memoryTypes(long elementIndex, @CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceMemoryProperties memoryTypes(@CType("VkMemoryType[VK_MAX_MEMORY_TYPES]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryTypes(this.segment(), value); return this; } /// {@return `memoryHeapCount` at the given index} /// @param segment the segment of the struct @@ -209,48 +206,34 @@ public static void set_memoryTypes(MemorySegment segment, long index, long eleme public VkPhysicalDeviceMemoryProperties memoryHeapCount(@CType("uint32_t") int value) { VkPhysicalDeviceMemoryProperties.set_memoryHeapCount(this.segment(), value); return this; } /// {@return `memoryHeaps` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_memoryHeaps(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_memoryHeaps.invokeExact(0L, elementIndex), index), ML_memoryHeaps); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_memoryHeaps(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_memoryHeaps, index), ML_memoryHeaps); } /// {@return `memoryHeaps`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_memoryHeaps(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment get_memoryHeaps(MemorySegment segment) { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(segment, 0L); } /// {@return `memoryHeaps` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment memoryHeapsAt(long index, long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment memoryHeapsAt(long index) { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(this.segment(), index); } /// {@return `memoryHeaps`} - /// @param elementIndex the index of the element - public @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment memoryHeaps(long elementIndex) { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(this.segment(), elementIndex); } + public @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment memoryHeaps() { return VkPhysicalDeviceMemoryProperties.get_memoryHeaps(this.segment()); } /// Sets `memoryHeaps` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_memoryHeaps(MemorySegment segment, long index, long elementIndex, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_memoryHeaps.invokeExact(0L, elementIndex), index), ML_memoryHeaps.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_memoryHeaps(MemorySegment segment, long index, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_memoryHeaps, index), ML_memoryHeaps.byteSize()); } /// Sets `memoryHeaps` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_memoryHeaps(MemorySegment segment, long elementIndex, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_memoryHeaps(MemorySegment segment, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(segment, 0L, value); } /// Sets `memoryHeaps` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryProperties memoryHeapsAt(long index, long elementIndex, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceMemoryProperties memoryHeapsAt(long index, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(this.segment(), index, value); return this; } /// Sets `memoryHeaps` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceMemoryProperties memoryHeaps(long elementIndex, @CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceMemoryProperties memoryHeaps(@CType("VkMemoryHeap[VK_MAX_MEMORY_HEAPS]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceMemoryProperties.set_memoryHeaps(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties2.java index 085cb584..55ac414b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMemoryProperties2.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceMemoryProperties2 extends Struct { /// @return the allocated `VkPhysicalDeviceMemoryProperties2` public static VkPhysicalDeviceMemoryProperties2 alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMemoryProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMemoryProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMemoryProperties2` + public VkPhysicalDeviceMemoryProperties2 asSlice(long index) { return new VkPhysicalDeviceMemoryProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMemoryProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMemoryProperties2` + public VkPhysicalDeviceMemoryProperties2 asSlice(long index, long count) { return new VkPhysicalDeviceMemoryProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewFeatures.java index f52eb70c..b1b0175b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewFeatures.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceMultiviewFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceMultiviewFeatures` public static VkPhysicalDeviceMultiviewFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiviewFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiviewFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiviewFeatures` + public VkPhysicalDeviceMultiviewFeatures asSlice(long index) { return new VkPhysicalDeviceMultiviewFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiviewFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiviewFeatures` + public VkPhysicalDeviceMultiviewFeatures asSlice(long index, long count) { return new VkPhysicalDeviceMultiviewFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewProperties.java index 5b677156..153624a0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceMultiviewProperties.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceMultiviewProperties extends Struct { /// @return the allocated `VkPhysicalDeviceMultiviewProperties` public static VkPhysicalDeviceMultiviewProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceMultiviewProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceMultiviewProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceMultiviewProperties` + public VkPhysicalDeviceMultiviewProperties asSlice(long index) { return new VkPhysicalDeviceMultiviewProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceMultiviewProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceMultiviewProperties` + public VkPhysicalDeviceMultiviewProperties asSlice(long index, long count) { return new VkPhysicalDeviceMultiviewProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineCreationCacheControlFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineCreationCacheControlFeatures.java index 28456f54..464a5ad9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineCreationCacheControlFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineCreationCacheControlFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineCreationCacheControlFeatures extends /// @return the allocated `VkPhysicalDevicePipelineCreationCacheControlFeatures` public static VkPhysicalDevicePipelineCreationCacheControlFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineCreationCacheControlFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineCreationCacheControlFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineCreationCacheControlFeatures` + public VkPhysicalDevicePipelineCreationCacheControlFeatures asSlice(long index) { return new VkPhysicalDevicePipelineCreationCacheControlFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineCreationCacheControlFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineCreationCacheControlFeatures` + public VkPhysicalDevicePipelineCreationCacheControlFeatures asSlice(long index, long count) { return new VkPhysicalDevicePipelineCreationCacheControlFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineProtectedAccessFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineProtectedAccessFeatures.java index 60c40348..29f1f585 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineProtectedAccessFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineProtectedAccessFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineProtectedAccessFeatures extends Struc /// @return the allocated `VkPhysicalDevicePipelineProtectedAccessFeatures` public static VkPhysicalDevicePipelineProtectedAccessFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineProtectedAccessFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineProtectedAccessFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineProtectedAccessFeatures` + public VkPhysicalDevicePipelineProtectedAccessFeatures asSlice(long index) { return new VkPhysicalDevicePipelineProtectedAccessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineProtectedAccessFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineProtectedAccessFeatures` + public VkPhysicalDevicePipelineProtectedAccessFeatures asSlice(long index, long count) { return new VkPhysicalDevicePipelineProtectedAccessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessFeatures.java index c98fdf89..babbbdfe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePipelineRobustnessFeatures extends Struct { /// @return the allocated `VkPhysicalDevicePipelineRobustnessFeatures` public static VkPhysicalDevicePipelineRobustnessFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineRobustnessFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineRobustnessFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineRobustnessFeatures` + public VkPhysicalDevicePipelineRobustnessFeatures asSlice(long index) { return new VkPhysicalDevicePipelineRobustnessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineRobustnessFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineRobustnessFeatures` + public VkPhysicalDevicePipelineRobustnessFeatures asSlice(long index, long count) { return new VkPhysicalDevicePipelineRobustnessFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessProperties.java index da664e6b..b5e9fde1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePipelineRobustnessProperties.java @@ -107,6 +107,17 @@ public final class VkPhysicalDevicePipelineRobustnessProperties extends Struct { /// @return the allocated `VkPhysicalDevicePipelineRobustnessProperties` public static VkPhysicalDevicePipelineRobustnessProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePipelineRobustnessProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePipelineRobustnessProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePipelineRobustnessProperties` + public VkPhysicalDevicePipelineRobustnessProperties asSlice(long index) { return new VkPhysicalDevicePipelineRobustnessProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePipelineRobustnessProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePipelineRobustnessProperties` + public VkPhysicalDevicePipelineRobustnessProperties asSlice(long index, long count) { return new VkPhysicalDevicePipelineRobustnessProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePointClippingProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePointClippingProperties.java index 7bc7cefa..df9a58ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePointClippingProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePointClippingProperties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePointClippingProperties extends Struct { /// @return the allocated `VkPhysicalDevicePointClippingProperties` public static VkPhysicalDevicePointClippingProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePointClippingProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePointClippingProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePointClippingProperties` + public VkPhysicalDevicePointClippingProperties asSlice(long index) { return new VkPhysicalDevicePointClippingProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePointClippingProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePointClippingProperties` + public VkPhysicalDevicePointClippingProperties asSlice(long index, long count) { return new VkPhysicalDevicePointClippingProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePrivateDataFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePrivateDataFeatures.java index 23973f5e..2fe7b525 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePrivateDataFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePrivateDataFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePrivateDataFeatures extends Struct { /// @return the allocated `VkPhysicalDevicePrivateDataFeatures` public static VkPhysicalDevicePrivateDataFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePrivateDataFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePrivateDataFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePrivateDataFeatures` + public VkPhysicalDevicePrivateDataFeatures asSlice(long index) { return new VkPhysicalDevicePrivateDataFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePrivateDataFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePrivateDataFeatures` + public VkPhysicalDevicePrivateDataFeatures asSlice(long index, long count) { return new VkPhysicalDevicePrivateDataFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties.java index c843da66..0839a582 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties.java @@ -38,9 +38,9 @@ /// ### deviceType /// [VarHandle][#VH_deviceType] - [Getter][#deviceType()] - [Setter][#deviceType(int)] /// ### deviceName -/// [Byte offset handle][#MH_deviceName] - [Memory layout][#ML_deviceName] - [Getter][#deviceName(long)] - [Setter][#deviceName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceName] - [Memory layout][#ML_deviceName] - [Getter][#deviceName()] - [Setter][#deviceName(java.lang.foreign.MemorySegment)] /// ### pipelineCacheUUID -/// [Byte offset handle][#MH_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID(long)] - [Setter][#pipelineCacheUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID()] - [Setter][#pipelineCacheUUID(java.lang.foreign.MemorySegment)] /// ### limits /// [Byte offset][#OFFSET_limits] - [Memory layout][#ML_limits] - [Getter][#limits()] - [Setter][#limits(java.lang.foreign.MemorySegment)] /// ### sparseProperties @@ -83,12 +83,12 @@ public final class VkPhysicalDeviceProperties extends Struct { public static final VarHandle VH_deviceID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("deviceID")); /// The [VarHandle] of `deviceType` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_deviceType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("deviceType")); - /// The byte offset handle of `deviceName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceName = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceName"), PathElement.sequenceElement()); + /// The byte offset of `deviceName`. + public static final long OFFSET_deviceName = LAYOUT.byteOffset(PathElement.groupElement("deviceName")); /// The memory layout of `deviceName`. public static final MemoryLayout ML_deviceName = LAYOUT.select(PathElement.groupElement("deviceName")); - /// The byte offset handle of `pipelineCacheUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineCacheUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineCacheUUID"), PathElement.sequenceElement()); + /// The byte offset of `pipelineCacheUUID`. + public static final long OFFSET_pipelineCacheUUID = LAYOUT.byteOffset(PathElement.groupElement("pipelineCacheUUID")); /// The memory layout of `pipelineCacheUUID`. public static final MemoryLayout ML_pipelineCacheUUID = LAYOUT.select(PathElement.groupElement("pipelineCacheUUID")); /// The byte offset of `limits`. @@ -135,6 +135,17 @@ public final class VkPhysicalDeviceProperties extends Struct { /// @return the allocated `VkPhysicalDeviceProperties` public static VkPhysicalDeviceProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProperties` + public VkPhysicalDeviceProperties asSlice(long index) { return new VkPhysicalDeviceProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProperties` + public VkPhysicalDeviceProperties asSlice(long index, long count) { return new VkPhysicalDeviceProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `apiVersion` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -291,94 +302,66 @@ public final class VkPhysicalDeviceProperties extends Struct { public VkPhysicalDeviceProperties deviceType(@CType("VkPhysicalDeviceType") int value) { VkPhysicalDeviceProperties.set_deviceType(this.segment(), value); return this; } /// {@return `deviceName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceName.invokeExact(0L, elementIndex), index), ML_deviceName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceName, index), ML_deviceName); } /// {@return `deviceName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceProperties.get_deviceName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment get_deviceName(MemorySegment segment) { return VkPhysicalDeviceProperties.get_deviceName(segment, 0L); } /// {@return `deviceName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceNameAt(long index, long elementIndex) { return VkPhysicalDeviceProperties.get_deviceName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceNameAt(long index) { return VkPhysicalDeviceProperties.get_deviceName(this.segment(), index); } /// {@return `deviceName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceName(long elementIndex) { return VkPhysicalDeviceProperties.get_deviceName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment deviceName() { return VkPhysicalDeviceProperties.get_deviceName(this.segment()); } /// Sets `deviceName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceName.invokeExact(0L, elementIndex), index), ML_deviceName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceName(MemorySegment segment, long index, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceName, index), ML_deviceName.byteSize()); } /// Sets `deviceName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceName(MemorySegment segment, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(segment, 0L, value); } /// Sets `deviceName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceProperties deviceNameAt(long index, long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceProperties deviceNameAt(long index, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(this.segment(), index, value); return this; } /// Sets `deviceName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceProperties deviceName(long elementIndex, @CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceProperties deviceName(@CType("char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_deviceName(this.segment(), value); return this; } /// {@return `pipelineCacheUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID); } /// {@return `pipelineCacheUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment) { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(segment, 0L); } /// {@return `pipelineCacheUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index) { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(this.segment(), index); } /// {@return `pipelineCacheUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID(long elementIndex) { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID() { return VkPhysicalDeviceProperties.get_pipelineCacheUUID(this.segment()); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID.byteSize()); } /// Sets `pipelineCacheUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(segment, 0L, value); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceProperties pipelineCacheUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceProperties pipelineCacheUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(this.segment(), index, value); return this; } /// Sets `pipelineCacheUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceProperties pipelineCacheUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceProperties pipelineCacheUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceProperties.set_pipelineCacheUUID(this.segment(), value); return this; } /// {@return `limits` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties2.java index 1b2b3500..1ffac174 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProperties2.java @@ -91,6 +91,17 @@ public final class VkPhysicalDeviceProperties2 extends Struct { /// @return the allocated `VkPhysicalDeviceProperties2` public static VkPhysicalDeviceProperties2 alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProperties2` + public VkPhysicalDeviceProperties2 asSlice(long index) { return new VkPhysicalDeviceProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProperties2` + public VkPhysicalDeviceProperties2 asSlice(long index, long count) { return new VkPhysicalDeviceProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryFeatures.java index 661f459a..9bacd9fe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceProtectedMemoryFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceProtectedMemoryFeatures` public static VkPhysicalDeviceProtectedMemoryFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProtectedMemoryFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProtectedMemoryFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProtectedMemoryFeatures` + public VkPhysicalDeviceProtectedMemoryFeatures asSlice(long index) { return new VkPhysicalDeviceProtectedMemoryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProtectedMemoryFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProtectedMemoryFeatures` + public VkPhysicalDeviceProtectedMemoryFeatures asSlice(long index, long count) { return new VkPhysicalDeviceProtectedMemoryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryProperties.java index 98cc63a5..3cf201ec 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceProtectedMemoryProperties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceProtectedMemoryProperties extends Struct { /// @return the allocated `VkPhysicalDeviceProtectedMemoryProperties` public static VkPhysicalDeviceProtectedMemoryProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceProtectedMemoryProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceProtectedMemoryProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceProtectedMemoryProperties` + public VkPhysicalDeviceProtectedMemoryProperties asSlice(long index) { return new VkPhysicalDeviceProtectedMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceProtectedMemoryProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceProtectedMemoryProperties` + public VkPhysicalDeviceProtectedMemoryProperties asSlice(long index, long count) { return new VkPhysicalDeviceProtectedMemoryProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePushDescriptorProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePushDescriptorProperties.java index 89ac15b6..3ef524ad 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePushDescriptorProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDevicePushDescriptorProperties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDevicePushDescriptorProperties extends Struct { /// @return the allocated `VkPhysicalDevicePushDescriptorProperties` public static VkPhysicalDevicePushDescriptorProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDevicePushDescriptorProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDevicePushDescriptorProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDevicePushDescriptorProperties` + public VkPhysicalDevicePushDescriptorProperties asSlice(long index) { return new VkPhysicalDevicePushDescriptorProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDevicePushDescriptorProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDevicePushDescriptorProperties` + public VkPhysicalDevicePushDescriptorProperties asSlice(long index, long count) { return new VkPhysicalDevicePushDescriptorProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerFilterMinmaxProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerFilterMinmaxProperties.java index f5a31c63..22894561 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerFilterMinmaxProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerFilterMinmaxProperties.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceSamplerFilterMinmaxProperties extends Struct /// @return the allocated `VkPhysicalDeviceSamplerFilterMinmaxProperties` public static VkPhysicalDeviceSamplerFilterMinmaxProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSamplerFilterMinmaxProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSamplerFilterMinmaxProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSamplerFilterMinmaxProperties` + public VkPhysicalDeviceSamplerFilterMinmaxProperties asSlice(long index) { return new VkPhysicalDeviceSamplerFilterMinmaxProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSamplerFilterMinmaxProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSamplerFilterMinmaxProperties` + public VkPhysicalDeviceSamplerFilterMinmaxProperties asSlice(long index, long count) { return new VkPhysicalDeviceSamplerFilterMinmaxProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerYcbcrConversionFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerYcbcrConversionFeatures.java index 3e65abc0..771fc8ce 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerYcbcrConversionFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSamplerYcbcrConversionFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSamplerYcbcrConversionFeatures extends Struct /// @return the allocated `VkPhysicalDeviceSamplerYcbcrConversionFeatures` public static VkPhysicalDeviceSamplerYcbcrConversionFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSamplerYcbcrConversionFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSamplerYcbcrConversionFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSamplerYcbcrConversionFeatures` + public VkPhysicalDeviceSamplerYcbcrConversionFeatures asSlice(long index) { return new VkPhysicalDeviceSamplerYcbcrConversionFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSamplerYcbcrConversionFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSamplerYcbcrConversionFeatures` + public VkPhysicalDeviceSamplerYcbcrConversionFeatures asSlice(long index, long count) { return new VkPhysicalDeviceSamplerYcbcrConversionFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceScalarBlockLayoutFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceScalarBlockLayoutFeatures.java index fa57b310..4eb72747 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceScalarBlockLayoutFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceScalarBlockLayoutFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceScalarBlockLayoutFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceScalarBlockLayoutFeatures` public static VkPhysicalDeviceScalarBlockLayoutFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceScalarBlockLayoutFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceScalarBlockLayoutFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceScalarBlockLayoutFeatures` + public VkPhysicalDeviceScalarBlockLayoutFeatures asSlice(long index) { return new VkPhysicalDeviceScalarBlockLayoutFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceScalarBlockLayoutFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceScalarBlockLayoutFeatures` + public VkPhysicalDeviceScalarBlockLayoutFeatures asSlice(long index, long count) { return new VkPhysicalDeviceScalarBlockLayoutFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.java index 11972675..3270d36e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures extends S /// @return the allocated `VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures` public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures` + public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures asSlice(long index) { return new VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures` + public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures asSlice(long index, long count) { return new VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderAtomicInt64Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderAtomicInt64Features.java index daa452f1..50b559ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderAtomicInt64Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderAtomicInt64Features.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderAtomicInt64Features extends Struct { /// @return the allocated `VkPhysicalDeviceShaderAtomicInt64Features` public static VkPhysicalDeviceShaderAtomicInt64Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderAtomicInt64Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderAtomicInt64Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderAtomicInt64Features` + public VkPhysicalDeviceShaderAtomicInt64Features asSlice(long index) { return new VkPhysicalDeviceShaderAtomicInt64Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderAtomicInt64Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderAtomicInt64Features` + public VkPhysicalDeviceShaderAtomicInt64Features asSlice(long index, long count) { return new VkPhysicalDeviceShaderAtomicInt64Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.java index 43c5c911..d8940cd7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures extend /// @return the allocated `VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures` public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures` + public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures asSlice(long index) { return new VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures` + public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDrawParametersFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDrawParametersFeatures.java index 7914d583..d198e345 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDrawParametersFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderDrawParametersFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderDrawParametersFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceShaderDrawParametersFeatures` public static VkPhysicalDeviceShaderDrawParametersFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderDrawParametersFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderDrawParametersFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderDrawParametersFeatures` + public VkPhysicalDeviceShaderDrawParametersFeatures asSlice(long index) { return new VkPhysicalDeviceShaderDrawParametersFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderDrawParametersFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderDrawParametersFeatures` + public VkPhysicalDeviceShaderDrawParametersFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderDrawParametersFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderExpectAssumeFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderExpectAssumeFeatures.java index 78f602e6..e3f19ce4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderExpectAssumeFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderExpectAssumeFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderExpectAssumeFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceShaderExpectAssumeFeatures` public static VkPhysicalDeviceShaderExpectAssumeFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderExpectAssumeFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderExpectAssumeFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderExpectAssumeFeatures` + public VkPhysicalDeviceShaderExpectAssumeFeatures asSlice(long index) { return new VkPhysicalDeviceShaderExpectAssumeFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderExpectAssumeFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderExpectAssumeFeatures` + public VkPhysicalDeviceShaderExpectAssumeFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderExpectAssumeFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloat16Int8Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloat16Int8Features.java index 5acf4386..7c55ec4c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloat16Int8Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloat16Int8Features.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderFloat16Int8Features extends Struct { /// @return the allocated `VkPhysicalDeviceShaderFloat16Int8Features` public static VkPhysicalDeviceShaderFloat16Int8Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderFloat16Int8Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderFloat16Int8Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderFloat16Int8Features` + public VkPhysicalDeviceShaderFloat16Int8Features asSlice(long index) { return new VkPhysicalDeviceShaderFloat16Int8Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderFloat16Int8Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderFloat16Int8Features` + public VkPhysicalDeviceShaderFloat16Int8Features asSlice(long index, long count) { return new VkPhysicalDeviceShaderFloat16Int8Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloatControls2Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloatControls2Features.java index 1dc26f68..5094b8a6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloatControls2Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderFloatControls2Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderFloatControls2Features extends Struct { /// @return the allocated `VkPhysicalDeviceShaderFloatControls2Features` public static VkPhysicalDeviceShaderFloatControls2Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderFloatControls2Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderFloatControls2Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderFloatControls2Features` + public VkPhysicalDeviceShaderFloatControls2Features asSlice(long index) { return new VkPhysicalDeviceShaderFloatControls2Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderFloatControls2Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderFloatControls2Features` + public VkPhysicalDeviceShaderFloatControls2Features asSlice(long index, long count) { return new VkPhysicalDeviceShaderFloatControls2Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductFeatures.java index 822d3467..1361be65 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderIntegerDotProductFeatures extends Struc /// @return the allocated `VkPhysicalDeviceShaderIntegerDotProductFeatures` public static VkPhysicalDeviceShaderIntegerDotProductFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderIntegerDotProductFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderIntegerDotProductFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderIntegerDotProductFeatures` + public VkPhysicalDeviceShaderIntegerDotProductFeatures asSlice(long index) { return new VkPhysicalDeviceShaderIntegerDotProductFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderIntegerDotProductFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderIntegerDotProductFeatures` + public VkPhysicalDeviceShaderIntegerDotProductFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderIntegerDotProductFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductProperties.java index 8b4fc6b0..b7a80a98 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderIntegerDotProductProperties.java @@ -263,6 +263,17 @@ public final class VkPhysicalDeviceShaderIntegerDotProductProperties extends Str /// @return the allocated `VkPhysicalDeviceShaderIntegerDotProductProperties` public static VkPhysicalDeviceShaderIntegerDotProductProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderIntegerDotProductProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderIntegerDotProductProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderIntegerDotProductProperties` + public VkPhysicalDeviceShaderIntegerDotProductProperties asSlice(long index) { return new VkPhysicalDeviceShaderIntegerDotProductProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderIntegerDotProductProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderIntegerDotProductProperties` + public VkPhysicalDeviceShaderIntegerDotProductProperties asSlice(long index, long count) { return new VkPhysicalDeviceShaderIntegerDotProductProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures.java index 839287d6..305bd7c9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures extends S /// @return the allocated `VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures` public static VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures` + public VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures asSlice(long index) { return new VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures` + public VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupRotateFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupRotateFeatures.java index 398991fd..677679b1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupRotateFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderSubgroupRotateFeatures.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceShaderSubgroupRotateFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceShaderSubgroupRotateFeatures` public static VkPhysicalDeviceShaderSubgroupRotateFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderSubgroupRotateFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupRotateFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderSubgroupRotateFeatures` + public VkPhysicalDeviceShaderSubgroupRotateFeatures asSlice(long index) { return new VkPhysicalDeviceShaderSubgroupRotateFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderSubgroupRotateFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderSubgroupRotateFeatures` + public VkPhysicalDeviceShaderSubgroupRotateFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderSubgroupRotateFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderTerminateInvocationFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderTerminateInvocationFeatures.java index 609268a8..7a2940e4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderTerminateInvocationFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceShaderTerminateInvocationFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceShaderTerminateInvocationFeatures extends Str /// @return the allocated `VkPhysicalDeviceShaderTerminateInvocationFeatures` public static VkPhysicalDeviceShaderTerminateInvocationFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceShaderTerminateInvocationFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceShaderTerminateInvocationFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceShaderTerminateInvocationFeatures` + public VkPhysicalDeviceShaderTerminateInvocationFeatures asSlice(long index) { return new VkPhysicalDeviceShaderTerminateInvocationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceShaderTerminateInvocationFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceShaderTerminateInvocationFeatures` + public VkPhysicalDeviceShaderTerminateInvocationFeatures asSlice(long index, long count) { return new VkPhysicalDeviceShaderTerminateInvocationFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseImageFormatInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseImageFormatInfo2.java index bcb6f3a4..8f7d1ab6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseImageFormatInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseImageFormatInfo2.java @@ -113,6 +113,17 @@ public final class VkPhysicalDeviceSparseImageFormatInfo2 extends Struct { /// @return the allocated `VkPhysicalDeviceSparseImageFormatInfo2` public static VkPhysicalDeviceSparseImageFormatInfo2 alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSparseImageFormatInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSparseImageFormatInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSparseImageFormatInfo2` + public VkPhysicalDeviceSparseImageFormatInfo2 asSlice(long index) { return new VkPhysicalDeviceSparseImageFormatInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSparseImageFormatInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSparseImageFormatInfo2` + public VkPhysicalDeviceSparseImageFormatInfo2 asSlice(long index, long count) { return new VkPhysicalDeviceSparseImageFormatInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseProperties.java index 4d4f830b..34ab2b3c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSparseProperties.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceSparseProperties extends Struct { /// @return the allocated `VkPhysicalDeviceSparseProperties` public static VkPhysicalDeviceSparseProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSparseProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSparseProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSparseProperties` + public VkPhysicalDeviceSparseProperties asSlice(long index) { return new VkPhysicalDeviceSparseProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSparseProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSparseProperties` + public VkPhysicalDeviceSparseProperties asSlice(long index, long count) { return new VkPhysicalDeviceSparseProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `residencyStandard2DBlockShape` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupProperties.java index 912a67b9..a7a6f83b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupProperties.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceSubgroupProperties extends Struct { /// @return the allocated `VkPhysicalDeviceSubgroupProperties` public static VkPhysicalDeviceSubgroupProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubgroupProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubgroupProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubgroupProperties` + public VkPhysicalDeviceSubgroupProperties asSlice(long index) { return new VkPhysicalDeviceSubgroupProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubgroupProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubgroupProperties` + public VkPhysicalDeviceSubgroupProperties asSlice(long index, long count) { return new VkPhysicalDeviceSubgroupProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlFeatures.java index 124b3191..e1f1a7d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlFeatures.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceSubgroupSizeControlFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceSubgroupSizeControlFeatures` public static VkPhysicalDeviceSubgroupSizeControlFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubgroupSizeControlFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubgroupSizeControlFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubgroupSizeControlFeatures` + public VkPhysicalDeviceSubgroupSizeControlFeatures asSlice(long index) { return new VkPhysicalDeviceSubgroupSizeControlFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubgroupSizeControlFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubgroupSizeControlFeatures` + public VkPhysicalDeviceSubgroupSizeControlFeatures asSlice(long index, long count) { return new VkPhysicalDeviceSubgroupSizeControlFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlProperties.java index dc1e7281..8cb3153d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSubgroupSizeControlProperties.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceSubgroupSizeControlProperties extends Struct /// @return the allocated `VkPhysicalDeviceSubgroupSizeControlProperties` public static VkPhysicalDeviceSubgroupSizeControlProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSubgroupSizeControlProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSubgroupSizeControlProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSubgroupSizeControlProperties` + public VkPhysicalDeviceSubgroupSizeControlProperties asSlice(long index) { return new VkPhysicalDeviceSubgroupSizeControlProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSubgroupSizeControlProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSubgroupSizeControlProperties` + public VkPhysicalDeviceSubgroupSizeControlProperties asSlice(long index, long count) { return new VkPhysicalDeviceSubgroupSizeControlProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSynchronization2Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSynchronization2Features.java index 8c63c072..7c255969 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSynchronization2Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceSynchronization2Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceSynchronization2Features extends Struct { /// @return the allocated `VkPhysicalDeviceSynchronization2Features` public static VkPhysicalDeviceSynchronization2Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceSynchronization2Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceSynchronization2Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceSynchronization2Features` + public VkPhysicalDeviceSynchronization2Features asSlice(long index) { return new VkPhysicalDeviceSynchronization2Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceSynchronization2Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceSynchronization2Features` + public VkPhysicalDeviceSynchronization2Features asSlice(long index, long count) { return new VkPhysicalDeviceSynchronization2Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTexelBufferAlignmentProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTexelBufferAlignmentProperties.java index 0a81accf..08a0d73a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTexelBufferAlignmentProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTexelBufferAlignmentProperties.java @@ -107,6 +107,17 @@ public final class VkPhysicalDeviceTexelBufferAlignmentProperties extends Struct /// @return the allocated `VkPhysicalDeviceTexelBufferAlignmentProperties` public static VkPhysicalDeviceTexelBufferAlignmentProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTexelBufferAlignmentProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTexelBufferAlignmentProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTexelBufferAlignmentProperties` + public VkPhysicalDeviceTexelBufferAlignmentProperties asSlice(long index) { return new VkPhysicalDeviceTexelBufferAlignmentProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTexelBufferAlignmentProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTexelBufferAlignmentProperties` + public VkPhysicalDeviceTexelBufferAlignmentProperties asSlice(long index, long count) { return new VkPhysicalDeviceTexelBufferAlignmentProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTextureCompressionASTCHDRFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTextureCompressionASTCHDRFeatures.java index 6a769b8a..675b310a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTextureCompressionASTCHDRFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTextureCompressionASTCHDRFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceTextureCompressionASTCHDRFeatures extends Str /// @return the allocated `VkPhysicalDeviceTextureCompressionASTCHDRFeatures` public static VkPhysicalDeviceTextureCompressionASTCHDRFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTextureCompressionASTCHDRFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTextureCompressionASTCHDRFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTextureCompressionASTCHDRFeatures` + public VkPhysicalDeviceTextureCompressionASTCHDRFeatures asSlice(long index) { return new VkPhysicalDeviceTextureCompressionASTCHDRFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTextureCompressionASTCHDRFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTextureCompressionASTCHDRFeatures` + public VkPhysicalDeviceTextureCompressionASTCHDRFeatures asSlice(long index, long count) { return new VkPhysicalDeviceTextureCompressionASTCHDRFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreFeatures.java index 37ef2d45..3c417b70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceTimelineSemaphoreFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceTimelineSemaphoreFeatures` public static VkPhysicalDeviceTimelineSemaphoreFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTimelineSemaphoreFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTimelineSemaphoreFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTimelineSemaphoreFeatures` + public VkPhysicalDeviceTimelineSemaphoreFeatures asSlice(long index) { return new VkPhysicalDeviceTimelineSemaphoreFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTimelineSemaphoreFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTimelineSemaphoreFeatures` + public VkPhysicalDeviceTimelineSemaphoreFeatures asSlice(long index, long count) { return new VkPhysicalDeviceTimelineSemaphoreFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreProperties.java index 54c59d21..01647e5c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceTimelineSemaphoreProperties.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceTimelineSemaphoreProperties extends Struct { /// @return the allocated `VkPhysicalDeviceTimelineSemaphoreProperties` public static VkPhysicalDeviceTimelineSemaphoreProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceTimelineSemaphoreProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceTimelineSemaphoreProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceTimelineSemaphoreProperties` + public VkPhysicalDeviceTimelineSemaphoreProperties asSlice(long index) { return new VkPhysicalDeviceTimelineSemaphoreProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceTimelineSemaphoreProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceTimelineSemaphoreProperties` + public VkPhysicalDeviceTimelineSemaphoreProperties asSlice(long index, long count) { return new VkPhysicalDeviceTimelineSemaphoreProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceToolProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceToolProperties.java index 2075a39d..5591e4ac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceToolProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceToolProperties.java @@ -34,15 +34,15 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### name -/// [Byte offset handle][#MH_name] - [Memory layout][#ML_name] - [Getter][#name(long)] - [Setter][#name(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_name] - [Memory layout][#ML_name] - [Getter][#name()] - [Setter][#name(java.lang.foreign.MemorySegment)] /// ### version -/// [Byte offset handle][#MH_version] - [Memory layout][#ML_version] - [Getter][#version(long)] - [Setter][#version(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_version] - [Memory layout][#ML_version] - [Getter][#version()] - [Setter][#version(java.lang.foreign.MemorySegment)] /// ### purposes /// [VarHandle][#VH_purposes] - [Getter][#purposes()] - [Setter][#purposes(int)] /// ### description -/// [Byte offset handle][#MH_description] - [Memory layout][#ML_description] - [Getter][#description(long)] - [Setter][#description(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_description] - [Memory layout][#ML_description] - [Getter][#description()] - [Setter][#description(java.lang.foreign.MemorySegment)] /// ### layer -/// [Byte offset handle][#MH_layer] - [Memory layout][#ML_layer] - [Getter][#layer(long)] - [Setter][#layer(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_layer] - [Memory layout][#ML_layer] - [Getter][#layer()] - [Setter][#layer(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -71,22 +71,22 @@ public final class VkPhysicalDeviceToolProperties extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `name` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_name = LAYOUT.byteOffsetHandle(PathElement.groupElement("name"), PathElement.sequenceElement()); + /// The byte offset of `name`. + public static final long OFFSET_name = LAYOUT.byteOffset(PathElement.groupElement("name")); /// The memory layout of `name`. public static final MemoryLayout ML_name = LAYOUT.select(PathElement.groupElement("name")); - /// The byte offset handle of `version` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_version = LAYOUT.byteOffsetHandle(PathElement.groupElement("version"), PathElement.sequenceElement()); + /// The byte offset of `version`. + public static final long OFFSET_version = LAYOUT.byteOffset(PathElement.groupElement("version")); /// The memory layout of `version`. public static final MemoryLayout ML_version = LAYOUT.select(PathElement.groupElement("version")); /// The [VarHandle] of `purposes` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_purposes = LAYOUT.arrayElementVarHandle(PathElement.groupElement("purposes")); - /// The byte offset handle of `description` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_description = LAYOUT.byteOffsetHandle(PathElement.groupElement("description"), PathElement.sequenceElement()); + /// The byte offset of `description`. + public static final long OFFSET_description = LAYOUT.byteOffset(PathElement.groupElement("description")); /// The memory layout of `description`. public static final MemoryLayout ML_description = LAYOUT.select(PathElement.groupElement("description")); - /// The byte offset handle of `layer` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_layer = LAYOUT.byteOffsetHandle(PathElement.groupElement("layer"), PathElement.sequenceElement()); + /// The byte offset of `layer`. + public static final long OFFSET_layer = LAYOUT.byteOffset(PathElement.groupElement("layer")); /// The memory layout of `layer`. public static final MemoryLayout ML_layer = LAYOUT.select(PathElement.groupElement("layer")); @@ -125,6 +125,17 @@ public final class VkPhysicalDeviceToolProperties extends Struct { /// @return the allocated `VkPhysicalDeviceToolProperties` public static VkPhysicalDeviceToolProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceToolProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceToolProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceToolProperties` + public VkPhysicalDeviceToolProperties asSlice(long index) { return new VkPhysicalDeviceToolProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceToolProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceToolProperties` + public VkPhysicalDeviceToolProperties asSlice(long index, long count) { return new VkPhysicalDeviceToolProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -188,94 +199,66 @@ public final class VkPhysicalDeviceToolProperties extends Struct { public VkPhysicalDeviceToolProperties pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_pNext(this.segment(), value); return this; } /// {@return `name` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_name, index), ML_name); } /// {@return `name`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceToolProperties.get_name(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_name(MemorySegment segment) { return VkPhysicalDeviceToolProperties.get_name(segment, 0L); } /// {@return `name` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment nameAt(long index, long elementIndex) { return VkPhysicalDeviceToolProperties.get_name(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment nameAt(long index) { return VkPhysicalDeviceToolProperties.get_name(this.segment(), index); } /// {@return `name`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment name(long elementIndex) { return VkPhysicalDeviceToolProperties.get_name(this.segment(), elementIndex); } + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment name() { return VkPhysicalDeviceToolProperties.get_name(this.segment()); } /// Sets `name` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_name.invokeExact(0L, elementIndex), index), ML_name.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_name(MemorySegment segment, long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_name, index), ML_name.byteSize()); } /// Sets `name` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_name(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_name(MemorySegment segment, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(segment, 0L, value); } /// Sets `name` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties nameAt(long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties nameAt(long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(this.segment(), index, value); return this; } /// Sets `name` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties name(long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties name(@CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_name(this.segment(), value); return this; } /// {@return `version` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_version(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_version.invokeExact(0L, elementIndex), index), ML_version); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_version(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_version, index), ML_version); } /// {@return `version`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_version(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceToolProperties.get_version(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_version(MemorySegment segment) { return VkPhysicalDeviceToolProperties.get_version(segment, 0L); } /// {@return `version` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment versionAt(long index, long elementIndex) { return VkPhysicalDeviceToolProperties.get_version(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment versionAt(long index) { return VkPhysicalDeviceToolProperties.get_version(this.segment(), index); } /// {@return `version`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment version(long elementIndex) { return VkPhysicalDeviceToolProperties.get_version(this.segment(), elementIndex); } + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment version() { return VkPhysicalDeviceToolProperties.get_version(this.segment()); } /// Sets `version` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_version(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_version.invokeExact(0L, elementIndex), index), ML_version.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_version(MemorySegment segment, long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_version, index), ML_version.byteSize()); } /// Sets `version` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_version(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_version(MemorySegment segment, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(segment, 0L, value); } /// Sets `version` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties versionAt(long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties versionAt(long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(this.segment(), index, value); return this; } /// Sets `version` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties version(long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties version(@CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_version(this.segment(), value); return this; } /// {@return `purposes` at the given index} /// @param segment the segment of the struct @@ -309,93 +292,65 @@ public static void set_version(MemorySegment segment, long index, long elementIn public VkPhysicalDeviceToolProperties purposes(@CType("VkToolPurposeFlags") int value) { VkPhysicalDeviceToolProperties.set_purposes(this.segment(), value); return this; } /// {@return `description` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_description, index), ML_description); } /// {@return `description`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceToolProperties.get_description(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment get_description(MemorySegment segment) { return VkPhysicalDeviceToolProperties.get_description(segment, 0L); } /// {@return `description` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index, long elementIndex) { return VkPhysicalDeviceToolProperties.get_description(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment descriptionAt(long index) { return VkPhysicalDeviceToolProperties.get_description(this.segment(), index); } /// {@return `description`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description(long elementIndex) { return VkPhysicalDeviceToolProperties.get_description(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment description() { return VkPhysicalDeviceToolProperties.get_description(this.segment()); } /// Sets `description` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_description.invokeExact(0L, elementIndex), index), ML_description.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_description(MemorySegment segment, long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_description, index), ML_description.byteSize()); } /// Sets `description` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_description(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_description(MemorySegment segment, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(segment, 0L, value); } /// Sets `description` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties descriptionAt(long index, long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties descriptionAt(long index, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(this.segment(), index, value); return this; } /// Sets `description` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties description(long elementIndex, @CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties description(@CType("char[VK_MAX_DESCRIPTION_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_description(this.segment(), value); return this; } /// {@return `layer` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layer(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_layer.invokeExact(0L, elementIndex), index), ML_layer); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layer(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_layer, index), ML_layer); } /// {@return `layer`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layer(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceToolProperties.get_layer(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment get_layer(MemorySegment segment) { return VkPhysicalDeviceToolProperties.get_layer(segment, 0L); } /// {@return `layer` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerAt(long index, long elementIndex) { return VkPhysicalDeviceToolProperties.get_layer(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layerAt(long index) { return VkPhysicalDeviceToolProperties.get_layer(this.segment(), index); } /// {@return `layer`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layer(long elementIndex) { return VkPhysicalDeviceToolProperties.get_layer(this.segment(), elementIndex); } + public @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment layer() { return VkPhysicalDeviceToolProperties.get_layer(this.segment()); } /// Sets `layer` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_layer(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_layer.invokeExact(0L, elementIndex), index), ML_layer.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_layer(MemorySegment segment, long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_layer, index), ML_layer.byteSize()); } /// Sets `layer` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_layer(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_layer(MemorySegment segment, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(segment, 0L, value); } /// Sets `layer` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties layerAt(long index, long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties layerAt(long index, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(this.segment(), index, value); return this; } /// Sets `layer` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceToolProperties layer(long elementIndex, @CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceToolProperties layer(@CType("char[VK_MAX_EXTENSION_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceToolProperties.set_layer(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceUniformBufferStandardLayoutFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceUniformBufferStandardLayoutFeatures.java index 7fe91c12..531e9102 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceUniformBufferStandardLayoutFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceUniformBufferStandardLayoutFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceUniformBufferStandardLayoutFeatures extends S /// @return the allocated `VkPhysicalDeviceUniformBufferStandardLayoutFeatures` public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceUniformBufferStandardLayoutFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceUniformBufferStandardLayoutFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceUniformBufferStandardLayoutFeatures` + public VkPhysicalDeviceUniformBufferStandardLayoutFeatures asSlice(long index) { return new VkPhysicalDeviceUniformBufferStandardLayoutFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceUniformBufferStandardLayoutFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceUniformBufferStandardLayoutFeatures` + public VkPhysicalDeviceUniformBufferStandardLayoutFeatures asSlice(long index, long count) { return new VkPhysicalDeviceUniformBufferStandardLayoutFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVariablePointersFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVariablePointersFeatures.java index 0a88cc92..ca16e454 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVariablePointersFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVariablePointersFeatures.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceVariablePointersFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceVariablePointersFeatures` public static VkPhysicalDeviceVariablePointersFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVariablePointersFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVariablePointersFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVariablePointersFeatures` + public VkPhysicalDeviceVariablePointersFeatures asSlice(long index) { return new VkPhysicalDeviceVariablePointersFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVariablePointersFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVariablePointersFeatures` + public VkPhysicalDeviceVariablePointersFeatures asSlice(long index, long count) { return new VkPhysicalDeviceVariablePointersFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorFeatures.java index c24ca0f5..d82a575e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorFeatures.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceVertexAttributeDivisorFeatures extends Struct /// @return the allocated `VkPhysicalDeviceVertexAttributeDivisorFeatures` public static VkPhysicalDeviceVertexAttributeDivisorFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVertexAttributeDivisorFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorFeatures` + public VkPhysicalDeviceVertexAttributeDivisorFeatures asSlice(long index) { return new VkPhysicalDeviceVertexAttributeDivisorFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorFeatures` + public VkPhysicalDeviceVertexAttributeDivisorFeatures asSlice(long index, long count) { return new VkPhysicalDeviceVertexAttributeDivisorFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorProperties.java index 406e58ac..32b262ee 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVertexAttributeDivisorProperties.java @@ -95,6 +95,17 @@ public final class VkPhysicalDeviceVertexAttributeDivisorProperties extends Stru /// @return the allocated `VkPhysicalDeviceVertexAttributeDivisorProperties` public static VkPhysicalDeviceVertexAttributeDivisorProperties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVertexAttributeDivisorProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorProperties` + public VkPhysicalDeviceVertexAttributeDivisorProperties asSlice(long index) { return new VkPhysicalDeviceVertexAttributeDivisorProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVertexAttributeDivisorProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVertexAttributeDivisorProperties` + public VkPhysicalDeviceVertexAttributeDivisorProperties asSlice(long index, long count) { return new VkPhysicalDeviceVertexAttributeDivisorProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Features.java index b797ac04..3d7469ca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Features.java @@ -155,6 +155,17 @@ public final class VkPhysicalDeviceVulkan11Features extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan11Features` public static VkPhysicalDeviceVulkan11Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan11Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan11Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan11Features` + public VkPhysicalDeviceVulkan11Features asSlice(long index) { return new VkPhysicalDeviceVulkan11Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan11Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan11Features` + public VkPhysicalDeviceVulkan11Features asSlice(long index, long count) { return new VkPhysicalDeviceVulkan11Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Properties.java index a5b46349..6b6de4c7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan11Properties.java @@ -33,11 +33,11 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### deviceUUID -/// [Byte offset handle][#MH_deviceUUID] - [Memory layout][#ML_deviceUUID] - [Getter][#deviceUUID(long)] - [Setter][#deviceUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceUUID] - [Memory layout][#ML_deviceUUID] - [Getter][#deviceUUID()] - [Setter][#deviceUUID(java.lang.foreign.MemorySegment)] /// ### driverUUID -/// [Byte offset handle][#MH_driverUUID] - [Memory layout][#ML_driverUUID] - [Getter][#driverUUID(long)] - [Setter][#driverUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverUUID] - [Memory layout][#ML_driverUUID] - [Getter][#driverUUID()] - [Setter][#driverUUID(java.lang.foreign.MemorySegment)] /// ### deviceLUID -/// [Byte offset handle][#MH_deviceLUID] - [Memory layout][#ML_deviceLUID] - [Getter][#deviceLUID(long)] - [Setter][#deviceLUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_deviceLUID] - [Memory layout][#ML_deviceLUID] - [Getter][#deviceLUID()] - [Setter][#deviceLUID(java.lang.foreign.MemorySegment)] /// ### deviceNodeMask /// [VarHandle][#VH_deviceNodeMask] - [Getter][#deviceNodeMask()] - [Setter][#deviceNodeMask(int)] /// ### deviceLUIDValid @@ -110,16 +110,16 @@ public final class VkPhysicalDeviceVulkan11Properties extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `deviceUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceUUID"), PathElement.sequenceElement()); + /// The byte offset of `deviceUUID`. + public static final long OFFSET_deviceUUID = LAYOUT.byteOffset(PathElement.groupElement("deviceUUID")); /// The memory layout of `deviceUUID`. public static final MemoryLayout ML_deviceUUID = LAYOUT.select(PathElement.groupElement("deviceUUID")); - /// The byte offset handle of `driverUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverUUID"), PathElement.sequenceElement()); + /// The byte offset of `driverUUID`. + public static final long OFFSET_driverUUID = LAYOUT.byteOffset(PathElement.groupElement("driverUUID")); /// The memory layout of `driverUUID`. public static final MemoryLayout ML_driverUUID = LAYOUT.select(PathElement.groupElement("driverUUID")); - /// The byte offset handle of `deviceLUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_deviceLUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("deviceLUID"), PathElement.sequenceElement()); + /// The byte offset of `deviceLUID`. + public static final long OFFSET_deviceLUID = LAYOUT.byteOffset(PathElement.groupElement("deviceLUID")); /// The memory layout of `deviceLUID`. public static final MemoryLayout ML_deviceLUID = LAYOUT.select(PathElement.groupElement("deviceLUID")); /// The [VarHandle] of `deviceNodeMask` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -182,6 +182,17 @@ public final class VkPhysicalDeviceVulkan11Properties extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan11Properties` public static VkPhysicalDeviceVulkan11Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan11Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan11Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan11Properties` + public VkPhysicalDeviceVulkan11Properties asSlice(long index) { return new VkPhysicalDeviceVulkan11Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan11Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan11Properties` + public VkPhysicalDeviceVulkan11Properties asSlice(long index, long count) { return new VkPhysicalDeviceVulkan11Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -245,139 +256,97 @@ public final class VkPhysicalDeviceVulkan11Properties extends Struct { public VkPhysicalDeviceVulkan11Properties pNext(@CType("void *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_pNext(this.segment(), value); return this; } /// {@return `deviceUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceUUID.invokeExact(0L, elementIndex), index), ML_deviceUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceUUID, index), ML_deviceUUID); } /// {@return `deviceUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_deviceUUID(MemorySegment segment) { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(segment, 0L); } /// {@return `deviceUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUIDAt(long index) { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(this.segment(), index); } /// {@return `deviceUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUID(long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment deviceUUID() { return VkPhysicalDeviceVulkan11Properties.get_deviceUUID(this.segment()); } /// Sets `deviceUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceUUID.invokeExact(0L, elementIndex), index), ML_deviceUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceUUID, index), ML_deviceUUID.byteSize()); } /// Sets `deviceUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(segment, 0L, value); } /// Sets `deviceUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties deviceUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties deviceUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(this.segment(), index, value); return this; } /// Sets `deviceUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties deviceUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties deviceUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceUUID(this.segment(), value); return this; } /// {@return `driverUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverUUID.invokeExact(0L, elementIndex), index), ML_driverUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverUUID, index), ML_driverUUID); } /// {@return `driverUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_driverUUID(MemorySegment segment) { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(segment, 0L); } /// {@return `driverUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUIDAt(long index) { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(this.segment(), index); } /// {@return `driverUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUID(long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment driverUUID() { return VkPhysicalDeviceVulkan11Properties.get_driverUUID(this.segment()); } /// Sets `driverUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverUUID.invokeExact(0L, elementIndex), index), ML_driverUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverUUID, index), ML_driverUUID.byteSize()); } /// Sets `driverUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(segment, 0L, value); } /// Sets `driverUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties driverUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties driverUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(this.segment(), index, value); return this; } /// Sets `driverUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties driverUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties driverUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_driverUUID(this.segment(), value); return this; } /// {@return `deviceLUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_deviceLUID.invokeExact(0L, elementIndex), index), ML_deviceLUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_deviceLUID, index), ML_deviceLUID); } /// {@return `deviceLUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment get_deviceLUID(MemorySegment segment) { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(segment, 0L); } /// {@return `deviceLUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUIDAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUIDAt(long index) { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(this.segment(), index); } /// {@return `deviceLUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUID(long elementIndex) { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment deviceLUID() { return VkPhysicalDeviceVulkan11Properties.get_deviceLUID(this.segment()); } /// Sets `deviceLUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceLUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_deviceLUID.invokeExact(0L, elementIndex), index), ML_deviceLUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_deviceLUID(MemorySegment segment, long index, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_deviceLUID, index), ML_deviceLUID.byteSize()); } /// Sets `deviceLUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_deviceLUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_deviceLUID(MemorySegment segment, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(segment, 0L, value); } /// Sets `deviceLUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties deviceLUIDAt(long index, long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties deviceLUIDAt(long index, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(this.segment(), index, value); return this; } /// Sets `deviceLUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan11Properties deviceLUID(long elementIndex, @CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan11Properties deviceLUID(@CType("uint8_t[VK_LUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan11Properties.set_deviceLUID(this.segment(), value); return this; } /// {@return `deviceNodeMask` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Features.java index 39551eb9..571d691d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Features.java @@ -365,6 +365,17 @@ public final class VkPhysicalDeviceVulkan12Features extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan12Features` public static VkPhysicalDeviceVulkan12Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan12Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan12Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan12Features` + public VkPhysicalDeviceVulkan12Features asSlice(long index) { return new VkPhysicalDeviceVulkan12Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan12Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan12Features` + public VkPhysicalDeviceVulkan12Features asSlice(long index, long count) { return new VkPhysicalDeviceVulkan12Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Properties.java index 75192db0..bede4ab8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan12Properties.java @@ -34,9 +34,9 @@ /// ### driverID /// [VarHandle][#VH_driverID] - [Getter][#driverID()] - [Setter][#driverID(int)] /// ### driverName -/// [Byte offset handle][#MH_driverName] - [Memory layout][#ML_driverName] - [Getter][#driverName(long)] - [Setter][#driverName(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverName] - [Memory layout][#ML_driverName] - [Getter][#driverName()] - [Setter][#driverName(java.lang.foreign.MemorySegment)] /// ### driverInfo -/// [Byte offset handle][#MH_driverInfo] - [Memory layout][#ML_driverInfo] - [Getter][#driverInfo(long)] - [Setter][#driverInfo(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_driverInfo] - [Memory layout][#ML_driverInfo] - [Getter][#driverInfo()] - [Setter][#driverInfo(java.lang.foreign.MemorySegment)] /// ### conformanceVersion /// [Byte offset][#OFFSET_conformanceVersion] - [Memory layout][#ML_conformanceVersion] - [Getter][#conformanceVersion()] - [Setter][#conformanceVersion(java.lang.foreign.MemorySegment)] /// ### denormBehaviorIndependence @@ -259,12 +259,12 @@ public final class VkPhysicalDeviceVulkan12Properties extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `driverID` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_driverID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("driverID")); - /// The byte offset handle of `driverName` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverName = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverName"), PathElement.sequenceElement()); + /// The byte offset of `driverName`. + public static final long OFFSET_driverName = LAYOUT.byteOffset(PathElement.groupElement("driverName")); /// The memory layout of `driverName`. public static final MemoryLayout ML_driverName = LAYOUT.select(PathElement.groupElement("driverName")); - /// The byte offset handle of `driverInfo` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_driverInfo = LAYOUT.byteOffsetHandle(PathElement.groupElement("driverInfo"), PathElement.sequenceElement()); + /// The byte offset of `driverInfo`. + public static final long OFFSET_driverInfo = LAYOUT.byteOffset(PathElement.groupElement("driverInfo")); /// The memory layout of `driverInfo`. public static final MemoryLayout ML_driverInfo = LAYOUT.select(PathElement.groupElement("driverInfo")); /// The byte offset of `conformanceVersion`. @@ -403,6 +403,17 @@ public final class VkPhysicalDeviceVulkan12Properties extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan12Properties` public static VkPhysicalDeviceVulkan12Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan12Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan12Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan12Properties` + public VkPhysicalDeviceVulkan12Properties asSlice(long index) { return new VkPhysicalDeviceVulkan12Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan12Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan12Properties` + public VkPhysicalDeviceVulkan12Properties asSlice(long index, long count) { return new VkPhysicalDeviceVulkan12Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -497,94 +508,66 @@ public final class VkPhysicalDeviceVulkan12Properties extends Struct { public VkPhysicalDeviceVulkan12Properties driverID(@CType("VkDriverId") int value) { VkPhysicalDeviceVulkan12Properties.set_driverID(this.segment(), value); return this; } /// {@return `driverName` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverName.invokeExact(0L, elementIndex), index), ML_driverName); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverName, index), ML_driverName); } /// {@return `driverName`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverName(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment get_driverName(MemorySegment segment) { return VkPhysicalDeviceVulkan12Properties.get_driverName(segment, 0L); } /// {@return `driverName` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverNameAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverName(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverNameAt(long index) { return VkPhysicalDeviceVulkan12Properties.get_driverName(this.segment(), index); } /// {@return `driverName`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverName(long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverName(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment driverName() { return VkPhysicalDeviceVulkan12Properties.get_driverName(this.segment()); } /// Sets `driverName` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverName(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverName.invokeExact(0L, elementIndex), index), ML_driverName.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverName(MemorySegment segment, long index, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverName, index), ML_driverName.byteSize()); } /// Sets `driverName` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverName(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverName(MemorySegment segment, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(segment, 0L, value); } /// Sets `driverName` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan12Properties driverNameAt(long index, long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan12Properties driverNameAt(long index, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(this.segment(), index, value); return this; } /// Sets `driverName` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan12Properties driverName(long elementIndex, @CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan12Properties driverName(@CType("char[VK_MAX_DRIVER_NAME_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverName(this.segment(), value); return this; } /// {@return `driverInfo` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_driverInfo.invokeExact(0L, elementIndex), index), ML_driverInfo); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_driverInfo, index), ML_driverInfo); } /// {@return `driverInfo`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment get_driverInfo(MemorySegment segment) { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(segment, 0L); } /// {@return `driverInfo` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfoAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfoAt(long index) { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(this.segment(), index); } /// {@return `driverInfo`} - /// @param elementIndex the index of the element - public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfo(long elementIndex) { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(this.segment(), elementIndex); } + public @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment driverInfo() { return VkPhysicalDeviceVulkan12Properties.get_driverInfo(this.segment()); } /// Sets `driverInfo` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverInfo(MemorySegment segment, long index, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_driverInfo.invokeExact(0L, elementIndex), index), ML_driverInfo.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_driverInfo(MemorySegment segment, long index, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_driverInfo, index), ML_driverInfo.byteSize()); } /// Sets `driverInfo` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_driverInfo(MemorySegment segment, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_driverInfo(MemorySegment segment, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(segment, 0L, value); } /// Sets `driverInfo` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan12Properties driverInfoAt(long index, long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan12Properties driverInfoAt(long index, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(this.segment(), index, value); return this; } /// Sets `driverInfo` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan12Properties driverInfo(long elementIndex, @CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan12Properties driverInfo(@CType("char[VK_MAX_DRIVER_INFO_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan12Properties.set_driverInfo(this.segment(), value); return this; } /// {@return `conformanceVersion` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Features.java index 72dd1dea..845d2394 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Features.java @@ -173,6 +173,17 @@ public final class VkPhysicalDeviceVulkan13Features extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan13Features` public static VkPhysicalDeviceVulkan13Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan13Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan13Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan13Features` + public VkPhysicalDeviceVulkan13Features asSlice(long index) { return new VkPhysicalDeviceVulkan13Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan13Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan13Features` + public VkPhysicalDeviceVulkan13Features asSlice(long index, long count) { return new VkPhysicalDeviceVulkan13Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Properties.java index 30b7adbd..1d7e6c4b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan13Properties.java @@ -353,6 +353,17 @@ public final class VkPhysicalDeviceVulkan13Properties extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan13Properties` public static VkPhysicalDeviceVulkan13Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan13Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan13Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan13Properties` + public VkPhysicalDeviceVulkan13Properties asSlice(long index) { return new VkPhysicalDeviceVulkan13Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan13Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan13Properties` + public VkPhysicalDeviceVulkan13Properties asSlice(long index, long count) { return new VkPhysicalDeviceVulkan13Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Features.java index de5da647..4cdb0d0c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Features.java @@ -209,6 +209,17 @@ public final class VkPhysicalDeviceVulkan14Features extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan14Features` public static VkPhysicalDeviceVulkan14Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan14Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan14Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan14Features` + public VkPhysicalDeviceVulkan14Features asSlice(long index) { return new VkPhysicalDeviceVulkan14Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan14Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan14Features` + public VkPhysicalDeviceVulkan14Features asSlice(long index, long count) { return new VkPhysicalDeviceVulkan14Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Properties.java index e62a0c95..81d66bbf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkan14Properties.java @@ -77,7 +77,7 @@ /// ### pCopyDstLayouts /// [VarHandle][#VH_pCopyDstLayouts] - [Getter][#pCopyDstLayouts()] - [Setter][#pCopyDstLayouts(java.lang.foreign.MemorySegment)] /// ### optimalTilingLayoutUUID -/// [Byte offset handle][#MH_optimalTilingLayoutUUID] - [Memory layout][#ML_optimalTilingLayoutUUID] - [Getter][#optimalTilingLayoutUUID(long)] - [Setter][#optimalTilingLayoutUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_optimalTilingLayoutUUID] - [Memory layout][#ML_optimalTilingLayoutUUID] - [Getter][#optimalTilingLayoutUUID()] - [Setter][#optimalTilingLayoutUUID(java.lang.foreign.MemorySegment)] /// ### identicalMemoryTypeRequirements /// [VarHandle][#VH_identicalMemoryTypeRequirements] - [Getter][#identicalMemoryTypeRequirements()] - [Setter][#identicalMemoryTypeRequirements(int)] /// ## Layout @@ -194,8 +194,8 @@ public final class VkPhysicalDeviceVulkan14Properties extends Struct { public static final VarHandle VH_copyDstLayoutCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("copyDstLayoutCount")); /// The [VarHandle] of `pCopyDstLayouts` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pCopyDstLayouts = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pCopyDstLayouts")); - /// The byte offset handle of `optimalTilingLayoutUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_optimalTilingLayoutUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("optimalTilingLayoutUUID"), PathElement.sequenceElement()); + /// The byte offset of `optimalTilingLayoutUUID`. + public static final long OFFSET_optimalTilingLayoutUUID = LAYOUT.byteOffset(PathElement.groupElement("optimalTilingLayoutUUID")); /// The memory layout of `optimalTilingLayoutUUID`. public static final MemoryLayout ML_optimalTilingLayoutUUID = LAYOUT.select(PathElement.groupElement("optimalTilingLayoutUUID")); /// The [VarHandle] of `identicalMemoryTypeRequirements` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -236,6 +236,17 @@ public final class VkPhysicalDeviceVulkan14Properties extends Struct { /// @return the allocated `VkPhysicalDeviceVulkan14Properties` public static VkPhysicalDeviceVulkan14Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkan14Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkan14Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkan14Properties` + public VkPhysicalDeviceVulkan14Properties asSlice(long index) { return new VkPhysicalDeviceVulkan14Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkan14Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkan14Properties` + public VkPhysicalDeviceVulkan14Properties asSlice(long index, long count) { return new VkPhysicalDeviceVulkan14Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -1012,49 +1023,35 @@ public final class VkPhysicalDeviceVulkan14Properties extends Struct { public VkPhysicalDeviceVulkan14Properties pCopyDstLayouts(@CType("VkImageLayout *") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_pCopyDstLayouts(this.segment(), value); return this; } /// {@return `optimalTilingLayoutUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_optimalTilingLayoutUUID.invokeExact(0L, elementIndex), index), ML_optimalTilingLayoutUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_optimalTilingLayoutUUID, index), ML_optimalTilingLayoutUUID); } /// {@return `optimalTilingLayoutUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment, long elementIndex) { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_optimalTilingLayoutUUID(MemorySegment segment) { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(segment, 0L); } /// {@return `optimalTilingLayoutUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUIDAt(long index, long elementIndex) { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUIDAt(long index) { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(this.segment(), index); } /// {@return `optimalTilingLayoutUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUID(long elementIndex) { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment optimalTilingLayoutUUID() { return VkPhysicalDeviceVulkan14Properties.get_optimalTilingLayoutUUID(this.segment()); } /// Sets `optimalTilingLayoutUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_optimalTilingLayoutUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_optimalTilingLayoutUUID.invokeExact(0L, elementIndex), index), ML_optimalTilingLayoutUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_optimalTilingLayoutUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_optimalTilingLayoutUUID, index), ML_optimalTilingLayoutUUID.byteSize()); } /// Sets `optimalTilingLayoutUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_optimalTilingLayoutUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_optimalTilingLayoutUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(segment, 0L, value); } /// Sets `optimalTilingLayoutUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan14Properties optimalTilingLayoutUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(this.segment(), index, elementIndex, value); return this; } + public VkPhysicalDeviceVulkan14Properties optimalTilingLayoutUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(this.segment(), index, value); return this; } /// Sets `optimalTilingLayoutUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPhysicalDeviceVulkan14Properties optimalTilingLayoutUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(this.segment(), elementIndex, value); return this; } + public VkPhysicalDeviceVulkan14Properties optimalTilingLayoutUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPhysicalDeviceVulkan14Properties.set_optimalTilingLayoutUUID(this.segment(), value); return this; } /// {@return `identicalMemoryTypeRequirements` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanMemoryModelFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanMemoryModelFeatures.java index 63fb0e54..96eeab8d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanMemoryModelFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanMemoryModelFeatures.java @@ -101,6 +101,17 @@ public final class VkPhysicalDeviceVulkanMemoryModelFeatures extends Struct { /// @return the allocated `VkPhysicalDeviceVulkanMemoryModelFeatures` public static VkPhysicalDeviceVulkanMemoryModelFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkanMemoryModelFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkanMemoryModelFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkanMemoryModelFeatures` + public VkPhysicalDeviceVulkanMemoryModelFeatures asSlice(long index) { return new VkPhysicalDeviceVulkanMemoryModelFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkanMemoryModelFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkanMemoryModelFeatures` + public VkPhysicalDeviceVulkanMemoryModelFeatures asSlice(long index, long count) { return new VkPhysicalDeviceVulkanMemoryModelFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Features.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Features.java index d535ddff..3e25d5c8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Features.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Features.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceVulkanSC10Features extends Struct { /// @return the allocated `VkPhysicalDeviceVulkanSC10Features` public static VkPhysicalDeviceVulkanSC10Features alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkanSC10Features(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkanSC10Features`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkanSC10Features` + public VkPhysicalDeviceVulkanSC10Features asSlice(long index) { return new VkPhysicalDeviceVulkanSC10Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkanSC10Features`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkanSC10Features` + public VkPhysicalDeviceVulkanSC10Features asSlice(long index, long count) { return new VkPhysicalDeviceVulkanSC10Features(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Properties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Properties.java index 16318644..3ed484f6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Properties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceVulkanSC10Properties.java @@ -191,6 +191,17 @@ public final class VkPhysicalDeviceVulkanSC10Properties extends Struct { /// @return the allocated `VkPhysicalDeviceVulkanSC10Properties` public static VkPhysicalDeviceVulkanSC10Properties alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceVulkanSC10Properties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceVulkanSC10Properties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceVulkanSC10Properties` + public VkPhysicalDeviceVulkanSC10Properties asSlice(long index) { return new VkPhysicalDeviceVulkanSC10Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceVulkanSC10Properties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceVulkanSC10Properties` + public VkPhysicalDeviceVulkanSC10Properties asSlice(long index, long count) { return new VkPhysicalDeviceVulkanSC10Properties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.java index cef69ceb..d2b15f65 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures extends /// @return the allocated `VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures` public static VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures` + public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures asSlice(long index) { return new VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures` + public VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures asSlice(long index, long count) { return new VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheCreateInfo.java index 013cb560..b04b22a1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheCreateInfo.java @@ -101,6 +101,17 @@ public final class VkPipelineCacheCreateInfo extends Struct { /// @return the allocated `VkPipelineCacheCreateInfo` public static VkPipelineCacheCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineCacheCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCacheCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCacheCreateInfo` + public VkPipelineCacheCreateInfo asSlice(long index) { return new VkPipelineCacheCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCacheCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCacheCreateInfo` + public VkPipelineCacheCreateInfo asSlice(long index, long count) { return new VkPipelineCacheCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionOne.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionOne.java index 10abf489..a324f3bc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionOne.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionOne.java @@ -35,7 +35,7 @@ /// ### deviceID /// [VarHandle][#VH_deviceID] - [Getter][#deviceID()] - [Setter][#deviceID(int)] /// ### pipelineCacheUUID -/// [Byte offset handle][#MH_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID(long)] - [Setter][#pipelineCacheUUID(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineCacheUUID] - [Memory layout][#ML_pipelineCacheUUID] - [Getter][#pipelineCacheUUID()] - [Setter][#pipelineCacheUUID(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -64,8 +64,8 @@ public final class VkPipelineCacheHeaderVersionOne extends Struct { public static final VarHandle VH_vendorID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("vendorID")); /// The [VarHandle] of `deviceID` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_deviceID = LAYOUT.arrayElementVarHandle(PathElement.groupElement("deviceID")); - /// The byte offset handle of `pipelineCacheUUID` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineCacheUUID = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineCacheUUID"), PathElement.sequenceElement()); + /// The byte offset of `pipelineCacheUUID`. + public static final long OFFSET_pipelineCacheUUID = LAYOUT.byteOffset(PathElement.groupElement("pipelineCacheUUID")); /// The memory layout of `pipelineCacheUUID`. public static final MemoryLayout ML_pipelineCacheUUID = LAYOUT.select(PathElement.groupElement("pipelineCacheUUID")); @@ -104,6 +104,17 @@ public final class VkPipelineCacheHeaderVersionOne extends Struct { /// @return the allocated `VkPipelineCacheHeaderVersionOne` public static VkPipelineCacheHeaderVersionOne alloc(SegmentAllocator allocator, long count) { return new VkPipelineCacheHeaderVersionOne(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCacheHeaderVersionOne`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCacheHeaderVersionOne` + public VkPipelineCacheHeaderVersionOne asSlice(long index) { return new VkPipelineCacheHeaderVersionOne(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCacheHeaderVersionOne`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCacheHeaderVersionOne` + public VkPipelineCacheHeaderVersionOne asSlice(long index, long count) { return new VkPipelineCacheHeaderVersionOne(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `headerSize` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -229,48 +240,34 @@ public final class VkPipelineCacheHeaderVersionOne extends Struct { public VkPipelineCacheHeaderVersionOne deviceID(@CType("uint32_t") int value) { VkPipelineCacheHeaderVersionOne.set_deviceID(this.segment(), value); return this; } /// {@return `pipelineCacheUUID` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID); } /// {@return `pipelineCacheUUID`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment, long elementIndex) { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineCacheUUID(MemorySegment segment) { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(segment, 0L); } /// {@return `pipelineCacheUUID` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index, long elementIndex) { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUIDAt(long index) { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(this.segment(), index); } /// {@return `pipelineCacheUUID`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID(long elementIndex) { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineCacheUUID() { return VkPipelineCacheHeaderVersionOne.get_pipelineCacheUUID(this.segment()); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineCacheUUID.invokeExact(0L, elementIndex), index), ML_pipelineCacheUUID.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineCacheUUID, index), ML_pipelineCacheUUID.byteSize()); } /// Sets `pipelineCacheUUID` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineCacheUUID(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineCacheUUID(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(segment, 0L, value); } /// Sets `pipelineCacheUUID` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineCacheHeaderVersionOne pipelineCacheUUIDAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(this.segment(), index, elementIndex, value); return this; } + public VkPipelineCacheHeaderVersionOne pipelineCacheUUIDAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(this.segment(), index, value); return this; } /// Sets `pipelineCacheUUID` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineCacheHeaderVersionOne pipelineCacheUUID(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(this.segment(), elementIndex, value); return this; } + public VkPipelineCacheHeaderVersionOne pipelineCacheUUID(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheHeaderVersionOne.set_pipelineCacheUUID(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionSafetyCriticalOne.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionSafetyCriticalOne.java index d61e3676..e8bac39b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionSafetyCriticalOne.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheHeaderVersionSafetyCriticalOne.java @@ -109,6 +109,17 @@ public final class VkPipelineCacheHeaderVersionSafetyCriticalOne extends Struct /// @return the allocated `VkPipelineCacheHeaderVersionSafetyCriticalOne` public static VkPipelineCacheHeaderVersionSafetyCriticalOne alloc(SegmentAllocator allocator, long count) { return new VkPipelineCacheHeaderVersionSafetyCriticalOne(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCacheHeaderVersionSafetyCriticalOne`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCacheHeaderVersionSafetyCriticalOne` + public VkPipelineCacheHeaderVersionSafetyCriticalOne asSlice(long index) { return new VkPipelineCacheHeaderVersionSafetyCriticalOne(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCacheHeaderVersionSafetyCriticalOne`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCacheHeaderVersionSafetyCriticalOne` + public VkPipelineCacheHeaderVersionSafetyCriticalOne asSlice(long index, long count) { return new VkPipelineCacheHeaderVersionSafetyCriticalOne(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `headerVersionOne` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheSafetyCriticalIndexEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheSafetyCriticalIndexEntry.java index 524987ee..ca03679d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheSafetyCriticalIndexEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheSafetyCriticalIndexEntry.java @@ -27,7 +27,7 @@ /// ## Members /// ### pipelineIdentifier -/// [Byte offset handle][#MH_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier(long)] - [Setter][#pipelineIdentifier(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier()] - [Setter][#pipelineIdentifier(java.lang.foreign.MemorySegment)] /// ### pipelineMemorySize /// [VarHandle][#VH_pipelineMemorySize] - [Getter][#pipelineMemorySize()] - [Setter][#pipelineMemorySize(long)] /// ### jsonSize @@ -64,8 +64,8 @@ public final class VkPipelineCacheSafetyCriticalIndexEntry extends Struct { ValueLayout.JAVA_INT.withName("stageIndexStride"), ValueLayout.JAVA_LONG.withName("stageIndexOffset") ); - /// The byte offset handle of `pipelineIdentifier` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineIdentifier = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineIdentifier"), PathElement.sequenceElement()); + /// The byte offset of `pipelineIdentifier`. + public static final long OFFSET_pipelineIdentifier = LAYOUT.byteOffset(PathElement.groupElement("pipelineIdentifier")); /// The memory layout of `pipelineIdentifier`. public static final MemoryLayout ML_pipelineIdentifier = LAYOUT.select(PathElement.groupElement("pipelineIdentifier")); /// The [VarHandle] of `pipelineMemorySize` of type `(MemorySegment base, long baseOffset, long index)long`. @@ -116,50 +116,47 @@ public final class VkPipelineCacheSafetyCriticalIndexEntry extends Struct { /// @return the allocated `VkPipelineCacheSafetyCriticalIndexEntry` public static VkPipelineCacheSafetyCriticalIndexEntry alloc(SegmentAllocator allocator, long count) { return new VkPipelineCacheSafetyCriticalIndexEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCacheSafetyCriticalIndexEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCacheSafetyCriticalIndexEntry` + public VkPipelineCacheSafetyCriticalIndexEntry asSlice(long index) { return new VkPipelineCacheSafetyCriticalIndexEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCacheSafetyCriticalIndexEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCacheSafetyCriticalIndexEntry` + public VkPipelineCacheSafetyCriticalIndexEntry asSlice(long index, long count) { return new VkPipelineCacheSafetyCriticalIndexEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `pipelineIdentifier` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier); } /// {@return `pipelineIdentifier`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long elementIndex) { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment) { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(segment, 0L); } /// {@return `pipelineIdentifier` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index, long elementIndex) { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index) { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(this.segment(), index); } /// {@return `pipelineIdentifier`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier(long elementIndex) { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier() { return VkPipelineCacheSafetyCriticalIndexEntry.get_pipelineIdentifier(this.segment()); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier.byteSize()); } /// Sets `pipelineIdentifier` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(segment, 0L, value); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineCacheSafetyCriticalIndexEntry pipelineIdentifierAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(this.segment(), index, elementIndex, value); return this; } + public VkPipelineCacheSafetyCriticalIndexEntry pipelineIdentifierAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(this.segment(), index, value); return this; } /// Sets `pipelineIdentifier` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineCacheSafetyCriticalIndexEntry pipelineIdentifier(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(this.segment(), elementIndex, value); return this; } + public VkPipelineCacheSafetyCriticalIndexEntry pipelineIdentifier(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineCacheSafetyCriticalIndexEntry.set_pipelineIdentifier(this.segment(), value); return this; } /// {@return `pipelineMemorySize` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheStageValidationIndexEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheStageValidationIndexEntry.java index 0fe6ebf8..0e79e539 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheStageValidationIndexEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCacheStageValidationIndexEntry.java @@ -83,6 +83,17 @@ public final class VkPipelineCacheStageValidationIndexEntry extends Struct { /// @return the allocated `VkPipelineCacheStageValidationIndexEntry` public static VkPipelineCacheStageValidationIndexEntry alloc(SegmentAllocator allocator, long count) { return new VkPipelineCacheStageValidationIndexEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCacheStageValidationIndexEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCacheStageValidationIndexEntry` + public VkPipelineCacheStageValidationIndexEntry asSlice(long index) { return new VkPipelineCacheStageValidationIndexEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCacheStageValidationIndexEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCacheStageValidationIndexEntry` + public VkPipelineCacheStageValidationIndexEntry asSlice(long index, long count) { return new VkPipelineCacheStageValidationIndexEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `codeSize` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendAttachmentState.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendAttachmentState.java index ed2ca9a2..a08fe925 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendAttachmentState.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendAttachmentState.java @@ -119,6 +119,17 @@ public final class VkPipelineColorBlendAttachmentState extends Struct { /// @return the allocated `VkPipelineColorBlendAttachmentState` public static VkPipelineColorBlendAttachmentState alloc(SegmentAllocator allocator, long count) { return new VkPipelineColorBlendAttachmentState(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineColorBlendAttachmentState`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineColorBlendAttachmentState` + public VkPipelineColorBlendAttachmentState asSlice(long index) { return new VkPipelineColorBlendAttachmentState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineColorBlendAttachmentState`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineColorBlendAttachmentState` + public VkPipelineColorBlendAttachmentState asSlice(long index, long count) { return new VkPipelineColorBlendAttachmentState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `blendEnable` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendStateCreateInfo.java index bd0c9330..30e127fc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineColorBlendStateCreateInfo.java @@ -40,7 +40,7 @@ /// ### pAttachments /// [VarHandle][#VH_pAttachments] - [Getter][#pAttachments()] - [Setter][#pAttachments(java.lang.foreign.MemorySegment)] /// ### blendConstants -/// [VarHandle][#VH_blendConstants] - [Getter][#blendConstants()] - [Setter][#blendConstants(float)] +/// [Byte offset][#OFFSET_blendConstants] - [Memory layout][#ML_blendConstants] - [Getter][#blendConstants()] - [Setter][#blendConstants(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -52,7 +52,7 @@ /// VkLogicOp logicOp; /// uint32_t attachmentCount; /// const VkPipelineColorBlendAttachmentState * pAttachments; -/// float blendConstants; +/// float[4] blendConstants; /// } VkPipelineColorBlendStateCreateInfo; /// ``` public final class VkPipelineColorBlendStateCreateInfo extends Struct { @@ -65,7 +65,7 @@ public final class VkPipelineColorBlendStateCreateInfo extends Struct { ValueLayout.JAVA_INT.withName("logicOp"), ValueLayout.JAVA_INT.withName("attachmentCount"), ValueLayout.ADDRESS.withName("pAttachments"), - ValueLayout.JAVA_FLOAT.withName("blendConstants") + MemoryLayout.sequenceLayout(4, ValueLayout.JAVA_FLOAT).withName("blendConstants") ); /// The [VarHandle] of `sType` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); @@ -81,8 +81,10 @@ public final class VkPipelineColorBlendStateCreateInfo extends Struct { public static final VarHandle VH_attachmentCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("attachmentCount")); /// The [VarHandle] of `pAttachments` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pAttachments = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pAttachments")); - /// The [VarHandle] of `blendConstants` of type `(MemorySegment base, long baseOffset, long index)float`. - public static final VarHandle VH_blendConstants = LAYOUT.arrayElementVarHandle(PathElement.groupElement("blendConstants")); + /// The byte offset of `blendConstants`. + public static final long OFFSET_blendConstants = LAYOUT.byteOffset(PathElement.groupElement("blendConstants")); + /// The memory layout of `blendConstants`. + public static final MemoryLayout ML_blendConstants = LAYOUT.select(PathElement.groupElement("blendConstants")); /// Creates `VkPipelineColorBlendStateCreateInfo` with the given segment. /// @param segment the memory segment @@ -119,6 +121,17 @@ public final class VkPipelineColorBlendStateCreateInfo extends Struct { /// @return the allocated `VkPipelineColorBlendStateCreateInfo` public static VkPipelineColorBlendStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineColorBlendStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineColorBlendStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineColorBlendStateCreateInfo` + public VkPipelineColorBlendStateCreateInfo asSlice(long index) { return new VkPipelineColorBlendStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineColorBlendStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineColorBlendStateCreateInfo` + public VkPipelineColorBlendStateCreateInfo asSlice(long index, long count) { return new VkPipelineColorBlendStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -339,32 +352,32 @@ public final class VkPipelineColorBlendStateCreateInfo extends Struct { /// {@return `blendConstants` at the given index} /// @param segment the segment of the struct /// @param index the index - public static @CType("float") float get_blendConstants(MemorySegment segment, long index) { return (float) VH_blendConstants.get(segment, 0L, index); } + public static @CType("float[4]") java.lang.foreign.MemorySegment get_blendConstants(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_blendConstants, index), ML_blendConstants); } /// {@return `blendConstants`} /// @param segment the segment of the struct - public static @CType("float") float get_blendConstants(MemorySegment segment) { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(segment, 0L); } + public static @CType("float[4]") java.lang.foreign.MemorySegment get_blendConstants(MemorySegment segment) { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(segment, 0L); } /// {@return `blendConstants` at the given index} /// @param index the index - public @CType("float") float blendConstantsAt(long index) { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(this.segment(), index); } + public @CType("float[4]") java.lang.foreign.MemorySegment blendConstantsAt(long index) { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(this.segment(), index); } /// {@return `blendConstants`} - public @CType("float") float blendConstants() { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(this.segment()); } + public @CType("float[4]") java.lang.foreign.MemorySegment blendConstants() { return VkPipelineColorBlendStateCreateInfo.get_blendConstants(this.segment()); } /// Sets `blendConstants` with the given value at the given index. /// @param segment the segment of the struct /// @param index the index /// @param value the value - public static void set_blendConstants(MemorySegment segment, long index, @CType("float") float value) { VH_blendConstants.set(segment, 0L, index, value); } + public static void set_blendConstants(MemorySegment segment, long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_blendConstants, index), ML_blendConstants.byteSize()); } /// Sets `blendConstants` with the given value. /// @param segment the segment of the struct /// @param value the value - public static void set_blendConstants(MemorySegment segment, @CType("float") float value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(segment, 0L, value); } + public static void set_blendConstants(MemorySegment segment, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(segment, 0L, value); } /// Sets `blendConstants` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkPipelineColorBlendStateCreateInfo blendConstantsAt(long index, @CType("float") float value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(this.segment(), index, value); return this; } + public VkPipelineColorBlendStateCreateInfo blendConstantsAt(long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(this.segment(), index, value); return this; } /// Sets `blendConstants` with the given value. /// @param value the value /// @return `this` - public VkPipelineColorBlendStateCreateInfo blendConstants(@CType("float") float value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(this.segment(), value); return this; } + public VkPipelineColorBlendStateCreateInfo blendConstants(@CType("float[4]") java.lang.foreign.MemorySegment value) { VkPipelineColorBlendStateCreateInfo.set_blendConstants(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreateFlags2CreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreateFlags2CreateInfo.java index c449e2a9..3d8efb4b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreateFlags2CreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreateFlags2CreateInfo.java @@ -89,6 +89,17 @@ public final class VkPipelineCreateFlags2CreateInfo extends Struct { /// @return the allocated `VkPipelineCreateFlags2CreateInfo` public static VkPipelineCreateFlags2CreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineCreateFlags2CreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCreateFlags2CreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCreateFlags2CreateInfo` + public VkPipelineCreateFlags2CreateInfo asSlice(long index) { return new VkPipelineCreateFlags2CreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCreateFlags2CreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCreateFlags2CreateInfo` + public VkPipelineCreateFlags2CreateInfo asSlice(long index, long count) { return new VkPipelineCreateFlags2CreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedback.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedback.java index a5bf3f3c..c8d8aa4a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedback.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedback.java @@ -83,6 +83,17 @@ public final class VkPipelineCreationFeedback extends Struct { /// @return the allocated `VkPipelineCreationFeedback` public static VkPipelineCreationFeedback alloc(SegmentAllocator allocator, long count) { return new VkPipelineCreationFeedback(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCreationFeedback`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCreationFeedback` + public VkPipelineCreationFeedback asSlice(long index) { return new VkPipelineCreationFeedback(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCreationFeedback`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCreationFeedback` + public VkPipelineCreationFeedback asSlice(long index, long count) { return new VkPipelineCreationFeedback(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedbackCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedbackCreateInfo.java index 120d8d35..b8c935c3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedbackCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineCreationFeedbackCreateInfo.java @@ -101,6 +101,17 @@ public final class VkPipelineCreationFeedbackCreateInfo extends Struct { /// @return the allocated `VkPipelineCreationFeedbackCreateInfo` public static VkPipelineCreationFeedbackCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineCreationFeedbackCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineCreationFeedbackCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineCreationFeedbackCreateInfo` + public VkPipelineCreationFeedbackCreateInfo asSlice(long index) { return new VkPipelineCreationFeedbackCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineCreationFeedbackCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineCreationFeedbackCreateInfo` + public VkPipelineCreationFeedbackCreateInfo asSlice(long index, long count) { return new VkPipelineCreationFeedbackCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDepthStencilStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDepthStencilStateCreateInfo.java index 546c21ac..aea823b6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDepthStencilStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDepthStencilStateCreateInfo.java @@ -147,6 +147,17 @@ public final class VkPipelineDepthStencilStateCreateInfo extends Struct { /// @return the allocated `VkPipelineDepthStencilStateCreateInfo` public static VkPipelineDepthStencilStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineDepthStencilStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineDepthStencilStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineDepthStencilStateCreateInfo` + public VkPipelineDepthStencilStateCreateInfo asSlice(long index) { return new VkPipelineDepthStencilStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineDepthStencilStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineDepthStencilStateCreateInfo` + public VkPipelineDepthStencilStateCreateInfo asSlice(long index, long count) { return new VkPipelineDepthStencilStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDynamicStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDynamicStateCreateInfo.java index ce912e06..8823538e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDynamicStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineDynamicStateCreateInfo.java @@ -101,6 +101,17 @@ public final class VkPipelineDynamicStateCreateInfo extends Struct { /// @return the allocated `VkPipelineDynamicStateCreateInfo` public static VkPipelineDynamicStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineDynamicStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineDynamicStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineDynamicStateCreateInfo` + public VkPipelineDynamicStateCreateInfo asSlice(long index) { return new VkPipelineDynamicStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineDynamicStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineDynamicStateCreateInfo` + public VkPipelineDynamicStateCreateInfo asSlice(long index, long count) { return new VkPipelineDynamicStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineInputAssemblyStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineInputAssemblyStateCreateInfo.java index ab32f7b8..db69f4ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineInputAssemblyStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineInputAssemblyStateCreateInfo.java @@ -101,6 +101,17 @@ public final class VkPipelineInputAssemblyStateCreateInfo extends Struct { /// @return the allocated `VkPipelineInputAssemblyStateCreateInfo` public static VkPipelineInputAssemblyStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineInputAssemblyStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineInputAssemblyStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineInputAssemblyStateCreateInfo` + public VkPipelineInputAssemblyStateCreateInfo asSlice(long index) { return new VkPipelineInputAssemblyStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineInputAssemblyStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineInputAssemblyStateCreateInfo` + public VkPipelineInputAssemblyStateCreateInfo asSlice(long index, long count) { return new VkPipelineInputAssemblyStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineLayoutCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineLayoutCreateInfo.java index c23a1ed2..34dc27f0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineLayoutCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineLayoutCreateInfo.java @@ -113,6 +113,17 @@ public final class VkPipelineLayoutCreateInfo extends Struct { /// @return the allocated `VkPipelineLayoutCreateInfo` public static VkPipelineLayoutCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineLayoutCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineLayoutCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineLayoutCreateInfo` + public VkPipelineLayoutCreateInfo asSlice(long index) { return new VkPipelineLayoutCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineLayoutCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineLayoutCreateInfo` + public VkPipelineLayoutCreateInfo asSlice(long index, long count) { return new VkPipelineLayoutCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineMultisampleStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineMultisampleStateCreateInfo.java index a0d87d0a..85602c67 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineMultisampleStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineMultisampleStateCreateInfo.java @@ -125,6 +125,17 @@ public final class VkPipelineMultisampleStateCreateInfo extends Struct { /// @return the allocated `VkPipelineMultisampleStateCreateInfo` public static VkPipelineMultisampleStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineMultisampleStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineMultisampleStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineMultisampleStateCreateInfo` + public VkPipelineMultisampleStateCreateInfo asSlice(long index) { return new VkPipelineMultisampleStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineMultisampleStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineMultisampleStateCreateInfo` + public VkPipelineMultisampleStateCreateInfo asSlice(long index, long count) { return new VkPipelineMultisampleStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineOfflineCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineOfflineCreateInfo.java index 94b337c6..097ba6be 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineOfflineCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineOfflineCreateInfo.java @@ -31,7 +31,7 @@ /// ### pNext /// [VarHandle][#VH_pNext] - [Getter][#pNext()] - [Setter][#pNext(java.lang.foreign.MemorySegment)] /// ### pipelineIdentifier -/// [Byte offset handle][#MH_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier(long)] - [Setter][#pipelineIdentifier(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_pipelineIdentifier] - [Memory layout][#ML_pipelineIdentifier] - [Getter][#pipelineIdentifier()] - [Setter][#pipelineIdentifier(java.lang.foreign.MemorySegment)] /// ### matchControl /// [VarHandle][#VH_matchControl] - [Getter][#matchControl()] - [Setter][#matchControl(int)] /// ### poolEntrySize @@ -60,8 +60,8 @@ public final class VkPipelineOfflineCreateInfo extends Struct { public static final VarHandle VH_sType = LAYOUT.arrayElementVarHandle(PathElement.groupElement("sType")); /// The [VarHandle] of `pNext` of type `(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment`. public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); - /// The byte offset handle of `pipelineIdentifier` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_pipelineIdentifier = LAYOUT.byteOffsetHandle(PathElement.groupElement("pipelineIdentifier"), PathElement.sequenceElement()); + /// The byte offset of `pipelineIdentifier`. + public static final long OFFSET_pipelineIdentifier = LAYOUT.byteOffset(PathElement.groupElement("pipelineIdentifier")); /// The memory layout of `pipelineIdentifier`. public static final MemoryLayout ML_pipelineIdentifier = LAYOUT.select(PathElement.groupElement("pipelineIdentifier")); /// The [VarHandle] of `matchControl` of type `(MemorySegment base, long baseOffset, long index)int`. @@ -104,6 +104,17 @@ public final class VkPipelineOfflineCreateInfo extends Struct { /// @return the allocated `VkPipelineOfflineCreateInfo` public static VkPipelineOfflineCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineOfflineCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineOfflineCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineOfflineCreateInfo` + public VkPipelineOfflineCreateInfo asSlice(long index) { return new VkPipelineOfflineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineOfflineCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineOfflineCreateInfo` + public VkPipelineOfflineCreateInfo asSlice(long index, long count) { return new VkPipelineOfflineCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -167,49 +178,35 @@ public final class VkPipelineOfflineCreateInfo extends Struct { public VkPipelineOfflineCreateInfo pNext(@CType("const void *") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pNext(this.segment(), value); return this; } /// {@return `pipelineIdentifier` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier); } /// {@return `pipelineIdentifier`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment, long elementIndex) { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment get_pipelineIdentifier(MemorySegment segment) { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(segment, 0L); } /// {@return `pipelineIdentifier` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index, long elementIndex) { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifierAt(long index) { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(this.segment(), index); } /// {@return `pipelineIdentifier`} - /// @param elementIndex the index of the element - public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier(long elementIndex) { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(this.segment(), elementIndex); } + public @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment pipelineIdentifier() { return VkPipelineOfflineCreateInfo.get_pipelineIdentifier(this.segment()); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_pipelineIdentifier.invokeExact(0L, elementIndex), index), ML_pipelineIdentifier.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_pipelineIdentifier, index), ML_pipelineIdentifier.byteSize()); } /// Sets `pipelineIdentifier` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_pipelineIdentifier(MemorySegment segment, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_pipelineIdentifier(MemorySegment segment, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(segment, 0L, value); } /// Sets `pipelineIdentifier` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkPipelineOfflineCreateInfo pipelineIdentifierAt(long index, long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(this.segment(), index, elementIndex, value); return this; } + public VkPipelineOfflineCreateInfo pipelineIdentifierAt(long index, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(this.segment(), index, value); return this; } /// Sets `pipelineIdentifier` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkPipelineOfflineCreateInfo pipelineIdentifier(long elementIndex, @CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(this.segment(), elementIndex, value); return this; } + public VkPipelineOfflineCreateInfo pipelineIdentifier(@CType("uint8_t[VK_UUID_SIZE]") java.lang.foreign.MemorySegment value) { VkPipelineOfflineCreateInfo.set_pipelineIdentifier(this.segment(), value); return this; } /// {@return `matchControl` at the given index} /// @param segment the segment of the struct diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelinePoolSize.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelinePoolSize.java index b3710857..cc9b61ea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelinePoolSize.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelinePoolSize.java @@ -95,6 +95,17 @@ public final class VkPipelinePoolSize extends Struct { /// @return the allocated `VkPipelinePoolSize` public static VkPipelinePoolSize alloc(SegmentAllocator allocator, long count) { return new VkPipelinePoolSize(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelinePoolSize`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelinePoolSize` + public VkPipelinePoolSize asSlice(long index) { return new VkPipelinePoolSize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelinePoolSize`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelinePoolSize` + public VkPipelinePoolSize asSlice(long index, long count) { return new VkPipelinePoolSize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationLineStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationLineStateCreateInfo.java index 74a1b0a1..4641d9b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationLineStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationLineStateCreateInfo.java @@ -107,6 +107,17 @@ public final class VkPipelineRasterizationLineStateCreateInfo extends Struct { /// @return the allocated `VkPipelineRasterizationLineStateCreateInfo` public static VkPipelineRasterizationLineStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationLineStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationLineStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationLineStateCreateInfo` + public VkPipelineRasterizationLineStateCreateInfo asSlice(long index) { return new VkPipelineRasterizationLineStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationLineStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationLineStateCreateInfo` + public VkPipelineRasterizationLineStateCreateInfo asSlice(long index, long count) { return new VkPipelineRasterizationLineStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationStateCreateInfo.java index 6a66f12e..d53811c6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRasterizationStateCreateInfo.java @@ -149,6 +149,17 @@ public final class VkPipelineRasterizationStateCreateInfo extends Struct { /// @return the allocated `VkPipelineRasterizationStateCreateInfo` public static VkPipelineRasterizationStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineRasterizationStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRasterizationStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRasterizationStateCreateInfo` + public VkPipelineRasterizationStateCreateInfo asSlice(long index) { return new VkPipelineRasterizationStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRasterizationStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRasterizationStateCreateInfo` + public VkPipelineRasterizationStateCreateInfo asSlice(long index, long count) { return new VkPipelineRasterizationStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRenderingCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRenderingCreateInfo.java index 1dbec0c2..11146a6f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRenderingCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRenderingCreateInfo.java @@ -113,6 +113,17 @@ public final class VkPipelineRenderingCreateInfo extends Struct { /// @return the allocated `VkPipelineRenderingCreateInfo` public static VkPipelineRenderingCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineRenderingCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRenderingCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRenderingCreateInfo` + public VkPipelineRenderingCreateInfo asSlice(long index) { return new VkPipelineRenderingCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRenderingCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRenderingCreateInfo` + public VkPipelineRenderingCreateInfo asSlice(long index, long count) { return new VkPipelineRenderingCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRobustnessCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRobustnessCreateInfo.java index acb06fdd..66eb7e07 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRobustnessCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineRobustnessCreateInfo.java @@ -107,6 +107,17 @@ public final class VkPipelineRobustnessCreateInfo extends Struct { /// @return the allocated `VkPipelineRobustnessCreateInfo` public static VkPipelineRobustnessCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineRobustnessCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineRobustnessCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineRobustnessCreateInfo` + public VkPipelineRobustnessCreateInfo asSlice(long index) { return new VkPipelineRobustnessCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineRobustnessCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineRobustnessCreateInfo` + public VkPipelineRobustnessCreateInfo asSlice(long index, long count) { return new VkPipelineRobustnessCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageCreateInfo.java index 107a0f21..b975d1c6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageCreateInfo.java @@ -113,6 +113,17 @@ public final class VkPipelineShaderStageCreateInfo extends Struct { /// @return the allocated `VkPipelineShaderStageCreateInfo` public static VkPipelineShaderStageCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineShaderStageCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineShaderStageCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineShaderStageCreateInfo` + public VkPipelineShaderStageCreateInfo asSlice(long index) { return new VkPipelineShaderStageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineShaderStageCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineShaderStageCreateInfo` + public VkPipelineShaderStageCreateInfo asSlice(long index, long count) { return new VkPipelineShaderStageCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.java index 31b4cc74..c6e446e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineShaderStageRequiredSubgroupSizeCreateInfo.java @@ -89,6 +89,17 @@ public final class VkPipelineShaderStageRequiredSubgroupSizeCreateInfo extends S /// @return the allocated `VkPipelineShaderStageRequiredSubgroupSizeCreateInfo` public static VkPipelineShaderStageRequiredSubgroupSizeCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineShaderStageRequiredSubgroupSizeCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineShaderStageRequiredSubgroupSizeCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineShaderStageRequiredSubgroupSizeCreateInfo` + public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo asSlice(long index) { return new VkPipelineShaderStageRequiredSubgroupSizeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineShaderStageRequiredSubgroupSizeCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineShaderStageRequiredSubgroupSizeCreateInfo` + public VkPipelineShaderStageRequiredSubgroupSizeCreateInfo asSlice(long index, long count) { return new VkPipelineShaderStageRequiredSubgroupSizeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationDomainOriginStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationDomainOriginStateCreateInfo.java index 01168a41..a8141eb3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationDomainOriginStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationDomainOriginStateCreateInfo.java @@ -89,6 +89,17 @@ public final class VkPipelineTessellationDomainOriginStateCreateInfo extends Str /// @return the allocated `VkPipelineTessellationDomainOriginStateCreateInfo` public static VkPipelineTessellationDomainOriginStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineTessellationDomainOriginStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineTessellationDomainOriginStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineTessellationDomainOriginStateCreateInfo` + public VkPipelineTessellationDomainOriginStateCreateInfo asSlice(long index) { return new VkPipelineTessellationDomainOriginStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineTessellationDomainOriginStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineTessellationDomainOriginStateCreateInfo` + public VkPipelineTessellationDomainOriginStateCreateInfo asSlice(long index, long count) { return new VkPipelineTessellationDomainOriginStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationStateCreateInfo.java index 5b32fe4b..5f69b8a8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineTessellationStateCreateInfo.java @@ -95,6 +95,17 @@ public final class VkPipelineTessellationStateCreateInfo extends Struct { /// @return the allocated `VkPipelineTessellationStateCreateInfo` public static VkPipelineTessellationStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineTessellationStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineTessellationStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineTessellationStateCreateInfo` + public VkPipelineTessellationStateCreateInfo asSlice(long index) { return new VkPipelineTessellationStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineTessellationStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineTessellationStateCreateInfo` + public VkPipelineTessellationStateCreateInfo asSlice(long index, long count) { return new VkPipelineTessellationStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputDivisorStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputDivisorStateCreateInfo.java index 85df4ff4..80d216ac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputDivisorStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputDivisorStateCreateInfo.java @@ -95,6 +95,17 @@ public final class VkPipelineVertexInputDivisorStateCreateInfo extends Struct { /// @return the allocated `VkPipelineVertexInputDivisorStateCreateInfo` public static VkPipelineVertexInputDivisorStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineVertexInputDivisorStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineVertexInputDivisorStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineVertexInputDivisorStateCreateInfo` + public VkPipelineVertexInputDivisorStateCreateInfo asSlice(long index) { return new VkPipelineVertexInputDivisorStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineVertexInputDivisorStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineVertexInputDivisorStateCreateInfo` + public VkPipelineVertexInputDivisorStateCreateInfo asSlice(long index, long count) { return new VkPipelineVertexInputDivisorStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputStateCreateInfo.java index 286575a7..1a81e7e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineVertexInputStateCreateInfo.java @@ -113,6 +113,17 @@ public final class VkPipelineVertexInputStateCreateInfo extends Struct { /// @return the allocated `VkPipelineVertexInputStateCreateInfo` public static VkPipelineVertexInputStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineVertexInputStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineVertexInputStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineVertexInputStateCreateInfo` + public VkPipelineVertexInputStateCreateInfo asSlice(long index) { return new VkPipelineVertexInputStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineVertexInputStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineVertexInputStateCreateInfo` + public VkPipelineVertexInputStateCreateInfo asSlice(long index, long count) { return new VkPipelineVertexInputStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineViewportStateCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineViewportStateCreateInfo.java index 246586ff..447b1096 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineViewportStateCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPipelineViewportStateCreateInfo.java @@ -113,6 +113,17 @@ public final class VkPipelineViewportStateCreateInfo extends Struct { /// @return the allocated `VkPipelineViewportStateCreateInfo` public static VkPipelineViewportStateCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPipelineViewportStateCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPipelineViewportStateCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPipelineViewportStateCreateInfo` + public VkPipelineViewportStateCreateInfo asSlice(long index) { return new VkPipelineViewportStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPipelineViewportStateCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPipelineViewportStateCreateInfo` + public VkPipelineViewportStateCreateInfo asSlice(long index, long count) { return new VkPipelineViewportStateCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPrivateDataSlotCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPrivateDataSlotCreateInfo.java index 4167b0ad..de329ec7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPrivateDataSlotCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPrivateDataSlotCreateInfo.java @@ -89,6 +89,17 @@ public final class VkPrivateDataSlotCreateInfo extends Struct { /// @return the allocated `VkPrivateDataSlotCreateInfo` public static VkPrivateDataSlotCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkPrivateDataSlotCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPrivateDataSlotCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPrivateDataSlotCreateInfo` + public VkPrivateDataSlotCreateInfo asSlice(long index) { return new VkPrivateDataSlotCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPrivateDataSlotCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPrivateDataSlotCreateInfo` + public VkPrivateDataSlotCreateInfo asSlice(long index, long count) { return new VkPrivateDataSlotCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkProtectedSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkProtectedSubmitInfo.java index f71ca9ce..1bb02285 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkProtectedSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkProtectedSubmitInfo.java @@ -89,6 +89,17 @@ public final class VkProtectedSubmitInfo extends Struct { /// @return the allocated `VkProtectedSubmitInfo` public static VkProtectedSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkProtectedSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkProtectedSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkProtectedSubmitInfo` + public VkProtectedSubmitInfo asSlice(long index) { return new VkProtectedSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkProtectedSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkProtectedSubmitInfo` + public VkProtectedSubmitInfo asSlice(long index, long count) { return new VkProtectedSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantRange.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantRange.java index db0c6175..72326d33 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantRange.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantRange.java @@ -89,6 +89,17 @@ public final class VkPushConstantRange extends Struct { /// @return the allocated `VkPushConstantRange` public static VkPushConstantRange alloc(SegmentAllocator allocator, long count) { return new VkPushConstantRange(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPushConstantRange`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPushConstantRange` + public VkPushConstantRange asSlice(long index) { return new VkPushConstantRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPushConstantRange`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPushConstantRange` + public VkPushConstantRange asSlice(long index, long count) { return new VkPushConstantRange(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `stageFlags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantsInfo.java index 7026fcf6..0986bcf9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushConstantsInfo.java @@ -113,6 +113,17 @@ public final class VkPushConstantsInfo extends Struct { /// @return the allocated `VkPushConstantsInfo` public static VkPushConstantsInfo alloc(SegmentAllocator allocator, long count) { return new VkPushConstantsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPushConstantsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPushConstantsInfo` + public VkPushConstantsInfo asSlice(long index) { return new VkPushConstantsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPushConstantsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPushConstantsInfo` + public VkPushConstantsInfo asSlice(long index, long count) { return new VkPushConstantsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetInfo.java index e003f947..04beba9a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetInfo.java @@ -113,6 +113,17 @@ public final class VkPushDescriptorSetInfo extends Struct { /// @return the allocated `VkPushDescriptorSetInfo` public static VkPushDescriptorSetInfo alloc(SegmentAllocator allocator, long count) { return new VkPushDescriptorSetInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPushDescriptorSetInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPushDescriptorSetInfo` + public VkPushDescriptorSetInfo asSlice(long index) { return new VkPushDescriptorSetInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPushDescriptorSetInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPushDescriptorSetInfo` + public VkPushDescriptorSetInfo asSlice(long index, long count) { return new VkPushDescriptorSetInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetWithTemplateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetWithTemplateInfo.java index f8427200..f381aa70 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetWithTemplateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkPushDescriptorSetWithTemplateInfo.java @@ -107,6 +107,17 @@ public final class VkPushDescriptorSetWithTemplateInfo extends Struct { /// @return the allocated `VkPushDescriptorSetWithTemplateInfo` public static VkPushDescriptorSetWithTemplateInfo alloc(SegmentAllocator allocator, long count) { return new VkPushDescriptorSetWithTemplateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPushDescriptorSetWithTemplateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPushDescriptorSetWithTemplateInfo` + public VkPushDescriptorSetWithTemplateInfo asSlice(long index) { return new VkPushDescriptorSetWithTemplateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPushDescriptorSetWithTemplateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPushDescriptorSetWithTemplateInfo` + public VkPushDescriptorSetWithTemplateInfo asSlice(long index, long count) { return new VkPushDescriptorSetWithTemplateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueryPoolCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueryPoolCreateInfo.java index 00b7efc6..a86a53f5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueryPoolCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueryPoolCreateInfo.java @@ -107,6 +107,17 @@ public final class VkQueryPoolCreateInfo extends Struct { /// @return the allocated `VkQueryPoolCreateInfo` public static VkQueryPoolCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkQueryPoolCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueryPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueryPoolCreateInfo` + public VkQueryPoolCreateInfo asSlice(long index) { return new VkQueryPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueryPoolCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueryPoolCreateInfo` + public VkQueryPoolCreateInfo asSlice(long index, long count) { return new VkQueryPoolCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyGlobalPriorityProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyGlobalPriorityProperties.java index 56f5d3f4..40f373a0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyGlobalPriorityProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyGlobalPriorityProperties.java @@ -33,7 +33,7 @@ /// ### priorityCount /// [VarHandle][#VH_priorityCount] - [Getter][#priorityCount()] - [Setter][#priorityCount(int)] /// ### priorities -/// [Byte offset handle][#MH_priorities] - [Memory layout][#ML_priorities] - [Getter][#priorities(long)] - [Setter][#priorities(long, java.lang.foreign.MemorySegment)] +/// [Byte offset][#OFFSET_priorities] - [Memory layout][#ML_priorities] - [Getter][#priorities()] - [Setter][#priorities(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c @@ -58,8 +58,8 @@ public final class VkQueueFamilyGlobalPriorityProperties extends Struct { public static final VarHandle VH_pNext = LAYOUT.arrayElementVarHandle(PathElement.groupElement("pNext")); /// The [VarHandle] of `priorityCount` of type `(MemorySegment base, long baseOffset, long index)int`. public static final VarHandle VH_priorityCount = LAYOUT.arrayElementVarHandle(PathElement.groupElement("priorityCount")); - /// The byte offset handle of `priorities` of type `(long baseOffset, long elementIndex)long`. - public static final MethodHandle MH_priorities = LAYOUT.byteOffsetHandle(PathElement.groupElement("priorities"), PathElement.sequenceElement()); + /// The byte offset of `priorities`. + public static final long OFFSET_priorities = LAYOUT.byteOffset(PathElement.groupElement("priorities")); /// The memory layout of `priorities`. public static final MemoryLayout ML_priorities = LAYOUT.select(PathElement.groupElement("priorities")); @@ -98,6 +98,17 @@ public final class VkQueueFamilyGlobalPriorityProperties extends Struct { /// @return the allocated `VkQueueFamilyGlobalPriorityProperties` public static VkQueueFamilyGlobalPriorityProperties alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyGlobalPriorityProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyGlobalPriorityProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyGlobalPriorityProperties` + public VkQueueFamilyGlobalPriorityProperties asSlice(long index) { return new VkQueueFamilyGlobalPriorityProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyGlobalPriorityProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyGlobalPriorityProperties` + public VkQueueFamilyGlobalPriorityProperties asSlice(long index, long count) { return new VkQueueFamilyGlobalPriorityProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index @@ -192,48 +203,34 @@ public final class VkQueueFamilyGlobalPriorityProperties extends Struct { public VkQueueFamilyGlobalPriorityProperties priorityCount(@CType("uint32_t") int value) { VkQueueFamilyGlobalPriorityProperties.set_priorityCount(this.segment(), value); return this; } /// {@return `priorities` at the given index} - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public static @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment get_priorities(MemorySegment segment, long index, long elementIndex) { - try { return segment.asSlice(LAYOUT.scale((long) MH_priorities.invokeExact(0L, elementIndex), index), ML_priorities); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + public static @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment get_priorities(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_priorities, index), ML_priorities); } /// {@return `priorities`} - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - public static @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment get_priorities(MemorySegment segment, long elementIndex) { return VkQueueFamilyGlobalPriorityProperties.get_priorities(segment, 0L, elementIndex); } + /// @param segment the segment of the struct + public static @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment get_priorities(MemorySegment segment) { return VkQueueFamilyGlobalPriorityProperties.get_priorities(segment, 0L); } /// {@return `priorities` at the given index} - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - public @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment prioritiesAt(long index, long elementIndex) { return VkQueueFamilyGlobalPriorityProperties.get_priorities(this.segment(), index, elementIndex); } + /// @param index the index + public @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment prioritiesAt(long index) { return VkQueueFamilyGlobalPriorityProperties.get_priorities(this.segment(), index); } /// {@return `priorities`} - /// @param elementIndex the index of the element - public @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment priorities(long elementIndex) { return VkQueueFamilyGlobalPriorityProperties.get_priorities(this.segment(), elementIndex); } + public @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment priorities() { return VkQueueFamilyGlobalPriorityProperties.get_priorities(this.segment()); } /// Sets `priorities` with the given value at the given index. - /// @param segment the segment of the struct - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value - public static void set_priorities(MemorySegment segment, long index, long elementIndex, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { - try { MemorySegment.copy(value, 0L, segment, LAYOUT.scale((long) MH_priorities.invokeExact(0L, elementIndex), index), ML_priorities.byteSize()); } - catch (Throwable e) { throw new RuntimeException(e); } - } + /// @param segment the segment of the struct + /// @param index the index + /// @param value the value + public static void set_priorities(MemorySegment segment, long index, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_priorities, index), ML_priorities.byteSize()); } /// Sets `priorities` with the given value. - /// @param segment the segment of the struct - /// @param elementIndex the index of the element - /// @param value the value - public static void set_priorities(MemorySegment segment, long elementIndex, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(segment, 0L, elementIndex, value); } + /// @param segment the segment of the struct + /// @param value the value + public static void set_priorities(MemorySegment segment, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(segment, 0L, value); } /// Sets `priorities` with the given value at the given index. - /// @param index the index of the struct buffer - /// @param elementIndex the index of the element - /// @param value the value + /// @param index the index + /// @param value the value /// @return `this` - public VkQueueFamilyGlobalPriorityProperties prioritiesAt(long index, long elementIndex, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(this.segment(), index, elementIndex, value); return this; } + public VkQueueFamilyGlobalPriorityProperties prioritiesAt(long index, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(this.segment(), index, value); return this; } /// Sets `priorities` with the given value. - /// @param elementIndex the index of the element - /// @param value the value + /// @param value the value /// @return `this` - public VkQueueFamilyGlobalPriorityProperties priorities(long elementIndex, @CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(this.segment(), elementIndex, value); return this; } + public VkQueueFamilyGlobalPriorityProperties priorities(@CType("VkQueueGlobalPriority[VK_MAX_GLOBAL_PRIORITY_SIZE]") java.lang.foreign.MemorySegment value) { VkQueueFamilyGlobalPriorityProperties.set_priorities(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties.java index 40469951..c22dc8e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties.java @@ -97,6 +97,17 @@ public final class VkQueueFamilyProperties extends Struct { /// @return the allocated `VkQueueFamilyProperties` public static VkQueueFamilyProperties alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyProperties` + public VkQueueFamilyProperties asSlice(long index) { return new VkQueueFamilyProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyProperties` + public VkQueueFamilyProperties asSlice(long index, long count) { return new VkQueueFamilyProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `queueFlags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties2.java index 87270d34..afb18555 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkQueueFamilyProperties2.java @@ -91,6 +91,17 @@ public final class VkQueueFamilyProperties2 extends Struct { /// @return the allocated `VkQueueFamilyProperties2` public static VkQueueFamilyProperties2 alloc(SegmentAllocator allocator, long count) { return new VkQueueFamilyProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkQueueFamilyProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkQueueFamilyProperties2` + public VkQueueFamilyProperties2 asSlice(long index) { return new VkQueueFamilyProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkQueueFamilyProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkQueueFamilyProperties2` + public VkQueueFamilyProperties2 asSlice(long index, long count) { return new VkQueueFamilyProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRect2D.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRect2D.java index 69ad22a4..7c4fc857 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRect2D.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRect2D.java @@ -87,6 +87,17 @@ public final class VkRect2D extends Struct { /// @return the allocated `VkRect2D` public static VkRect2D alloc(SegmentAllocator allocator, long count) { return new VkRect2D(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRect2D`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRect2D` + public VkRect2D asSlice(long index) { return new VkRect2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRect2D`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRect2D` + public VkRect2D asSlice(long index, long count) { return new VkRect2D(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `offset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassAttachmentBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassAttachmentBeginInfo.java index 8ff0fdc9..c0177cfe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassAttachmentBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassAttachmentBeginInfo.java @@ -95,6 +95,17 @@ public final class VkRenderPassAttachmentBeginInfo extends Struct { /// @return the allocated `VkRenderPassAttachmentBeginInfo` public static VkRenderPassAttachmentBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderPassAttachmentBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassAttachmentBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassAttachmentBeginInfo` + public VkRenderPassAttachmentBeginInfo asSlice(long index) { return new VkRenderPassAttachmentBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassAttachmentBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassAttachmentBeginInfo` + public VkRenderPassAttachmentBeginInfo asSlice(long index, long count) { return new VkRenderPassAttachmentBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassBeginInfo.java index 68204c28..09d89efd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassBeginInfo.java @@ -115,6 +115,17 @@ public final class VkRenderPassBeginInfo extends Struct { /// @return the allocated `VkRenderPassBeginInfo` public static VkRenderPassBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderPassBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassBeginInfo` + public VkRenderPassBeginInfo asSlice(long index) { return new VkRenderPassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassBeginInfo` + public VkRenderPassBeginInfo asSlice(long index, long count) { return new VkRenderPassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo.java index cd5adee9..3fd5d3cf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo.java @@ -125,6 +125,17 @@ public final class VkRenderPassCreateInfo extends Struct { /// @return the allocated `VkRenderPassCreateInfo` public static VkRenderPassCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderPassCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassCreateInfo` + public VkRenderPassCreateInfo asSlice(long index) { return new VkRenderPassCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassCreateInfo` + public VkRenderPassCreateInfo asSlice(long index, long count) { return new VkRenderPassCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo2.java index 0ca51f25..9614ae89 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassCreateInfo2.java @@ -137,6 +137,17 @@ public final class VkRenderPassCreateInfo2 extends Struct { /// @return the allocated `VkRenderPassCreateInfo2` public static VkRenderPassCreateInfo2 alloc(SegmentAllocator allocator, long count) { return new VkRenderPassCreateInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassCreateInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassCreateInfo2` + public VkRenderPassCreateInfo2 asSlice(long index) { return new VkRenderPassCreateInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassCreateInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassCreateInfo2` + public VkRenderPassCreateInfo2 asSlice(long index, long count) { return new VkRenderPassCreateInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassInputAttachmentAspectCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassInputAttachmentAspectCreateInfo.java index 7163b616..1465bf5c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassInputAttachmentAspectCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassInputAttachmentAspectCreateInfo.java @@ -95,6 +95,17 @@ public final class VkRenderPassInputAttachmentAspectCreateInfo extends Struct { /// @return the allocated `VkRenderPassInputAttachmentAspectCreateInfo` public static VkRenderPassInputAttachmentAspectCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderPassInputAttachmentAspectCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassInputAttachmentAspectCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassInputAttachmentAspectCreateInfo` + public VkRenderPassInputAttachmentAspectCreateInfo asSlice(long index) { return new VkRenderPassInputAttachmentAspectCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassInputAttachmentAspectCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassInputAttachmentAspectCreateInfo` + public VkRenderPassInputAttachmentAspectCreateInfo asSlice(long index, long count) { return new VkRenderPassInputAttachmentAspectCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassMultiviewCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassMultiviewCreateInfo.java index ddeccb00..94bdfa5a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassMultiviewCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderPassMultiviewCreateInfo.java @@ -119,6 +119,17 @@ public final class VkRenderPassMultiviewCreateInfo extends Struct { /// @return the allocated `VkRenderPassMultiviewCreateInfo` public static VkRenderPassMultiviewCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderPassMultiviewCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderPassMultiviewCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderPassMultiviewCreateInfo` + public VkRenderPassMultiviewCreateInfo asSlice(long index) { return new VkRenderPassMultiviewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderPassMultiviewCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderPassMultiviewCreateInfo` + public VkRenderPassMultiviewCreateInfo asSlice(long index, long count) { return new VkRenderPassMultiviewCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAreaInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAreaInfo.java index a9b0a939..5c12621e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAreaInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAreaInfo.java @@ -113,6 +113,17 @@ public final class VkRenderingAreaInfo extends Struct { /// @return the allocated `VkRenderingAreaInfo` public static VkRenderingAreaInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderingAreaInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingAreaInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingAreaInfo` + public VkRenderingAreaInfo asSlice(long index) { return new VkRenderingAreaInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingAreaInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingAreaInfo` + public VkRenderingAreaInfo asSlice(long index, long count) { return new VkRenderingAreaInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentInfo.java index 9c3dbc81..6146ac7c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentInfo.java @@ -133,6 +133,17 @@ public final class VkRenderingAttachmentInfo extends Struct { /// @return the allocated `VkRenderingAttachmentInfo` public static VkRenderingAttachmentInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderingAttachmentInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingAttachmentInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingAttachmentInfo` + public VkRenderingAttachmentInfo asSlice(long index) { return new VkRenderingAttachmentInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingAttachmentInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingAttachmentInfo` + public VkRenderingAttachmentInfo asSlice(long index, long count) { return new VkRenderingAttachmentInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentLocationInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentLocationInfo.java index f786f868..06ae74c1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentLocationInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingAttachmentLocationInfo.java @@ -95,6 +95,17 @@ public final class VkRenderingAttachmentLocationInfo extends Struct { /// @return the allocated `VkRenderingAttachmentLocationInfo` public static VkRenderingAttachmentLocationInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderingAttachmentLocationInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingAttachmentLocationInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingAttachmentLocationInfo` + public VkRenderingAttachmentLocationInfo asSlice(long index) { return new VkRenderingAttachmentLocationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingAttachmentLocationInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingAttachmentLocationInfo` + public VkRenderingAttachmentLocationInfo asSlice(long index, long count) { return new VkRenderingAttachmentLocationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInfo.java index 20082ac2..e5cea056 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInfo.java @@ -133,6 +133,17 @@ public final class VkRenderingInfo extends Struct { /// @return the allocated `VkRenderingInfo` public static VkRenderingInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderingInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingInfo` + public VkRenderingInfo asSlice(long index) { return new VkRenderingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingInfo` + public VkRenderingInfo asSlice(long index, long count) { return new VkRenderingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInputAttachmentIndexInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInputAttachmentIndexInfo.java index 11ca8ae8..1b7d8c9e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInputAttachmentIndexInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkRenderingInputAttachmentIndexInfo.java @@ -107,6 +107,17 @@ public final class VkRenderingInputAttachmentIndexInfo extends Struct { /// @return the allocated `VkRenderingInputAttachmentIndexInfo` public static VkRenderingInputAttachmentIndexInfo alloc(SegmentAllocator allocator, long count) { return new VkRenderingInputAttachmentIndexInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkRenderingInputAttachmentIndexInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkRenderingInputAttachmentIndexInfo` + public VkRenderingInputAttachmentIndexInfo asSlice(long index) { return new VkRenderingInputAttachmentIndexInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkRenderingInputAttachmentIndexInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkRenderingInputAttachmentIndexInfo` + public VkRenderingInputAttachmentIndexInfo asSlice(long index, long count) { return new VkRenderingInputAttachmentIndexInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkResolveImageInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkResolveImageInfo2.java index b0e53875..2eafa89b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkResolveImageInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkResolveImageInfo2.java @@ -119,6 +119,17 @@ public final class VkResolveImageInfo2 extends Struct { /// @return the allocated `VkResolveImageInfo2` public static VkResolveImageInfo2 alloc(SegmentAllocator allocator, long count) { return new VkResolveImageInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkResolveImageInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkResolveImageInfo2` + public VkResolveImageInfo2 asSlice(long index) { return new VkResolveImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkResolveImageInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkResolveImageInfo2` + public VkResolveImageInfo2 asSlice(long index, long count) { return new VkResolveImageInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerCreateInfo.java index ed4b4dcc..01af0769 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerCreateInfo.java @@ -179,6 +179,17 @@ public final class VkSamplerCreateInfo extends Struct { /// @return the allocated `VkSamplerCreateInfo` public static VkSamplerCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkSamplerCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerCreateInfo` + public VkSamplerCreateInfo asSlice(long index) { return new VkSamplerCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerCreateInfo` + public VkSamplerCreateInfo asSlice(long index, long count) { return new VkSamplerCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerReductionModeCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerReductionModeCreateInfo.java index d18d10ab..f80faaac 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerReductionModeCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerReductionModeCreateInfo.java @@ -89,6 +89,17 @@ public final class VkSamplerReductionModeCreateInfo extends Struct { /// @return the allocated `VkSamplerReductionModeCreateInfo` public static VkSamplerReductionModeCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkSamplerReductionModeCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerReductionModeCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerReductionModeCreateInfo` + public VkSamplerReductionModeCreateInfo asSlice(long index) { return new VkSamplerReductionModeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerReductionModeCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerReductionModeCreateInfo` + public VkSamplerReductionModeCreateInfo asSlice(long index, long count) { return new VkSamplerReductionModeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionCreateInfo.java index ee380cba..05fde0d4 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionCreateInfo.java @@ -133,6 +133,17 @@ public final class VkSamplerYcbcrConversionCreateInfo extends Struct { /// @return the allocated `VkSamplerYcbcrConversionCreateInfo` public static VkSamplerYcbcrConversionCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkSamplerYcbcrConversionCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerYcbcrConversionCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerYcbcrConversionCreateInfo` + public VkSamplerYcbcrConversionCreateInfo asSlice(long index) { return new VkSamplerYcbcrConversionCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerYcbcrConversionCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerYcbcrConversionCreateInfo` + public VkSamplerYcbcrConversionCreateInfo asSlice(long index, long count) { return new VkSamplerYcbcrConversionCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionImageFormatProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionImageFormatProperties.java index 5289849a..4b90c725 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionImageFormatProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionImageFormatProperties.java @@ -89,6 +89,17 @@ public final class VkSamplerYcbcrConversionImageFormatProperties extends Struct /// @return the allocated `VkSamplerYcbcrConversionImageFormatProperties` public static VkSamplerYcbcrConversionImageFormatProperties alloc(SegmentAllocator allocator, long count) { return new VkSamplerYcbcrConversionImageFormatProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerYcbcrConversionImageFormatProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerYcbcrConversionImageFormatProperties` + public VkSamplerYcbcrConversionImageFormatProperties asSlice(long index) { return new VkSamplerYcbcrConversionImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerYcbcrConversionImageFormatProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerYcbcrConversionImageFormatProperties` + public VkSamplerYcbcrConversionImageFormatProperties asSlice(long index, long count) { return new VkSamplerYcbcrConversionImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionInfo.java index 3f024b45..d5e7a563 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSamplerYcbcrConversionInfo.java @@ -89,6 +89,17 @@ public final class VkSamplerYcbcrConversionInfo extends Struct { /// @return the allocated `VkSamplerYcbcrConversionInfo` public static VkSamplerYcbcrConversionInfo alloc(SegmentAllocator allocator, long count) { return new VkSamplerYcbcrConversionInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSamplerYcbcrConversionInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSamplerYcbcrConversionInfo` + public VkSamplerYcbcrConversionInfo asSlice(long index) { return new VkSamplerYcbcrConversionInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSamplerYcbcrConversionInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSamplerYcbcrConversionInfo` + public VkSamplerYcbcrConversionInfo asSlice(long index, long count) { return new VkSamplerYcbcrConversionInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreCreateInfo.java index 21888e15..5bee4516 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreCreateInfo.java @@ -89,6 +89,17 @@ public final class VkSemaphoreCreateInfo extends Struct { /// @return the allocated `VkSemaphoreCreateInfo` public static VkSemaphoreCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreCreateInfo` + public VkSemaphoreCreateInfo asSlice(long index) { return new VkSemaphoreCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreCreateInfo` + public VkSemaphoreCreateInfo asSlice(long index, long count) { return new VkSemaphoreCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSignalInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSignalInfo.java index cb87d530..bd922ab6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSignalInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSignalInfo.java @@ -95,6 +95,17 @@ public final class VkSemaphoreSignalInfo extends Struct { /// @return the allocated `VkSemaphoreSignalInfo` public static VkSemaphoreSignalInfo alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreSignalInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreSignalInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreSignalInfo` + public VkSemaphoreSignalInfo asSlice(long index) { return new VkSemaphoreSignalInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreSignalInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreSignalInfo` + public VkSemaphoreSignalInfo asSlice(long index, long count) { return new VkSemaphoreSignalInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSubmitInfo.java index 3ce5ab9c..704ccbc5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreSubmitInfo.java @@ -107,6 +107,17 @@ public final class VkSemaphoreSubmitInfo extends Struct { /// @return the allocated `VkSemaphoreSubmitInfo` public static VkSemaphoreSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreSubmitInfo` + public VkSemaphoreSubmitInfo asSlice(long index) { return new VkSemaphoreSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreSubmitInfo` + public VkSemaphoreSubmitInfo asSlice(long index, long count) { return new VkSemaphoreSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreTypeCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreTypeCreateInfo.java index 58e26651..ec58e93e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreTypeCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreTypeCreateInfo.java @@ -95,6 +95,17 @@ public final class VkSemaphoreTypeCreateInfo extends Struct { /// @return the allocated `VkSemaphoreTypeCreateInfo` public static VkSemaphoreTypeCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreTypeCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreTypeCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreTypeCreateInfo` + public VkSemaphoreTypeCreateInfo asSlice(long index) { return new VkSemaphoreTypeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreTypeCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreTypeCreateInfo` + public VkSemaphoreTypeCreateInfo asSlice(long index, long count) { return new VkSemaphoreTypeCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreWaitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreWaitInfo.java index 41027275..c640d487 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreWaitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSemaphoreWaitInfo.java @@ -107,6 +107,17 @@ public final class VkSemaphoreWaitInfo extends Struct { /// @return the allocated `VkSemaphoreWaitInfo` public static VkSemaphoreWaitInfo alloc(SegmentAllocator allocator, long count) { return new VkSemaphoreWaitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSemaphoreWaitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSemaphoreWaitInfo` + public VkSemaphoreWaitInfo asSlice(long index) { return new VkSemaphoreWaitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSemaphoreWaitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSemaphoreWaitInfo` + public VkSemaphoreWaitInfo asSlice(long index, long count) { return new VkSemaphoreWaitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkShaderModuleCreateInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkShaderModuleCreateInfo.java index b4985df6..dc7e31dd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkShaderModuleCreateInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkShaderModuleCreateInfo.java @@ -101,6 +101,17 @@ public final class VkShaderModuleCreateInfo extends Struct { /// @return the allocated `VkShaderModuleCreateInfo` public static VkShaderModuleCreateInfo alloc(SegmentAllocator allocator, long count) { return new VkShaderModuleCreateInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkShaderModuleCreateInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkShaderModuleCreateInfo` + public VkShaderModuleCreateInfo asSlice(long index) { return new VkShaderModuleCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkShaderModuleCreateInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkShaderModuleCreateInfo` + public VkShaderModuleCreateInfo asSlice(long index, long count) { return new VkShaderModuleCreateInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseBufferMemoryBindInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseBufferMemoryBindInfo.java index 4f7ff030..28ba30ea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseBufferMemoryBindInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseBufferMemoryBindInfo.java @@ -89,6 +89,17 @@ public final class VkSparseBufferMemoryBindInfo extends Struct { /// @return the allocated `VkSparseBufferMemoryBindInfo` public static VkSparseBufferMemoryBindInfo alloc(SegmentAllocator allocator, long count) { return new VkSparseBufferMemoryBindInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseBufferMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseBufferMemoryBindInfo` + public VkSparseBufferMemoryBindInfo asSlice(long index) { return new VkSparseBufferMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseBufferMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseBufferMemoryBindInfo` + public VkSparseBufferMemoryBindInfo asSlice(long index, long count) { return new VkSparseBufferMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `buffer` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties.java index a9a6fed4..a462d433 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties.java @@ -91,6 +91,17 @@ public final class VkSparseImageFormatProperties extends Struct { /// @return the allocated `VkSparseImageFormatProperties` public static VkSparseImageFormatProperties alloc(SegmentAllocator allocator, long count) { return new VkSparseImageFormatProperties(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageFormatProperties`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageFormatProperties` + public VkSparseImageFormatProperties asSlice(long index) { return new VkSparseImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageFormatProperties`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageFormatProperties` + public VkSparseImageFormatProperties asSlice(long index, long count) { return new VkSparseImageFormatProperties(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspectMask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties2.java index ddb6f21f..4985b418 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageFormatProperties2.java @@ -91,6 +91,17 @@ public final class VkSparseImageFormatProperties2 extends Struct { /// @return the allocated `VkSparseImageFormatProperties2` public static VkSparseImageFormatProperties2 alloc(SegmentAllocator allocator, long count) { return new VkSparseImageFormatProperties2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageFormatProperties2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageFormatProperties2` + public VkSparseImageFormatProperties2 asSlice(long index) { return new VkSparseImageFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageFormatProperties2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageFormatProperties2` + public VkSparseImageFormatProperties2 asSlice(long index, long count) { return new VkSparseImageFormatProperties2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBind.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBind.java index 13e1026e..eaa97b58 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBind.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBind.java @@ -113,6 +113,17 @@ public final class VkSparseImageMemoryBind extends Struct { /// @return the allocated `VkSparseImageMemoryBind` public static VkSparseImageMemoryBind alloc(SegmentAllocator allocator, long count) { return new VkSparseImageMemoryBind(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageMemoryBind`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageMemoryBind` + public VkSparseImageMemoryBind asSlice(long index) { return new VkSparseImageMemoryBind(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageMemoryBind`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageMemoryBind` + public VkSparseImageMemoryBind asSlice(long index, long count) { return new VkSparseImageMemoryBind(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `subresource` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBindInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBindInfo.java index 77f8c620..6a042fe2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBindInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryBindInfo.java @@ -89,6 +89,17 @@ public final class VkSparseImageMemoryBindInfo extends Struct { /// @return the allocated `VkSparseImageMemoryBindInfo` public static VkSparseImageMemoryBindInfo alloc(SegmentAllocator allocator, long count) { return new VkSparseImageMemoryBindInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageMemoryBindInfo` + public VkSparseImageMemoryBindInfo asSlice(long index) { return new VkSparseImageMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageMemoryBindInfo` + public VkSparseImageMemoryBindInfo asSlice(long index, long count) { return new VkSparseImageMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `image` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements.java index 29ddbb9e..edec608a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements.java @@ -103,6 +103,17 @@ public final class VkSparseImageMemoryRequirements extends Struct { /// @return the allocated `VkSparseImageMemoryRequirements` public static VkSparseImageMemoryRequirements alloc(SegmentAllocator allocator, long count) { return new VkSparseImageMemoryRequirements(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageMemoryRequirements`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageMemoryRequirements` + public VkSparseImageMemoryRequirements asSlice(long index) { return new VkSparseImageMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageMemoryRequirements`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageMemoryRequirements` + public VkSparseImageMemoryRequirements asSlice(long index, long count) { return new VkSparseImageMemoryRequirements(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `formatProperties` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements2.java index 27a8bd7f..ab5b7b10 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageMemoryRequirements2.java @@ -91,6 +91,17 @@ public final class VkSparseImageMemoryRequirements2 extends Struct { /// @return the allocated `VkSparseImageMemoryRequirements2` public static VkSparseImageMemoryRequirements2 alloc(SegmentAllocator allocator, long count) { return new VkSparseImageMemoryRequirements2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageMemoryRequirements2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageMemoryRequirements2` + public VkSparseImageMemoryRequirements2 asSlice(long index) { return new VkSparseImageMemoryRequirements2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageMemoryRequirements2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageMemoryRequirements2` + public VkSparseImageMemoryRequirements2 asSlice(long index, long count) { return new VkSparseImageMemoryRequirements2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageOpaqueMemoryBindInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageOpaqueMemoryBindInfo.java index bb425afd..8aef967f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageOpaqueMemoryBindInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseImageOpaqueMemoryBindInfo.java @@ -89,6 +89,17 @@ public final class VkSparseImageOpaqueMemoryBindInfo extends Struct { /// @return the allocated `VkSparseImageOpaqueMemoryBindInfo` public static VkSparseImageOpaqueMemoryBindInfo alloc(SegmentAllocator allocator, long count) { return new VkSparseImageOpaqueMemoryBindInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseImageOpaqueMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseImageOpaqueMemoryBindInfo` + public VkSparseImageOpaqueMemoryBindInfo asSlice(long index) { return new VkSparseImageOpaqueMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseImageOpaqueMemoryBindInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseImageOpaqueMemoryBindInfo` + public VkSparseImageOpaqueMemoryBindInfo asSlice(long index, long count) { return new VkSparseImageOpaqueMemoryBindInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `image` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseMemoryBind.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseMemoryBind.java index ba34df30..d74873c0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseMemoryBind.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSparseMemoryBind.java @@ -101,6 +101,17 @@ public final class VkSparseMemoryBind extends Struct { /// @return the allocated `VkSparseMemoryBind` public static VkSparseMemoryBind alloc(SegmentAllocator allocator, long count) { return new VkSparseMemoryBind(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSparseMemoryBind`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSparseMemoryBind` + public VkSparseMemoryBind asSlice(long index) { return new VkSparseMemoryBind(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSparseMemoryBind`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSparseMemoryBind` + public VkSparseMemoryBind asSlice(long index, long count) { return new VkSparseMemoryBind(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `resourceOffset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationInfo.java index 3aa421ee..9f8ac16c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationInfo.java @@ -95,6 +95,17 @@ public final class VkSpecializationInfo extends Struct { /// @return the allocated `VkSpecializationInfo` public static VkSpecializationInfo alloc(SegmentAllocator allocator, long count) { return new VkSpecializationInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSpecializationInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSpecializationInfo` + public VkSpecializationInfo asSlice(long index) { return new VkSpecializationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSpecializationInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSpecializationInfo` + public VkSpecializationInfo asSlice(long index, long count) { return new VkSpecializationInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `mapEntryCount` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationMapEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationMapEntry.java index aa029af4..9aefcadd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationMapEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSpecializationMapEntry.java @@ -89,6 +89,17 @@ public final class VkSpecializationMapEntry extends Struct { /// @return the allocated `VkSpecializationMapEntry` public static VkSpecializationMapEntry alloc(SegmentAllocator allocator, long count) { return new VkSpecializationMapEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSpecializationMapEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSpecializationMapEntry` + public VkSpecializationMapEntry asSlice(long index) { return new VkSpecializationMapEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSpecializationMapEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSpecializationMapEntry` + public VkSpecializationMapEntry asSlice(long index, long count) { return new VkSpecializationMapEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `constantID` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkStencilOpState.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkStencilOpState.java index 5831ce61..e6689a7f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkStencilOpState.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkStencilOpState.java @@ -113,6 +113,17 @@ public final class VkStencilOpState extends Struct { /// @return the allocated `VkStencilOpState` public static VkStencilOpState alloc(SegmentAllocator allocator, long count) { return new VkStencilOpState(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkStencilOpState`. + /// @param index the index of the struct buffer + /// @return the slice of `VkStencilOpState` + public VkStencilOpState asSlice(long index) { return new VkStencilOpState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkStencilOpState`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkStencilOpState` + public VkStencilOpState asSlice(long index, long count) { return new VkStencilOpState(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `failOp` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo.java index 136d1f56..f3a49f10 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo.java @@ -125,6 +125,17 @@ public final class VkSubmitInfo extends Struct { /// @return the allocated `VkSubmitInfo` public static VkSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubmitInfo` + public VkSubmitInfo asSlice(long index) { return new VkSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubmitInfo` + public VkSubmitInfo asSlice(long index, long count) { return new VkSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo2.java index 74297888..46265da0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubmitInfo2.java @@ -125,6 +125,17 @@ public final class VkSubmitInfo2 extends Struct { /// @return the allocated `VkSubmitInfo2` public static VkSubmitInfo2 alloc(SegmentAllocator allocator, long count) { return new VkSubmitInfo2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubmitInfo2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubmitInfo2` + public VkSubmitInfo2 asSlice(long index) { return new VkSubmitInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubmitInfo2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubmitInfo2` + public VkSubmitInfo2 asSlice(long index, long count) { return new VkSubmitInfo2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassBeginInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassBeginInfo.java index 9cc78368..ab91f770 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassBeginInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassBeginInfo.java @@ -89,6 +89,17 @@ public final class VkSubpassBeginInfo extends Struct { /// @return the allocated `VkSubpassBeginInfo` public static VkSubpassBeginInfo alloc(SegmentAllocator allocator, long count) { return new VkSubpassBeginInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassBeginInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassBeginInfo` + public VkSubpassBeginInfo asSlice(long index) { return new VkSubpassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassBeginInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassBeginInfo` + public VkSubpassBeginInfo asSlice(long index, long count) { return new VkSubpassBeginInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency.java index 774a6fff..f12de23e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency.java @@ -113,6 +113,17 @@ public final class VkSubpassDependency extends Struct { /// @return the allocated `VkSubpassDependency` public static VkSubpassDependency alloc(SegmentAllocator allocator, long count) { return new VkSubpassDependency(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassDependency`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassDependency` + public VkSubpassDependency asSlice(long index) { return new VkSubpassDependency(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassDependency`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassDependency` + public VkSubpassDependency asSlice(long index, long count) { return new VkSubpassDependency(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `srcSubpass` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency2.java index 968aaaed..b4b40208 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDependency2.java @@ -131,6 +131,17 @@ public final class VkSubpassDependency2 extends Struct { /// @return the allocated `VkSubpassDependency2` public static VkSubpassDependency2 alloc(SegmentAllocator allocator, long count) { return new VkSubpassDependency2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassDependency2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassDependency2` + public VkSubpassDependency2 asSlice(long index) { return new VkSubpassDependency2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassDependency2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassDependency2` + public VkSubpassDependency2 asSlice(long index, long count) { return new VkSubpassDependency2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription.java index 93e85b61..4b73c3ca 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription.java @@ -131,6 +131,17 @@ public final class VkSubpassDescription extends Struct { /// @return the allocated `VkSubpassDescription` public static VkSubpassDescription alloc(SegmentAllocator allocator, long count) { return new VkSubpassDescription(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassDescription`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassDescription` + public VkSubpassDescription asSlice(long index) { return new VkSubpassDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassDescription`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassDescription` + public VkSubpassDescription asSlice(long index, long count) { return new VkSubpassDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription2.java index 7bd06c30..67ecab0e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescription2.java @@ -149,6 +149,17 @@ public final class VkSubpassDescription2 extends Struct { /// @return the allocated `VkSubpassDescription2` public static VkSubpassDescription2 alloc(SegmentAllocator allocator, long count) { return new VkSubpassDescription2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassDescription2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassDescription2` + public VkSubpassDescription2 asSlice(long index) { return new VkSubpassDescription2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassDescription2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassDescription2` + public VkSubpassDescription2 asSlice(long index, long count) { return new VkSubpassDescription2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescriptionDepthStencilResolve.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescriptionDepthStencilResolve.java index 6a75fd04..5e46f6e3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescriptionDepthStencilResolve.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassDescriptionDepthStencilResolve.java @@ -101,6 +101,17 @@ public final class VkSubpassDescriptionDepthStencilResolve extends Struct { /// @return the allocated `VkSubpassDescriptionDepthStencilResolve` public static VkSubpassDescriptionDepthStencilResolve alloc(SegmentAllocator allocator, long count) { return new VkSubpassDescriptionDepthStencilResolve(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassDescriptionDepthStencilResolve`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassDescriptionDepthStencilResolve` + public VkSubpassDescriptionDepthStencilResolve asSlice(long index) { return new VkSubpassDescriptionDepthStencilResolve(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassDescriptionDepthStencilResolve`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassDescriptionDepthStencilResolve` + public VkSubpassDescriptionDepthStencilResolve asSlice(long index, long count) { return new VkSubpassDescriptionDepthStencilResolve(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassEndInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassEndInfo.java index 8ea744fa..d5a9d7fe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassEndInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubpassEndInfo.java @@ -83,6 +83,17 @@ public final class VkSubpassEndInfo extends Struct { /// @return the allocated `VkSubpassEndInfo` public static VkSubpassEndInfo alloc(SegmentAllocator allocator, long count) { return new VkSubpassEndInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubpassEndInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubpassEndInfo` + public VkSubpassEndInfo asSlice(long index) { return new VkSubpassEndInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubpassEndInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubpassEndInfo` + public VkSubpassEndInfo asSlice(long index, long count) { return new VkSubpassEndInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceHostMemcpySize.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceHostMemcpySize.java index 41525146..b98f7dc0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceHostMemcpySize.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceHostMemcpySize.java @@ -89,6 +89,17 @@ public final class VkSubresourceHostMemcpySize extends Struct { /// @return the allocated `VkSubresourceHostMemcpySize` public static VkSubresourceHostMemcpySize alloc(SegmentAllocator allocator, long count) { return new VkSubresourceHostMemcpySize(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubresourceHostMemcpySize`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubresourceHostMemcpySize` + public VkSubresourceHostMemcpySize asSlice(long index) { return new VkSubresourceHostMemcpySize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubresourceHostMemcpySize`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubresourceHostMemcpySize` + public VkSubresourceHostMemcpySize asSlice(long index, long count) { return new VkSubresourceHostMemcpySize(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout.java index 2a4a3c3d..eb93ae77 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout.java @@ -101,6 +101,17 @@ public final class VkSubresourceLayout extends Struct { /// @return the allocated `VkSubresourceLayout` public static VkSubresourceLayout alloc(SegmentAllocator allocator, long count) { return new VkSubresourceLayout(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubresourceLayout`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubresourceLayout` + public VkSubresourceLayout asSlice(long index) { return new VkSubresourceLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubresourceLayout`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubresourceLayout` + public VkSubresourceLayout asSlice(long index, long count) { return new VkSubresourceLayout(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `offset` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout2.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout2.java index 915924d0..4f41cef6 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout2.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkSubresourceLayout2.java @@ -91,6 +91,17 @@ public final class VkSubresourceLayout2 extends Struct { /// @return the allocated `VkSubresourceLayout2` public static VkSubresourceLayout2 alloc(SegmentAllocator allocator, long count) { return new VkSubresourceLayout2(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkSubresourceLayout2`. + /// @param index the index of the struct buffer + /// @return the slice of `VkSubresourceLayout2` + public VkSubresourceLayout2 asSlice(long index) { return new VkSubresourceLayout2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkSubresourceLayout2`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkSubresourceLayout2` + public VkSubresourceLayout2 asSlice(long index, long count) { return new VkSubresourceLayout2(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkTimelineSemaphoreSubmitInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkTimelineSemaphoreSubmitInfo.java index 89bf785d..1a5e0e82 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkTimelineSemaphoreSubmitInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkTimelineSemaphoreSubmitInfo.java @@ -107,6 +107,17 @@ public final class VkTimelineSemaphoreSubmitInfo extends Struct { /// @return the allocated `VkTimelineSemaphoreSubmitInfo` public static VkTimelineSemaphoreSubmitInfo alloc(SegmentAllocator allocator, long count) { return new VkTimelineSemaphoreSubmitInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkTimelineSemaphoreSubmitInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `VkTimelineSemaphoreSubmitInfo` + public VkTimelineSemaphoreSubmitInfo asSlice(long index) { return new VkTimelineSemaphoreSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkTimelineSemaphoreSubmitInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkTimelineSemaphoreSubmitInfo` + public VkTimelineSemaphoreSubmitInfo asSlice(long index, long count) { return new VkTimelineSemaphoreSubmitInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputAttributeDescription.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputAttributeDescription.java index 0b2b9577..ebb1df09 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputAttributeDescription.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputAttributeDescription.java @@ -95,6 +95,17 @@ public final class VkVertexInputAttributeDescription extends Struct { /// @return the allocated `VkVertexInputAttributeDescription` public static VkVertexInputAttributeDescription alloc(SegmentAllocator allocator, long count) { return new VkVertexInputAttributeDescription(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVertexInputAttributeDescription`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVertexInputAttributeDescription` + public VkVertexInputAttributeDescription asSlice(long index) { return new VkVertexInputAttributeDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVertexInputAttributeDescription`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVertexInputAttributeDescription` + public VkVertexInputAttributeDescription asSlice(long index, long count) { return new VkVertexInputAttributeDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `location` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDescription.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDescription.java index d8da7381..be36cb87 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDescription.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDescription.java @@ -89,6 +89,17 @@ public final class VkVertexInputBindingDescription extends Struct { /// @return the allocated `VkVertexInputBindingDescription` public static VkVertexInputBindingDescription alloc(SegmentAllocator allocator, long count) { return new VkVertexInputBindingDescription(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVertexInputBindingDescription`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVertexInputBindingDescription` + public VkVertexInputBindingDescription asSlice(long index) { return new VkVertexInputBindingDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVertexInputBindingDescription`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVertexInputBindingDescription` + public VkVertexInputBindingDescription asSlice(long index, long count) { return new VkVertexInputBindingDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `binding` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDivisorDescription.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDivisorDescription.java index 8eeb41ab..11cdafe9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDivisorDescription.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkVertexInputBindingDivisorDescription.java @@ -83,6 +83,17 @@ public final class VkVertexInputBindingDivisorDescription extends Struct { /// @return the allocated `VkVertexInputBindingDivisorDescription` public static VkVertexInputBindingDivisorDescription alloc(SegmentAllocator allocator, long count) { return new VkVertexInputBindingDivisorDescription(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkVertexInputBindingDivisorDescription`. + /// @param index the index of the struct buffer + /// @return the slice of `VkVertexInputBindingDivisorDescription` + public VkVertexInputBindingDivisorDescription asSlice(long index) { return new VkVertexInputBindingDivisorDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkVertexInputBindingDivisorDescription`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkVertexInputBindingDivisorDescription` + public VkVertexInputBindingDivisorDescription asSlice(long index, long count) { return new VkVertexInputBindingDivisorDescription(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `binding` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkViewport.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkViewport.java index 9b0e996d..ba93e440 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkViewport.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkViewport.java @@ -107,6 +107,17 @@ public final class VkViewport extends Struct { /// @return the allocated `VkViewport` public static VkViewport alloc(SegmentAllocator allocator, long count) { return new VkViewport(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkViewport`. + /// @param index the index of the struct buffer + /// @return the slice of `VkViewport` + public VkViewport asSlice(long index) { return new VkViewport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkViewport`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkViewport` + public VkViewport asSlice(long index, long count) { return new VkViewport(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `x` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSet.java index e99885a6..833fb667 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSet.java @@ -131,6 +131,17 @@ public final class VkWriteDescriptorSet extends Struct { /// @return the allocated `VkWriteDescriptorSet` public static VkWriteDescriptorSet alloc(SegmentAllocator allocator, long count) { return new VkWriteDescriptorSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteDescriptorSet`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteDescriptorSet` + public VkWriteDescriptorSet asSlice(long index) { return new VkWriteDescriptorSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteDescriptorSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteDescriptorSet` + public VkWriteDescriptorSet asSlice(long index, long count) { return new VkWriteDescriptorSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSetInlineUniformBlock.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSetInlineUniformBlock.java index 3c6a2ac0..6966e3c2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSetInlineUniformBlock.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/struct/VkWriteDescriptorSetInlineUniformBlock.java @@ -95,6 +95,17 @@ public final class VkWriteDescriptorSetInlineUniformBlock extends Struct { /// @return the allocated `VkWriteDescriptorSetInlineUniformBlock` public static VkWriteDescriptorSetInlineUniformBlock alloc(SegmentAllocator allocator, long count) { return new VkWriteDescriptorSetInlineUniformBlock(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkWriteDescriptorSetInlineUniformBlock`. + /// @param index the index of the struct buffer + /// @return the slice of `VkWriteDescriptorSetInlineUniformBlock` + public VkWriteDescriptorSetInlineUniformBlock asSlice(long index) { return new VkWriteDescriptorSetInlineUniformBlock(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkWriteDescriptorSetInlineUniformBlock`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkWriteDescriptorSetInlineUniformBlock` + public VkWriteDescriptorSetInlineUniformBlock asSlice(long index, long count) { return new VkWriteDescriptorSetInlineUniformBlock(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearColorValue.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearColorValue.java index 63d97fd0..9a29c807 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearColorValue.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearColorValue.java @@ -26,33 +26,39 @@ /// ## Members /// ### float32 -/// [VarHandle][#VH_float32] - [Getter][#float32()] - [Setter][#float32(float)] +/// [Byte offset][#OFFSET_float32] - [Memory layout][#ML_float32] - [Getter][#float32()] - [Setter][#float32(java.lang.foreign.MemorySegment)] /// ### int32 -/// [VarHandle][#VH_int32] - [Getter][#int32()] - [Setter][#int32(int)] +/// [Byte offset][#OFFSET_int32] - [Memory layout][#ML_int32] - [Getter][#int32()] - [Setter][#int32(java.lang.foreign.MemorySegment)] /// ### uint32 -/// [VarHandle][#VH_uint32] - [Getter][#uint32()] - [Setter][#uint32(int)] +/// [Byte offset][#OFFSET_uint32] - [Memory layout][#ML_uint32] - [Getter][#uint32()] - [Setter][#uint32(java.lang.foreign.MemorySegment)] /// ## Layout /// [Java definition][#LAYOUT] /// ```c /// typedef union VkClearColorValue { -/// float float32; -/// int32_t int32; -/// uint32_t uint32; +/// float[4] float32; +/// int32_t[4] int32; +/// uint32_t[4] uint32; /// } VkClearColorValue; /// ``` public final class VkClearColorValue extends Union { /// The union layout of `VkClearColorValue`. public static final UnionLayout LAYOUT = MemoryLayout.unionLayout( - ValueLayout.JAVA_FLOAT.withName("float32"), - ValueLayout.JAVA_INT.withName("int32"), - ValueLayout.JAVA_INT.withName("uint32") + MemoryLayout.sequenceLayout(4, ValueLayout.JAVA_FLOAT).withName("float32"), + MemoryLayout.sequenceLayout(4, ValueLayout.JAVA_INT).withName("int32"), + MemoryLayout.sequenceLayout(4, ValueLayout.JAVA_INT).withName("uint32") ); - /// The [VarHandle] of `float32` of type `(MemorySegment base, long baseOffset, long index)float`. - public static final VarHandle VH_float32 = LAYOUT.arrayElementVarHandle(PathElement.groupElement("float32")); - /// The [VarHandle] of `int32` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_int32 = LAYOUT.arrayElementVarHandle(PathElement.groupElement("int32")); - /// The [VarHandle] of `uint32` of type `(MemorySegment base, long baseOffset, long index)int`. - public static final VarHandle VH_uint32 = LAYOUT.arrayElementVarHandle(PathElement.groupElement("uint32")); + /// The byte offset of `float32`. + public static final long OFFSET_float32 = LAYOUT.byteOffset(PathElement.groupElement("float32")); + /// The memory layout of `float32`. + public static final MemoryLayout ML_float32 = LAYOUT.select(PathElement.groupElement("float32")); + /// The byte offset of `int32`. + public static final long OFFSET_int32 = LAYOUT.byteOffset(PathElement.groupElement("int32")); + /// The memory layout of `int32`. + public static final MemoryLayout ML_int32 = LAYOUT.select(PathElement.groupElement("int32")); + /// The byte offset of `uint32`. + public static final long OFFSET_uint32 = LAYOUT.byteOffset(PathElement.groupElement("uint32")); + /// The memory layout of `uint32`. + public static final MemoryLayout ML_uint32 = LAYOUT.select(PathElement.groupElement("uint32")); /// Creates `VkClearColorValue` with the given segment. /// @param segment the memory segment @@ -89,97 +95,108 @@ public final class VkClearColorValue extends Union { /// @return the allocated `VkClearColorValue` public static VkClearColorValue alloc(SegmentAllocator allocator, long count) { return new VkClearColorValue(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkClearColorValue`. + /// @param index the index of the union buffer + /// @return the slice of `VkClearColorValue` + public VkClearColorValue asSlice(long index) { return new VkClearColorValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkClearColorValue`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkClearColorValue` + public VkClearColorValue asSlice(long index, long count) { return new VkClearColorValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `float32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index - public static @CType("float") float get_float32(MemorySegment segment, long index) { return (float) VH_float32.get(segment, 0L, index); } + public static @CType("float[4]") java.lang.foreign.MemorySegment get_float32(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_float32, index), ML_float32); } /// {@return `float32`} - /// @param segment the segment of the struct - public static @CType("float") float get_float32(MemorySegment segment) { return VkClearColorValue.get_float32(segment, 0L); } + /// @param segment the segment of the union + public static @CType("float[4]") java.lang.foreign.MemorySegment get_float32(MemorySegment segment) { return VkClearColorValue.get_float32(segment, 0L); } /// {@return `float32` at the given index} /// @param index the index - public @CType("float") float float32At(long index) { return VkClearColorValue.get_float32(this.segment(), index); } + public @CType("float[4]") java.lang.foreign.MemorySegment float32At(long index) { return VkClearColorValue.get_float32(this.segment(), index); } /// {@return `float32`} - public @CType("float") float float32() { return VkClearColorValue.get_float32(this.segment()); } + public @CType("float[4]") java.lang.foreign.MemorySegment float32() { return VkClearColorValue.get_float32(this.segment()); } /// Sets `float32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value - public static void set_float32(MemorySegment segment, long index, @CType("float") float value) { VH_float32.set(segment, 0L, index, value); } + public static void set_float32(MemorySegment segment, long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_float32, index), ML_float32.byteSize()); } /// Sets `float32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value - public static void set_float32(MemorySegment segment, @CType("float") float value) { VkClearColorValue.set_float32(segment, 0L, value); } + public static void set_float32(MemorySegment segment, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_float32(segment, 0L, value); } /// Sets `float32` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkClearColorValue float32At(long index, @CType("float") float value) { VkClearColorValue.set_float32(this.segment(), index, value); return this; } + public VkClearColorValue float32At(long index, @CType("float[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_float32(this.segment(), index, value); return this; } /// Sets `float32` with the given value. /// @param value the value /// @return `this` - public VkClearColorValue float32(@CType("float") float value) { VkClearColorValue.set_float32(this.segment(), value); return this; } + public VkClearColorValue float32(@CType("float[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_float32(this.segment(), value); return this; } /// {@return `int32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index - public static @CType("int32_t") int get_int32(MemorySegment segment, long index) { return (int) VH_int32.get(segment, 0L, index); } + public static @CType("int32_t[4]") java.lang.foreign.MemorySegment get_int32(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_int32, index), ML_int32); } /// {@return `int32`} - /// @param segment the segment of the struct - public static @CType("int32_t") int get_int32(MemorySegment segment) { return VkClearColorValue.get_int32(segment, 0L); } + /// @param segment the segment of the union + public static @CType("int32_t[4]") java.lang.foreign.MemorySegment get_int32(MemorySegment segment) { return VkClearColorValue.get_int32(segment, 0L); } /// {@return `int32` at the given index} /// @param index the index - public @CType("int32_t") int int32At(long index) { return VkClearColorValue.get_int32(this.segment(), index); } + public @CType("int32_t[4]") java.lang.foreign.MemorySegment int32At(long index) { return VkClearColorValue.get_int32(this.segment(), index); } /// {@return `int32`} - public @CType("int32_t") int int32() { return VkClearColorValue.get_int32(this.segment()); } + public @CType("int32_t[4]") java.lang.foreign.MemorySegment int32() { return VkClearColorValue.get_int32(this.segment()); } /// Sets `int32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value - public static void set_int32(MemorySegment segment, long index, @CType("int32_t") int value) { VH_int32.set(segment, 0L, index, value); } + public static void set_int32(MemorySegment segment, long index, @CType("int32_t[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_int32, index), ML_int32.byteSize()); } /// Sets `int32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value - public static void set_int32(MemorySegment segment, @CType("int32_t") int value) { VkClearColorValue.set_int32(segment, 0L, value); } + public static void set_int32(MemorySegment segment, @CType("int32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_int32(segment, 0L, value); } /// Sets `int32` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkClearColorValue int32At(long index, @CType("int32_t") int value) { VkClearColorValue.set_int32(this.segment(), index, value); return this; } + public VkClearColorValue int32At(long index, @CType("int32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_int32(this.segment(), index, value); return this; } /// Sets `int32` with the given value. /// @param value the value /// @return `this` - public VkClearColorValue int32(@CType("int32_t") int value) { VkClearColorValue.set_int32(this.segment(), value); return this; } + public VkClearColorValue int32(@CType("int32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_int32(this.segment(), value); return this; } /// {@return `uint32` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index - public static @CType("uint32_t") int get_uint32(MemorySegment segment, long index) { return (int) VH_uint32.get(segment, 0L, index); } + public static @CType("uint32_t[4]") java.lang.foreign.MemorySegment get_uint32(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_uint32, index), ML_uint32); } /// {@return `uint32`} - /// @param segment the segment of the struct - public static @CType("uint32_t") int get_uint32(MemorySegment segment) { return VkClearColorValue.get_uint32(segment, 0L); } + /// @param segment the segment of the union + public static @CType("uint32_t[4]") java.lang.foreign.MemorySegment get_uint32(MemorySegment segment) { return VkClearColorValue.get_uint32(segment, 0L); } /// {@return `uint32` at the given index} /// @param index the index - public @CType("uint32_t") int uint32At(long index) { return VkClearColorValue.get_uint32(this.segment(), index); } + public @CType("uint32_t[4]") java.lang.foreign.MemorySegment uint32At(long index) { return VkClearColorValue.get_uint32(this.segment(), index); } /// {@return `uint32`} - public @CType("uint32_t") int uint32() { return VkClearColorValue.get_uint32(this.segment()); } + public @CType("uint32_t[4]") java.lang.foreign.MemorySegment uint32() { return VkClearColorValue.get_uint32(this.segment()); } /// Sets `uint32` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value - public static void set_uint32(MemorySegment segment, long index, @CType("uint32_t") int value) { VH_uint32.set(segment, 0L, index, value); } + public static void set_uint32(MemorySegment segment, long index, @CType("uint32_t[4]") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_uint32, index), ML_uint32.byteSize()); } /// Sets `uint32` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value - public static void set_uint32(MemorySegment segment, @CType("uint32_t") int value) { VkClearColorValue.set_uint32(segment, 0L, value); } + public static void set_uint32(MemorySegment segment, @CType("uint32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_uint32(segment, 0L, value); } /// Sets `uint32` with the given value at the given index. /// @param index the index /// @param value the value /// @return `this` - public VkClearColorValue uint32At(long index, @CType("uint32_t") int value) { VkClearColorValue.set_uint32(this.segment(), index, value); return this; } + public VkClearColorValue uint32At(long index, @CType("uint32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_uint32(this.segment(), index, value); return this; } /// Sets `uint32` with the given value. /// @param value the value /// @return `this` - public VkClearColorValue uint32(@CType("uint32_t") int value) { VkClearColorValue.set_uint32(this.segment(), value); return this; } + public VkClearColorValue uint32(@CType("uint32_t[4]") java.lang.foreign.MemorySegment value) { VkClearColorValue.set_uint32(this.segment(), value); return this; } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearValue.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearValue.java index c19a2642..96dd40bd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearValue.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/union/VkClearValue.java @@ -87,12 +87,23 @@ public final class VkClearValue extends Union { /// @return the allocated `VkClearValue` public static VkClearValue alloc(SegmentAllocator allocator, long count) { return new VkClearValue(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkClearValue`. + /// @param index the index of the union buffer + /// @return the slice of `VkClearValue` + public VkClearValue asSlice(long index) { return new VkClearValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkClearValue`. + /// @param index the index of the union buffer + /// @param count the count + /// @return the slice of `VkClearValue` + public VkClearValue asSlice(long index, long count) { return new VkClearValue(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `color` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkClearColorValue") java.lang.foreign.MemorySegment get_color(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_color, index), ML_color); } /// {@return `color`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkClearColorValue") java.lang.foreign.MemorySegment get_color(MemorySegment segment) { return VkClearValue.get_color(segment, 0L); } /// {@return `color` at the given index} /// @param index the index @@ -100,12 +111,12 @@ public final class VkClearValue extends Union { /// {@return `color`} public @CType("VkClearColorValue") java.lang.foreign.MemorySegment color() { return VkClearValue.get_color(this.segment()); } /// Sets `color` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_color(MemorySegment segment, long index, @CType("VkClearColorValue") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_color, index), ML_color.byteSize()); } /// Sets `color` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_color(MemorySegment segment, @CType("VkClearColorValue") java.lang.foreign.MemorySegment value) { VkClearValue.set_color(segment, 0L, value); } /// Sets `color` with the given value at the given index. @@ -119,11 +130,11 @@ public final class VkClearValue extends Union { public VkClearValue color(@CType("VkClearColorValue") java.lang.foreign.MemorySegment value) { VkClearValue.set_color(this.segment(), value); return this; } /// {@return `depthStencil` at the given index} - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index public static @CType("VkClearDepthStencilValue") java.lang.foreign.MemorySegment get_depthStencil(MemorySegment segment, long index) { return segment.asSlice(LAYOUT.scale(OFFSET_depthStencil, index), ML_depthStencil); } /// {@return `depthStencil`} - /// @param segment the segment of the struct + /// @param segment the segment of the union public static @CType("VkClearDepthStencilValue") java.lang.foreign.MemorySegment get_depthStencil(MemorySegment segment) { return VkClearValue.get_depthStencil(segment, 0L); } /// {@return `depthStencil` at the given index} /// @param index the index @@ -131,12 +142,12 @@ public final class VkClearValue extends Union { /// {@return `depthStencil`} public @CType("VkClearDepthStencilValue") java.lang.foreign.MemorySegment depthStencil() { return VkClearValue.get_depthStencil(this.segment()); } /// Sets `depthStencil` with the given value at the given index. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param index the index /// @param value the value public static void set_depthStencil(MemorySegment segment, long index, @CType("VkClearDepthStencilValue") java.lang.foreign.MemorySegment value) { MemorySegment.copy(value, 0L, segment, LAYOUT.scale(OFFSET_depthStencil, index), ML_depthStencil.byteSize()); } /// Sets `depthStencil` with the given value. - /// @param segment the segment of the struct + /// @param segment the segment of the union /// @param value the value public static void set_depthStencil(MemorySegment segment, @CType("VkClearDepthStencilValue") java.lang.foreign.MemorySegment value) { VkClearValue.set_depthStencil(segment, 0L, value); } /// Sets `depthStencil` with the given value at the given index. diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/VKVALVEMutableDescriptorType.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/VKVALVEMutableDescriptorType.java index a3bd453d..ed26ef05 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/VKVALVEMutableDescriptorType.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/VKVALVEMutableDescriptorType.java @@ -23,7 +23,7 @@ import overrungl.util.*; import overrungl.vulkan.*; import static overrungl.vulkan.ext.VKEXTMutableDescriptorType.*; -public class VKVALVEMutableDescriptorType { +public final class VKVALVEMutableDescriptorType { public static final int VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION = 1; public static final String VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME = "VK_VALVE_mutable_descriptor_type"; public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_EXT; @@ -32,7 +32,6 @@ public class VKVALVEMutableDescriptorType { public static final int VK_DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_VALVE = VK_DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_EXT; public static final int VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_VALVE = VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT; - public VKVALVEMutableDescriptorType(@CType("VkDevice") MemorySegment device, VKLoadFunc func) { - } + private VKVALVEMutableDescriptorType() { } } diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetBindingReferenceVALVE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetBindingReferenceVALVE.java index 22fd3a44..6152e73b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetBindingReferenceVALVE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetBindingReferenceVALVE.java @@ -95,6 +95,17 @@ public final class VkDescriptorSetBindingReferenceVALVE extends Struct { /// @return the allocated `VkDescriptorSetBindingReferenceVALVE` public static VkDescriptorSetBindingReferenceVALVE alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetBindingReferenceVALVE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetBindingReferenceVALVE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetBindingReferenceVALVE` + public VkDescriptorSetBindingReferenceVALVE asSlice(long index) { return new VkDescriptorSetBindingReferenceVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetBindingReferenceVALVE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetBindingReferenceVALVE` + public VkDescriptorSetBindingReferenceVALVE asSlice(long index, long count) { return new VkDescriptorSetBindingReferenceVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetLayoutHostMappingInfoVALVE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetLayoutHostMappingInfoVALVE.java index 398f327d..ef82599f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetLayoutHostMappingInfoVALVE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkDescriptorSetLayoutHostMappingInfoVALVE.java @@ -95,6 +95,17 @@ public final class VkDescriptorSetLayoutHostMappingInfoVALVE extends Struct { /// @return the allocated `VkDescriptorSetLayoutHostMappingInfoVALVE` public static VkDescriptorSetLayoutHostMappingInfoVALVE alloc(SegmentAllocator allocator, long count) { return new VkDescriptorSetLayoutHostMappingInfoVALVE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkDescriptorSetLayoutHostMappingInfoVALVE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkDescriptorSetLayoutHostMappingInfoVALVE` + public VkDescriptorSetLayoutHostMappingInfoVALVE asSlice(long index) { return new VkDescriptorSetLayoutHostMappingInfoVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkDescriptorSetLayoutHostMappingInfoVALVE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkDescriptorSetLayoutHostMappingInfoVALVE` + public VkDescriptorSetLayoutHostMappingInfoVALVE asSlice(long index, long count) { return new VkDescriptorSetLayoutHostMappingInfoVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE.java index 46ba3e07..0d8fa4eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/valve/struct/VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE.java @@ -89,6 +89,17 @@ public final class VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE extends /// @return the allocated `VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE` public static VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE alloc(SegmentAllocator allocator, long count) { return new VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE`. + /// @param index the index of the struct buffer + /// @return the slice of `VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE` + public VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE asSlice(long index) { return new VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE` + public VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE asSlice(long index, long count) { return new VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1CDEF.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1CDEF.java index 58628eb0..bda27e77 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1CDEF.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1CDEF.java @@ -107,6 +107,17 @@ public final class StdVideoAV1CDEF extends Struct { /// @return the allocated `StdVideoAV1CDEF` public static StdVideoAV1CDEF alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1CDEF(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1CDEF`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1CDEF` + public StdVideoAV1CDEF asSlice(long index) { return new StdVideoAV1CDEF(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1CDEF`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1CDEF` + public StdVideoAV1CDEF asSlice(long index, long count) { return new StdVideoAV1CDEF(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `cdef_damping_minus_3` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfig.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfig.java index b5cef0e7..4bd31863 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfig.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfig.java @@ -125,6 +125,17 @@ public final class StdVideoAV1ColorConfig extends Struct { /// @return the allocated `StdVideoAV1ColorConfig` public static StdVideoAV1ColorConfig alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1ColorConfig(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1ColorConfig`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1ColorConfig` + public StdVideoAV1ColorConfig asSlice(long index) { return new StdVideoAV1ColorConfig(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1ColorConfig`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1ColorConfig` + public StdVideoAV1ColorConfig asSlice(long index, long count) { return new StdVideoAV1ColorConfig(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfigFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfigFlags.java index ef9cdef1..2fe4adc5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfigFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1ColorConfigFlags.java @@ -101,6 +101,17 @@ public final class StdVideoAV1ColorConfigFlags extends Struct { /// @return the allocated `StdVideoAV1ColorConfigFlags` public static StdVideoAV1ColorConfigFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1ColorConfigFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1ColorConfigFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1ColorConfigFlags` + public StdVideoAV1ColorConfigFlags asSlice(long index) { return new StdVideoAV1ColorConfigFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1ColorConfigFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1ColorConfigFlags` + public StdVideoAV1ColorConfigFlags asSlice(long index, long count) { return new StdVideoAV1ColorConfigFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `mono_chrome` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrain.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrain.java index 2169f417..6baeafc1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrain.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrain.java @@ -221,6 +221,17 @@ public final class StdVideoAV1FilmGrain extends Struct { /// @return the allocated `StdVideoAV1FilmGrain` public static StdVideoAV1FilmGrain alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1FilmGrain(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1FilmGrain`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1FilmGrain` + public StdVideoAV1FilmGrain asSlice(long index) { return new StdVideoAV1FilmGrain(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1FilmGrain`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1FilmGrain` + public StdVideoAV1FilmGrain asSlice(long index, long count) { return new StdVideoAV1FilmGrain(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrainFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrainFlags.java index 92a87002..91a7175d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrainFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1FilmGrainFlags.java @@ -101,6 +101,17 @@ public final class StdVideoAV1FilmGrainFlags extends Struct { /// @return the allocated `StdVideoAV1FilmGrainFlags` public static StdVideoAV1FilmGrainFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1FilmGrainFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1FilmGrainFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1FilmGrainFlags` + public StdVideoAV1FilmGrainFlags asSlice(long index) { return new StdVideoAV1FilmGrainFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1FilmGrainFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1FilmGrainFlags` + public StdVideoAV1FilmGrainFlags asSlice(long index, long count) { return new StdVideoAV1FilmGrainFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `chroma_scaling_from_luma` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1GlobalMotion.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1GlobalMotion.java index 22153d57..ecc1cbfa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1GlobalMotion.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1GlobalMotion.java @@ -83,6 +83,17 @@ public final class StdVideoAV1GlobalMotion extends Struct { /// @return the allocated `StdVideoAV1GlobalMotion` public static StdVideoAV1GlobalMotion alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1GlobalMotion(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1GlobalMotion`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1GlobalMotion` + public StdVideoAV1GlobalMotion asSlice(long index) { return new StdVideoAV1GlobalMotion(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1GlobalMotion`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1GlobalMotion` + public StdVideoAV1GlobalMotion asSlice(long index, long count) { return new StdVideoAV1GlobalMotion(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `GmType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilter.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilter.java index 9c778e67..eefcec20 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilter.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilter.java @@ -113,6 +113,17 @@ public final class StdVideoAV1LoopFilter extends Struct { /// @return the allocated `StdVideoAV1LoopFilter` public static StdVideoAV1LoopFilter alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1LoopFilter(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1LoopFilter`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1LoopFilter` + public StdVideoAV1LoopFilter asSlice(long index) { return new StdVideoAV1LoopFilter(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1LoopFilter`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1LoopFilter` + public StdVideoAV1LoopFilter asSlice(long index, long count) { return new StdVideoAV1LoopFilter(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilterFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilterFlags.java index 1766fba2..e90255b0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilterFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopFilterFlags.java @@ -89,6 +89,17 @@ public final class StdVideoAV1LoopFilterFlags extends Struct { /// @return the allocated `StdVideoAV1LoopFilterFlags` public static StdVideoAV1LoopFilterFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1LoopFilterFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1LoopFilterFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1LoopFilterFlags` + public StdVideoAV1LoopFilterFlags asSlice(long index) { return new StdVideoAV1LoopFilterFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1LoopFilterFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1LoopFilterFlags` + public StdVideoAV1LoopFilterFlags asSlice(long index, long count) { return new StdVideoAV1LoopFilterFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `loop_filter_delta_enabled` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopRestoration.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopRestoration.java index 86a0cb1e..665bf79a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopRestoration.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1LoopRestoration.java @@ -83,6 +83,17 @@ public final class StdVideoAV1LoopRestoration extends Struct { /// @return the allocated `StdVideoAV1LoopRestoration` public static StdVideoAV1LoopRestoration alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1LoopRestoration(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1LoopRestoration`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1LoopRestoration` + public StdVideoAV1LoopRestoration asSlice(long index) { return new StdVideoAV1LoopRestoration(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1LoopRestoration`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1LoopRestoration` + public StdVideoAV1LoopRestoration asSlice(long index, long count) { return new StdVideoAV1LoopRestoration(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `FrameRestorationType` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Quantization.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Quantization.java index 0da88dea..a885c52c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Quantization.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Quantization.java @@ -131,6 +131,17 @@ public final class StdVideoAV1Quantization extends Struct { /// @return the allocated `StdVideoAV1Quantization` public static StdVideoAV1Quantization alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1Quantization(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1Quantization`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1Quantization` + public StdVideoAV1Quantization asSlice(long index) { return new StdVideoAV1Quantization(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1Quantization`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1Quantization` + public StdVideoAV1Quantization asSlice(long index, long count) { return new StdVideoAV1Quantization(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1QuantizationFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1QuantizationFlags.java index 02c03ecf..6ea65b2d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1QuantizationFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1QuantizationFlags.java @@ -89,6 +89,17 @@ public final class StdVideoAV1QuantizationFlags extends Struct { /// @return the allocated `StdVideoAV1QuantizationFlags` public static StdVideoAV1QuantizationFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1QuantizationFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1QuantizationFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1QuantizationFlags` + public StdVideoAV1QuantizationFlags asSlice(long index) { return new StdVideoAV1QuantizationFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1QuantizationFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1QuantizationFlags` + public StdVideoAV1QuantizationFlags asSlice(long index, long count) { return new StdVideoAV1QuantizationFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `using_qmatrix` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Segmentation.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Segmentation.java index c642b110..9ca3d7b7 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Segmentation.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1Segmentation.java @@ -83,6 +83,17 @@ public final class StdVideoAV1Segmentation extends Struct { /// @return the allocated `StdVideoAV1Segmentation` public static StdVideoAV1Segmentation alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1Segmentation(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1Segmentation`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1Segmentation` + public StdVideoAV1Segmentation asSlice(long index) { return new StdVideoAV1Segmentation(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1Segmentation`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1Segmentation` + public StdVideoAV1Segmentation asSlice(long index, long count) { return new StdVideoAV1Segmentation(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `FeatureEnabled` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeader.java index bd6591b8..0186be29 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeader.java @@ -155,6 +155,17 @@ public final class StdVideoAV1SequenceHeader extends Struct { /// @return the allocated `StdVideoAV1SequenceHeader` public static StdVideoAV1SequenceHeader alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1SequenceHeader(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1SequenceHeader`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1SequenceHeader` + public StdVideoAV1SequenceHeader asSlice(long index) { return new StdVideoAV1SequenceHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1SequenceHeader`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1SequenceHeader` + public StdVideoAV1SequenceHeader asSlice(long index, long count) { return new StdVideoAV1SequenceHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeaderFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeaderFlags.java index 928172b5..2f911feb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeaderFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1SequenceHeaderFlags.java @@ -191,6 +191,17 @@ public final class StdVideoAV1SequenceHeaderFlags extends Struct { /// @return the allocated `StdVideoAV1SequenceHeaderFlags` public static StdVideoAV1SequenceHeaderFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1SequenceHeaderFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1SequenceHeaderFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1SequenceHeaderFlags` + public StdVideoAV1SequenceHeaderFlags asSlice(long index) { return new StdVideoAV1SequenceHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1SequenceHeaderFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1SequenceHeaderFlags` + public StdVideoAV1SequenceHeaderFlags asSlice(long index, long count) { return new StdVideoAV1SequenceHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `still_picture` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfo.java index ca6393a3..d7b31e67 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfo.java @@ -131,6 +131,17 @@ public final class StdVideoAV1TileInfo extends Struct { /// @return the allocated `StdVideoAV1TileInfo` public static StdVideoAV1TileInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1TileInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1TileInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1TileInfo` + public StdVideoAV1TileInfo asSlice(long index) { return new StdVideoAV1TileInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1TileInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1TileInfo` + public StdVideoAV1TileInfo asSlice(long index, long count) { return new StdVideoAV1TileInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfoFlags.java index e73f16e9..702b9a66 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TileInfoFlags.java @@ -83,6 +83,17 @@ public final class StdVideoAV1TileInfoFlags extends Struct { /// @return the allocated `StdVideoAV1TileInfoFlags` public static StdVideoAV1TileInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1TileInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1TileInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1TileInfoFlags` + public StdVideoAV1TileInfoFlags asSlice(long index) { return new StdVideoAV1TileInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1TileInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1TileInfoFlags` + public StdVideoAV1TileInfoFlags asSlice(long index, long count) { return new StdVideoAV1TileInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `uniform_tile_spacing_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfo.java index 0fea9165..f43cc949 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfo.java @@ -95,6 +95,17 @@ public final class StdVideoAV1TimingInfo extends Struct { /// @return the allocated `StdVideoAV1TimingInfo` public static StdVideoAV1TimingInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1TimingInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1TimingInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1TimingInfo` + public StdVideoAV1TimingInfo asSlice(long index) { return new StdVideoAV1TimingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1TimingInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1TimingInfo` + public StdVideoAV1TimingInfo asSlice(long index, long count) { return new StdVideoAV1TimingInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfoFlags.java index 125e0ba9..24f76e3e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoAV1TimingInfoFlags.java @@ -83,6 +83,17 @@ public final class StdVideoAV1TimingInfoFlags extends Struct { /// @return the allocated `StdVideoAV1TimingInfoFlags` public static StdVideoAV1TimingInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoAV1TimingInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoAV1TimingInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoAV1TimingInfoFlags` + public StdVideoAV1TimingInfoFlags asSlice(long index) { return new StdVideoAV1TimingInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoAV1TimingInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoAV1TimingInfoFlags` + public StdVideoAV1TimingInfoFlags asSlice(long index, long count) { return new StdVideoAV1TimingInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `equal_picture_interval` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfo.java index f0311723..bdf0bf6a 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfo.java @@ -215,6 +215,17 @@ public final class StdVideoDecodeAV1PictureInfo extends Struct { /// @return the allocated `StdVideoDecodeAV1PictureInfo` public static StdVideoDecodeAV1PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeAV1PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeAV1PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeAV1PictureInfo` + public StdVideoDecodeAV1PictureInfo asSlice(long index) { return new StdVideoDecodeAV1PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeAV1PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeAV1PictureInfo` + public StdVideoDecodeAV1PictureInfo asSlice(long index, long count) { return new StdVideoDecodeAV1PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfoFlags.java index 0cc81ff7..1ef32a3c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1PictureInfoFlags.java @@ -251,6 +251,17 @@ public final class StdVideoDecodeAV1PictureInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeAV1PictureInfoFlags` public static StdVideoDecodeAV1PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeAV1PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeAV1PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeAV1PictureInfoFlags` + public StdVideoDecodeAV1PictureInfoFlags asSlice(long index) { return new StdVideoDecodeAV1PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeAV1PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeAV1PictureInfoFlags` + public StdVideoDecodeAV1PictureInfoFlags asSlice(long index, long count) { return new StdVideoDecodeAV1PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `error_resilient_mode` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfo.java index a86f64a6..04e961fe 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfo.java @@ -101,6 +101,17 @@ public final class StdVideoDecodeAV1ReferenceInfo extends Struct { /// @return the allocated `StdVideoDecodeAV1ReferenceInfo` public static StdVideoDecodeAV1ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeAV1ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeAV1ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeAV1ReferenceInfo` + public StdVideoDecodeAV1ReferenceInfo asSlice(long index) { return new StdVideoDecodeAV1ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeAV1ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeAV1ReferenceInfo` + public StdVideoDecodeAV1ReferenceInfo asSlice(long index, long count) { return new StdVideoDecodeAV1ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfoFlags.java index ea7734fb..16c6e4e8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeAV1ReferenceInfoFlags.java @@ -89,6 +89,17 @@ public final class StdVideoDecodeAV1ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeAV1ReferenceInfoFlags` public static StdVideoDecodeAV1ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeAV1ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeAV1ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeAV1ReferenceInfoFlags` + public StdVideoDecodeAV1ReferenceInfoFlags asSlice(long index) { return new StdVideoDecodeAV1ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeAV1ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeAV1ReferenceInfoFlags` + public StdVideoDecodeAV1ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoDecodeAV1ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `disable_frame_end_update_cdf` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfo.java index 0a8a2425..bae49274 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfo.java @@ -119,6 +119,17 @@ public final class StdVideoDecodeH264PictureInfo extends Struct { /// @return the allocated `StdVideoDecodeH264PictureInfo` public static StdVideoDecodeH264PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH264PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH264PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH264PictureInfo` + public StdVideoDecodeH264PictureInfo asSlice(long index) { return new StdVideoDecodeH264PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH264PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH264PictureInfo` + public StdVideoDecodeH264PictureInfo asSlice(long index, long count) { return new StdVideoDecodeH264PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfoFlags.java index ad2cea82..3ccd8459 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264PictureInfoFlags.java @@ -107,6 +107,17 @@ public final class StdVideoDecodeH264PictureInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeH264PictureInfoFlags` public static StdVideoDecodeH264PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH264PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH264PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH264PictureInfoFlags` + public StdVideoDecodeH264PictureInfoFlags asSlice(long index) { return new StdVideoDecodeH264PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH264PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH264PictureInfoFlags` + public StdVideoDecodeH264PictureInfoFlags asSlice(long index, long count) { return new StdVideoDecodeH264PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `field_pic_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfo.java index 6af4e343..cbef464d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfo.java @@ -95,6 +95,17 @@ public final class StdVideoDecodeH264ReferenceInfo extends Struct { /// @return the allocated `StdVideoDecodeH264ReferenceInfo` public static StdVideoDecodeH264ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH264ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH264ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH264ReferenceInfo` + public StdVideoDecodeH264ReferenceInfo asSlice(long index) { return new StdVideoDecodeH264ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH264ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH264ReferenceInfo` + public StdVideoDecodeH264ReferenceInfo asSlice(long index, long count) { return new StdVideoDecodeH264ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfoFlags.java index 15c04323..bd17c902 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH264ReferenceInfoFlags.java @@ -95,6 +95,17 @@ public final class StdVideoDecodeH264ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeH264ReferenceInfoFlags` public static StdVideoDecodeH264ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH264ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH264ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH264ReferenceInfoFlags` + public StdVideoDecodeH264ReferenceInfoFlags asSlice(long index) { return new StdVideoDecodeH264ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH264ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH264ReferenceInfoFlags` + public StdVideoDecodeH264ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoDecodeH264ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `top_field_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfo.java index 02b36b6e..71705601 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfo.java @@ -137,6 +137,17 @@ public final class StdVideoDecodeH265PictureInfo extends Struct { /// @return the allocated `StdVideoDecodeH265PictureInfo` public static StdVideoDecodeH265PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH265PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH265PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH265PictureInfo` + public StdVideoDecodeH265PictureInfo asSlice(long index) { return new StdVideoDecodeH265PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH265PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH265PictureInfo` + public StdVideoDecodeH265PictureInfo asSlice(long index, long count) { return new StdVideoDecodeH265PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfoFlags.java index fca8628f..b19a459b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265PictureInfoFlags.java @@ -95,6 +95,17 @@ public final class StdVideoDecodeH265PictureInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeH265PictureInfoFlags` public static StdVideoDecodeH265PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH265PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH265PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH265PictureInfoFlags` + public StdVideoDecodeH265PictureInfoFlags asSlice(long index) { return new StdVideoDecodeH265PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH265PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH265PictureInfoFlags` + public StdVideoDecodeH265PictureInfoFlags asSlice(long index, long count) { return new StdVideoDecodeH265PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `IrapPicFlag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfo.java index 792d6269..8086a848 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfo.java @@ -83,6 +83,17 @@ public final class StdVideoDecodeH265ReferenceInfo extends Struct { /// @return the allocated `StdVideoDecodeH265ReferenceInfo` public static StdVideoDecodeH265ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH265ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH265ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH265ReferenceInfo` + public StdVideoDecodeH265ReferenceInfo asSlice(long index) { return new StdVideoDecodeH265ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH265ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH265ReferenceInfo` + public StdVideoDecodeH265ReferenceInfo asSlice(long index, long count) { return new StdVideoDecodeH265ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfoFlags.java index 82891679..ebad0ecd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoDecodeH265ReferenceInfoFlags.java @@ -83,6 +83,17 @@ public final class StdVideoDecodeH265ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoDecodeH265ReferenceInfoFlags` public static StdVideoDecodeH265ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoDecodeH265ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoDecodeH265ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoDecodeH265ReferenceInfoFlags` + public StdVideoDecodeH265ReferenceInfoFlags asSlice(long index) { return new StdVideoDecodeH265ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoDecodeH265ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoDecodeH265ReferenceInfoFlags` + public StdVideoDecodeH265ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoDecodeH265ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `used_for_long_term_reference` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1DecoderModelInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1DecoderModelInfo.java index 81ef0168..0f4aefcc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1DecoderModelInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1DecoderModelInfo.java @@ -101,6 +101,17 @@ public final class StdVideoEncodeAV1DecoderModelInfo extends Struct { /// @return the allocated `StdVideoEncodeAV1DecoderModelInfo` public static StdVideoEncodeAV1DecoderModelInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1DecoderModelInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1DecoderModelInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1DecoderModelInfo` + public StdVideoEncodeAV1DecoderModelInfo asSlice(long index) { return new StdVideoEncodeAV1DecoderModelInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1DecoderModelInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1DecoderModelInfo` + public StdVideoEncodeAV1DecoderModelInfo asSlice(long index, long count) { return new StdVideoEncodeAV1DecoderModelInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `buffer_delay_length_minus_1` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ExtensionHeader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ExtensionHeader.java index f3e74b6f..614d056c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ExtensionHeader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ExtensionHeader.java @@ -83,6 +83,17 @@ public final class StdVideoEncodeAV1ExtensionHeader extends Struct { /// @return the allocated `StdVideoEncodeAV1ExtensionHeader` public static StdVideoEncodeAV1ExtensionHeader alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1ExtensionHeader(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1ExtensionHeader`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1ExtensionHeader` + public StdVideoEncodeAV1ExtensionHeader asSlice(long index) { return new StdVideoEncodeAV1ExtensionHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1ExtensionHeader`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1ExtensionHeader` + public StdVideoEncodeAV1ExtensionHeader asSlice(long index, long count) { return new StdVideoEncodeAV1ExtensionHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `temporal_id` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfo.java index 9fe74283..acf144a3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfo.java @@ -113,6 +113,17 @@ public final class StdVideoEncodeAV1OperatingPointInfo extends Struct { /// @return the allocated `StdVideoEncodeAV1OperatingPointInfo` public static StdVideoEncodeAV1OperatingPointInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1OperatingPointInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1OperatingPointInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1OperatingPointInfo` + public StdVideoEncodeAV1OperatingPointInfo asSlice(long index) { return new StdVideoEncodeAV1OperatingPointInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1OperatingPointInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1OperatingPointInfo` + public StdVideoEncodeAV1OperatingPointInfo asSlice(long index, long count) { return new StdVideoEncodeAV1OperatingPointInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfoFlags.java index 329c9504..23891e69 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1OperatingPointInfoFlags.java @@ -95,6 +95,17 @@ public final class StdVideoEncodeAV1OperatingPointInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeAV1OperatingPointInfoFlags` public static StdVideoEncodeAV1OperatingPointInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1OperatingPointInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1OperatingPointInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1OperatingPointInfoFlags` + public StdVideoEncodeAV1OperatingPointInfoFlags asSlice(long index) { return new StdVideoEncodeAV1OperatingPointInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1OperatingPointInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1OperatingPointInfoFlags` + public StdVideoEncodeAV1OperatingPointInfoFlags asSlice(long index, long count) { return new StdVideoEncodeAV1OperatingPointInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `decoder_model_present_for_this_op` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfo.java index 49f71e7a..f18578f5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfo.java @@ -233,6 +233,17 @@ public final class StdVideoEncodeAV1PictureInfo extends Struct { /// @return the allocated `StdVideoEncodeAV1PictureInfo` public static StdVideoEncodeAV1PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1PictureInfo` + public StdVideoEncodeAV1PictureInfo asSlice(long index) { return new StdVideoEncodeAV1PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1PictureInfo` + public StdVideoEncodeAV1PictureInfo asSlice(long index, long count) { return new StdVideoEncodeAV1PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfoFlags.java index 1c3fd3f3..2f9704a0 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1PictureInfoFlags.java @@ -251,6 +251,17 @@ public final class StdVideoEncodeAV1PictureInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeAV1PictureInfoFlags` public static StdVideoEncodeAV1PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1PictureInfoFlags` + public StdVideoEncodeAV1PictureInfoFlags asSlice(long index) { return new StdVideoEncodeAV1PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1PictureInfoFlags` + public StdVideoEncodeAV1PictureInfoFlags asSlice(long index, long count) { return new StdVideoEncodeAV1PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `error_resilient_mode` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfo.java index ad991483..e3fe13e1 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfo.java @@ -107,6 +107,17 @@ public final class StdVideoEncodeAV1ReferenceInfo extends Struct { /// @return the allocated `StdVideoEncodeAV1ReferenceInfo` public static StdVideoEncodeAV1ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1ReferenceInfo` + public StdVideoEncodeAV1ReferenceInfo asSlice(long index) { return new StdVideoEncodeAV1ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1ReferenceInfo` + public StdVideoEncodeAV1ReferenceInfo asSlice(long index, long count) { return new StdVideoEncodeAV1ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfoFlags.java index 73e4f28d..4f2e86eb 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeAV1ReferenceInfoFlags.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeAV1ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeAV1ReferenceInfoFlags` public static StdVideoEncodeAV1ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeAV1ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeAV1ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeAV1ReferenceInfoFlags` + public StdVideoEncodeAV1ReferenceInfoFlags asSlice(long index) { return new StdVideoEncodeAV1ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeAV1ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeAV1ReferenceInfoFlags` + public StdVideoEncodeAV1ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoEncodeAV1ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `disable_frame_end_update_cdf` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfo.java index 4b0d9ad1..e963f1ec 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfo.java @@ -131,6 +131,17 @@ public final class StdVideoEncodeH264PictureInfo extends Struct { /// @return the allocated `StdVideoEncodeH264PictureInfo` public static StdVideoEncodeH264PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264PictureInfo` + public StdVideoEncodeH264PictureInfo asSlice(long index) { return new StdVideoEncodeH264PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264PictureInfo` + public StdVideoEncodeH264PictureInfo asSlice(long index, long count) { return new StdVideoEncodeH264PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfoFlags.java index d9421a8f..7a629a03 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264PictureInfoFlags.java @@ -107,6 +107,17 @@ public final class StdVideoEncodeH264PictureInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH264PictureInfoFlags` public static StdVideoEncodeH264PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264PictureInfoFlags` + public StdVideoEncodeH264PictureInfoFlags asSlice(long index) { return new StdVideoEncodeH264PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264PictureInfoFlags` + public StdVideoEncodeH264PictureInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH264PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `IdrPicFlag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefListModEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefListModEntry.java index 8748b7dd..38fba7e2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefListModEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefListModEntry.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeH264RefListModEntry extends Struct { /// @return the allocated `StdVideoEncodeH264RefListModEntry` public static StdVideoEncodeH264RefListModEntry alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264RefListModEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264RefListModEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264RefListModEntry` + public StdVideoEncodeH264RefListModEntry asSlice(long index) { return new StdVideoEncodeH264RefListModEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264RefListModEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264RefListModEntry` + public StdVideoEncodeH264RefListModEntry asSlice(long index, long count) { return new StdVideoEncodeH264RefListModEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `modification_of_pic_nums_idc` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefPicMarkingEntry.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefPicMarkingEntry.java index 56e20d46..9bc5639c 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefPicMarkingEntry.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264RefPicMarkingEntry.java @@ -101,6 +101,17 @@ public final class StdVideoEncodeH264RefPicMarkingEntry extends Struct { /// @return the allocated `StdVideoEncodeH264RefPicMarkingEntry` public static StdVideoEncodeH264RefPicMarkingEntry alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264RefPicMarkingEntry(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264RefPicMarkingEntry`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264RefPicMarkingEntry` + public StdVideoEncodeH264RefPicMarkingEntry asSlice(long index) { return new StdVideoEncodeH264RefPicMarkingEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264RefPicMarkingEntry`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264RefPicMarkingEntry` + public StdVideoEncodeH264RefPicMarkingEntry asSlice(long index, long count) { return new StdVideoEncodeH264RefPicMarkingEntry(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `memory_management_control_operation` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfo.java index 99cb8566..964bd316 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfo.java @@ -113,6 +113,17 @@ public final class StdVideoEncodeH264ReferenceInfo extends Struct { /// @return the allocated `StdVideoEncodeH264ReferenceInfo` public static StdVideoEncodeH264ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264ReferenceInfo` + public StdVideoEncodeH264ReferenceInfo asSlice(long index) { return new StdVideoEncodeH264ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264ReferenceInfo` + public StdVideoEncodeH264ReferenceInfo asSlice(long index, long count) { return new StdVideoEncodeH264ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfoFlags.java index 692c9c73..a3c2ef86 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceInfoFlags.java @@ -83,6 +83,17 @@ public final class StdVideoEncodeH264ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH264ReferenceInfoFlags` public static StdVideoEncodeH264ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264ReferenceInfoFlags` + public StdVideoEncodeH264ReferenceInfoFlags asSlice(long index) { return new StdVideoEncodeH264ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264ReferenceInfoFlags` + public StdVideoEncodeH264ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH264ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `used_for_long_term_reference` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfo.java index 8ec5b535..913bd2e5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfo.java @@ -143,6 +143,17 @@ public final class StdVideoEncodeH264ReferenceListsInfo extends Struct { /// @return the allocated `StdVideoEncodeH264ReferenceListsInfo` public static StdVideoEncodeH264ReferenceListsInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264ReferenceListsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264ReferenceListsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264ReferenceListsInfo` + public StdVideoEncodeH264ReferenceListsInfo asSlice(long index) { return new StdVideoEncodeH264ReferenceListsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264ReferenceListsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264ReferenceListsInfo` + public StdVideoEncodeH264ReferenceListsInfo asSlice(long index, long count) { return new StdVideoEncodeH264ReferenceListsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfoFlags.java index 2abdd182..b7a3af41 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264ReferenceListsInfoFlags.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeH264ReferenceListsInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH264ReferenceListsInfoFlags` public static StdVideoEncodeH264ReferenceListsInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264ReferenceListsInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264ReferenceListsInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264ReferenceListsInfoFlags` + public StdVideoEncodeH264ReferenceListsInfoFlags asSlice(long index) { return new StdVideoEncodeH264ReferenceListsInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264ReferenceListsInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264ReferenceListsInfoFlags` + public StdVideoEncodeH264ReferenceListsInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH264ReferenceListsInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `ref_pic_list_modification_flag_l0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeader.java index 352fad7e..0320dd92 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeader.java @@ -131,6 +131,17 @@ public final class StdVideoEncodeH264SliceHeader extends Struct { /// @return the allocated `StdVideoEncodeH264SliceHeader` public static StdVideoEncodeH264SliceHeader alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264SliceHeader(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264SliceHeader`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264SliceHeader` + public StdVideoEncodeH264SliceHeader asSlice(long index) { return new StdVideoEncodeH264SliceHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264SliceHeader`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264SliceHeader` + public StdVideoEncodeH264SliceHeader asSlice(long index, long count) { return new StdVideoEncodeH264SliceHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeaderFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeaderFlags.java index eaa1191e..83ed9861 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeaderFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264SliceHeaderFlags.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeH264SliceHeaderFlags extends Struct { /// @return the allocated `StdVideoEncodeH264SliceHeaderFlags` public static StdVideoEncodeH264SliceHeaderFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264SliceHeaderFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264SliceHeaderFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264SliceHeaderFlags` + public StdVideoEncodeH264SliceHeaderFlags asSlice(long index) { return new StdVideoEncodeH264SliceHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264SliceHeaderFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264SliceHeaderFlags` + public StdVideoEncodeH264SliceHeaderFlags asSlice(long index, long count) { return new StdVideoEncodeH264SliceHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `direct_spatial_mv_pred_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTable.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTable.java index 1d94c59f..4d9ec8b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTable.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTable.java @@ -137,6 +137,17 @@ public final class StdVideoEncodeH264WeightTable extends Struct { /// @return the allocated `StdVideoEncodeH264WeightTable` public static StdVideoEncodeH264WeightTable alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264WeightTable(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264WeightTable`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264WeightTable` + public StdVideoEncodeH264WeightTable asSlice(long index) { return new StdVideoEncodeH264WeightTable(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264WeightTable`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264WeightTable` + public StdVideoEncodeH264WeightTable asSlice(long index, long count) { return new StdVideoEncodeH264WeightTable(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTableFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTableFlags.java index 11dc49df..f6b5c2d9 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTableFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH264WeightTableFlags.java @@ -95,6 +95,17 @@ public final class StdVideoEncodeH264WeightTableFlags extends Struct { /// @return the allocated `StdVideoEncodeH264WeightTableFlags` public static StdVideoEncodeH264WeightTableFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH264WeightTableFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH264WeightTableFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH264WeightTableFlags` + public StdVideoEncodeH264WeightTableFlags asSlice(long index) { return new StdVideoEncodeH264WeightTableFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH264WeightTableFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH264WeightTableFlags` + public StdVideoEncodeH264WeightTableFlags asSlice(long index, long count) { return new StdVideoEncodeH264WeightTableFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `luma_weight_l0_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265LongTermRefPics.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265LongTermRefPics.java index 26cead2d..1ee89c60 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265LongTermRefPics.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265LongTermRefPics.java @@ -113,6 +113,17 @@ public final class StdVideoEncodeH265LongTermRefPics extends Struct { /// @return the allocated `StdVideoEncodeH265LongTermRefPics` public static StdVideoEncodeH265LongTermRefPics alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265LongTermRefPics(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265LongTermRefPics`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265LongTermRefPics` + public StdVideoEncodeH265LongTermRefPics asSlice(long index) { return new StdVideoEncodeH265LongTermRefPics(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265LongTermRefPics`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265LongTermRefPics` + public StdVideoEncodeH265LongTermRefPics asSlice(long index, long count) { return new StdVideoEncodeH265LongTermRefPics(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `num_long_term_sps` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfo.java index 177c9af7..22b82edf 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfo.java @@ -143,6 +143,17 @@ public final class StdVideoEncodeH265PictureInfo extends Struct { /// @return the allocated `StdVideoEncodeH265PictureInfo` public static StdVideoEncodeH265PictureInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265PictureInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265PictureInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265PictureInfo` + public StdVideoEncodeH265PictureInfo asSlice(long index) { return new StdVideoEncodeH265PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265PictureInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265PictureInfo` + public StdVideoEncodeH265PictureInfo asSlice(long index, long count) { return new StdVideoEncodeH265PictureInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfoFlags.java index db99fe64..64d3efe3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265PictureInfoFlags.java @@ -131,6 +131,17 @@ public final class StdVideoEncodeH265PictureInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH265PictureInfoFlags` public static StdVideoEncodeH265PictureInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265PictureInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265PictureInfoFlags` + public StdVideoEncodeH265PictureInfoFlags asSlice(long index) { return new StdVideoEncodeH265PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265PictureInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265PictureInfoFlags` + public StdVideoEncodeH265PictureInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH265PictureInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `is_reference` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfo.java index 5a748400..0e9664dd 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfo.java @@ -95,6 +95,17 @@ public final class StdVideoEncodeH265ReferenceInfo extends Struct { /// @return the allocated `StdVideoEncodeH265ReferenceInfo` public static StdVideoEncodeH265ReferenceInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265ReferenceInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265ReferenceInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265ReferenceInfo` + public StdVideoEncodeH265ReferenceInfo asSlice(long index) { return new StdVideoEncodeH265ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265ReferenceInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265ReferenceInfo` + public StdVideoEncodeH265ReferenceInfo asSlice(long index, long count) { return new StdVideoEncodeH265ReferenceInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfoFlags.java index 928ef508..f58bc2b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceInfoFlags.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeH265ReferenceInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH265ReferenceInfoFlags` public static StdVideoEncodeH265ReferenceInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265ReferenceInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265ReferenceInfoFlags` + public StdVideoEncodeH265ReferenceInfoFlags asSlice(long index) { return new StdVideoEncodeH265ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265ReferenceInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265ReferenceInfoFlags` + public StdVideoEncodeH265ReferenceInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH265ReferenceInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `used_for_long_term_reference` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfo.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfo.java index 11910dfc..6563df59 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfo.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfo.java @@ -113,6 +113,17 @@ public final class StdVideoEncodeH265ReferenceListsInfo extends Struct { /// @return the allocated `StdVideoEncodeH265ReferenceListsInfo` public static StdVideoEncodeH265ReferenceListsInfo alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265ReferenceListsInfo(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265ReferenceListsInfo`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265ReferenceListsInfo` + public StdVideoEncodeH265ReferenceListsInfo asSlice(long index) { return new StdVideoEncodeH265ReferenceListsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265ReferenceListsInfo`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265ReferenceListsInfo` + public StdVideoEncodeH265ReferenceListsInfo asSlice(long index, long count) { return new StdVideoEncodeH265ReferenceListsInfo(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfoFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfoFlags.java index 2b8a641c..4088a713 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfoFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265ReferenceListsInfoFlags.java @@ -89,6 +89,17 @@ public final class StdVideoEncodeH265ReferenceListsInfoFlags extends Struct { /// @return the allocated `StdVideoEncodeH265ReferenceListsInfoFlags` public static StdVideoEncodeH265ReferenceListsInfoFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265ReferenceListsInfoFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265ReferenceListsInfoFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265ReferenceListsInfoFlags` + public StdVideoEncodeH265ReferenceListsInfoFlags asSlice(long index) { return new StdVideoEncodeH265ReferenceListsInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265ReferenceListsInfoFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265ReferenceListsInfoFlags` + public StdVideoEncodeH265ReferenceListsInfoFlags asSlice(long index, long count) { return new StdVideoEncodeH265ReferenceListsInfoFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `ref_pic_list_modification_flag_l0` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeader.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeader.java index e624079c..1596517e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeader.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeader.java @@ -161,6 +161,17 @@ public final class StdVideoEncodeH265SliceSegmentHeader extends Struct { /// @return the allocated `StdVideoEncodeH265SliceSegmentHeader` public static StdVideoEncodeH265SliceSegmentHeader alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265SliceSegmentHeader(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265SliceSegmentHeader`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265SliceSegmentHeader` + public StdVideoEncodeH265SliceSegmentHeader asSlice(long index) { return new StdVideoEncodeH265SliceSegmentHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265SliceSegmentHeader`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265SliceSegmentHeader` + public StdVideoEncodeH265SliceSegmentHeader asSlice(long index, long count) { return new StdVideoEncodeH265SliceSegmentHeader(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeaderFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeaderFlags.java index ec1a0b99..9dcac523 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeaderFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265SliceSegmentHeaderFlags.java @@ -149,6 +149,17 @@ public final class StdVideoEncodeH265SliceSegmentHeaderFlags extends Struct { /// @return the allocated `StdVideoEncodeH265SliceSegmentHeaderFlags` public static StdVideoEncodeH265SliceSegmentHeaderFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265SliceSegmentHeaderFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265SliceSegmentHeaderFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265SliceSegmentHeaderFlags` + public StdVideoEncodeH265SliceSegmentHeaderFlags asSlice(long index) { return new StdVideoEncodeH265SliceSegmentHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265SliceSegmentHeaderFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265SliceSegmentHeaderFlags` + public StdVideoEncodeH265SliceSegmentHeaderFlags asSlice(long index, long count) { return new StdVideoEncodeH265SliceSegmentHeaderFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `first_slice_segment_in_pic_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTable.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTable.java index ca378530..16bc09aa 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTable.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTable.java @@ -137,6 +137,17 @@ public final class StdVideoEncodeH265WeightTable extends Struct { /// @return the allocated `StdVideoEncodeH265WeightTable` public static StdVideoEncodeH265WeightTable alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265WeightTable(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265WeightTable`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265WeightTable` + public StdVideoEncodeH265WeightTable asSlice(long index) { return new StdVideoEncodeH265WeightTable(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265WeightTable`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265WeightTable` + public StdVideoEncodeH265WeightTable asSlice(long index, long count) { return new StdVideoEncodeH265WeightTable(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTableFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTableFlags.java index 0d88681c..fa4cb4cc 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTableFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoEncodeH265WeightTableFlags.java @@ -95,6 +95,17 @@ public final class StdVideoEncodeH265WeightTableFlags extends Struct { /// @return the allocated `StdVideoEncodeH265WeightTableFlags` public static StdVideoEncodeH265WeightTableFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoEncodeH265WeightTableFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoEncodeH265WeightTableFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoEncodeH265WeightTableFlags` + public StdVideoEncodeH265WeightTableFlags asSlice(long index) { return new StdVideoEncodeH265WeightTableFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoEncodeH265WeightTableFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoEncodeH265WeightTableFlags` + public StdVideoEncodeH265WeightTableFlags asSlice(long index, long count) { return new StdVideoEncodeH265WeightTableFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `luma_weight_l0_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264HrdParameters.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264HrdParameters.java index 8400f459..bf110ed3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264HrdParameters.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264HrdParameters.java @@ -137,6 +137,17 @@ public final class StdVideoH264HrdParameters extends Struct { /// @return the allocated `StdVideoH264HrdParameters` public static StdVideoH264HrdParameters alloc(SegmentAllocator allocator, long count) { return new StdVideoH264HrdParameters(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264HrdParameters`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264HrdParameters` + public StdVideoH264HrdParameters asSlice(long index) { return new StdVideoH264HrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264HrdParameters`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264HrdParameters` + public StdVideoH264HrdParameters asSlice(long index, long count) { return new StdVideoH264HrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `cpb_cnt_minus1` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PictureParameterSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PictureParameterSet.java index c23b0af3..ea1379ea 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PictureParameterSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PictureParameterSet.java @@ -137,6 +137,17 @@ public final class StdVideoH264PictureParameterSet extends Struct { /// @return the allocated `StdVideoH264PictureParameterSet` public static StdVideoH264PictureParameterSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH264PictureParameterSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264PictureParameterSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264PictureParameterSet` + public StdVideoH264PictureParameterSet asSlice(long index) { return new StdVideoH264PictureParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264PictureParameterSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264PictureParameterSet` + public StdVideoH264PictureParameterSet asSlice(long index, long count) { return new StdVideoH264PictureParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PpsFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PpsFlags.java index 3524c154..a048d507 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PpsFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264PpsFlags.java @@ -119,6 +119,17 @@ public final class StdVideoH264PpsFlags extends Struct { /// @return the allocated `StdVideoH264PpsFlags` public static StdVideoH264PpsFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH264PpsFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264PpsFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264PpsFlags` + public StdVideoH264PpsFlags asSlice(long index) { return new StdVideoH264PpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264PpsFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264PpsFlags` + public StdVideoH264PpsFlags asSlice(long index, long count) { return new StdVideoH264PpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `transform_8x8_mode_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264ScalingLists.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264ScalingLists.java index c7315105..5795b5ab 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264ScalingLists.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264ScalingLists.java @@ -95,6 +95,17 @@ public final class StdVideoH264ScalingLists extends Struct { /// @return the allocated `StdVideoH264ScalingLists` public static StdVideoH264ScalingLists alloc(SegmentAllocator allocator, long count) { return new StdVideoH264ScalingLists(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264ScalingLists`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264ScalingLists` + public StdVideoH264ScalingLists asSlice(long index) { return new StdVideoH264ScalingLists(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264ScalingLists`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264ScalingLists` + public StdVideoH264ScalingLists asSlice(long index, long count) { return new StdVideoH264ScalingLists(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `scaling_list_present_mask` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSet.java index 09fb2d09..1429803d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSet.java @@ -221,6 +221,17 @@ public final class StdVideoH264SequenceParameterSet extends Struct { /// @return the allocated `StdVideoH264SequenceParameterSet` public static StdVideoH264SequenceParameterSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH264SequenceParameterSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264SequenceParameterSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264SequenceParameterSet` + public StdVideoH264SequenceParameterSet asSlice(long index) { return new StdVideoH264SequenceParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264SequenceParameterSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264SequenceParameterSet` + public StdVideoH264SequenceParameterSet asSlice(long index, long count) { return new StdVideoH264SequenceParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSetVui.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSetVui.java index f3ec6a4a..e7f6ca83 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSetVui.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SequenceParameterSetVui.java @@ -167,6 +167,17 @@ public final class StdVideoH264SequenceParameterSetVui extends Struct { /// @return the allocated `StdVideoH264SequenceParameterSetVui` public static StdVideoH264SequenceParameterSetVui alloc(SegmentAllocator allocator, long count) { return new StdVideoH264SequenceParameterSetVui(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264SequenceParameterSetVui`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264SequenceParameterSetVui` + public StdVideoH264SequenceParameterSetVui asSlice(long index) { return new StdVideoH264SequenceParameterSetVui(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264SequenceParameterSetVui`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264SequenceParameterSetVui` + public StdVideoH264SequenceParameterSetVui asSlice(long index, long count) { return new StdVideoH264SequenceParameterSetVui(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsFlags.java index 7655ad5f..ec3f7d45 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsFlags.java @@ -167,6 +167,17 @@ public final class StdVideoH264SpsFlags extends Struct { /// @return the allocated `StdVideoH264SpsFlags` public static StdVideoH264SpsFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH264SpsFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264SpsFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264SpsFlags` + public StdVideoH264SpsFlags asSlice(long index) { return new StdVideoH264SpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264SpsFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264SpsFlags` + public StdVideoH264SpsFlags asSlice(long index, long count) { return new StdVideoH264SpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `constraint_set0_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsVuiFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsVuiFlags.java index 90faf199..1651317f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsVuiFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH264SpsVuiFlags.java @@ -143,6 +143,17 @@ public final class StdVideoH264SpsVuiFlags extends Struct { /// @return the allocated `StdVideoH264SpsVuiFlags` public static StdVideoH264SpsVuiFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH264SpsVuiFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH264SpsVuiFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH264SpsVuiFlags` + public StdVideoH264SpsVuiFlags asSlice(long index) { return new StdVideoH264SpsVuiFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH264SpsVuiFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH264SpsVuiFlags` + public StdVideoH264SpsVuiFlags asSlice(long index, long count) { return new StdVideoH264SpsVuiFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspect_ratio_info_present_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265DecPicBufMgr.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265DecPicBufMgr.java index 759c5acc..abccd36e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265DecPicBufMgr.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265DecPicBufMgr.java @@ -89,6 +89,17 @@ public final class StdVideoH265DecPicBufMgr extends Struct { /// @return the allocated `StdVideoH265DecPicBufMgr` public static StdVideoH265DecPicBufMgr alloc(SegmentAllocator allocator, long count) { return new StdVideoH265DecPicBufMgr(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265DecPicBufMgr`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265DecPicBufMgr` + public StdVideoH265DecPicBufMgr asSlice(long index) { return new StdVideoH265DecPicBufMgr(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265DecPicBufMgr`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265DecPicBufMgr` + public StdVideoH265DecPicBufMgr asSlice(long index, long count) { return new StdVideoH265DecPicBufMgr(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `max_latency_increase_plus1` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdFlags.java index 32809349..bae0b0b8 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdFlags.java @@ -113,6 +113,17 @@ public final class StdVideoH265HrdFlags extends Struct { /// @return the allocated `StdVideoH265HrdFlags` public static StdVideoH265HrdFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265HrdFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265HrdFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265HrdFlags` + public StdVideoH265HrdFlags asSlice(long index) { return new StdVideoH265HrdFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265HrdFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265HrdFlags` + public StdVideoH265HrdFlags asSlice(long index, long count) { return new StdVideoH265HrdFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `nal_hrd_parameters_present_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdParameters.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdParameters.java index 28ccf767..15f1a915 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdParameters.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265HrdParameters.java @@ -161,6 +161,17 @@ public final class StdVideoH265HrdParameters extends Struct { /// @return the allocated `StdVideoH265HrdParameters` public static StdVideoH265HrdParameters alloc(SegmentAllocator allocator, long count) { return new StdVideoH265HrdParameters(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265HrdParameters`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265HrdParameters` + public StdVideoH265HrdParameters asSlice(long index) { return new StdVideoH265HrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265HrdParameters`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265HrdParameters` + public StdVideoH265HrdParameters asSlice(long index, long count) { return new StdVideoH265HrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265LongTermRefPicsSps.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265LongTermRefPicsSps.java index d7e216fe..e87b07e2 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265LongTermRefPicsSps.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265LongTermRefPicsSps.java @@ -83,6 +83,17 @@ public final class StdVideoH265LongTermRefPicsSps extends Struct { /// @return the allocated `StdVideoH265LongTermRefPicsSps` public static StdVideoH265LongTermRefPicsSps alloc(SegmentAllocator allocator, long count) { return new StdVideoH265LongTermRefPicsSps(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265LongTermRefPicsSps`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265LongTermRefPicsSps` + public StdVideoH265LongTermRefPicsSps asSlice(long index) { return new StdVideoH265LongTermRefPicsSps(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265LongTermRefPicsSps`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265LongTermRefPicsSps` + public StdVideoH265LongTermRefPicsSps asSlice(long index, long count) { return new StdVideoH265LongTermRefPicsSps(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `used_by_curr_pic_lt_sps_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PictureParameterSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PictureParameterSet.java index 7fe1f1c8..8b179491 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PictureParameterSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PictureParameterSet.java @@ -287,6 +287,17 @@ public final class StdVideoH265PictureParameterSet extends Struct { /// @return the allocated `StdVideoH265PictureParameterSet` public static StdVideoH265PictureParameterSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH265PictureParameterSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265PictureParameterSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265PictureParameterSet` + public StdVideoH265PictureParameterSet asSlice(long index) { return new StdVideoH265PictureParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265PictureParameterSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265PictureParameterSet` + public StdVideoH265PictureParameterSet asSlice(long index, long count) { return new StdVideoH265PictureParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PpsFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PpsFlags.java index 3a24d971..cdfcb23b 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PpsFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PpsFlags.java @@ -257,6 +257,17 @@ public final class StdVideoH265PpsFlags extends Struct { /// @return the allocated `StdVideoH265PpsFlags` public static StdVideoH265PpsFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265PpsFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265PpsFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265PpsFlags` + public StdVideoH265PpsFlags asSlice(long index) { return new StdVideoH265PpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265PpsFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265PpsFlags` + public StdVideoH265PpsFlags asSlice(long index, long count) { return new StdVideoH265PpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `dependent_slice_segments_enabled_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PredictorPaletteEntries.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PredictorPaletteEntries.java index ebddcdd7..0a02ac0e 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PredictorPaletteEntries.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265PredictorPaletteEntries.java @@ -77,6 +77,17 @@ public final class StdVideoH265PredictorPaletteEntries extends Struct { /// @return the allocated `StdVideoH265PredictorPaletteEntries` public static StdVideoH265PredictorPaletteEntries alloc(SegmentAllocator allocator, long count) { return new StdVideoH265PredictorPaletteEntries(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265PredictorPaletteEntries`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265PredictorPaletteEntries` + public StdVideoH265PredictorPaletteEntries asSlice(long index) { return new StdVideoH265PredictorPaletteEntries(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265PredictorPaletteEntries`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265PredictorPaletteEntries` + public StdVideoH265PredictorPaletteEntries asSlice(long index, long count) { return new StdVideoH265PredictorPaletteEntries(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `PredictorPaletteEntries` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevel.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevel.java index 1b927186..d27e6b98 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevel.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevel.java @@ -89,6 +89,17 @@ public final class StdVideoH265ProfileTierLevel extends Struct { /// @return the allocated `StdVideoH265ProfileTierLevel` public static StdVideoH265ProfileTierLevel alloc(SegmentAllocator allocator, long count) { return new StdVideoH265ProfileTierLevel(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265ProfileTierLevel`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265ProfileTierLevel` + public StdVideoH265ProfileTierLevel asSlice(long index) { return new StdVideoH265ProfileTierLevel(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265ProfileTierLevel`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265ProfileTierLevel` + public StdVideoH265ProfileTierLevel asSlice(long index, long count) { return new StdVideoH265ProfileTierLevel(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevelFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevelFlags.java index 4e816925..8b5ee4a3 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevelFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ProfileTierLevelFlags.java @@ -101,6 +101,17 @@ public final class StdVideoH265ProfileTierLevelFlags extends Struct { /// @return the allocated `StdVideoH265ProfileTierLevelFlags` public static StdVideoH265ProfileTierLevelFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265ProfileTierLevelFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265ProfileTierLevelFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265ProfileTierLevelFlags` + public StdVideoH265ProfileTierLevelFlags asSlice(long index) { return new StdVideoH265ProfileTierLevelFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265ProfileTierLevelFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265ProfileTierLevelFlags` + public StdVideoH265ProfileTierLevelFlags asSlice(long index, long count) { return new StdVideoH265ProfileTierLevelFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `general_tier_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ScalingLists.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ScalingLists.java index 288f7092..2b9e790d 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ScalingLists.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ScalingLists.java @@ -107,6 +107,17 @@ public final class StdVideoH265ScalingLists extends Struct { /// @return the allocated `StdVideoH265ScalingLists` public static StdVideoH265ScalingLists alloc(SegmentAllocator allocator, long count) { return new StdVideoH265ScalingLists(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265ScalingLists`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265ScalingLists` + public StdVideoH265ScalingLists asSlice(long index) { return new StdVideoH265ScalingLists(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265ScalingLists`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265ScalingLists` + public StdVideoH265ScalingLists asSlice(long index, long count) { return new StdVideoH265ScalingLists(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `ScalingList4x4` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSet.java index 722a9a2e..169074ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSet.java @@ -305,6 +305,17 @@ public final class StdVideoH265SequenceParameterSet extends Struct { /// @return the allocated `StdVideoH265SequenceParameterSet` public static StdVideoH265SequenceParameterSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH265SequenceParameterSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265SequenceParameterSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265SequenceParameterSet` + public StdVideoH265SequenceParameterSet asSlice(long index) { return new StdVideoH265SequenceParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265SequenceParameterSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265SequenceParameterSet` + public StdVideoH265SequenceParameterSet asSlice(long index, long count) { return new StdVideoH265SequenceParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSetVui.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSetVui.java index 08d9d90b..8ff550b5 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSetVui.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SequenceParameterSetVui.java @@ -227,6 +227,17 @@ public final class StdVideoH265SequenceParameterSetVui extends Struct { /// @return the allocated `StdVideoH265SequenceParameterSetVui` public static StdVideoH265SequenceParameterSetVui alloc(SegmentAllocator allocator, long count) { return new StdVideoH265SequenceParameterSetVui(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265SequenceParameterSetVui`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265SequenceParameterSetVui` + public StdVideoH265SequenceParameterSetVui asSlice(long index) { return new StdVideoH265SequenceParameterSetVui(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265SequenceParameterSetVui`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265SequenceParameterSetVui` + public StdVideoH265SequenceParameterSetVui asSlice(long index, long count) { return new StdVideoH265SequenceParameterSetVui(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSet.java index f06eb2c9..92b81b60 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSet.java @@ -155,6 +155,17 @@ public final class StdVideoH265ShortTermRefPicSet extends Struct { /// @return the allocated `StdVideoH265ShortTermRefPicSet` public static StdVideoH265ShortTermRefPicSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH265ShortTermRefPicSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265ShortTermRefPicSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265ShortTermRefPicSet` + public StdVideoH265ShortTermRefPicSet asSlice(long index) { return new StdVideoH265ShortTermRefPicSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265ShortTermRefPicSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265ShortTermRefPicSet` + public StdVideoH265ShortTermRefPicSet asSlice(long index, long count) { return new StdVideoH265ShortTermRefPicSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSetFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSetFlags.java index e1e19d1f..ad8bf015 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSetFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265ShortTermRefPicSetFlags.java @@ -83,6 +83,17 @@ public final class StdVideoH265ShortTermRefPicSetFlags extends Struct { /// @return the allocated `StdVideoH265ShortTermRefPicSetFlags` public static StdVideoH265ShortTermRefPicSetFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265ShortTermRefPicSetFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265ShortTermRefPicSetFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265ShortTermRefPicSetFlags` + public StdVideoH265ShortTermRefPicSetFlags asSlice(long index) { return new StdVideoH265ShortTermRefPicSetFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265ShortTermRefPicSetFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265ShortTermRefPicSetFlags` + public StdVideoH265ShortTermRefPicSetFlags asSlice(long index, long count) { return new StdVideoH265ShortTermRefPicSetFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `inter_ref_pic_set_prediction_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsFlags.java index ad30a966..5f9f6c9f 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsFlags.java @@ -251,6 +251,17 @@ public final class StdVideoH265SpsFlags extends Struct { /// @return the allocated `StdVideoH265SpsFlags` public static StdVideoH265SpsFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265SpsFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265SpsFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265SpsFlags` + public StdVideoH265SpsFlags asSlice(long index) { return new StdVideoH265SpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265SpsFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265SpsFlags` + public StdVideoH265SpsFlags asSlice(long index, long count) { return new StdVideoH265SpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `sps_temporal_id_nesting_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsVuiFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsVuiFlags.java index 3365630a..14bbac49 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsVuiFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SpsVuiFlags.java @@ -179,6 +179,17 @@ public final class StdVideoH265SpsVuiFlags extends Struct { /// @return the allocated `StdVideoH265SpsVuiFlags` public static StdVideoH265SpsVuiFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265SpsVuiFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265SpsVuiFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265SpsVuiFlags` + public StdVideoH265SpsVuiFlags asSlice(long index) { return new StdVideoH265SpsVuiFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265SpsVuiFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265SpsVuiFlags` + public StdVideoH265SpsVuiFlags asSlice(long index, long count) { return new StdVideoH265SpsVuiFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `aspect_ratio_info_present_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SubLayerHrdParameters.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SubLayerHrdParameters.java index 54ff991b..8e46b915 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SubLayerHrdParameters.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265SubLayerHrdParameters.java @@ -101,6 +101,17 @@ public final class StdVideoH265SubLayerHrdParameters extends Struct { /// @return the allocated `StdVideoH265SubLayerHrdParameters` public static StdVideoH265SubLayerHrdParameters alloc(SegmentAllocator allocator, long count) { return new StdVideoH265SubLayerHrdParameters(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265SubLayerHrdParameters`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265SubLayerHrdParameters` + public StdVideoH265SubLayerHrdParameters asSlice(long index) { return new StdVideoH265SubLayerHrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265SubLayerHrdParameters`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265SubLayerHrdParameters` + public StdVideoH265SubLayerHrdParameters asSlice(long index, long count) { return new StdVideoH265SubLayerHrdParameters(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `bit_rate_value_minus1` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VideoParameterSet.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VideoParameterSet.java index c5a2d341..9ac47101 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VideoParameterSet.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VideoParameterSet.java @@ -143,6 +143,17 @@ public final class StdVideoH265VideoParameterSet extends Struct { /// @return the allocated `StdVideoH265VideoParameterSet` public static StdVideoH265VideoParameterSet alloc(SegmentAllocator allocator, long count) { return new StdVideoH265VideoParameterSet(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265VideoParameterSet`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265VideoParameterSet` + public StdVideoH265VideoParameterSet asSlice(long index) { return new StdVideoH265VideoParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265VideoParameterSet`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265VideoParameterSet` + public StdVideoH265VideoParameterSet asSlice(long index, long count) { return new StdVideoH265VideoParameterSet(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `flags` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VpsFlags.java b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VpsFlags.java index 01ab9af0..b4be41ed 100644 --- a/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VpsFlags.java +++ b/modules/overrungl.vulkan/src/main/java/overrungl/vulkan/video/StdVideoH265VpsFlags.java @@ -95,6 +95,17 @@ public final class StdVideoH265VpsFlags extends Struct { /// @return the allocated `StdVideoH265VpsFlags` public static StdVideoH265VpsFlags alloc(SegmentAllocator allocator, long count) { return new StdVideoH265VpsFlags(allocator.allocate(LAYOUT, count)); } + /// Creates a slice of `StdVideoH265VpsFlags`. + /// @param index the index of the struct buffer + /// @return the slice of `StdVideoH265VpsFlags` + public StdVideoH265VpsFlags asSlice(long index) { return new StdVideoH265VpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT)); } + + /// Creates a slice of `StdVideoH265VpsFlags`. + /// @param index the index of the struct buffer + /// @param count the count + /// @return the slice of `StdVideoH265VpsFlags` + public StdVideoH265VpsFlags asSlice(long index, long count) { return new StdVideoH265VpsFlags(this.segment().asSlice(LAYOUT.scale(0L, index), LAYOUT.byteSize() * count)); } + /// {@return `vps_temporal_id_nesting_flag` at the given index} /// @param segment the segment of the struct /// @param index the index diff --git a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWJoystickTest.java b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWJoystickTest.java index 9c86f6e4..10249772 100644 --- a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWJoystickTest.java +++ b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWJoystickTest.java @@ -128,11 +128,11 @@ private void loop() { } private static byte gpsButton(GLFWGamepadState state, int button) { - return state.buttons(button).get(ValueLayout.JAVA_BYTE, 0); + return state.buttons().getAtIndex(ValueLayout.JAVA_BYTE, button); } private static float gpsAxe(GLFWGamepadState state, int axis) { - return state.axes(axis).get(ValueLayout.JAVA_FLOAT, 0); + return state.axes().getAtIndex(ValueLayout.JAVA_FLOAT, axis); } public static void main(String[] args) {