Package org.lwjgl.vulkan
Class VkDeviceGroupSwapchainCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceGroupSwapchainCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceGroupSwapchainCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created swapchain object.Description
If this structure is not present,
modesis considered to beDEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHRmodesmust be a valid combination ofVkDeviceGroupPresentModeFlagBitsKHRvaluesmodesmust not be 0
Layout
struct VkDeviceGroupSwapchainCreateInfoKHR { VkStructureTypesType(); void const *pNext(); VkDeviceGroupPresentModeFlagsKHRmodes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceGroupSwapchainCreateInfoKHR.BufferAn array ofVkDeviceGroupSwapchainCreateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupSwapchainCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkDeviceGroupSwapchainCreateInfoKHRinstance 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 VkDeviceGroupSwapchainCreateInfoKHRcalloc()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withmemCalloc.static VkDeviceGroupSwapchainCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkDeviceGroupSwapchainCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSwapchainCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSwapchainCreateInfoKHRcallocStack()Deprecated.static VkDeviceGroupSwapchainCreateInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkDeviceGroupSwapchainCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceGroupSwapchainCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceGroupSwapchainCreateInfoKHRcreate()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withBufferUtils.static VkDeviceGroupSwapchainCreateInfoKHR.Buffercreate(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkDeviceGroupSwapchainCreateInfoKHRcreate(long address)Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance for the specified memory address.static VkDeviceGroupSwapchainCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance at the specified memory.static VkDeviceGroupSwapchainCreateInfoKHRcreateSafe(long address)static VkDeviceGroupSwapchainCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkDeviceGroupSwapchainCreateInfoKHRmalloc()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withmemAlloc.static VkDeviceGroupSwapchainCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkDeviceGroupSwapchainCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSwapchainCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSwapchainCreateInfoKHRmallocStack()Deprecated.static VkDeviceGroupSwapchainCreateInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkDeviceGroupSwapchainCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceGroupSwapchainCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmodes()a bitfield of modes that the swapchain can be used with.VkDeviceGroupSwapchainCreateInfoKHRmodes(int value)Sets the specified value to themodes()field.static intnmodes(long struct)Unsafe version ofmodes().static voidnmodes(long struct, int value)Unsafe version ofmodes.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.longpNext()NULLor a pointer to a structure extending this structure.VkDeviceGroupSwapchainCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkDeviceGroupSwapchainCreateInfoKHRset(int sType, long pNext, int modes)Initializes this struct with the specified values.VkDeviceGroupSwapchainCreateInfoKHRset(VkDeviceGroupSwapchainCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDeviceGroupSwapchainCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkDeviceGroupSwapchainCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDeviceGroupSwapchainCreateInfoKHR
public VkDeviceGroupSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkDeviceGroupSwapchainCreateInfoKHRinstance 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.
-
modes
public int modes()
a bitfield of modes that the swapchain can be used with.
-
sType
public VkDeviceGroupSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceGroupSwapchainCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkDeviceGroupSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
modes
public VkDeviceGroupSwapchainCreateInfoKHR modes(int value)
Sets the specified value to themodes()field.
-
set
public VkDeviceGroupSwapchainCreateInfoKHR set(int sType, long pNext, int modes)
Initializes this struct with the specified values.
-
set
public VkDeviceGroupSwapchainCreateInfoKHR set(VkDeviceGroupSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceGroupSwapchainCreateInfoKHR malloc()
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupSwapchainCreateInfoKHR calloc()
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceGroupSwapchainCreateInfoKHR create()
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkDeviceGroupSwapchainCreateInfoKHR create(long address)
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupSwapchainCreateInfoKHR createSafe(long address)
-
malloc
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer create(int capacity)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSwapchainCreateInfoKHR.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 VkDeviceGroupSwapchainCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDeviceGroupSwapchainCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceGroupSwapchainCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.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().
-
nmodes
public static int nmodes(long struct)
Unsafe version ofmodes().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmodes
public static void nmodes(long struct, int value)Unsafe version ofmodes.
-
-