Package org.lwjgl.vulkan
Class VkDescriptorImageInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkDescriptorImageInfo {
VkSampler sampler;
VkImageView imageView;
VkImageLayout imageLayout;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorImageInfo
(ByteBuffer container) Creates aVkDescriptorImageInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDescriptorImageInfo
calloc()
Returns a newVkDescriptorImageInfo
instance allocated withmemCalloc
.static VkDescriptorImageInfo.Buffer
calloc
(int capacity) Returns a newVkDescriptorImageInfo.Buffer
instance allocated withmemCalloc
.static VkDescriptorImageInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorImageInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorImageInfo
calloc
(MemoryStack stack) Returns a newVkDescriptorImageInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorImageInfo
Deprecated.static VkDescriptorImageInfo.Buffer
callocStack
(int capacity) Deprecated.static VkDescriptorImageInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkDescriptorImageInfo
callocStack
(MemoryStack stack) Deprecated.static VkDescriptorImageInfo
create()
Returns a newVkDescriptorImageInfo
instance allocated withBufferUtils
.static VkDescriptorImageInfo.Buffer
create
(int capacity) Returns a newVkDescriptorImageInfo.Buffer
instance allocated withBufferUtils
.static VkDescriptorImageInfo
create
(long address) Returns a newVkDescriptorImageInfo
instance for the specified memory address.static VkDescriptorImageInfo.Buffer
create
(long address, int capacity) Create aVkDescriptorImageInfo.Buffer
instance at the specified memory.static @Nullable VkDescriptorImageInfo
createSafe
(long address) static @Nullable VkDescriptorImageInfo.Buffer
createSafe
(long address, int capacity) int
imageLayout
(int value) Sets the specified value to theimageLayout
field.long
imageView
(long value) Sets the specified value to theimageView
field.static VkDescriptorImageInfo
malloc()
Returns a newVkDescriptorImageInfo
instance allocated withmemAlloc
.static VkDescriptorImageInfo.Buffer
malloc
(int capacity) Returns a newVkDescriptorImageInfo.Buffer
instance allocated withmemAlloc
.static VkDescriptorImageInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorImageInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorImageInfo
malloc
(MemoryStack stack) Returns a newVkDescriptorImageInfo
instance allocated on the specifiedMemoryStack
.static VkDescriptorImageInfo
Deprecated.static VkDescriptorImageInfo.Buffer
mallocStack
(int capacity) Deprecated.static VkDescriptorImageInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkDescriptorImageInfo
mallocStack
(MemoryStack stack) Deprecated.static int
nimageLayout
(long struct) Unsafe version ofimageLayout()
.static void
nimageLayout
(long struct, int value) Unsafe version ofimageLayout
.static long
nimageView
(long struct) Unsafe version ofimageView()
.static void
nimageView
(long struct, long value) Unsafe version ofimageView
.static long
nsampler
(long struct) Unsafe version ofsampler()
.static void
nsampler
(long struct, long value) Unsafe version ofsampler
.long
sampler()
sampler
(long value) Sets the specified value to thesampler
field.set
(long sampler, long imageView, int imageLayout) Initializes this struct with the specified values.set
(VkDescriptorImageInfo src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SAMPLER
public static final int SAMPLERThe struct member offsets. -
IMAGEVIEW
public static final int IMAGEVIEWThe struct member offsets. -
IMAGELAYOUT
public static final int IMAGELAYOUTThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorImageInfo
Creates aVkDescriptorImageInfo
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDescriptorImageInfo>
-
sampler
public long sampler()- Returns:
- the value of the
sampler
field.
-
imageView
public long imageView()- Returns:
- the value of the
imageView
field.
-
imageLayout
public int imageLayout()- Returns:
- the value of the
imageLayout
field.
-
sampler
Sets the specified value to thesampler
field. -
imageView
Sets the specified value to theimageView
field. -
imageLayout
Sets the specified value to theimageLayout
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorImageInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorImageInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDescriptorImageInfo
instance allocated withBufferUtils
. -
create
Returns a newVkDescriptorImageInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorImageInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDescriptorImageInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDescriptorImageInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDescriptorImageInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkDescriptorImageInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorImageInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDescriptorImageInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorImageInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsampler
public static long nsampler(long struct) Unsafe version ofsampler()
. -
nimageView
public static long nimageView(long struct) Unsafe version ofimageView()
. -
nimageLayout
public static int nimageLayout(long struct) Unsafe version ofimageLayout()
. -
nsampler
public static void nsampler(long struct, long value) Unsafe version ofsampler
. -
nimageView
public static void nimageView(long struct, long value) Unsafe version ofimageView
. -
nimageLayout
public static void nimageLayout(long struct, int value) Unsafe version ofimageLayout
.
-