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.NativeResourceStructure describing capabilities of a surface.Valid Usage
supportedSurfaceCountersmust not includeSURFACE_COUNTER_VBLANK_EXTunless the surface queried is a display surface.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXTpNextmust beNULL
See Also
VkExtent2D,GetPhysicalDeviceSurfaceCapabilities2EXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.supportedSurfaceCounters– a bitmask ofVkSurfaceCounterFlagBitsEXTindicating the supported surface counter types.
Layout
struct VkSurfaceCapabilities2EXT { VkStructureType sType; void * pNext; uint32_t minImageCount; uint32_t maxImageCount;VkExtent2DcurrentExtent;VkExtent2DminImageExtent;VkExtent2DmaxImageExtent; uint32_t maxImageArrayLayers; VkSurfaceTransformFlagsKHR supportedTransforms; VkSurfaceTransformFlagBitsKHR currentTransform; VkCompositeAlphaFlagsKHR supportedCompositeAlpha; VkImageUsageFlags supportedUsageFlags; VkSurfaceCounterFlagsEXT supportedSurfaceCounters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSurfaceCapabilities2EXT.BufferAn array ofVkSurfaceCapabilities2EXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCURRENTEXTENT
CURRENTTRANSFORM
MAXIMAGEARRAYLAYERS
MAXIMAGECOUNT
MAXIMAGEEXTENT
MINIMAGECOUNT
MINIMAGEEXTENT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUPPORTEDCOMPOSITEALPHA
SUPPORTEDSURFACECOUNTERS
SUPPORTEDTRANSFORMS
SUPPORTEDUSAGEFLAGSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSurfaceCapabilities2EXT(java.nio.ByteBuffer container)Creates aVkSurfaceCapabilities2EXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSurfaceCapabilities2EXTcalloc()Returns a newVkSurfaceCapabilities2EXTinstance allocated withmemCalloc.static VkSurfaceCapabilities2EXT.Buffercalloc(int capacity)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withmemCalloc.static VkSurfaceCapabilities2EXTcallocStack()Returns a newVkSurfaceCapabilities2EXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSurfaceCapabilities2EXT.BuffercallocStack(int capacity)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSurfaceCapabilities2EXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSurfaceCapabilities2EXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceCapabilities2EXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSurfaceCapabilities2EXTcreate()Returns a newVkSurfaceCapabilities2EXTinstance allocated withBufferUtils.static VkSurfaceCapabilities2EXT.Buffercreate(int capacity)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withBufferUtils.static VkSurfaceCapabilities2EXTcreate(long address)Returns a newVkSurfaceCapabilities2EXTinstance for the specified memory address.static VkSurfaceCapabilities2EXT.Buffercreate(long address, int capacity)Create aVkSurfaceCapabilities2EXT.Bufferinstance at the specified memory.static VkSurfaceCapabilities2EXTcreateSafe(long address)static VkSurfaceCapabilities2EXT.BuffercreateSafe(long address, int capacity)VkExtent2DcurrentExtent()Returns aVkExtent2Dview of thecurrentExtentfield.intcurrentTransform()Returns the value of thecurrentTransformfield.static VkSurfaceCapabilities2EXTmalloc()Returns a newVkSurfaceCapabilities2EXTinstance allocated withmemAlloc.static VkSurfaceCapabilities2EXT.Buffermalloc(int capacity)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withmemAlloc.static VkSurfaceCapabilities2EXTmallocStack()Returns a newVkSurfaceCapabilities2EXTinstance allocated on the thread-localMemoryStack.static VkSurfaceCapabilities2EXT.BuffermallocStack(int capacity)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated on the thread-localMemoryStack.static VkSurfaceCapabilities2EXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated on the specifiedMemoryStack.static VkSurfaceCapabilities2EXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceCapabilities2EXTinstance allocated on the specifiedMemoryStack.intmaxImageArrayLayers()Returns the value of themaxImageArrayLayersfield.intmaxImageCount()Returns the value of themaxImageCountfield.VkExtent2DmaxImageExtent()Returns aVkExtent2Dview of themaxImageExtentfield.intminImageCount()Returns the value of theminImageCountfield.VkExtent2DminImageExtent()Returns aVkExtent2Dview of theminImageExtentfield.static VkExtent2DncurrentExtent(long struct)Unsafe version ofcurrentExtent().static intncurrentTransform(long struct)Unsafe version ofcurrentTransform().static intnmaxImageArrayLayers(long struct)Unsafe version ofmaxImageArrayLayers().static intnmaxImageCount(long struct)Unsafe version ofmaxImageCount().static VkExtent2DnmaxImageExtent(long struct)Unsafe version ofmaxImageExtent().static intnminImageCount(long struct)Unsafe version ofminImageCount().static VkExtent2DnminImageExtent(long struct)Unsafe version ofminImageExtent().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnsupportedCompositeAlpha(long struct)Unsafe version ofsupportedCompositeAlpha().static intnsupportedSurfaceCounters(long struct)Unsafe version ofsupportedSurfaceCounters().static intnsupportedTransforms(long struct)Unsafe version ofsupportedTransforms().static intnsupportedUsageFlags(long struct)Unsafe version ofsupportedUsageFlags().longpNext()Returns the value of thepNextfield.VkSurfaceCapabilities2EXTpNext(long value)Sets the specified value to thepNextfield.VkSurfaceCapabilities2EXTset(int sType, long pNext)Initializes this struct with the specified values.VkSurfaceCapabilities2EXTset(VkSurfaceCapabilities2EXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkSurfaceCapabilities2EXTsType(int value)Sets the specified value to thesTypefield.intsupportedCompositeAlpha()Returns the value of thesupportedCompositeAlphafield.intsupportedSurfaceCounters()Returns the value of thesupportedSurfaceCountersfield.intsupportedTransforms()Returns the value of thesupportedTransformsfield.intsupportedUsageFlags()Returns the value of thesupportedUsageFlagsfield.
-
-
-
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 aVkSurfaceCapabilities2EXTinstance 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.
-
minImageCount
public int minImageCount()
Returns the value of theminImageCountfield.
-
maxImageCount
public int maxImageCount()
Returns the value of themaxImageCountfield.
-
currentExtent
public VkExtent2D currentExtent()
Returns aVkExtent2Dview of thecurrentExtentfield.
-
minImageExtent
public VkExtent2D minImageExtent()
Returns aVkExtent2Dview of theminImageExtentfield.
-
maxImageExtent
public VkExtent2D maxImageExtent()
Returns aVkExtent2Dview of themaxImageExtentfield.
-
maxImageArrayLayers
public int maxImageArrayLayers()
Returns the value of themaxImageArrayLayersfield.
-
supportedTransforms
public int supportedTransforms()
Returns the value of thesupportedTransformsfield.
-
currentTransform
public int currentTransform()
Returns the value of thecurrentTransformfield.
-
supportedCompositeAlpha
public int supportedCompositeAlpha()
Returns the value of thesupportedCompositeAlphafield.
-
supportedUsageFlags
public int supportedUsageFlags()
Returns the value of thesupportedUsageFlagsfield.
-
supportedSurfaceCounters
public int supportedSurfaceCounters()
Returns the value of thesupportedSurfaceCountersfield.
-
sType
public VkSurfaceCapabilities2EXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSurfaceCapabilities2EXT pNext(long value)
Sets the specified value to thepNextfield.
-
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 newVkSurfaceCapabilities2EXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSurfaceCapabilities2EXT calloc()
Returns a newVkSurfaceCapabilities2EXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSurfaceCapabilities2EXT create()
Returns a newVkSurfaceCapabilities2EXTinstance allocated withBufferUtils.
-
create
public static VkSurfaceCapabilities2EXT create(long address)
Returns a newVkSurfaceCapabilities2EXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkSurfaceCapabilities2EXT createSafe(long address)
-
malloc
public static VkSurfaceCapabilities2EXT.Buffer malloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSurfaceCapabilities2EXT.Buffer calloc(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSurfaceCapabilities2EXT.Buffer create(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSurfaceCapabilities2EXT.Buffer create(long address, int capacity)
Create aVkSurfaceCapabilities2EXT.Bufferinstance 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 newVkSurfaceCapabilities2EXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSurfaceCapabilities2EXT callocStack()
Returns a newVkSurfaceCapabilities2EXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSurfaceCapabilities2EXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSurfaceCapabilities2EXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceCapabilities2EXTinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSurfaceCapabilities2EXT.Buffer callocStack(int capacity)
Returns a newVkSurfaceCapabilities2EXT.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-