Package org.lwjgl.vulkan
Class VkPushConstantsInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkPushConstantsInfoKHR
struct VkPushConstantsInfo {
VkStructureType sType;
void const * pNext;
VkPipelineLayout layout;
VkShaderStageFlags stageFlags;
uint32_t offset;
uint32_t size;
void const * pValues;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPushConstantsInfo(ByteBuffer container) Creates aVkPushConstantsInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPushConstantsInfocalloc()Returns a newVkPushConstantsInfoinstance allocated withmemCalloc.static VkPushConstantsInfo.Buffercalloc(int capacity) Returns a newVkPushConstantsInfo.Bufferinstance allocated withmemCalloc.static VkPushConstantsInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkPushConstantsInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPushConstantsInfocalloc(MemoryStack stack) Returns a newVkPushConstantsInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPushConstantsInfocreate()Returns a newVkPushConstantsInfoinstance allocated withBufferUtils.static VkPushConstantsInfo.Buffercreate(int capacity) Returns a newVkPushConstantsInfo.Bufferinstance allocated withBufferUtils.static VkPushConstantsInfocreate(long address) Returns a newVkPushConstantsInfoinstance for the specified memory address.static VkPushConstantsInfo.Buffercreate(long address, int capacity) Create aVkPushConstantsInfo.Bufferinstance at the specified memory.static @Nullable VkPushConstantsInfocreateSafe(long address) static @Nullable VkPushConstantsInfo.BuffercreateSafe(long address, int capacity) longlayout()layout(long value) Sets the specified value to thelayoutfield.static VkPushConstantsInfomalloc()Returns a newVkPushConstantsInfoinstance allocated withmemAlloc.static VkPushConstantsInfo.Buffermalloc(int capacity) Returns a newVkPushConstantsInfo.Bufferinstance allocated withmemAlloc.static VkPushConstantsInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkPushConstantsInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPushConstantsInfomalloc(MemoryStack stack) Returns a newVkPushConstantsInfoinstance allocated on the specifiedMemoryStack.static longnlayout(long struct) Unsafe version oflayout().static voidnlayout(long struct, long value) Unsafe version oflayout.static intnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, int value) Unsafe version ofoffset.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static ByteBuffernpValues(long struct) Unsafe version ofpValues.static voidnpValues(long struct, ByteBuffer value) Unsafe version ofpValues.static intnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, int value) Sets the specified value to thesizefield of the specifiedstruct.static intnstageFlags(long struct) Unsafe version ofstageFlags().static voidnstageFlags(long struct, int value) Unsafe version ofstageFlags.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.intoffset()offset(int value) Sets the specified value to theoffsetfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.pNext(VkPipelineLayoutCreateInfo value) Prepends the specifiedVkPipelineLayoutCreateInfovalue to thepNextchain.pValues()pValues(ByteBuffer value) Sets the address of the specifiedByteBufferto thepValuesfield.set(int sType, long pNext, long layout, int stageFlags, int offset, ByteBuffer pValues) Initializes this struct with the specified values.set(VkPushConstantsInfo src) Copies the specified struct data to this struct.intsize()intsizeof()Returnssizeof(struct).intstageFlags(int value) Sets the specified value to thestageFlagsfield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_PUSH_CONSTANTS_INFOvalue to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
LAYOUT
public static final int LAYOUTThe struct member offsets. -
STAGEFLAGS
public static final int STAGEFLAGSThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
PVALUES
public static final int PVALUESThe struct member offsets.
-
-
Constructor Details
-
VkPushConstantsInfo
Creates aVkPushConstantsInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkPushConstantsInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
layout
public long layout()- Returns:
- the value of the
layoutfield.
-
stageFlags
public int stageFlags()- Returns:
- the value of the
stageFlagsfield.
-
offset
public int offset()- Returns:
- the value of the
offsetfield.
-
size
public int size()- Returns:
- the value of the
sizefield.
-
pValues
- Returns:
- a
ByteBufferview of the data pointed to by thepValuesfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_PUSH_CONSTANTS_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkPipelineLayoutCreateInfovalue to thepNextchain. -
layout
Sets the specified value to thelayoutfield. -
stageFlags
Sets the specified value to thestageFlagsfield. -
offset
Sets the specified value to theoffsetfield. -
pValues
Sets the address of the specifiedByteBufferto thepValuesfield. -
set
public VkPushConstantsInfo set(int sType, long pNext, long layout, int stageFlags, int offset, ByteBuffer pValues) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPushConstantsInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPushConstantsInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPushConstantsInfoinstance allocated withBufferUtils. -
create
Returns a newVkPushConstantsInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPushConstantsInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPushConstantsInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPushConstantsInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPushConstantsInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkPushConstantsInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPushConstantsInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPushConstantsInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPushConstantsInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nlayout
public static long nlayout(long struct) Unsafe version oflayout(). -
nstageFlags
public static int nstageFlags(long struct) Unsafe version ofstageFlags(). -
noffset
public static int noffset(long struct) Unsafe version ofoffset(). -
nsize
public static int nsize(long struct) Unsafe version ofsize(). -
npValues
Unsafe version ofpValues. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nlayout
public static void nlayout(long struct, long value) Unsafe version oflayout. -
nstageFlags
public static void nstageFlags(long struct, int value) Unsafe version ofstageFlags. -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset. -
nsize
public static void nsize(long struct, int value) Sets the specified value to thesizefield of the specifiedstruct. -
npValues
Unsafe version ofpValues. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-