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 (Implicit)
sTypemust beSTRUCTURE_TYPE_PROTECTED_SUBMIT_INFO
Layout
struct VkProtectedSubmitInfo { VkStructureType sType; void const * pNext; VkBool32protectedSubmit(); }
-
-
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 Deprecated 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 VkProtectedSubmitInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkProtectedSubmitInfocallocStack()Deprecated.static VkProtectedSubmitInfo.BuffercallocStack(int capacity)Deprecated.static VkProtectedSubmitInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkProtectedSubmitInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkProtectedSubmitInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkProtectedSubmitInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStack.static VkProtectedSubmitInfomallocStack()Deprecated.static VkProtectedSubmitInfo.BuffermallocStack(int capacity)Deprecated.static VkProtectedSubmitInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkProtectedSubmitInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()VkProtectedSubmitInfopNext(long value)Sets the specified value to thepNextfield.booleanprotectedSubmit()specifies whether the batch is protected.VkProtectedSubmitInfoprotectedSubmit(boolean value)Sets the specified value to theprotectedSubmit()field.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()VkProtectedSubmitInfosType(int value)Sets the specified value to thesTypefield.VkProtectedSubmitInfosType$Default()Sets theSTRUCTURE_TYPE_PROTECTED_SUBMIT_INFOvalue 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 the
sTypefield.
-
pNext
public long pNext()
- Returns:
- the value of the
pNextfield.
-
protectedSubmit
public boolean protectedSubmit()
specifies whether the batch is protected. IfprotectedSubmitisTRUE, the batch is protected. IfprotectedSubmitisFALSE, the batch is unprotected. If theVkSubmitInfo::pNextchain does not include this structure, the batch is unprotected.
-
sType
public VkProtectedSubmitInfo sType(int value)
Sets the specified value to thesTypefield.
-
sType$Default
public VkProtectedSubmitInfo sType$Default()
Sets theSTRUCTURE_TYPE_PROTECTED_SUBMIT_INFOvalue 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 theprotectedSubmit()field.
-
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
@Deprecated public static VkProtectedSubmitInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkProtectedSubmitInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkProtectedSubmitInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkProtectedSubmitInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkProtectedSubmitInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkProtectedSubmitInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkProtectedSubmitInfo.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 VkProtectedSubmitInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkProtectedSubmitInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkProtectedSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkProtectedSubmitInfo calloc(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
-
malloc
public static VkProtectedSubmitInfo.Buffer malloc(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
-
calloc
public static VkProtectedSubmitInfo.Buffer calloc(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.
-
-