Package org.lwjgl.vulkan
Class VkSurfaceCapabilities2EXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSurfaceCapabilities2EXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSurfaceCapabilities2EXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing capabilities of a surface.Valid Usage
supportedSurfaceCounters
must not includeSURFACE_COUNTER_VBLANK_EXT
unless the surface queried is a display surface.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT
pNext
must beNULL
See Also
VkExtent2D
,GetPhysicalDeviceSurfaceCapabilities2EXT
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.supportedSurfaceCounters
– a bitmask ofVkSurfaceCounterFlagBitsEXT
indicating the supported surface counter types.
Layout
struct VkSurfaceCapabilities2EXT { VkStructureType sType; void * pNext; uint32_t minImageCount; uint32_t maxImageCount;
VkExtent2D
currentExtent;VkExtent2D
minImageExtent;VkExtent2D
maxImageExtent; uint32_t maxImageArrayLayers; VkSurfaceTransformFlagsKHR supportedTransforms; VkSurfaceTransformFlagBitsKHR currentTransform; VkCompositeAlphaFlagsKHR supportedCompositeAlpha; VkImageUsageFlags supportedUsageFlags; VkSurfaceCounterFlagsEXT supportedSurfaceCounters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSurfaceCapabilities2EXT.Buffer
An array ofVkSurfaceCapabilities2EXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CURRENTEXTENT
CURRENTTRANSFORM
MAXIMAGEARRAYLAYERS
MAXIMAGECOUNT
MAXIMAGEEXTENT
MINIMAGECOUNT
MINIMAGEEXTENT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
SUPPORTEDCOMPOSITEALPHA
SUPPORTEDSURFACECOUNTERS
SUPPORTEDTRANSFORMS
SUPPORTEDUSAGEFLAGSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSurfaceCapabilities2EXT(java.nio.ByteBuffer container)
Creates aVkSurfaceCapabilities2EXT
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 VkSurfaceCapabilities2EXT
calloc()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withmemCalloc
.static VkSurfaceCapabilities2EXT.Buffer
calloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withmemCalloc
.static VkSurfaceCapabilities2EXT
callocStack()
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSurfaceCapabilities2EXT.Buffer
callocStack(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSurfaceCapabilities2EXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSurfaceCapabilities2EXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSurfaceCapabilities2EXT
create()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withBufferUtils
.static VkSurfaceCapabilities2EXT.Buffer
create(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withBufferUtils
.static VkSurfaceCapabilities2EXT
create(long address)
Returns a newVkSurfaceCapabilities2EXT
instance for the specified memory address.static VkSurfaceCapabilities2EXT.Buffer
create(long address, int capacity)
Create aVkSurfaceCapabilities2EXT.Buffer
instance at the specified memory.static VkSurfaceCapabilities2EXT
createSafe(long address)
static VkSurfaceCapabilities2EXT.Buffer
createSafe(long address, int capacity)
VkExtent2D
currentExtent()
Returns aVkExtent2D
view of thecurrentExtent
field.int
currentTransform()
Returns the value of thecurrentTransform
field.static VkSurfaceCapabilities2EXT
malloc()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withmemAlloc
.static VkSurfaceCapabilities2EXT.Buffer
malloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withmemAlloc
.static VkSurfaceCapabilities2EXT
mallocStack()
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the thread-localMemoryStack
.static VkSurfaceCapabilities2EXT.Buffer
mallocStack(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkSurfaceCapabilities2EXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkSurfaceCapabilities2EXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the specifiedMemoryStack
.int
maxImageArrayLayers()
Returns the value of themaxImageArrayLayers
field.int
maxImageCount()
Returns the value of themaxImageCount
field.VkExtent2D
maxImageExtent()
Returns aVkExtent2D
view of themaxImageExtent
field.int
minImageCount()
Returns the value of theminImageCount
field.VkExtent2D
minImageExtent()
Returns aVkExtent2D
view of theminImageExtent
field.static VkExtent2D
ncurrentExtent(long struct)
Unsafe version ofcurrentExtent()
.static int
ncurrentTransform(long struct)
Unsafe version ofcurrentTransform()
.static int
nmaxImageArrayLayers(long struct)
Unsafe version ofmaxImageArrayLayers()
.static int
nmaxImageCount(long struct)
Unsafe version ofmaxImageCount()
.static VkExtent2D
nmaxImageExtent(long struct)
Unsafe version ofmaxImageExtent()
.static int
nminImageCount(long struct)
Unsafe version ofminImageCount()
.static VkExtent2D
nminImageExtent(long struct)
Unsafe version ofminImageExtent()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nsupportedCompositeAlpha(long struct)
Unsafe version ofsupportedCompositeAlpha()
.static int
nsupportedSurfaceCounters(long struct)
Unsafe version ofsupportedSurfaceCounters()
.static int
nsupportedTransforms(long struct)
Unsafe version ofsupportedTransforms()
.static int
nsupportedUsageFlags(long struct)
Unsafe version ofsupportedUsageFlags()
.long
pNext()
Returns the value of thepNext
field.VkSurfaceCapabilities2EXT
pNext(long value)
Sets the specified value to thepNext
field.VkSurfaceCapabilities2EXT
set(int sType, long pNext)
Initializes this struct with the specified values.VkSurfaceCapabilities2EXT
set(VkSurfaceCapabilities2EXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkSurfaceCapabilities2EXT
sType(int value)
Sets the specified value to thesType
field.int
supportedCompositeAlpha()
Returns the value of thesupportedCompositeAlpha
field.int
supportedSurfaceCounters()
Returns the value of thesupportedSurfaceCounters
field.int
supportedTransforms()
Returns the value of thesupportedTransforms
field.int
supportedUsageFlags()
Returns the value of thesupportedUsageFlags
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, MINIMAGECOUNT, MAXIMAGECOUNT, CURRENTEXTENT, MINIMAGEEXTENT, MAXIMAGEEXTENT, MAXIMAGEARRAYLAYERS, SUPPORTEDTRANSFORMS, CURRENTTRANSFORM, SUPPORTEDCOMPOSITEALPHA, SUPPORTEDUSAGEFLAGS, SUPPORTEDSURFACECOUNTERS
The struct member offsets.
-
-
Constructor Detail
-
VkSurfaceCapabilities2EXT
public VkSurfaceCapabilities2EXT(java.nio.ByteBuffer container)
Creates aVkSurfaceCapabilities2EXT
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.
-
minImageCount
public int minImageCount()
Returns the value of theminImageCount
field.
-
maxImageCount
public int maxImageCount()
Returns the value of themaxImageCount
field.
-
currentExtent
public VkExtent2D currentExtent()
Returns aVkExtent2D
view of thecurrentExtent
field.
-
minImageExtent
public VkExtent2D minImageExtent()
Returns aVkExtent2D
view of theminImageExtent
field.
-
maxImageExtent
public VkExtent2D maxImageExtent()
Returns aVkExtent2D
view of themaxImageExtent
field.
-
maxImageArrayLayers
public int maxImageArrayLayers()
Returns the value of themaxImageArrayLayers
field.
-
supportedTransforms
public int supportedTransforms()
Returns the value of thesupportedTransforms
field.
-
currentTransform
public int currentTransform()
Returns the value of thecurrentTransform
field.
-
supportedCompositeAlpha
public int supportedCompositeAlpha()
Returns the value of thesupportedCompositeAlpha
field.
-
supportedUsageFlags
public int supportedUsageFlags()
Returns the value of thesupportedUsageFlags
field.
-
supportedSurfaceCounters
public int supportedSurfaceCounters()
Returns the value of thesupportedSurfaceCounters
field.
-
sType
public VkSurfaceCapabilities2EXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSurfaceCapabilities2EXT pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkSurfaceCapabilities2EXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkSurfaceCapabilities2EXT set(VkSurfaceCapabilities2EXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSurfaceCapabilities2EXT malloc()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSurfaceCapabilities2EXT calloc()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSurfaceCapabilities2EXT create()
Returns a newVkSurfaceCapabilities2EXT
instance allocated withBufferUtils
.
-
create
public static VkSurfaceCapabilities2EXT create(long address)
Returns a newVkSurfaceCapabilities2EXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkSurfaceCapabilities2EXT createSafe(long address)
-
malloc
public static VkSurfaceCapabilities2EXT.Buffer malloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSurfaceCapabilities2EXT.Buffer calloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSurfaceCapabilities2EXT.Buffer create(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSurfaceCapabilities2EXT.Buffer create(long address, int capacity)
Create aVkSurfaceCapabilities2EXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSurfaceCapabilities2EXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSurfaceCapabilities2EXT mallocStack()
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSurfaceCapabilities2EXT callocStack()
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSurfaceCapabilities2EXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSurfaceCapabilities2EXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSurfaceCapabilities2EXT.Buffer mallocStack(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSurfaceCapabilities2EXT.Buffer callocStack(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSurfaceCapabilities2EXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSurfaceCapabilities2EXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXT.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()
.
-
nminImageCount
public static int nminImageCount(long struct)
Unsafe version ofminImageCount()
.
-
nmaxImageCount
public static int nmaxImageCount(long struct)
Unsafe version ofmaxImageCount()
.
-
ncurrentExtent
public static VkExtent2D ncurrentExtent(long struct)
Unsafe version ofcurrentExtent()
.
-
nminImageExtent
public static VkExtent2D nminImageExtent(long struct)
Unsafe version ofminImageExtent()
.
-
nmaxImageExtent
public static VkExtent2D nmaxImageExtent(long struct)
Unsafe version ofmaxImageExtent()
.
-
nmaxImageArrayLayers
public static int nmaxImageArrayLayers(long struct)
Unsafe version ofmaxImageArrayLayers()
.
-
nsupportedTransforms
public static int nsupportedTransforms(long struct)
Unsafe version ofsupportedTransforms()
.
-
ncurrentTransform
public static int ncurrentTransform(long struct)
Unsafe version ofcurrentTransform()
.
-
nsupportedCompositeAlpha
public static int nsupportedCompositeAlpha(long struct)
Unsafe version ofsupportedCompositeAlpha()
.
-
nsupportedUsageFlags
public static int nsupportedUsageFlags(long struct)
Unsafe version ofsupportedUsageFlags()
.
-
nsupportedSurfaceCounters
public static int nsupportedSurfaceCounters(long struct)
Unsafe version ofsupportedSurfaceCounters()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-