Package org.lwjgl.vulkan
Class VkObjectTablePushConstantEntryNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkObjectTablePushConstantEntryNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkObjectTablePushConstantEntryNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Parameters of an object table push constant entry.Valid Usage
type
must beOBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX
Valid Usage (Implicit)
type
must be a validVkObjectEntryTypeNVX
valueflags
must be a valid combination ofVkObjectEntryUsageFlagBitsNVX
valuesflags
must not be 0pipelineLayout
must be a validVkPipelineLayout
handlestageFlags
must be a valid combination ofVkShaderStageFlagBits
valuesstageFlags
must not be 0
Member documentation
pipelineLayout
– specifies theVkPipelineLayout
that the pushconstants are used withstageFlags
– specifies theVkShaderStageFlags
that the pushconstants are used with
Layout
struct VkObjectTablePushConstantEntryNVX { VkObjectEntryTypeNVX type; VkObjectEntryUsageFlagsNVX flags; VkPipelineLayout pipelineLayout; VkShaderStageFlags stageFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkObjectTablePushConstantEntryNVX.Buffer
An array ofVkObjectTablePushConstantEntryNVX
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FLAGS
PIPELINELAYOUTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STAGEFLAGS
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkObjectTablePushConstantEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTablePushConstantEntryNVX
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 VkObjectTablePushConstantEntryNVX
calloc()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withmemCalloc
.static VkObjectTablePushConstantEntryNVX.Buffer
calloc(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withmemCalloc
.static VkObjectTablePushConstantEntryNVX
callocStack()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTablePushConstantEntryNVX.Buffer
callocStack(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTablePushConstantEntryNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTablePushConstantEntryNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTablePushConstantEntryNVX
create()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withBufferUtils
.static VkObjectTablePushConstantEntryNVX.Buffer
create(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withBufferUtils
.static VkObjectTablePushConstantEntryNVX
create(long address)
Returns a newVkObjectTablePushConstantEntryNVX
instance for the specified memory address.static VkObjectTablePushConstantEntryNVX.Buffer
create(long address, int capacity)
Create aVkObjectTablePushConstantEntryNVX.Buffer
instance at the specified memory.static VkObjectTablePushConstantEntryNVX
createSafe(long address)
static VkObjectTablePushConstantEntryNVX.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkObjectTablePushConstantEntryNVX
flags(int value)
Sets the specified value to theflags
field.static VkObjectTablePushConstantEntryNVX
malloc()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withmemAlloc
.static VkObjectTablePushConstantEntryNVX.Buffer
malloc(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withmemAlloc
.static VkObjectTablePushConstantEntryNVX
mallocStack()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the thread-localMemoryStack
.static VkObjectTablePushConstantEntryNVX.Buffer
mallocStack(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkObjectTablePushConstantEntryNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkObjectTablePushConstantEntryNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npipelineLayout(long struct)
Unsafe version ofpipelineLayout()
.static void
npipelineLayout(long struct, long value)
Unsafe version ofpipelineLayout
.static int
nstageFlags(long struct)
Unsafe version ofstageFlags()
.static void
nstageFlags(long struct, int value)
Unsafe version ofstageFlags
.static int
ntype(long struct)
Unsafe version oftype()
.static void
ntype(long struct, int value)
Unsafe version oftype
.long
pipelineLayout()
Returns the value of thepipelineLayout
field.VkObjectTablePushConstantEntryNVX
pipelineLayout(long value)
Sets the specified value to thepipelineLayout
field.VkObjectTablePushConstantEntryNVX
set(int type, int flags, long pipelineLayout, int stageFlags)
Initializes this struct with the specified values.VkObjectTablePushConstantEntryNVX
set(VkObjectTablePushConstantEntryNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
stageFlags()
Returns the value of thestageFlags
field.VkObjectTablePushConstantEntryNVX
stageFlags(int value)
Sets the specified value to thestageFlags
field.int
type()
Returns the value of thetype
field.VkObjectTablePushConstantEntryNVX
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
VkObjectTablePushConstantEntryNVX
public VkObjectTablePushConstantEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTablePushConstantEntryNVX
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
-
type
public int type()
Returns the value of thetype
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
pipelineLayout
public long pipelineLayout()
Returns the value of thepipelineLayout
field.
-
stageFlags
public int stageFlags()
Returns the value of thestageFlags
field.
-
type
public VkObjectTablePushConstantEntryNVX type(int value)
Sets the specified value to thetype
field.
-
flags
public VkObjectTablePushConstantEntryNVX flags(int value)
Sets the specified value to theflags
field.
-
pipelineLayout
public VkObjectTablePushConstantEntryNVX pipelineLayout(long value)
Sets the specified value to thepipelineLayout
field.
-
stageFlags
public VkObjectTablePushConstantEntryNVX stageFlags(int value)
Sets the specified value to thestageFlags
field.
-
set
public VkObjectTablePushConstantEntryNVX set(int type, int flags, long pipelineLayout, int stageFlags)
Initializes this struct with the specified values.
-
set
public VkObjectTablePushConstantEntryNVX set(VkObjectTablePushConstantEntryNVX src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkObjectTablePushConstantEntryNVX malloc()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkObjectTablePushConstantEntryNVX calloc()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkObjectTablePushConstantEntryNVX create()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated withBufferUtils
.
-
create
public static VkObjectTablePushConstantEntryNVX create(long address)
Returns a newVkObjectTablePushConstantEntryNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTablePushConstantEntryNVX createSafe(long address)
-
malloc
public static VkObjectTablePushConstantEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkObjectTablePushConstantEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTablePushConstantEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTablePushConstantEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTablePushConstantEntryNVX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkObjectTablePushConstantEntryNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkObjectTablePushConstantEntryNVX mallocStack()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkObjectTablePushConstantEntryNVX callocStack()
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkObjectTablePushConstantEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkObjectTablePushConstantEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkObjectTablePushConstantEntryNVX.Buffer mallocStack(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkObjectTablePushConstantEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkObjectTablePushConstantEntryNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkObjectTablePushConstantEntryNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTablePushConstantEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
npipelineLayout
public static long npipelineLayout(long struct)
Unsafe version ofpipelineLayout()
.
-
nstageFlags
public static int nstageFlags(long struct)
Unsafe version ofstageFlags()
.
-
ntype
public static void ntype(long struct, int value)
Unsafe version oftype
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
npipelineLayout
public static void npipelineLayout(long struct, long value)
Unsafe version ofpipelineLayout
.
-
nstageFlags
public static void nstageFlags(long struct, int value)
Unsafe version ofstageFlags
.
-
-