Package org.lwjgl.vulkan
Class VkImageViewHandleInfoNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageViewHandleInfoNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageViewHandleInfoNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the image view for handle queries.Valid Usage
descriptorTypemust beDESCRIPTOR_TYPE_SAMPLED_IMAGE,DESCRIPTOR_TYPE_STORAGE_IMAGE, orDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLERsamplermust be a validVkSamplerifdescriptorTypeisDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER- If descriptorType is
DESCRIPTOR_TYPE_SAMPLED_IMAGEorDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, the image thatimageViewwas created from must have been created with theIMAGE_USAGE_SAMPLED_BITusage bit set - If descriptorType is
DESCRIPTOR_TYPE_STORAGE_IMAGE, the image thatimageViewwas created from must have been created with theIMAGE_USAGE_STORAGE_BITusage bit set
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVXpNextmust beNULLimageViewmust be a validVkImageViewhandledescriptorTypemust be a validVkDescriptorTypevalue- If
sampleris notNULL_HANDLE,samplermust be a validVkSamplerhandle - Both of
imageView, andsamplerthat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameVkDevice
See Also
Layout
struct VkImageViewHandleInfoNVX { VkStructureTypesType(); void const *pNext(); VkImageViewimageView(); VkDescriptorTypedescriptorType(); VkSamplersampler(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageViewHandleInfoNVX.BufferAn array ofVkImageViewHandleInfoNVXstructs.
-
Constructor Summary
Constructors Constructor Description VkImageViewHandleInfoNVX(java.nio.ByteBuffer container)Creates aVkImageViewHandleInfoNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkImageViewHandleInfoNVXcalloc()Returns a newVkImageViewHandleInfoNVXinstance allocated withmemCalloc.static VkImageViewHandleInfoNVX.Buffercalloc(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemCalloc.static VkImageViewHandleInfoNVX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewHandleInfoNVXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewHandleInfoNVXcallocStack()Deprecated.static VkImageViewHandleInfoNVX.BuffercallocStack(int capacity)Deprecated.static VkImageViewHandleInfoNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewHandleInfoNVXcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewHandleInfoNVXcreate()Returns a newVkImageViewHandleInfoNVXinstance allocated withBufferUtils.static VkImageViewHandleInfoNVX.Buffercreate(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withBufferUtils.static VkImageViewHandleInfoNVXcreate(long address)Returns a newVkImageViewHandleInfoNVXinstance for the specified memory address.static VkImageViewHandleInfoNVX.Buffercreate(long address, int capacity)Create aVkImageViewHandleInfoNVX.Bufferinstance at the specified memory.static VkImageViewHandleInfoNVXcreateSafe(long address)static VkImageViewHandleInfoNVX.BuffercreateSafe(long address, int capacity)intdescriptorType()the type of descriptor for which to query a handle.VkImageViewHandleInfoNVXdescriptorType(int value)Sets the specified value to thedescriptorType()field.longimageView()the image view to query.VkImageViewHandleInfoNVXimageView(long value)Sets the specified value to theimageView()field.static VkImageViewHandleInfoNVXmalloc()Returns a newVkImageViewHandleInfoNVXinstance allocated withmemAlloc.static VkImageViewHandleInfoNVX.Buffermalloc(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemAlloc.static VkImageViewHandleInfoNVX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewHandleInfoNVXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStack.static VkImageViewHandleInfoNVXmallocStack()Deprecated.static VkImageViewHandleInfoNVX.BuffermallocStack(int capacity)Deprecated.static VkImageViewHandleInfoNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewHandleInfoNVXmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intndescriptorType(long struct)Unsafe version ofdescriptorType().static voidndescriptorType(long struct, int value)Unsafe version ofdescriptorType.static longnimageView(long struct)Unsafe version ofimageView().static voidnimageView(long struct, long value)Unsafe version ofimageView.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnsampler(long struct)Unsafe version ofsampler().static voidnsampler(long struct, long value)Unsafe version ofsampler.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkImageViewHandleInfoNVXpNext(long value)Sets the specified value to thepNext()field.longsampler()the sampler to combine with the image view when generating the handle.VkImageViewHandleInfoNVXsampler(long value)Sets the specified value to thesampler()field.VkImageViewHandleInfoNVXset(int sType, long pNext, long imageView, int descriptorType, long sampler)Initializes this struct with the specified values.VkImageViewHandleInfoNVXset(VkImageViewHandleInfoNVX src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImageViewHandleInfoNVXsType(int value)Sets the specified value to thesType()field.VkImageViewHandleInfoNVXsType$Default()Sets theSTRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVXvalue to thesType()field.
-
-
-
Constructor Detail
-
VkImageViewHandleInfoNVX
public VkImageViewHandleInfoNVX(java.nio.ByteBuffer container)
Creates aVkImageViewHandleInfoNVXinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
imageView
public long imageView()
the image view to query.
-
descriptorType
public int descriptorType()
the type of descriptor for which to query a handle.
-
sampler
public long sampler()
the sampler to combine with the image view when generating the handle.
-
sType
public VkImageViewHandleInfoNVX sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageViewHandleInfoNVX sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVXvalue to thesType()field.
-
pNext
public VkImageViewHandleInfoNVX pNext(long value)
Sets the specified value to thepNext()field.
-
imageView
public VkImageViewHandleInfoNVX imageView(long value)
Sets the specified value to theimageView()field.
-
descriptorType
public VkImageViewHandleInfoNVX descriptorType(int value)
Sets the specified value to thedescriptorType()field.
-
sampler
public VkImageViewHandleInfoNVX sampler(long value)
Sets the specified value to thesampler()field.
-
set
public VkImageViewHandleInfoNVX set(int sType, long pNext, long imageView, int descriptorType, long sampler)
Initializes this struct with the specified values.
-
set
public VkImageViewHandleInfoNVX set(VkImageViewHandleInfoNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageViewHandleInfoNVX malloc()
Returns a newVkImageViewHandleInfoNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageViewHandleInfoNVX calloc()
Returns a newVkImageViewHandleInfoNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageViewHandleInfoNVX create()
Returns a newVkImageViewHandleInfoNVXinstance allocated withBufferUtils.
-
create
public static VkImageViewHandleInfoNVX create(long address)
Returns a newVkImageViewHandleInfoNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewHandleInfoNVX createSafe(long address)
-
malloc
public static VkImageViewHandleInfoNVX.Buffer malloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageViewHandleInfoNVX.Buffer calloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewHandleInfoNVX.Buffer create(int capacity)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewHandleInfoNVX.Buffer create(long address, int capacity)
Create aVkImageViewHandleInfoNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageViewHandleInfoNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageViewHandleInfoNVX mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewHandleInfoNVX callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewHandleInfoNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewHandleInfoNVX callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewHandleInfoNVX.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewHandleInfoNVX.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewHandleInfoNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewHandleInfoNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageViewHandleInfoNVX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageViewHandleInfoNVX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageViewHandleInfoNVX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageViewHandleInfoNVX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nimageView
public static long nimageView(long struct)
Unsafe version ofimageView().
-
ndescriptorType
public static int ndescriptorType(long struct)
Unsafe version ofdescriptorType().
-
nsampler
public static long nsampler(long struct)
Unsafe version ofsampler().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nimageView
public static void nimageView(long struct, long value)Unsafe version ofimageView.
-
ndescriptorType
public static void ndescriptorType(long struct, int value)Unsafe version ofdescriptorType.
-
nsampler
public static void nsampler(long struct, long value)Unsafe version ofsampler.
-
-