Package org.lwjgl.vulkan
Class VkD3D12FenceSubmitInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkD3D12FenceSubmitInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkD3D12FenceSubmitInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying values for Direct3D 12 fence-backed semaphores.Description
If the semaphore in
VkSubmitInfo
::pWaitSemaphores
orVkSubmitInfo
::pSignalSemaphores
corresponding to an entry inpWaitSemaphoreValues
orpSignalSemaphoreValues
respectively does not currently have a payload referring to a Direct3D 12 fence, the implementation must ignore the value in thepWaitSemaphoreValues
orpSignalSemaphoreValues
entry.Valid Usage
waitSemaphoreValuesCount
must be the same value asVkSubmitInfo
::waitSemaphoreCount
, whereVkSubmitInfo
is in thepNext
chain of thisVkD3D12FenceSubmitInfoKHR
structure.signalSemaphoreValuesCount
must be the same value asVkSubmitInfo
::signalSemaphoreCount
, whereVkSubmitInfo
is in thepNext
chain of thisVkD3D12FenceSubmitInfoKHR
structure.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR
- If
waitSemaphoreValuesCount
is not 0, andpWaitSemaphoreValues
is notNULL
,pWaitSemaphoreValues
must be a valid pointer to an array ofwaitSemaphoreValuesCount
uint64_t
values - If
signalSemaphoreValuesCount
is not 0, andpSignalSemaphoreValues
is notNULL
,pSignalSemaphoreValues
must be a valid pointer to an array ofsignalSemaphoreValuesCount
uint64_t
values
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.waitSemaphoreValuesCount
– the number of semaphore wait values specified inpWaitSemaphoreValues
.pWaitSemaphoreValues
– an array of lengthwaitSemaphoreValuesCount
containing values for the corresponding semaphores inVkSubmitInfo
::pWaitSemaphores
to wait for.signalSemaphoreValuesCount
– the number of semaphore signal values specified inpSignalSemaphoreValues
.pSignalSemaphoreValues
– an array of lengthsignalSemaphoreValuesCount
containing values for the corresponding semaphores inVkSubmitInfo
::pSignalSemaphores
to set when signaled.
Layout
struct VkD3D12FenceSubmitInfoKHR { VkStructureType sType; void const * pNext; uint32_t waitSemaphoreValuesCount; uint64_t const * pWaitSemaphoreValues; uint32_t signalSemaphoreValuesCount; uint64_t const * pSignalSemaphoreValues; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkD3D12FenceSubmitInfoKHR.Buffer
An array ofVkD3D12FenceSubmitInfoKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
PSIGNALSEMAPHOREVALUES
PWAITSEMAPHOREVALUES
SIGNALSEMAPHOREVALUESCOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
WAITSEMAPHOREVALUESCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkD3D12FenceSubmitInfoKHR(java.nio.ByteBuffer container)
Creates aVkD3D12FenceSubmitInfoKHR
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 VkD3D12FenceSubmitInfoKHR
calloc()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withmemCalloc
.static VkD3D12FenceSubmitInfoKHR.Buffer
calloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withmemCalloc
.static VkD3D12FenceSubmitInfoKHR
callocStack()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR
create()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withBufferUtils
.static VkD3D12FenceSubmitInfoKHR.Buffer
create(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withBufferUtils
.static VkD3D12FenceSubmitInfoKHR
create(long address)
Returns a newVkD3D12FenceSubmitInfoKHR
instance for the specified memory address.static VkD3D12FenceSubmitInfoKHR.Buffer
create(long address, int capacity)
Create aVkD3D12FenceSubmitInfoKHR.Buffer
instance at the specified memory.static VkD3D12FenceSubmitInfoKHR
createSafe(long address)
static VkD3D12FenceSubmitInfoKHR.Buffer
createSafe(long address, int capacity)
static VkD3D12FenceSubmitInfoKHR
malloc()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withmemAlloc
.static VkD3D12FenceSubmitInfoKHR.Buffer
malloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withmemAlloc
.static VkD3D12FenceSubmitInfoKHR
mallocStack()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the thread-localMemoryStack
.static VkD3D12FenceSubmitInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkD3D12FenceSubmitInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkD3D12FenceSubmitInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static java.nio.LongBuffer
npSignalSemaphoreValues(long struct)
Unsafe version ofpSignalSemaphoreValues
.static void
npSignalSemaphoreValues(long struct, java.nio.LongBuffer value)
Unsafe version ofpSignalSemaphoreValues
.static java.nio.LongBuffer
npWaitSemaphoreValues(long struct)
Unsafe version ofpWaitSemaphoreValues
.static void
npWaitSemaphoreValues(long struct, java.nio.LongBuffer value)
Unsafe version ofpWaitSemaphoreValues
.static int
nsignalSemaphoreValuesCount(long struct)
Unsafe version ofsignalSemaphoreValuesCount()
.static void
nsignalSemaphoreValuesCount(long struct, int value)
Sets the specified value to thesignalSemaphoreValuesCount
field of the specifiedstruct
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nwaitSemaphoreValuesCount(long struct)
Unsafe version ofwaitSemaphoreValuesCount()
.static void
nwaitSemaphoreValuesCount(long struct, int value)
Sets the specified value to thewaitSemaphoreValuesCount
field of the specifiedstruct
.long
pNext()
Returns the value of thepNext
field.VkD3D12FenceSubmitInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.java.nio.LongBuffer
pSignalSemaphoreValues()
Returns aLongBuffer
view of the data pointed to by thepSignalSemaphoreValues
field.VkD3D12FenceSubmitInfoKHR
pSignalSemaphoreValues(java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepSignalSemaphoreValues
field.java.nio.LongBuffer
pWaitSemaphoreValues()
Returns aLongBuffer
view of the data pointed to by thepWaitSemaphoreValues
field.VkD3D12FenceSubmitInfoKHR
pWaitSemaphoreValues(java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepWaitSemaphoreValues
field.VkD3D12FenceSubmitInfoKHR
set(int sType, long pNext, int waitSemaphoreValuesCount, java.nio.LongBuffer pWaitSemaphoreValues, int signalSemaphoreValuesCount, java.nio.LongBuffer pSignalSemaphoreValues)
Initializes this struct with the specified values.VkD3D12FenceSubmitInfoKHR
set(VkD3D12FenceSubmitInfoKHR src)
Copies the specified struct data to this struct.int
signalSemaphoreValuesCount()
Returns the value of thesignalSemaphoreValuesCount
field.VkD3D12FenceSubmitInfoKHR
signalSemaphoreValuesCount(int value)
Sets the specified value to thesignalSemaphoreValuesCount
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkD3D12FenceSubmitInfoKHR
sType(int value)
Sets the specified value to thesType
field.int
waitSemaphoreValuesCount()
Returns the value of thewaitSemaphoreValuesCount
field.VkD3D12FenceSubmitInfoKHR
waitSemaphoreValuesCount(int value)
Sets the specified value to thewaitSemaphoreValuesCount
field.
-
-
-
Constructor Detail
-
VkD3D12FenceSubmitInfoKHR
public VkD3D12FenceSubmitInfoKHR(java.nio.ByteBuffer container)
Creates aVkD3D12FenceSubmitInfoKHR
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.
-
waitSemaphoreValuesCount
public int waitSemaphoreValuesCount()
Returns the value of thewaitSemaphoreValuesCount
field.
-
pWaitSemaphoreValues
@Nullable public java.nio.LongBuffer pWaitSemaphoreValues()
Returns aLongBuffer
view of the data pointed to by thepWaitSemaphoreValues
field.
-
signalSemaphoreValuesCount
public int signalSemaphoreValuesCount()
Returns the value of thesignalSemaphoreValuesCount
field.
-
pSignalSemaphoreValues
@Nullable public java.nio.LongBuffer pSignalSemaphoreValues()
Returns aLongBuffer
view of the data pointed to by thepSignalSemaphoreValues
field.
-
sType
public VkD3D12FenceSubmitInfoKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkD3D12FenceSubmitInfoKHR pNext(long value)
Sets the specified value to thepNext
field.
-
waitSemaphoreValuesCount
public VkD3D12FenceSubmitInfoKHR waitSemaphoreValuesCount(int value)
Sets the specified value to thewaitSemaphoreValuesCount
field.
-
pWaitSemaphoreValues
public VkD3D12FenceSubmitInfoKHR pWaitSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepWaitSemaphoreValues
field.
-
signalSemaphoreValuesCount
public VkD3D12FenceSubmitInfoKHR signalSemaphoreValuesCount(int value)
Sets the specified value to thesignalSemaphoreValuesCount
field.
-
pSignalSemaphoreValues
public VkD3D12FenceSubmitInfoKHR pSignalSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepSignalSemaphoreValues
field.
-
set
public VkD3D12FenceSubmitInfoKHR set(int sType, long pNext, int waitSemaphoreValuesCount, @Nullable java.nio.LongBuffer pWaitSemaphoreValues, int signalSemaphoreValuesCount, @Nullable java.nio.LongBuffer pSignalSemaphoreValues)
Initializes this struct with the specified values.
-
set
public VkD3D12FenceSubmitInfoKHR set(VkD3D12FenceSubmitInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkD3D12FenceSubmitInfoKHR malloc()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkD3D12FenceSubmitInfoKHR calloc()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkD3D12FenceSubmitInfoKHR create()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkD3D12FenceSubmitInfoKHR create(long address)
Returns a newVkD3D12FenceSubmitInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkD3D12FenceSubmitInfoKHR createSafe(long address)
-
malloc
public static VkD3D12FenceSubmitInfoKHR.Buffer malloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkD3D12FenceSubmitInfoKHR.Buffer calloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkD3D12FenceSubmitInfoKHR.Buffer create(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkD3D12FenceSubmitInfoKHR.Buffer create(long address, int capacity)
Create aVkD3D12FenceSubmitInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkD3D12FenceSubmitInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR mallocStack()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkD3D12FenceSubmitInfoKHR callocStack()
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkD3D12FenceSubmitInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer callocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.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()
.
-
nwaitSemaphoreValuesCount
public static int nwaitSemaphoreValuesCount(long struct)
Unsafe version ofwaitSemaphoreValuesCount()
.
-
npWaitSemaphoreValues
@Nullable public static java.nio.LongBuffer npWaitSemaphoreValues(long struct)
Unsafe version ofpWaitSemaphoreValues
.
-
nsignalSemaphoreValuesCount
public static int nsignalSemaphoreValuesCount(long struct)
Unsafe version ofsignalSemaphoreValuesCount()
.
-
npSignalSemaphoreValues
@Nullable public static java.nio.LongBuffer npSignalSemaphoreValues(long struct)
Unsafe version ofpSignalSemaphoreValues
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nwaitSemaphoreValuesCount
public static void nwaitSemaphoreValuesCount(long struct, int value)
Sets the specified value to thewaitSemaphoreValuesCount
field of the specifiedstruct
.
-
npWaitSemaphoreValues
public static void npWaitSemaphoreValues(long struct, @Nullable java.nio.LongBuffer value)
Unsafe version ofpWaitSemaphoreValues
.
-
nsignalSemaphoreValuesCount
public static void nsignalSemaphoreValuesCount(long struct, int value)
Sets the specified value to thesignalSemaphoreValuesCount
field of the specifiedstruct
.
-
npSignalSemaphoreValues
public static void npSignalSemaphoreValues(long struct, @Nullable java.nio.LongBuffer value)
Unsafe version ofpSignalSemaphoreValues
.
-
-