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 must have been created, allocated, or retrieved from the sameVkDevice
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.imageView– the image view to query.descriptorType– the type of descriptor for which to query a handle.sampler– the sampler to combine with the image view when generating the handle.
Layout
struct VkImageViewHandleInfoNVX { VkStructureType sType; void const * pNext; VkImageView imageView; VkDescriptorType descriptorType; VkSampler sampler; }
-
-
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 Modifier and Type Method Description static VkImageViewHandleInfoNVXcalloc()Returns a newVkImageViewHandleInfoNVXinstance allocated withmemCalloc.static VkImageViewHandleInfoNVX.Buffercalloc(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemCalloc.static VkImageViewHandleInfoNVXcallocStack()Returns a newVkImageViewHandleInfoNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewHandleInfoNVX.BuffercallocStack(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewHandleInfoNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewHandleInfoNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of thedescriptorTypefield.VkImageViewHandleInfoNVXdescriptorType(int value)Sets the specified value to thedescriptorTypefield.longimageView()Returns the value of theimageViewfield.VkImageViewHandleInfoNVXimageView(long value)Sets the specified value to theimageViewfield.static VkImageViewHandleInfoNVXmalloc()Returns a newVkImageViewHandleInfoNVXinstance allocated withmemAlloc.static VkImageViewHandleInfoNVX.Buffermalloc(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated withmemAlloc.static VkImageViewHandleInfoNVXmallocStack()Returns a newVkImageViewHandleInfoNVXinstance allocated on the thread-localMemoryStack.static VkImageViewHandleInfoNVX.BuffermallocStack(int capacity)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkImageViewHandleInfoNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewHandleInfoNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkImageViewHandleInfoNVXpNext(long value)Sets the specified value to thepNextfield.longsampler()Returns the value of thesamplerfield.VkImageViewHandleInfoNVXsampler(long value)Sets the specified value to thesamplerfield.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()Returns the value of thesTypefield.VkImageViewHandleInfoNVXsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
imageView
public long imageView()
Returns the value of theimageViewfield.
-
descriptorType
public int descriptorType()
Returns the value of thedescriptorTypefield.
-
sampler
public long sampler()
Returns the value of thesamplerfield.
-
sType
public VkImageViewHandleInfoNVX sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageViewHandleInfoNVX pNext(long value)
Sets the specified value to thepNextfield.
-
imageView
public VkImageViewHandleInfoNVX imageView(long value)
Sets the specified value to theimageViewfield.
-
descriptorType
public VkImageViewHandleInfoNVX descriptorType(int value)
Sets the specified value to thedescriptorTypefield.
-
sampler
public VkImageViewHandleInfoNVX sampler(long value)
Sets the specified value to thesamplerfield.
-
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
public static VkImageViewHandleInfoNVX mallocStack()
Returns a newVkImageViewHandleInfoNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageViewHandleInfoNVX callocStack()
Returns a newVkImageViewHandleInfoNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageViewHandleInfoNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageViewHandleInfoNVX callocStack(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
-
mallocStack
public static VkImageViewHandleInfoNVX.Buffer mallocStack(int capacity)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageViewHandleInfoNVX.Buffer callocStack(int capacity)
Returns a newVkImageViewHandleInfoNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageViewHandleInfoNVX.Buffer mallocStack(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
-
callocStack
public static VkImageViewHandleInfoNVX.Buffer callocStack(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.
-
-