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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aVkDescriptorImageInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDescriptorImageInfocalloc()Returns a newVkDescriptorImageInfoinstance allocated withmemCalloc.static VkDescriptorImageInfo.Buffercalloc(int capacity) Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemCalloc.static VkDescriptorImageInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfocalloc(MemoryStack stack) Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorImageInfoDeprecated.static VkDescriptorImageInfo.BuffercallocStack(int capacity) Deprecated.static VkDescriptorImageInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkDescriptorImageInfocallocStack(MemoryStack stack) Deprecated.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.static VkDescriptorImageInfo.Buffercreate(long address, int capacity) Create aVkDescriptorImageInfo.Bufferinstance at the specified memory.static @Nullable VkDescriptorImageInfocreateSafe(long address) static @Nullable VkDescriptorImageInfo.BuffercreateSafe(long address, int capacity) intimageLayout(int value) Sets the specified value to theimageLayoutfield.longimageView(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 VkDescriptorImageInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorImageInfomalloc(MemoryStack stack) Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStack.static VkDescriptorImageInfoDeprecated.static VkDescriptorImageInfo.BuffermallocStack(int capacity) Deprecated.static VkDescriptorImageInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkDescriptorImageInfomallocStack(MemoryStack stack) Deprecated.static intnimageLayout(long struct) Unsafe version ofimageLayout().static voidnimageLayout(long struct, int value) Unsafe version ofimageLayout.static longnimageView(long struct) Unsafe version ofimageView().static voidnimageView(long struct, long value) Unsafe version ofimageView.static longnsampler(long struct) Unsafe version ofsampler().static voidnsampler(long struct, long value) Unsafe version ofsampler.longsampler()sampler(long value) Sets the specified value to thesamplerfield.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkDescriptorImageInfo>
-
sampler
public long sampler()- Returns:
- the value of the
samplerfield.
-
imageView
public long imageView()- Returns:
- the value of the
imageViewfield.
-
imageLayout
public int imageLayout()- Returns:
- the value of the
imageLayoutfield.
-
sampler
Sets the specified value to thesamplerfield. -
imageView
Sets the specified value to theimageViewfield. -
imageLayout
Sets the specified value to theimageLayoutfield. -
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 newVkDescriptorImageInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorImageInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorImageInfoinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorImageInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorImageInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorImageInfo.Bufferinstance 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 newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorImageInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-