Package org.lwjgl.vulkan
Class VkDeviceGroupCommandBufferBeginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceGroupCommandBufferBeginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDeviceGroupCommandBufferBeginInfoKHR
public class VkDeviceGroupCommandBufferBeginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Set the initial device mask for a command buffer.Description
The initial device mask also acts as an upper bound on the set of devices that can ever be in the device mask in the command buffer.
If this structure is not present, the initial value of a command buffer's device mask is set to include all physical devices in the logical device when the command buffer begins recording.
Valid Usage
deviceMask
must be a valid device mask valuedeviceMask
must not be zero
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.deviceMask
– the initial value of the command buffer’s device mask.
Layout
struct VkDeviceGroupCommandBufferBeginInfo { VkStructureType sType; void const * pNext; uint32_t deviceMask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDeviceGroupCommandBufferBeginInfo.Buffer
An array ofVkDeviceGroupCommandBufferBeginInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEVICEMASK
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupCommandBufferBeginInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupCommandBufferBeginInfo
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 VkDeviceGroupCommandBufferBeginInfo
calloc()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withmemCalloc
.static VkDeviceGroupCommandBufferBeginInfo.Buffer
calloc(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withmemCalloc
.static VkDeviceGroupCommandBufferBeginInfo
callocStack()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupCommandBufferBeginInfo.Buffer
callocStack(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupCommandBufferBeginInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupCommandBufferBeginInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupCommandBufferBeginInfo
create()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withBufferUtils
.static VkDeviceGroupCommandBufferBeginInfo.Buffer
create(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withBufferUtils
.static VkDeviceGroupCommandBufferBeginInfo
create(long address)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance for the specified memory address.static VkDeviceGroupCommandBufferBeginInfo.Buffer
create(long address, int capacity)
Create aVkDeviceGroupCommandBufferBeginInfo.Buffer
instance at the specified memory.static VkDeviceGroupCommandBufferBeginInfo
createSafe(long address)
static VkDeviceGroupCommandBufferBeginInfo.Buffer
createSafe(long address, int capacity)
int
deviceMask()
Returns the value of thedeviceMask
field.VkDeviceGroupCommandBufferBeginInfo
deviceMask(int value)
Sets the specified value to thedeviceMask
field.static VkDeviceGroupCommandBufferBeginInfo
malloc()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withmemAlloc
.static VkDeviceGroupCommandBufferBeginInfo.Buffer
malloc(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withmemAlloc
.static VkDeviceGroupCommandBufferBeginInfo
mallocStack()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupCommandBufferBeginInfo.Buffer
mallocStack(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupCommandBufferBeginInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceGroupCommandBufferBeginInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the specifiedMemoryStack
.static int
ndeviceMask(long struct)
Unsafe version ofdeviceMask()
.static void
ndeviceMask(long struct, int value)
Unsafe version ofdeviceMask
.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
.long
pNext()
Returns the value of thepNext
field.VkDeviceGroupCommandBufferBeginInfo
pNext(long value)
Sets the specified value to thepNext
field.VkDeviceGroupCommandBufferBeginInfo
set(int sType, long pNext, int deviceMask)
Initializes this struct with the specified values.VkDeviceGroupCommandBufferBeginInfo
set(VkDeviceGroupCommandBufferBeginInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDeviceGroupCommandBufferBeginInfo
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkDeviceGroupCommandBufferBeginInfo
public VkDeviceGroupCommandBufferBeginInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupCommandBufferBeginInfo
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.
-
deviceMask
public int deviceMask()
Returns the value of thedeviceMask
field.
-
sType
public VkDeviceGroupCommandBufferBeginInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDeviceGroupCommandBufferBeginInfo pNext(long value)
Sets the specified value to thepNext
field.
-
deviceMask
public VkDeviceGroupCommandBufferBeginInfo deviceMask(int value)
Sets the specified value to thedeviceMask
field.
-
set
public VkDeviceGroupCommandBufferBeginInfo set(int sType, long pNext, int deviceMask)
Initializes this struct with the specified values.
-
set
public VkDeviceGroupCommandBufferBeginInfo set(VkDeviceGroupCommandBufferBeginInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceGroupCommandBufferBeginInfo malloc()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupCommandBufferBeginInfo calloc()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceGroupCommandBufferBeginInfo create()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated withBufferUtils
.
-
create
public static VkDeviceGroupCommandBufferBeginInfo create(long address)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupCommandBufferBeginInfo createSafe(long address)
-
malloc
public static VkDeviceGroupCommandBufferBeginInfo.Buffer malloc(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceGroupCommandBufferBeginInfo.Buffer calloc(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupCommandBufferBeginInfo.Buffer create(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupCommandBufferBeginInfo.Buffer create(long address, int capacity)
Create aVkDeviceGroupCommandBufferBeginInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDeviceGroupCommandBufferBeginInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceGroupCommandBufferBeginInfo mallocStack()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceGroupCommandBufferBeginInfo callocStack()
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupCommandBufferBeginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceGroupCommandBufferBeginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDeviceGroupCommandBufferBeginInfo.Buffer mallocStack(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupCommandBufferBeginInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceGroupCommandBufferBeginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupCommandBufferBeginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupCommandBufferBeginInfo.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()
.
-
ndeviceMask
public static int ndeviceMask(long struct)
Unsafe version ofdeviceMask()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ndeviceMask
public static void ndeviceMask(long struct, int value)
Unsafe version ofdeviceMask
.
-
-