public class VkPhysicalDeviceSparseImageFormatInfo2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
samples must be a bit value that is set in VkImageFormatProperties::sampleCounts returned by vkGetPhysicalDeviceImageFormatProperties with format, type, tiling, and usage equal to those in this command and flags equal to the value that is set in VkImageCreateInfo::flags when the image is createdsType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2pNext must be NULLformat must be a valid VkFormat valuetype must be a valid VkImageType valuesamples must be a valid VkSampleCountFlagBits valueusage must be a valid combination of VkImageUsageFlagBits valuesusage must not be 0tiling must be a valid VkImageTiling valueGetPhysicalDeviceSparseImageFormatProperties2, GetPhysicalDeviceSparseImageFormatProperties2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.format – the image format.type – the dimensionality of image.samples – the number of samples per texel as defined in VkSampleCountFlagBits.usage – a bitmask describing the intended usage of the image.tiling – the tiling arrangement of the texel blocks in memory.
struct VkPhysicalDeviceSparseImageFormatInfo2 {
VkStructureType sType;
void const * pNext;
VkFormat format;
VkImageType type;
VkSampleCountFlagBits samples;
VkImageUsageFlags usage;
VkImageTiling tiling;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceSparseImageFormatInfo2.Buffer
An array of
VkPhysicalDeviceSparseImageFormatInfo2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FORMAT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SAMPLES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TILING
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
static int |
USAGE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceSparseImageFormatInfo2(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceSparseImageFormatInfo2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceSparseImageFormatInfo2 |
calloc()
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with memCalloc. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
callocStack()
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
create()
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with BufferUtils. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
create(long address)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance for the specified memory address. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance at the specified memory. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
createSafe(long address)
|
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
createSafe(long address,
int capacity)
|
int |
format()
Returns the value of the
format field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
format(int value)
Sets the specified value to the
format field. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
malloc()
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with memAlloc. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
mallocStack()
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSparseImageFormatInfo2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceSparseImageFormatInfo2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the specified MemoryStack. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsamples(long struct)
Unsafe version of
samples(). |
static void |
nsamples(long struct,
int value)
Unsafe version of
samples. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
ntiling(long struct)
Unsafe version of
tiling(). |
static void |
ntiling(long struct,
int value)
Unsafe version of
tiling. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
static int |
nusage(long struct)
Unsafe version of
usage(). |
static void |
nusage(long struct,
int value)
Unsafe version of
usage. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
samples()
Returns the value of the
samples field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
samples(int value)
Sets the specified value to the
samples field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
set(int sType,
long pNext,
int format,
int type,
int samples,
int usage,
int tiling)
Initializes this struct with the specified values.
|
VkPhysicalDeviceSparseImageFormatInfo2 |
set(VkPhysicalDeviceSparseImageFormatInfo2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
sType(int value)
Sets the specified value to the
sType field. |
int |
tiling()
Returns the value of the
tiling field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
tiling(int value)
Sets the specified value to the
tiling field. |
int |
type()
Returns the value of the
type field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
type(int value)
Sets the specified value to the
type field. |
int |
usage()
Returns the value of the
usage field. |
VkPhysicalDeviceSparseImageFormatInfo2 |
usage(int value)
Sets the specified value to the
usage field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FORMAT
public static final int TYPE
public static final int SAMPLES
public static final int USAGE
public static final int TILING
public VkPhysicalDeviceSparseImageFormatInfo2(java.nio.ByteBuffer container)
VkPhysicalDeviceSparseImageFormatInfo2 instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int format()
format field.public int type()
type field.public int samples()
samples field.public int usage()
usage field.public int tiling()
tiling field.public VkPhysicalDeviceSparseImageFormatInfo2 sType(int value)
sType field.public VkPhysicalDeviceSparseImageFormatInfo2 pNext(long value)
pNext field.public VkPhysicalDeviceSparseImageFormatInfo2 format(int value)
format field.public VkPhysicalDeviceSparseImageFormatInfo2 type(int value)
type field.public VkPhysicalDeviceSparseImageFormatInfo2 samples(int value)
samples field.public VkPhysicalDeviceSparseImageFormatInfo2 usage(int value)
usage field.public VkPhysicalDeviceSparseImageFormatInfo2 tiling(int value)
tiling field.public VkPhysicalDeviceSparseImageFormatInfo2 set(int sType, long pNext, int format, int type, int samples, int usage, int tiling)
public VkPhysicalDeviceSparseImageFormatInfo2 set(VkPhysicalDeviceSparseImageFormatInfo2 src)
src - the source structpublic static VkPhysicalDeviceSparseImageFormatInfo2 malloc()
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceSparseImageFormatInfo2 calloc()
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceSparseImageFormatInfo2 create()
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated with BufferUtils.public static VkPhysicalDeviceSparseImageFormatInfo2 create(long address)
VkPhysicalDeviceSparseImageFormatInfo2 instance for the specified memory address.@Nullable public static VkPhysicalDeviceSparseImageFormatInfo2 createSafe(long address)
public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer malloc(int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer calloc(int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer create(int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer create(long address, int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceSparseImageFormatInfo2.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceSparseImageFormatInfo2 mallocStack()
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceSparseImageFormatInfo2 callocStack()
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceSparseImageFormatInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceSparseImageFormatInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSparseImageFormatInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer mallocStack(int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer callocStack(int capacity)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceSparseImageFormatInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSparseImageFormatInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nformat(long struct)
format().public static int ntype(long struct)
type().public static int nsamples(long struct)
samples().public static int nusage(long struct)
usage().public static int ntiling(long struct)
tiling().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nformat(long struct,
int value)
format.public static void ntype(long struct,
int value)
type.public static void nsamples(long struct,
int value)
samples.public static void nusage(long struct,
int value)
usage.public static void ntiling(long struct,
int value)
tiling.Copyright LWJGL. All Rights Reserved. License terms.