All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.VkResolveImageInfo2KHR Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.*;
import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

/**
 * Structure specifying parameters of resolve image command.
 * 
 * 
Valid Usage
* *
    *
  • The union of all source regions, and the union of all destination regions, specified by the elements of {@code pRegions}, must not overlap in memory
  • *
  • If {@code srcImage} is non-sparse then it must be bound completely and contiguously to a single {@code VkDeviceMemory} object
  • *
  • {@code srcImage} must have a sample count equal to any valid sample count value other than {@link VK10#VK_SAMPLE_COUNT_1_BIT SAMPLE_COUNT_1_BIT}
  • *
  • If {@code dstImage} is non-sparse then it must be bound completely and contiguously to a single {@code VkDeviceMemory} object
  • *
  • {@code dstImage} must have a sample count equal to {@link VK10#VK_SAMPLE_COUNT_1_BIT SAMPLE_COUNT_1_BIT}
  • *
  • {@code srcImageLayout} must specify the layout of the image subresources of {@code srcImage} specified in {@code pRegions} at the time this command is executed on a {@code VkDevice}
  • *
  • {@code srcImageLayout} must be {@link KHRSharedPresentableImage#VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR IMAGE_LAYOUT_SHARED_PRESENT_KHR}, {@link VK10#VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL} or {@link VK10#VK_IMAGE_LAYOUT_GENERAL IMAGE_LAYOUT_GENERAL}
  • *
  • {@code dstImageLayout} must specify the layout of the image subresources of {@code dstImage} specified in {@code pRegions} at the time this command is executed on a {@code VkDevice}
  • *
  • {@code dstImageLayout} must be {@link KHRSharedPresentableImage#VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR IMAGE_LAYOUT_SHARED_PRESENT_KHR}, {@link VK10#VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL} or {@link VK10#VK_IMAGE_LAYOUT_GENERAL IMAGE_LAYOUT_GENERAL}
  • *
  • The format features of {@code dstImage} must contain {@link VK10#VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT FORMAT_FEATURE_COLOR_ATTACHMENT_BIT}
  • *
  • {@code srcImage} and {@code dstImage} must have been created with the same image format
  • *
  • The {@code srcSubresource.mipLevel} member of each element of {@code pRegions} must be less than the {@code mipLevels} specified in {@link VkImageCreateInfo} when {@code srcImage} was created
  • *
  • The {@code dstSubresource.mipLevel} member of each element of {@code pRegions} must be less than the {@code mipLevels} specified in {@link VkImageCreateInfo} when {@code dstImage} was created
  • *
  • The srcSubresource.baseArrayLayer + srcSubresource.layerCount of each element of {@code pRegions} must be less than or equal to the {@code arrayLayers} specified in {@link VkImageCreateInfo} when {@code srcImage} was created
  • *
  • The dstSubresource.baseArrayLayer + dstSubresource.layerCount of each element of {@code pRegions} must be less than or equal to the {@code arrayLayers} specified in {@link VkImageCreateInfo} when {@code dstImage} was created
  • *
  • {@code dstImage} and {@code srcImage} must not have been created with {@code flags} containing {@link EXTFragmentDensityMap#VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT IMAGE_CREATE_SUBSAMPLED_BIT_EXT}
  • *
  • If either {@code srcImage} or {@code dstImage} are of type {@link VK10#VK_IMAGE_TYPE_3D IMAGE_TYPE_3D}, then for each element of {@code pRegions}, {@code srcSubresource.baseArrayLayer} must be 0 and {@code srcSubresource.layerCount} must be 1
  • *
  • If either {@code srcImage} or {@code dstImage} are of type {@link VK10#VK_IMAGE_TYPE_3D IMAGE_TYPE_3D}, then for each element of {@code pRegions}, {@code dstSubresource.baseArrayLayer} must be 0 and {@code dstSubresource.layerCount} must be 1
  • *
  • For each element of {@code pRegions}, {@code srcOffset.x} and (extent.width + srcOffset.x) must both be greater than or equal to 0 and less than or equal to the width of the specified {@code srcSubresource} of {@code srcImage}
  • *
  • For each element of {@code pRegions}, {@code srcOffset.y} and (extent.height + srcOffset.y) must both be greater than or equal to 0 and less than or equal to the height of the specified {@code srcSubresource} of {@code srcImage}
  • *
  • If {@code srcImage} is of type {@link VK10#VK_IMAGE_TYPE_1D IMAGE_TYPE_1D}, then for each element of {@code pRegions}, {@code srcOffset.y} must be 0 and {@code extent.height} must be 1
  • *
  • For each element of {@code pRegions}, {@code srcOffset.z} and (extent.depth + srcOffset.z) must both be greater than or equal to 0 and less than or equal to the depth of the specified {@code srcSubresource} of {@code srcImage}
  • *
  • If {@code srcImage} is of type {@link VK10#VK_IMAGE_TYPE_1D IMAGE_TYPE_1D} or {@link VK10#VK_IMAGE_TYPE_2D IMAGE_TYPE_2D}, then for each element of {@code pRegions}, {@code srcOffset.z} must be 0 and {@code extent.depth} must be 1
  • *
  • For each element of {@code pRegions}, {@code dstOffset.x} and (extent.width + dstOffset.x) must both be greater than or equal to 0 and less than or equal to the width of the specified {@code dstSubresource} of {@code dstImage}
  • *
  • For each element of {@code pRegions}, {@code dstOffset.y} and (extent.height + dstOffset.y) must both be greater than or equal to 0 and less than or equal to the height of the specified {@code dstSubresource} of {@code dstImage}
  • *
  • If {@code dstImage} is of type {@link VK10#VK_IMAGE_TYPE_1D IMAGE_TYPE_1D}, then for each element of {@code pRegions}, {@code dstOffset.y} must be 0 and {@code extent.height} must be 1
  • *
  • For each element of {@code pRegions}, {@code dstOffset.z} and (extent.depth + dstOffset.z) must both be greater than or equal to 0 and less than or equal to the depth of the specified {@code dstSubresource} of {@code dstImage}
  • *
  • If {@code dstImage} is of type {@link VK10#VK_IMAGE_TYPE_1D IMAGE_TYPE_1D} or {@link VK10#VK_IMAGE_TYPE_2D IMAGE_TYPE_2D}, then for each element of {@code pRegions}, {@code dstOffset.z} must be 0 and {@code extent.depth} must be 1
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link KHRCopyCommands2#VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR}
  • *
  • {@code pNext} must be {@code NULL}
  • *
  • {@code srcImage} must be a valid {@code VkImage} handle
  • *
  • {@code srcImageLayout} must be a valid {@code VkImageLayout} value
  • *
  • {@code dstImage} must be a valid {@code VkImage} handle
  • *
  • {@code dstImageLayout} must be a valid {@code VkImageLayout} value
  • *
  • {@code pRegions} must be a valid pointer to an array of {@code regionCount} valid {@link VkImageResolve2KHR} structures
  • *
  • {@code regionCount} must be greater than 0
  • *
  • Both of {@code dstImage}, and {@code srcImage} must have been created, allocated, or retrieved from the same {@code VkDevice}
  • *
* *
See Also
* *

{@link VkImageResolve2KHR}, {@link KHRCopyCommands2#vkCmdResolveImage2KHR CmdResolveImage2KHR}

* *

Layout

* *

 * struct VkResolveImageInfo2KHR {
 *     VkStructureType {@link #sType};
 *     void const * {@link #pNext};
 *     VkImage {@link #srcImage};
 *     VkImageLayout {@link #srcImageLayout};
 *     VkImage {@link #dstImage};
 *     VkImageLayout {@link #dstImageLayout};
 *     uint32_t {@link #regionCount};
 *     {@link VkImageResolve2KHR VkImageResolve2KHR} const * {@link #pRegions};
 * }
*/ public class VkResolveImageInfo2KHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; /** The struct alignment in bytes. */ public static final int ALIGNOF; /** The struct member offsets. */ public static final int STYPE, PNEXT, SRCIMAGE, SRCIMAGELAYOUT, DSTIMAGE, DSTIMAGELAYOUT, REGIONCOUNT, PREGIONS; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(8), __member(4), __member(8), __member(4), __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); SRCIMAGE = layout.offsetof(2); SRCIMAGELAYOUT = layout.offsetof(3); DSTIMAGE = layout.offsetof(4); DSTIMAGELAYOUT = layout.offsetof(5); REGIONCOUNT = layout.offsetof(6); PREGIONS = layout.offsetof(7); } /** * Creates a {@code VkResolveImageInfo2KHR} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be * visible to the struct instance and vice versa. * *

The created instance holds a strong reference to the container object.

*/ public VkResolveImageInfo2KHR(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** the type of this structure. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** {@code NULL} or a pointer to a structure extending this structure. */ @NativeType("void const *") public long pNext() { return npNext(address()); } /** the source image. */ @NativeType("VkImage") public long srcImage() { return nsrcImage(address()); } /** the layout of the source image subresources for the resolve. */ @NativeType("VkImageLayout") public int srcImageLayout() { return nsrcImageLayout(address()); } /** the destination image. */ @NativeType("VkImage") public long dstImage() { return ndstImage(address()); } /** the layout of the destination image subresources for the resolve. */ @NativeType("VkImageLayout") public int dstImageLayout() { return ndstImageLayout(address()); } /** the number of regions to resolve. */ @NativeType("uint32_t") public int regionCount() { return nregionCount(address()); } /** a pointer to an array of {@link VkImageResolve2KHR} structures specifying the regions to resolve. */ @NativeType("VkImageResolve2KHR const *") public VkImageResolve2KHR.Buffer pRegions() { return npRegions(address()); } /** Sets the specified value to the {@link #sType} field. */ public VkResolveImageInfo2KHR sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the {@link KHRCopyCommands2#VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR} value to the {@link #sType} field. */ public VkResolveImageInfo2KHR sType$Default() { return sType(KHRCopyCommands2.VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR); } /** Sets the specified value to the {@link #pNext} field. */ public VkResolveImageInfo2KHR pNext(@NativeType("void const *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@link #srcImage} field. */ public VkResolveImageInfo2KHR srcImage(@NativeType("VkImage") long value) { nsrcImage(address(), value); return this; } /** Sets the specified value to the {@link #srcImageLayout} field. */ public VkResolveImageInfo2KHR srcImageLayout(@NativeType("VkImageLayout") int value) { nsrcImageLayout(address(), value); return this; } /** Sets the specified value to the {@link #dstImage} field. */ public VkResolveImageInfo2KHR dstImage(@NativeType("VkImage") long value) { ndstImage(address(), value); return this; } /** Sets the specified value to the {@link #dstImageLayout} field. */ public VkResolveImageInfo2KHR dstImageLayout(@NativeType("VkImageLayout") int value) { ndstImageLayout(address(), value); return this; } /** Sets the address of the specified {@link VkImageResolve2KHR.Buffer} to the {@link #pRegions} field. */ public VkResolveImageInfo2KHR pRegions(@NativeType("VkImageResolve2KHR const *") VkImageResolve2KHR.Buffer value) { npRegions(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkResolveImageInfo2KHR set( int sType, long pNext, long srcImage, int srcImageLayout, long dstImage, int dstImageLayout, VkImageResolve2KHR.Buffer pRegions ) { sType(sType); pNext(pNext); srcImage(srcImage); srcImageLayout(srcImageLayout); dstImage(dstImage); dstImageLayout(dstImageLayout); pRegions(pRegions); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkResolveImageInfo2KHR set(VkResolveImageInfo2KHR src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code VkResolveImageInfo2KHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkResolveImageInfo2KHR malloc() { return wrap(VkResolveImageInfo2KHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code VkResolveImageInfo2KHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkResolveImageInfo2KHR calloc() { return wrap(VkResolveImageInfo2KHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code VkResolveImageInfo2KHR} instance allocated with {@link BufferUtils}. */ public static VkResolveImageInfo2KHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(VkResolveImageInfo2KHR.class, memAddress(container), container); } /** Returns a new {@code VkResolveImageInfo2KHR} instance for the specified memory address. */ public static VkResolveImageInfo2KHR create(long address) { return wrap(VkResolveImageInfo2KHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkResolveImageInfo2KHR createSafe(long address) { return address == NULL ? null : wrap(VkResolveImageInfo2KHR.class, address); } /** * Returns a new {@link VkResolveImageInfo2KHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link VkResolveImageInfo2KHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkResolveImageInfo2KHR.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link VkResolveImageInfo2KHR.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer create(long address, int capacity) { return wrap(Buffer.class, address, capacity); } /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkResolveImageInfo2KHR.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** * Returns a new {@code VkResolveImageInfo2KHR} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkResolveImageInfo2KHR malloc(MemoryStack stack) { return wrap(VkResolveImageInfo2KHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code VkResolveImageInfo2KHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkResolveImageInfo2KHR calloc(MemoryStack stack) { return wrap(VkResolveImageInfo2KHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkResolveImageInfo2KHR.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkResolveImageInfo2KHR.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkResolveImageInfo2KHR.Buffer calloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return UNSAFE.getInt(null, struct + VkResolveImageInfo2KHR.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkResolveImageInfo2KHR.PNEXT); } /** Unsafe version of {@link #srcImage}. */ public static long nsrcImage(long struct) { return UNSAFE.getLong(null, struct + VkResolveImageInfo2KHR.SRCIMAGE); } /** Unsafe version of {@link #srcImageLayout}. */ public static int nsrcImageLayout(long struct) { return UNSAFE.getInt(null, struct + VkResolveImageInfo2KHR.SRCIMAGELAYOUT); } /** Unsafe version of {@link #dstImage}. */ public static long ndstImage(long struct) { return UNSAFE.getLong(null, struct + VkResolveImageInfo2KHR.DSTIMAGE); } /** Unsafe version of {@link #dstImageLayout}. */ public static int ndstImageLayout(long struct) { return UNSAFE.getInt(null, struct + VkResolveImageInfo2KHR.DSTIMAGELAYOUT); } /** Unsafe version of {@link #regionCount}. */ public static int nregionCount(long struct) { return UNSAFE.getInt(null, struct + VkResolveImageInfo2KHR.REGIONCOUNT); } /** Unsafe version of {@link #pRegions}. */ public static VkImageResolve2KHR.Buffer npRegions(long struct) { return VkImageResolve2KHR.create(memGetAddress(struct + VkResolveImageInfo2KHR.PREGIONS), nregionCount(struct)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkResolveImageInfo2KHR.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkResolveImageInfo2KHR.PNEXT, value); } /** Unsafe version of {@link #srcImage(long) srcImage}. */ public static void nsrcImage(long struct, long value) { UNSAFE.putLong(null, struct + VkResolveImageInfo2KHR.SRCIMAGE, value); } /** Unsafe version of {@link #srcImageLayout(int) srcImageLayout}. */ public static void nsrcImageLayout(long struct, int value) { UNSAFE.putInt(null, struct + VkResolveImageInfo2KHR.SRCIMAGELAYOUT, value); } /** Unsafe version of {@link #dstImage(long) dstImage}. */ public static void ndstImage(long struct, long value) { UNSAFE.putLong(null, struct + VkResolveImageInfo2KHR.DSTIMAGE, value); } /** Unsafe version of {@link #dstImageLayout(int) dstImageLayout}. */ public static void ndstImageLayout(long struct, int value) { UNSAFE.putInt(null, struct + VkResolveImageInfo2KHR.DSTIMAGELAYOUT, value); } /** Sets the specified value to the {@code regionCount} field of the specified {@code struct}. */ public static void nregionCount(long struct, int value) { UNSAFE.putInt(null, struct + VkResolveImageInfo2KHR.REGIONCOUNT, value); } /** Unsafe version of {@link #pRegions(VkImageResolve2KHR.Buffer) pRegions}. */ public static void npRegions(long struct, VkImageResolve2KHR.Buffer value) { memPutAddress(struct + VkResolveImageInfo2KHR.PREGIONS, value.address()); nregionCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkResolveImageInfo2KHR.PREGIONS)); } // ----------------------------------- /** An array of {@link VkResolveImageInfo2KHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final VkResolveImageInfo2KHR ELEMENT_FACTORY = VkResolveImageInfo2KHR.create(-1L); /** * Creates a new {@code VkResolveImageInfo2KHR.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link VkResolveImageInfo2KHR#SIZEOF}, and its mark will be undefined. * *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } public Buffer(long address, int cap) { super(address, null, -1, 0, cap, cap); } Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected VkResolveImageInfo2KHR getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@link VkResolveImageInfo2KHR#sType} field. */ @NativeType("VkStructureType") public int sType() { return VkResolveImageInfo2KHR.nsType(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#pNext} field. */ @NativeType("void const *") public long pNext() { return VkResolveImageInfo2KHR.npNext(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#srcImage} field. */ @NativeType("VkImage") public long srcImage() { return VkResolveImageInfo2KHR.nsrcImage(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#srcImageLayout} field. */ @NativeType("VkImageLayout") public int srcImageLayout() { return VkResolveImageInfo2KHR.nsrcImageLayout(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#dstImage} field. */ @NativeType("VkImage") public long dstImage() { return VkResolveImageInfo2KHR.ndstImage(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#dstImageLayout} field. */ @NativeType("VkImageLayout") public int dstImageLayout() { return VkResolveImageInfo2KHR.ndstImageLayout(address()); } /** @return the value of the {@link VkResolveImageInfo2KHR#regionCount} field. */ @NativeType("uint32_t") public int regionCount() { return VkResolveImageInfo2KHR.nregionCount(address()); } /** @return a {@link VkImageResolve2KHR.Buffer} view of the struct array pointed to by the {@link VkResolveImageInfo2KHR#pRegions} field. */ @NativeType("VkImageResolve2KHR const *") public VkImageResolve2KHR.Buffer pRegions() { return VkResolveImageInfo2KHR.npRegions(address()); } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#sType} field. */ public VkResolveImageInfo2KHR.Buffer sType(@NativeType("VkStructureType") int value) { VkResolveImageInfo2KHR.nsType(address(), value); return this; } /** Sets the {@link KHRCopyCommands2#VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR} value to the {@link VkResolveImageInfo2KHR#sType} field. */ public VkResolveImageInfo2KHR.Buffer sType$Default() { return sType(KHRCopyCommands2.VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR); } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#pNext} field. */ public VkResolveImageInfo2KHR.Buffer pNext(@NativeType("void const *") long value) { VkResolveImageInfo2KHR.npNext(address(), value); return this; } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#srcImage} field. */ public VkResolveImageInfo2KHR.Buffer srcImage(@NativeType("VkImage") long value) { VkResolveImageInfo2KHR.nsrcImage(address(), value); return this; } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#srcImageLayout} field. */ public VkResolveImageInfo2KHR.Buffer srcImageLayout(@NativeType("VkImageLayout") int value) { VkResolveImageInfo2KHR.nsrcImageLayout(address(), value); return this; } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#dstImage} field. */ public VkResolveImageInfo2KHR.Buffer dstImage(@NativeType("VkImage") long value) { VkResolveImageInfo2KHR.ndstImage(address(), value); return this; } /** Sets the specified value to the {@link VkResolveImageInfo2KHR#dstImageLayout} field. */ public VkResolveImageInfo2KHR.Buffer dstImageLayout(@NativeType("VkImageLayout") int value) { VkResolveImageInfo2KHR.ndstImageLayout(address(), value); return this; } /** Sets the address of the specified {@link VkImageResolve2KHR.Buffer} to the {@link VkResolveImageInfo2KHR#pRegions} field. */ public VkResolveImageInfo2KHR.Buffer pRegions(@NativeType("VkImageResolve2KHR const *") VkImageResolve2KHR.Buffer value) { VkResolveImageInfo2KHR.npRegions(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy