public class VkDescriptorImageInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Members of VkDescriptorImageInfo that are not used in an update (as described above) are ignored.
imageView must not be 2D or 2D array image view created from a 3D imageimageView is created from a depth/stencil image, the aspectMask used to create the imageView must include either IMAGE_ASPECT_DEPTH_BIT or IMAGE_ASPECT_STENCIL_BIT but not both.imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rulessampler is used and the VkFormat of the image is a multi-planar format, the image must have been created with IMAGE_CREATE_MUTABLE_FORMAT_BIT, and the aspectMask of the imageView must be IMAGE_ASPECT_PLANE_0_BIT, IMAGE_ASPECT_PLANE_1_BIT or (for three-plane formats only) IMAGE_ASPECT_PLANE_2_BITimageView, and sampler that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevicesampler – a sampler handle, and is used in descriptor updates for types DESCRIPTOR_TYPE_SAMPLER and DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER if the binding being updated does not use immutable samplers.imageView – an image view handle, and is used in descriptor updates for types DESCRIPTOR_TYPE_SAMPLED_IMAGE, DESCRIPTOR_TYPE_STORAGE_IMAGE, DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and DESCRIPTOR_TYPE_INPUT_ATTACHMENT.imageLayout – the layout that the image subresources accessible from imageView will be in at the time this descriptor is accessed. imageLayout is used in descriptor updates for types DESCRIPTOR_TYPE_SAMPLED_IMAGE, DESCRIPTOR_TYPE_STORAGE_IMAGE, DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and DESCRIPTOR_TYPE_INPUT_ATTACHMENT.
struct VkDescriptorImageInfo {
VkSampler sampler;
VkImageView imageView;
VkImageLayout imageLayout;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorImageInfo.Buffer
An array of
VkDescriptorImageInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IMAGELAYOUT
The struct member offsets.
|
static int |
IMAGEVIEW
The struct member offsets.
|
static int |
SAMPLER
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkDescriptorImageInfo(java.nio.ByteBuffer container)
Creates a
VkDescriptorImageInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDescriptorImageInfo |
calloc()
Returns a new
VkDescriptorImageInfo instance allocated with memCalloc. |
static VkDescriptorImageInfo.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated with memCalloc. |
static VkDescriptorImageInfo |
callocStack()
Returns a new
VkDescriptorImageInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorImageInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorImageInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorImageInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorImageInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorImageInfo |
create()
Returns a new
VkDescriptorImageInfo instance allocated with BufferUtils. |
static VkDescriptorImageInfo.Buffer |
create(int capacity)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated with BufferUtils. |
static VkDescriptorImageInfo |
create(long address)
Returns a new
VkDescriptorImageInfo instance for the specified memory address. |
static VkDescriptorImageInfo.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorImageInfo.Buffer instance at the specified memory. |
static VkDescriptorImageInfo |
createSafe(long address)
|
static VkDescriptorImageInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
imageLayout()
Returns the value of the
imageLayout field. |
VkDescriptorImageInfo |
imageLayout(int value)
Sets the specified value to the
imageLayout field. |
long |
imageView()
Returns the value of the
imageView field. |
VkDescriptorImageInfo |
imageView(long value)
Sets the specified value to the
imageView field. |
static VkDescriptorImageInfo |
malloc()
Returns a new
VkDescriptorImageInfo instance allocated with memAlloc. |
static VkDescriptorImageInfo.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated with memAlloc. |
static VkDescriptorImageInfo |
mallocStack()
Returns a new
VkDescriptorImageInfo instance allocated on the thread-local MemoryStack. |
static VkDescriptorImageInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorImageInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorImageInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorImageInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorImageInfo instance allocated on the specified MemoryStack. |
static int |
nimageLayout(long struct)
Unsafe version of
imageLayout(). |
static void |
nimageLayout(long struct,
int value)
Unsafe version of
imageLayout. |
static long |
nimageView(long struct)
Unsafe version of
imageView(). |
static void |
nimageView(long struct,
long value)
Unsafe version of
imageView. |
static long |
nsampler(long struct)
Unsafe version of
sampler(). |
static void |
nsampler(long struct,
long value)
Unsafe version of
sampler. |
long |
sampler()
Returns the value of the
sampler field. |
VkDescriptorImageInfo |
sampler(long value)
Sets the specified value to the
sampler field. |
VkDescriptorImageInfo |
set(long sampler,
long imageView,
int imageLayout)
Initializes this struct with the specified values.
|
VkDescriptorImageInfo |
set(VkDescriptorImageInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SAMPLER
public static final int IMAGEVIEW
public static final int IMAGELAYOUT
public VkDescriptorImageInfo(java.nio.ByteBuffer container)
VkDescriptorImageInfo instance at the current position of the specified 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 int sizeof()
sizeof in class org.lwjgl.system.Structpublic long sampler()
sampler field.public long imageView()
imageView field.public int imageLayout()
imageLayout field.public VkDescriptorImageInfo sampler(long value)
sampler field.public VkDescriptorImageInfo imageView(long value)
imageView field.public VkDescriptorImageInfo imageLayout(int value)
imageLayout field.public VkDescriptorImageInfo set(long sampler, long imageView, int imageLayout)
public VkDescriptorImageInfo set(VkDescriptorImageInfo src)
src - the source structpublic static VkDescriptorImageInfo malloc()
VkDescriptorImageInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorImageInfo calloc()
VkDescriptorImageInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorImageInfo create()
VkDescriptorImageInfo instance allocated with BufferUtils.public static VkDescriptorImageInfo create(long address)
VkDescriptorImageInfo instance for the specified memory address.@Nullable public static VkDescriptorImageInfo createSafe(long address)
public static VkDescriptorImageInfo.Buffer malloc(int capacity)
VkDescriptorImageInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer calloc(int capacity)
VkDescriptorImageInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer create(int capacity)
VkDescriptorImageInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer create(long address, int capacity)
VkDescriptorImageInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorImageInfo.Buffer createSafe(long address, int capacity)
public static VkDescriptorImageInfo mallocStack()
VkDescriptorImageInfo instance allocated on the thread-local MemoryStack.public static VkDescriptorImageInfo callocStack()
VkDescriptorImageInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorImageInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorImageInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorImageInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorImageInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorImageInfo.Buffer mallocStack(int capacity)
VkDescriptorImageInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer callocStack(int capacity)
VkDescriptorImageInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorImageInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorImageInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorImageInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nsampler(long struct)
sampler().public static long nimageView(long struct)
imageView().public static int nimageLayout(long struct)
imageLayout().public static void nsampler(long struct,
long value)
sampler.public static void nimageView(long struct,
long value)
imageView.public static void nimageLayout(long struct,
int value)
imageLayout.Copyright LWJGL. All Rights Reserved. License terms.