Package org.lwjgl.vulkan
Class VkPhysicalDeviceSparseImageFormatInfo2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSparseImageFormatInfo2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSparseImageFormatInfo2KHR
public class VkPhysicalDeviceSparseImageFormatInfo2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sparse image format inputs.Valid Usage
samplesmust be a bit value that is set inVkImageFormatProperties::sampleCountsreturned byvkGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling, andusageequal to those in this command andflagsequal to the value that is set inVkImageCreateInfo::flagswhen the image is created
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2pNextmust beNULLformatmust be a validVkFormatvaluetypemust be a validVkImageTypevaluesamplesmust be a validVkSampleCountFlagBitsvalueusagemust be a valid combination ofVkImageUsageFlagBitsvaluesusagemust not be 0tilingmust be a validVkImageTilingvalue
See Also
GetPhysicalDeviceSparseImageFormatProperties2,GetPhysicalDeviceSparseImageFormatProperties2KHRLayout
struct VkPhysicalDeviceSparseImageFormatInfo2 { VkStructureTypesType(); void const *pNext(); VkFormatformat(); VkImageTypetype(); VkSampleCountFlagBitssamples(); VkImageUsageFlagsusage(); VkImageTilingtiling(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSparseImageFormatInfo2.BufferAn array ofVkPhysicalDeviceSparseImageFormatInfo2structs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSparseImageFormatInfo2(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSparseImageFormatInfo2instance 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 VkPhysicalDeviceSparseImageFormatInfo2calloc()Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withmemCalloc.static VkPhysicalDeviceSparseImageFormatInfo2.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSparseImageFormatInfo2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSparseImageFormatInfo2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSparseImageFormatInfo2callocStack()Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2create()Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withBufferUtils.static VkPhysicalDeviceSparseImageFormatInfo2.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSparseImageFormatInfo2create(long address)Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance for the specified memory address.static VkPhysicalDeviceSparseImageFormatInfo2.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance at the specified memory.static VkPhysicalDeviceSparseImageFormatInfo2createSafe(long address)static VkPhysicalDeviceSparseImageFormatInfo2.BuffercreateSafe(long address, int capacity)intformat()the image format.VkPhysicalDeviceSparseImageFormatInfo2format(int value)Sets the specified value to theformat()field.static VkPhysicalDeviceSparseImageFormatInfo2malloc()Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withmemAlloc.static VkPhysicalDeviceSparseImageFormatInfo2.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSparseImageFormatInfo2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSparseImageFormatInfo2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSparseImageFormatInfo2mallocStack()Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSparseImageFormatInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsamples(long struct)Unsafe version ofsamples().static voidnsamples(long struct, int value)Unsafe version ofsamples.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intntiling(long struct)Unsafe version oftiling().static voidntiling(long struct, int value)Unsafe version oftiling.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnusage(long struct)Unsafe version ofusage().static voidnusage(long struct, int value)Unsafe version ofusage.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSparseImageFormatInfo2pNext(long value)Sets the specified value to thepNext()field.intsamples()aVkSampleCountFlagBitsvalue specifying the number of samples per texel.VkPhysicalDeviceSparseImageFormatInfo2samples(int value)Sets the specified value to thesamples()field.VkPhysicalDeviceSparseImageFormatInfo2set(int sType, long pNext, int format, int type, int samples, int usage, int tiling)Initializes this struct with the specified values.VkPhysicalDeviceSparseImageFormatInfo2set(VkPhysicalDeviceSparseImageFormatInfo2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSparseImageFormatInfo2sType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSparseImageFormatInfo2sType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2value to thesType()field.inttiling()the tiling arrangement of the texel blocks in memory.VkPhysicalDeviceSparseImageFormatInfo2tiling(int value)Sets the specified value to thetiling()field.inttype()the dimensionality of image.VkPhysicalDeviceSparseImageFormatInfo2type(int value)Sets the specified value to thetype()field.intusage()a bitmask describing the intended usage of the image.VkPhysicalDeviceSparseImageFormatInfo2usage(int value)Sets the specified value to theusage()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSparseImageFormatInfo2
public VkPhysicalDeviceSparseImageFormatInfo2(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSparseImageFormatInfo2instance 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.
-
format
public int format()
the image format.
-
type
public int type()
the dimensionality of image.
-
samples
public int samples()
aVkSampleCountFlagBitsvalue specifying the number of samples per texel.
-
usage
public int usage()
a bitmask describing the intended usage of the image.
-
tiling
public int tiling()
the tiling arrangement of the texel blocks in memory.
-
sType
public VkPhysicalDeviceSparseImageFormatInfo2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSparseImageFormatInfo2 sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2value to thesType()field.
-
pNext
public VkPhysicalDeviceSparseImageFormatInfo2 pNext(long value)
Sets the specified value to thepNext()field.
-
format
public VkPhysicalDeviceSparseImageFormatInfo2 format(int value)
Sets the specified value to theformat()field.
-
type
public VkPhysicalDeviceSparseImageFormatInfo2 type(int value)
Sets the specified value to thetype()field.
-
samples
public VkPhysicalDeviceSparseImageFormatInfo2 samples(int value)
Sets the specified value to thesamples()field.
-
usage
public VkPhysicalDeviceSparseImageFormatInfo2 usage(int value)
Sets the specified value to theusage()field.
-
tiling
public VkPhysicalDeviceSparseImageFormatInfo2 tiling(int value)
Sets the specified value to thetiling()field.
-
set
public VkPhysicalDeviceSparseImageFormatInfo2 set(int sType, long pNext, int format, int type, int samples, int usage, int tiling)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSparseImageFormatInfo2 set(VkPhysicalDeviceSparseImageFormatInfo2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSparseImageFormatInfo2 malloc()
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSparseImageFormatInfo2 calloc()
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSparseImageFormatInfo2 create()
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSparseImageFormatInfo2 create(long address)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSparseImageFormatInfo2 createSafe(long address)
-
malloc
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSparseImageFormatInfo2.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 VkPhysicalDeviceSparseImageFormatInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceSparseImageFormatInfo2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSparseImageFormatInfo2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSparseImageFormatInfo2.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().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nsamples
public static int nsamples(long struct)
Unsafe version ofsamples().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
ntiling
public static int ntiling(long struct)
Unsafe version oftiling().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nsamples
public static void nsamples(long struct, int value)Unsafe version ofsamples.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
ntiling
public static void ntiling(long struct, int value)Unsafe version oftiling.
-
-