Package org.lwjgl.vulkan
Class VkDescriptorImageInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorImageInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDescriptorImageInfo extends Struct
Khronos Reference Page
Vulkan SpecificationValid Usage
- Each of
samplerandimageViewthat are valid handles must have been created, allocated or retrieved from the sameVkDevice
Member documentation
sampler– a sampler handle, and is used in descriptor updates for typesDESCRIPTOR_TYPE_SAMPLERandDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLERif the binding being updated does not use immutable samplersimageView– an image view handle, and is used in descriptor updates for typesDESCRIPTOR_TYPE_SAMPLED_IMAGE,DESCRIPTOR_TYPE_STORAGE_IMAGE,DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, andDESCRIPTOR_TYPE_INPUT_ATTACHMENTimageLayout– the layout that the image will be in at the time this descriptor is accessed.imageLayoutis used in descriptor updates for typesDESCRIPTOR_TYPE_SAMPLED_IMAGE,DESCRIPTOR_TYPE_STORAGE_IMAGE,DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, andDESCRIPTOR_TYPE_INPUT_ATTACHMENT. One of:
Layout
struct VkDescriptorImageInfo { VkSampler sampler; VkImageView imageView; VkImageLayout imageLayout; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDescriptorImageInfo.BufferAn array ofVkDescriptorImageInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDescriptorImageInfo(java.nio.ByteBuffer container)Creates aVkDescriptorImageInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDescriptorImageInfocalloc()Returns a newVkDescriptorImageInfoinstance allocated withmemCalloc.static VkDescriptorImageInfo.Buffercalloc(int capacity)Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemCalloc.static VkDescriptorImageInfocallocStack()Returns a newVkDescriptorImageInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfo.BuffercallocStack(int capacity)Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfocallocStack(MemoryStack stack)Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfocreate()Returns a newVkDescriptorImageInfoinstance allocated withBufferUtils.static VkDescriptorImageInfo.Buffercreate(int capacity)Returns a newVkDescriptorImageInfo.Bufferinstance allocated withBufferUtils.static VkDescriptorImageInfocreate(long address)Returns a newVkDescriptorImageInfoinstance for the specified memory address ornullif the address isNULL.static VkDescriptorImageInfo.Buffercreate(long address, int capacity)Create aVkDescriptorImageInfo.Bufferinstance at the specified memory.intimageLayout()Returns the value of theimageLayoutfield.VkDescriptorImageInfoimageLayout(int value)Sets the specified value to theimageLayoutfield.longimageView()Returns the value of theimageViewfield.VkDescriptorImageInfoimageView(long value)Sets the specified value to theimageViewfield.static VkDescriptorImageInfomalloc()Returns a newVkDescriptorImageInfoinstance allocated withmemAlloc.static VkDescriptorImageInfo.Buffermalloc(int capacity)Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemAlloc.static VkDescriptorImageInfomallocStack()Returns a newVkDescriptorImageInfoinstance allocated on the thread-localMemoryStack.static VkDescriptorImageInfo.BuffermallocStack(int capacity)Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorImageInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorImageInfomallocStack(MemoryStack stack)Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStack.VkDescriptorImageInfonset(long struct)Unsafe version ofset.longsampler()Returns the value of thesamplerfield.VkDescriptorImageInfosampler(long value)Sets the specified value to thesamplerfield.VkDescriptorImageInfoset(long sampler, long imageView, int imageLayout)Initializes this struct with the specified values.VkDescriptorImageInfoset(VkDescriptorImageInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDescriptorImageInfo
public VkDescriptorImageInfo(java.nio.ByteBuffer container)
Creates aVkDescriptorImageInfoinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
sampler
public long sampler()
Returns the value of thesamplerfield.
-
imageView
public long imageView()
Returns the value of theimageViewfield.
-
imageLayout
public int imageLayout()
Returns the value of theimageLayoutfield.
-
sampler
public VkDescriptorImageInfo sampler(long value)
Sets the specified value to thesamplerfield.
-
imageView
public VkDescriptorImageInfo imageView(long value)
Sets the specified value to theimageViewfield.
-
imageLayout
public VkDescriptorImageInfo imageLayout(int value)
Sets the specified value to theimageLayoutfield.
-
set
public VkDescriptorImageInfo set(long sampler, long imageView, int imageLayout)
Initializes this struct with the specified values.
-
nset
public VkDescriptorImageInfo nset(long struct)
Unsafe version ofset.
-
set
public VkDescriptorImageInfo set(VkDescriptorImageInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorImageInfo malloc()
Returns a newVkDescriptorImageInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorImageInfo calloc()
Returns a newVkDescriptorImageInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorImageInfo create()
Returns a newVkDescriptorImageInfoinstance allocated withBufferUtils.
-
create
public static VkDescriptorImageInfo create(long address)
Returns a newVkDescriptorImageInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDescriptorImageInfo.Buffer malloc(int capacity)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorImageInfo.Buffer calloc(int capacity)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorImageInfo.Buffer create(int capacity)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorImageInfo.Buffer create(long address, int capacity)
Create aVkDescriptorImageInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDescriptorImageInfo mallocStack()
Returns a newVkDescriptorImageInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorImageInfo callocStack()
Returns a newVkDescriptorImageInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorImageInfo mallocStack(MemoryStack stack)
Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorImageInfo callocStack(MemoryStack stack)
Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDescriptorImageInfo.Buffer mallocStack(int capacity)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorImageInfo.Buffer callocStack(int capacity)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDescriptorImageInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDescriptorImageInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-