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.NativeResourceStructure specifying values for Direct3D 12 fence-backed semaphores.Description
If the semaphore in
VkSubmitInfo::pWaitSemaphoresorVkSubmitInfo::pSignalSemaphorescorresponding to an entry inpWaitSemaphoreValuesorpSignalSemaphoreValuesrespectively does not currently have a payload referring to a Direct3D 12 fence, the implementation must ignore the value in thepWaitSemaphoreValuesorpSignalSemaphoreValuesentry.Note
As the introduction of the external semaphore handle type
EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BITpredates that of timeline semaphores, support for importing semaphore payloads from external handles of that type into semaphores created (implicitly or explicitly) with aVkSemaphoreTypeofSEMAPHORE_TYPE_BINARYis preserved for backwards compatibility. However, applications should prefer importing such handle types into semaphores created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINE, and use theVkTimelineSemaphoreSubmitInfostructure instead of theVkD3D12FenceSubmitInfoKHRstructure to specify the values to use when waiting for and signaling such semaphores.Valid Usage
waitSemaphoreValuesCountmust be the same value asVkSubmitInfo::waitSemaphoreCount, whereVkSubmitInfois in thepNextchain of thisVkD3D12FenceSubmitInfoKHRstructuresignalSemaphoreValuesCountmust be the same value asVkSubmitInfo::signalSemaphoreCount, whereVkSubmitInfois in thepNextchain of thisVkD3D12FenceSubmitInfoKHRstructure
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR- If
waitSemaphoreValuesCountis not 0, andpWaitSemaphoreValuesis notNULL,pWaitSemaphoreValuesmust be a valid pointer to an array ofwaitSemaphoreValuesCountuint64_tvalues - If
signalSemaphoreValuesCountis not 0, andpSignalSemaphoreValuesis notNULL,pSignalSemaphoreValuesmust be a valid pointer to an array ofsignalSemaphoreValuesCountuint64_tvalues
Layout
struct VkD3D12FenceSubmitInfoKHR { VkStructureTypesType(); void const *pNext(); uint32_twaitSemaphoreValuesCount(); uint64_t const *pWaitSemaphoreValues(); uint32_tsignalSemaphoreValuesCount(); uint64_t const *pSignalSemaphoreValues(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkD3D12FenceSubmitInfoKHR.BufferAn array ofVkD3D12FenceSubmitInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PSIGNALSEMAPHOREVALUES
PWAITSEMAPHOREVALUES
SIGNALSEMAPHOREVALUESCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
WAITSEMAPHOREVALUESCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkD3D12FenceSubmitInfoKHR(java.nio.ByteBuffer container)Creates aVkD3D12FenceSubmitInfoKHRinstance 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 VkD3D12FenceSubmitInfoKHRcalloc()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withmemCalloc.static VkD3D12FenceSubmitInfoKHR.Buffercalloc(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withmemCalloc.static VkD3D12FenceSubmitInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHRcallocStack()Deprecated.static VkD3D12FenceSubmitInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkD3D12FenceSubmitInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkD3D12FenceSubmitInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkD3D12FenceSubmitInfoKHRcreate()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withBufferUtils.static VkD3D12FenceSubmitInfoKHR.Buffercreate(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withBufferUtils.static VkD3D12FenceSubmitInfoKHRcreate(long address)Returns a newVkD3D12FenceSubmitInfoKHRinstance for the specified memory address.static VkD3D12FenceSubmitInfoKHR.Buffercreate(long address, int capacity)Create aVkD3D12FenceSubmitInfoKHR.Bufferinstance at the specified memory.static VkD3D12FenceSubmitInfoKHRcreateSafe(long address)static VkD3D12FenceSubmitInfoKHR.BuffercreateSafe(long address, int capacity)static VkD3D12FenceSubmitInfoKHRmalloc()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withmemAlloc.static VkD3D12FenceSubmitInfoKHR.Buffermalloc(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withmemAlloc.static VkD3D12FenceSubmitInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkD3D12FenceSubmitInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStack.static VkD3D12FenceSubmitInfoKHRmallocStack()Deprecated.static VkD3D12FenceSubmitInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkD3D12FenceSubmitInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkD3D12FenceSubmitInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.LongBuffernpSignalSemaphoreValues(long struct)Unsafe version ofpSignalSemaphoreValues.static voidnpSignalSemaphoreValues(long struct, java.nio.LongBuffer value)Unsafe version ofpSignalSemaphoreValues.static java.nio.LongBuffernpWaitSemaphoreValues(long struct)Unsafe version ofpWaitSemaphoreValues.static voidnpWaitSemaphoreValues(long struct, java.nio.LongBuffer value)Unsafe version ofpWaitSemaphoreValues.static intnsignalSemaphoreValuesCount(long struct)Unsafe version ofsignalSemaphoreValuesCount().static voidnsignalSemaphoreValuesCount(long struct, int value)Sets the specified value to thesignalSemaphoreValuesCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnwaitSemaphoreValuesCount(long struct)Unsafe version ofwaitSemaphoreValuesCount().static voidnwaitSemaphoreValuesCount(long struct, int value)Sets the specified value to thewaitSemaphoreValuesCountfield of the specifiedstruct.longpNext()NULLor a pointer to a structure extending this structure.VkD3D12FenceSubmitInfoKHRpNext(long value)Sets the specified value to thepNext()field.java.nio.LongBufferpSignalSemaphoreValues()a pointer to an array ofsignalSemaphoreValuesCountvalues for the corresponding semaphores inVkSubmitInfo::pSignalSemaphoresto set when signaled.VkD3D12FenceSubmitInfoKHRpSignalSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepSignalSemaphoreValues()field.java.nio.LongBufferpWaitSemaphoreValues()a pointer to an array ofwaitSemaphoreValuesCountvalues for the corresponding semaphores inVkSubmitInfo::pWaitSemaphoresto wait for.VkD3D12FenceSubmitInfoKHRpWaitSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepWaitSemaphoreValues()field.VkD3D12FenceSubmitInfoKHRset(int sType, long pNext, int waitSemaphoreValuesCount, java.nio.LongBuffer pWaitSemaphoreValues, int signalSemaphoreValuesCount, java.nio.LongBuffer pSignalSemaphoreValues)Initializes this struct with the specified values.VkD3D12FenceSubmitInfoKHRset(VkD3D12FenceSubmitInfoKHR src)Copies the specified struct data to this struct.intsignalSemaphoreValuesCount()the number of semaphore signal values specified inpSignalSemaphoreValues.VkD3D12FenceSubmitInfoKHRsignalSemaphoreValuesCount(int value)Sets the specified value to thesignalSemaphoreValuesCount()field.intsizeof()intsType()the type of this structure.VkD3D12FenceSubmitInfoKHRsType(int value)Sets the specified value to thesType()field.VkD3D12FenceSubmitInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHRvalue to thesType()field.intwaitSemaphoreValuesCount()the number of semaphore wait values specified inpWaitSemaphoreValues.VkD3D12FenceSubmitInfoKHRwaitSemaphoreValuesCount(int value)Sets the specified value to thewaitSemaphoreValuesCount()field.
-
-
-
Constructor Detail
-
VkD3D12FenceSubmitInfoKHR
public VkD3D12FenceSubmitInfoKHR(java.nio.ByteBuffer container)
Creates aVkD3D12FenceSubmitInfoKHRinstance 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.
-
waitSemaphoreValuesCount
public int waitSemaphoreValuesCount()
the number of semaphore wait values specified inpWaitSemaphoreValues.
-
pWaitSemaphoreValues
@Nullable public java.nio.LongBuffer pWaitSemaphoreValues()
a pointer to an array ofwaitSemaphoreValuesCountvalues for the corresponding semaphores inVkSubmitInfo::pWaitSemaphoresto wait for.
-
signalSemaphoreValuesCount
public int signalSemaphoreValuesCount()
the number of semaphore signal values specified inpSignalSemaphoreValues.
-
pSignalSemaphoreValues
@Nullable public java.nio.LongBuffer pSignalSemaphoreValues()
a pointer to an array ofsignalSemaphoreValuesCountvalues for the corresponding semaphores inVkSubmitInfo::pSignalSemaphoresto set when signaled.
-
sType
public VkD3D12FenceSubmitInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkD3D12FenceSubmitInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHRvalue 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 specifiedLongBufferto 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 specifiedLongBufferto 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 newVkD3D12FenceSubmitInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkD3D12FenceSubmitInfoKHR calloc()
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkD3D12FenceSubmitInfoKHR create()
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withBufferUtils.
-
create
public static VkD3D12FenceSubmitInfoKHR create(long address)
Returns a newVkD3D12FenceSubmitInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkD3D12FenceSubmitInfoKHR createSafe(long address)
-
malloc
public static VkD3D12FenceSubmitInfoKHR.Buffer malloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkD3D12FenceSubmitInfoKHR.Buffer calloc(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkD3D12FenceSubmitInfoKHR.Buffer create(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkD3D12FenceSubmitInfoKHR.Buffer create(long address, int capacity)
Create aVkD3D12FenceSubmitInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkD3D12FenceSubmitInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkD3D12FenceSubmitInfoKHR.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 VkD3D12FenceSubmitInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkD3D12FenceSubmitInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkD3D12FenceSubmitInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkD3D12FenceSubmitInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkD3D12FenceSubmitInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHR.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().
-
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 thewaitSemaphoreValuesCountfield 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 thesignalSemaphoreValuesCountfield of the specifiedstruct.
-
npSignalSemaphoreValues
public static void npSignalSemaphoreValues(long struct, @Nullable java.nio.LongBuffer value)Unsafe version ofpSignalSemaphoreValues.
-
-