Package org.lwjgl.vulkan
Class VkProtectedSubmitInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkProtectedSubmitInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkProtectedSubmitInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating whether the submission is protected.Valid Usage
- If the protected memory feature is not enabled,
protectedSubmitmust not beTRUE. - If
protectedSubmitisTRUE, then each element of thepCommandBuffersarray must be a protected command buffer. - If
protectedSubmitisFALSE, then each element of thepCommandBuffersarray must be an unprotected command buffer. - If the
VkSubmitInfo::pNextchain does not include aVkProtectedSubmitInfostructure, then each element of the command buffer of thepCommandBuffersarray must be an unprotected command buffer.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PROTECTED_SUBMIT_INFO
Member documentation
protectedSubmit– specifies whether the batch is protected. IfprotectedSubmitisTRUE, the batch is protected. IfprotectedSubmitisFALSE, the batch is unprotected. If theVkSubmitInfo::pNextchain does not contain this structure, the batch is unprotected.
Layout
struct VkProtectedSubmitInfo { VkStructureType sType; void const * pNext; VkBool32 protectedSubmit; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkProtectedSubmitInfo.BufferAn array ofVkProtectedSubmitInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PROTECTEDSUBMITThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkProtectedSubmitInfo(java.nio.ByteBuffer container)Creates aVkProtectedSubmitInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkProtectedSubmitInfocalloc()Returns a newVkProtectedSubmitInfoinstance allocated withmemCalloc.static VkProtectedSubmitInfo.Buffercalloc(int capacity)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withmemCalloc.static VkProtectedSubmitInfocallocStack()Returns a newVkProtectedSubmitInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfo.BuffercallocStack(int capacity)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfocreate()Returns a newVkProtectedSubmitInfoinstance allocated withBufferUtils.static VkProtectedSubmitInfo.Buffercreate(int capacity)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withBufferUtils.static VkProtectedSubmitInfocreate(long address)Returns a newVkProtectedSubmitInfoinstance for the specified memory address.static VkProtectedSubmitInfo.Buffercreate(long address, int capacity)Create aVkProtectedSubmitInfo.Bufferinstance at the specified memory.static VkProtectedSubmitInfocreateSafe(long address)static VkProtectedSubmitInfo.BuffercreateSafe(long address, int capacity)static VkProtectedSubmitInfomalloc()Returns a newVkProtectedSubmitInfoinstance allocated withmemAlloc.static VkProtectedSubmitInfo.Buffermalloc(int capacity)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withmemAlloc.static VkProtectedSubmitInfomallocStack()Returns a newVkProtectedSubmitInfoinstance allocated on the thread-localMemoryStack.static VkProtectedSubmitInfo.BuffermallocStack(int capacity)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkProtectedSubmitInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkProtectedSubmitInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprotectedSubmit(long struct)Unsafe version ofprotectedSubmit().static voidnprotectedSubmit(long struct, int value)Unsafe version ofprotectedSubmit.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkProtectedSubmitInfopNext(long value)Sets the specified value to thepNextfield.booleanprotectedSubmit()Returns the value of theprotectedSubmitfield.VkProtectedSubmitInfoprotectedSubmit(boolean value)Sets the specified value to theprotectedSubmitfield.VkProtectedSubmitInfoset(int sType, long pNext, boolean protectedSubmit)Initializes this struct with the specified values.VkProtectedSubmitInfoset(VkProtectedSubmitInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkProtectedSubmitInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkProtectedSubmitInfo
public VkProtectedSubmitInfo(java.nio.ByteBuffer container)
Creates aVkProtectedSubmitInfoinstance 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.
-
protectedSubmit
public boolean protectedSubmit()
Returns the value of theprotectedSubmitfield.
-
sType
public VkProtectedSubmitInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkProtectedSubmitInfo pNext(long value)
Sets the specified value to thepNextfield.
-
protectedSubmit
public VkProtectedSubmitInfo protectedSubmit(boolean value)
Sets the specified value to theprotectedSubmitfield.
-
set
public VkProtectedSubmitInfo set(int sType, long pNext, boolean protectedSubmit)
Initializes this struct with the specified values.
-
set
public VkProtectedSubmitInfo set(VkProtectedSubmitInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkProtectedSubmitInfo malloc()
Returns a newVkProtectedSubmitInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkProtectedSubmitInfo calloc()
Returns a newVkProtectedSubmitInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkProtectedSubmitInfo create()
Returns a newVkProtectedSubmitInfoinstance allocated withBufferUtils.
-
create
public static VkProtectedSubmitInfo create(long address)
Returns a newVkProtectedSubmitInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkProtectedSubmitInfo createSafe(long address)
-
malloc
public static VkProtectedSubmitInfo.Buffer malloc(int capacity)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkProtectedSubmitInfo.Buffer calloc(int capacity)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkProtectedSubmitInfo.Buffer create(int capacity)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkProtectedSubmitInfo.Buffer create(long address, int capacity)
Create aVkProtectedSubmitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkProtectedSubmitInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkProtectedSubmitInfo mallocStack()
Returns a newVkProtectedSubmitInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkProtectedSubmitInfo callocStack()
Returns a newVkProtectedSubmitInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkProtectedSubmitInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkProtectedSubmitInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkProtectedSubmitInfo.Buffer mallocStack(int capacity)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkProtectedSubmitInfo.Buffer callocStack(int capacity)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkProtectedSubmitInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkProtectedSubmitInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkProtectedSubmitInfo.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().
-
nprotectedSubmit
public static int nprotectedSubmit(long struct)
Unsafe version ofprotectedSubmit().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprotectedSubmit
public static void nprotectedSubmit(long struct, int value)Unsafe version ofprotectedSubmit.
-
-