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.NativeResource
Structure specifying the image view for handle queries.Valid Usage
descriptorType
must beDESCRIPTOR_TYPE_SAMPLED_IMAGE
,DESCRIPTOR_TYPE_STORAGE_IMAGE
, orDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
sampler
must be a validVkSampler
ifdescriptorType
isDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
- If descriptorType is
DESCRIPTOR_TYPE_SAMPLED_IMAGE
orDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
, the image thatimageView
was created from must have been created with theIMAGE_USAGE_SAMPLED_BIT
usage bit set - If descriptorType is
DESCRIPTOR_TYPE_STORAGE_IMAGE
, the image thatimageView
was created from must have been created with theIMAGE_USAGE_STORAGE_BIT
usage bit set
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVX
pNext
must beNULL
imageView
must be a validVkImageView
handledescriptorType
must be a validVkDescriptorType
value- If
sampler
is notNULL_HANDLE
,sampler
must be a validVkSampler
handle - Both of
imageView
, andsampler
that are valid handles must have been created, allocated, or retrieved from the sameVkDevice
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkImageViewHandleInfoNVX.Buffer
An array ofVkImageViewHandleInfoNVX
structs.
-
Constructor Summary
Constructors Constructor Description VkImageViewHandleInfoNVX(java.nio.ByteBuffer container)
Creates aVkImageViewHandleInfoNVX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewHandleInfoNVX
calloc()
Returns a newVkImageViewHandleInfoNVX
instance allocated withmemCalloc
.static VkImageViewHandleInfoNVX.Buffer
calloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withmemCalloc
.static VkImageViewHandleInfoNVX
callocStack()
Returns a newVkImageViewHandleInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewHandleInfoNVX.Buffer
callocStack(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewHandleInfoNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewHandleInfoNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewHandleInfoNVX
create()
Returns a newVkImageViewHandleInfoNVX
instance allocated withBufferUtils
.static VkImageViewHandleInfoNVX.Buffer
create(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withBufferUtils
.static VkImageViewHandleInfoNVX
create(long address)
Returns a newVkImageViewHandleInfoNVX
instance for the specified memory address.static VkImageViewHandleInfoNVX.Buffer
create(long address, int capacity)
Create aVkImageViewHandleInfoNVX.Buffer
instance at the specified memory.static VkImageViewHandleInfoNVX
createSafe(long address)
static VkImageViewHandleInfoNVX.Buffer
createSafe(long address, int capacity)
int
descriptorType()
Returns the value of thedescriptorType
field.VkImageViewHandleInfoNVX
descriptorType(int value)
Sets the specified value to thedescriptorType
field.long
imageView()
Returns the value of theimageView
field.VkImageViewHandleInfoNVX
imageView(long value)
Sets the specified value to theimageView
field.static VkImageViewHandleInfoNVX
malloc()
Returns a newVkImageViewHandleInfoNVX
instance allocated withmemAlloc
.static VkImageViewHandleInfoNVX.Buffer
malloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withmemAlloc
.static VkImageViewHandleInfoNVX
mallocStack()
Returns a newVkImageViewHandleInfoNVX
instance allocated on the thread-localMemoryStack
.static VkImageViewHandleInfoNVX.Buffer
mallocStack(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkImageViewHandleInfoNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageViewHandleInfoNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX
instance allocated on the specifiedMemoryStack
.static int
ndescriptorType(long struct)
Unsafe version ofdescriptorType()
.static void
ndescriptorType(long struct, int value)
Unsafe version ofdescriptorType
.static long
nimageView(long struct)
Unsafe version ofimageView()
.static void
nimageView(long struct, long value)
Unsafe version ofimageView
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static long
nsampler(long struct)
Unsafe version ofsampler()
.static void
nsampler(long struct, long value)
Unsafe version ofsampler
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkImageViewHandleInfoNVX
pNext(long value)
Sets the specified value to thepNext
field.long
sampler()
Returns the value of thesampler
field.VkImageViewHandleInfoNVX
sampler(long value)
Sets the specified value to thesampler
field.VkImageViewHandleInfoNVX
set(int sType, long pNext, long imageView, int descriptorType, long sampler)
Initializes this struct with the specified values.VkImageViewHandleInfoNVX
set(VkImageViewHandleInfoNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkImageViewHandleInfoNVX
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkImageViewHandleInfoNVX
public VkImageViewHandleInfoNVX(java.nio.ByteBuffer container)
Creates aVkImageViewHandleInfoNVX
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
imageView
public long imageView()
Returns the value of theimageView
field.
-
descriptorType
public int descriptorType()
Returns the value of thedescriptorType
field.
-
sampler
public long sampler()
Returns the value of thesampler
field.
-
sType
public VkImageViewHandleInfoNVX sType(int value)
Sets the specified value 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 newVkImageViewHandleInfoNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImageViewHandleInfoNVX calloc()
Returns a newVkImageViewHandleInfoNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImageViewHandleInfoNVX create()
Returns a newVkImageViewHandleInfoNVX
instance allocated withBufferUtils
.
-
create
public static VkImageViewHandleInfoNVX create(long address)
Returns a newVkImageViewHandleInfoNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewHandleInfoNVX createSafe(long address)
-
malloc
public static VkImageViewHandleInfoNVX.Buffer malloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImageViewHandleInfoNVX.Buffer calloc(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewHandleInfoNVX.Buffer create(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewHandleInfoNVX.Buffer create(long address, int capacity)
Create aVkImageViewHandleInfoNVX.Buffer
instance 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 newVkImageViewHandleInfoNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImageViewHandleInfoNVX callocStack()
Returns a newVkImageViewHandleInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImageViewHandleInfoNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImageViewHandleInfoNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewHandleInfoNVX
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImageViewHandleInfoNVX.Buffer callocStack(int capacity)
Returns a newVkImageViewHandleInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-