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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.modes– a bitfield of modes that the swapchain can be used with.
Layout
struct VkDeviceGroupSwapchainCreateInfoKHR { VkStructureType sType; void const * pNext; VkDeviceGroupPresentModeFlagsKHR modes; }
-
-
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 Modifier and Type Method Description static VkDeviceGroupSwapchainCreateInfoKHRcalloc()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated withmemCalloc.static VkDeviceGroupSwapchainCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkDeviceGroupSwapchainCreateInfoKHRcallocStack()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupSwapchainCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupSwapchainCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSwapchainCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkDeviceGroupSwapchainCreateInfoKHRmallocStack()Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkDeviceGroupSwapchainCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceGroupSwapchainCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSwapchainCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.intmodes()Returns the value of themodesfield.VkDeviceGroupSwapchainCreateInfoKHRmodes(int value)Sets the specified value to themodesfield.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()Returns the value of thepNextfield.VkDeviceGroupSwapchainCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkDeviceGroupSwapchainCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
modes
public int modes()
Returns the value of themodesfield.
-
sType
public VkDeviceGroupSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceGroupSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
modes
public VkDeviceGroupSwapchainCreateInfoKHR modes(int value)
Sets the specified value to themodesfield.
-
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
public static VkDeviceGroupSwapchainCreateInfoKHR mallocStack()
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceGroupSwapchainCreateInfoKHR callocStack()
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceGroupSwapchainCreateInfoKHR callocStack(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
-
mallocStack
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer mallocStack(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
-
callocStack
public static VkDeviceGroupSwapchainCreateInfoKHR.Buffer callocStack(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.
-
-