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.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.Valid Usage
waitSemaphoreValuesCountmust be the same value asVkSubmitInfo::waitSemaphoreCount, whereVkSubmitInfois in thepNextchain of thisVkD3D12FenceSubmitInfoKHRstructure.signalSemaphoreValuesCountmust 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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.waitSemaphoreValuesCount– the number of semaphore wait values specified inpWaitSemaphoreValues.pWaitSemaphoreValues– an array of lengthwaitSemaphoreValuesCountcontaining values for the corresponding semaphores inVkSubmitInfo::pWaitSemaphoresto wait for.signalSemaphoreValuesCount– the number of semaphore signal values specified inpSignalSemaphoreValues.pSignalSemaphoreValues– an array of lengthsignalSemaphoreValuesCountcontaining values for the corresponding semaphores inVkSubmitInfo::pSignalSemaphoresto 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 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 Modifier and Type Method Description static VkD3D12FenceSubmitInfoKHRcalloc()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated withmemCalloc.static VkD3D12FenceSubmitInfoKHR.Buffercalloc(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated withmemCalloc.static VkD3D12FenceSubmitInfoKHRcallocStack()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR.BuffercallocStack(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkD3D12FenceSubmitInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkD3D12FenceSubmitInfoKHRmallocStack()Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the thread-localMemoryStack.static VkD3D12FenceSubmitInfoKHR.BuffermallocStack(int capacity)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkD3D12FenceSubmitInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkD3D12FenceSubmitInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkD3D12FenceSubmitInfoKHRpNext(long value)Sets the specified value to thepNextfield.java.nio.LongBufferpSignalSemaphoreValues()Returns aLongBufferview of the data pointed to by thepSignalSemaphoreValuesfield.VkD3D12FenceSubmitInfoKHRpSignalSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepSignalSemaphoreValuesfield.java.nio.LongBufferpWaitSemaphoreValues()Returns aLongBufferview of the data pointed to by thepWaitSemaphoreValuesfield.VkD3D12FenceSubmitInfoKHRpWaitSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepWaitSemaphoreValuesfield.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()Returns the value of thesignalSemaphoreValuesCountfield.VkD3D12FenceSubmitInfoKHRsignalSemaphoreValuesCount(int value)Sets the specified value to thesignalSemaphoreValuesCountfield.intsizeof()intsType()Returns the value of thesTypefield.VkD3D12FenceSubmitInfoKHRsType(int value)Sets the specified value to thesTypefield.intwaitSemaphoreValuesCount()Returns the value of thewaitSemaphoreValuesCountfield.VkD3D12FenceSubmitInfoKHRwaitSemaphoreValuesCount(int value)Sets the specified value to thewaitSemaphoreValuesCountfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
waitSemaphoreValuesCount
public int waitSemaphoreValuesCount()
Returns the value of thewaitSemaphoreValuesCountfield.
-
pWaitSemaphoreValues
@Nullable public java.nio.LongBuffer pWaitSemaphoreValues()
Returns aLongBufferview of the data pointed to by thepWaitSemaphoreValuesfield.
-
signalSemaphoreValuesCount
public int signalSemaphoreValuesCount()
Returns the value of thesignalSemaphoreValuesCountfield.
-
pSignalSemaphoreValues
@Nullable public java.nio.LongBuffer pSignalSemaphoreValues()
Returns aLongBufferview of the data pointed to by thepSignalSemaphoreValuesfield.
-
sType
public VkD3D12FenceSubmitInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkD3D12FenceSubmitInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
waitSemaphoreValuesCount
public VkD3D12FenceSubmitInfoKHR waitSemaphoreValuesCount(int value)
Sets the specified value to thewaitSemaphoreValuesCountfield.
-
pWaitSemaphoreValues
public VkD3D12FenceSubmitInfoKHR pWaitSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepWaitSemaphoreValuesfield.
-
signalSemaphoreValuesCount
public VkD3D12FenceSubmitInfoKHR signalSemaphoreValuesCount(int value)
Sets the specified value to thesignalSemaphoreValuesCountfield.
-
pSignalSemaphoreValues
public VkD3D12FenceSubmitInfoKHR pSignalSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepSignalSemaphoreValuesfield.
-
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
public static VkD3D12FenceSubmitInfoKHR mallocStack()
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkD3D12FenceSubmitInfoKHR callocStack()
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkD3D12FenceSubmitInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkD3D12FenceSubmitInfoKHR callocStack(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
-
mallocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkD3D12FenceSubmitInfoKHR.Buffer callocStack(int capacity)
Returns a newVkD3D12FenceSubmitInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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.
-
-