Package org.lwjgl.vulkan
Class VkBufferCreateInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBufferCreateInfo>
org.lwjgl.vulkan.VkBufferCreateInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferCreateInfo
extends org.lwjgl.system.Struct<VkBufferCreateInfo>
implements org.lwjgl.system.NativeResource
Structure specifying the parameters of a newly created buffer object.
Description
If the pNext chain includes a VkBufferUsageFlags2CreateInfo structure, VkBufferUsageFlags2CreateInfo::usage from that structure is used instead of usage from this structure.
Valid Usage
- If the
pNextchain does not include aVkBufferUsageFlags2CreateInfostructure,usagemust be a valid combination ofVkBufferUsageFlagBitsvalues - If the
pNextchain does not include aVkBufferUsageFlags2CreateInfostructure,usagemust not be 0 sizemust be greater than 0- If
sharingModeisSHARING_MODE_CONCURRENT,pQueueFamilyIndicesmust be a valid pointer to an array ofqueueFamilyIndexCountuint32_tvalues - If
sharingModeisSHARING_MODE_CONCURRENT,queueFamilyIndexCountmust be greater than 1 - If
sharingModeisSHARING_MODE_CONCURRENT, each element ofpQueueFamilyIndicesmust be unique and must be less thanpQueueFamilyPropertyCountreturned by eitherGetPhysicalDeviceQueueFamilyProperties2orGetPhysicalDeviceQueueFamilyPropertiesfor thephysicalDevicethat was used to createdevice - If the
sparseBindingfeature is not enabled,flagsmust not containBUFFER_CREATE_SPARSE_BINDING_BIT - If the
sparseResidencyBufferfeature is not enabled,flagsmust not containBUFFER_CREATE_SPARSE_RESIDENCY_BIT - If the
sparseResidencyAliasedfeature is not enabled,flagsmust not containBUFFER_CREATE_SPARSE_ALIASED_BIT - If
flagscontainsBUFFER_CREATE_SPARSE_RESIDENCY_BITorBUFFER_CREATE_SPARSE_ALIASED_BIT, it must also containBUFFER_CREATE_SPARSE_BINDING_BIT - If the
pNextchain includes aVkExternalMemoryBufferCreateInfostructure, itshandleTypesmember must only contain bits that are also inVkExternalBufferProperties::externalMemoryProperties.compatibleHandleTypes, as returned byGetPhysicalDeviceExternalBufferPropertieswithpExternalBufferInfo→handleTypeequal to any one of the handle types specified inVkExternalMemoryBufferCreateInfo::handleTypes - If the
protectedMemoryfeature is not enabled,flagsmust not containBUFFER_CREATE_PROTECTED_BIT - If any of the bits
BUFFER_CREATE_SPARSE_BINDING_BIT,BUFFER_CREATE_SPARSE_RESIDENCY_BIT, orBUFFER_CREATE_SPARSE_ALIASED_BITare set,BUFFER_CREATE_PROTECTED_BITmust not also be set - If the
pNextchain includes aVkDedicatedAllocationBufferCreateInfoNVstructure, and thededicatedAllocationmember of the chained structure isTRUE, thenflagsmust not includeBUFFER_CREATE_SPARSE_BINDING_BIT,BUFFER_CREATE_SPARSE_RESIDENCY_BIT, orBUFFER_CREATE_SPARSE_ALIASED_BIT - If
VkBufferDeviceAddressCreateInfoEXT::deviceAddressis not zero,flagsmust includeBUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT - If
VkBufferOpaqueCaptureAddressCreateInfo::opaqueCaptureAddressis not zero,flagsmust includeBUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT - If
flagsincludesBUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT, thebufferDeviceAddressCaptureReplayfeature must be enabled - If
usageincludesBUFFER_USAGE_VIDEO_DECODE_SRC_BIT_KHRorBUFFER_USAGE_VIDEO_DECODE_DST_BIT_KHR, andflagsdoes not includeBUFFER_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR, then thepNextchain must include aVkVideoProfileListInfoKHRstructure withprofileCountgreater than 0 andpProfilesincluding at least oneVkVideoProfileInfoKHRstructure with avideoCodecOperationmember specifying a decode operation - If
usageincludesBUFFER_USAGE_VIDEO_ENCODE_SRC_BIT_KHRorBUFFER_USAGE_VIDEO_ENCODE_DST_BIT_KHR, andflagsdoes not includeBUFFER_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR, then thepNextchain must include aVkVideoProfileListInfoKHRstructure withprofileCountgreater than 0 andpProfilesincluding at least oneVkVideoProfileInfoKHRstructure with avideoCodecOperationmember specifying an encode operation - If
flagsincludesBUFFER_CREATE_VIDEO_PROFILE_INDEPENDENT_BIT_KHR, thenvideoMaintenance1must be enabled - If the
pNextchain includes aVkVideoProfileListInfoKHRstructure and for any element of itspProfilesmembervideoCodecOperationisVIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR, then thevideoEncodeAV1feature must be enabled sizemust be less than or equal toVkPhysicalDeviceMaintenance4Properties::maxBufferSize- If
usageincludesBUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT, creating thisVkBuffermust not cause the total required space for all currently valid buffers using this flag on the device to exceedVkPhysicalDeviceDescriptorBufferPropertiesEXT::samplerDescriptorBufferAddressSpaceSizeorVkPhysicalDeviceDescriptorBufferPropertiesEXT::descriptorBufferAddressSpaceSize - If
usageincludesBUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT, creating thisVkBuffermust not cause the total required space for all currently valid buffers using this flag on the device to exceedVkPhysicalDeviceDescriptorBufferPropertiesEXT::resourceDescriptorBufferAddressSpaceSizeorVkPhysicalDeviceDescriptorBufferPropertiesEXT::descriptorBufferAddressSpaceSize - If
flagsincludesBUFFER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT, thedescriptorBufferCaptureReplayfeature must be enabled - If the
pNextchain includes aVkOpaqueCaptureDescriptorDataCreateInfoEXTstructure,flagsmust containBUFFER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT - If
usageincludesBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT, thedescriptorBufferPushDescriptorsfeature must be enabled - If
usageincludesBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXTVkPhysicalDeviceDescriptorBufferPropertiesEXT::bufferlessPushDescriptorsmust beFALSE - If
usageincludesBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT,usagemust contain at least one ofBUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXTorBUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT - If
flagsincludesBUFFER_CREATE_PROTECTED_BIT, thenusagemust not contain any of the following bitsBUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXTBUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXTBUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXTBUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHRBUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHRBUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHRBUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXTBUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXTBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXTBUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXTBUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkBufferDeviceAddressCreateInfoEXT,VkBufferOpaqueCaptureAddressCreateInfo,VkBufferUsageFlags2CreateInfo,VkDedicatedAllocationBufferCreateInfoNV,VkExternalMemoryBufferCreateInfo,VkOpaqueCaptureDescriptorDataCreateInfoEXT, orVkVideoProfileListInfoKHR - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkBufferCreateFlagBitsvaluessharingModemust be a validVkSharingModevalue
See Also
VkDeviceBufferMemoryRequirements, CreateBuffer
Layout
struct VkBufferCreateInfo {
VkStructureType sType();
void const * pNext();
VkBufferCreateFlags flags();
VkDeviceSize size();
VkBufferUsageFlags usage();
VkSharingMode sharingMode();
uint32_t queueFamilyIndexCount();
uint32_t const * pQueueFamilyIndices();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 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
ConstructorsConstructorDescriptionVkBufferCreateInfo(ByteBuffer container) Creates aVkBufferCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkBufferCreateInfocalloc()Returns a newVkBufferCreateInfoinstance allocated withmemCalloc.static VkBufferCreateInfo.Buffercalloc(int capacity) Returns a newVkBufferCreateInfo.Bufferinstance allocated withmemCalloc.static VkBufferCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCreateInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkBufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCreateInfoDeprecated.static VkBufferCreateInfo.BuffercallocStack(int capacity) Deprecated.static VkBufferCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkBufferCreateInfocallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VkBufferCreateInfocreate()Returns a newVkBufferCreateInfoinstance allocated withBufferUtils.static VkBufferCreateInfo.Buffercreate(int capacity) Returns a newVkBufferCreateInfo.Bufferinstance allocated withBufferUtils.static VkBufferCreateInfocreate(long address) Returns a newVkBufferCreateInfoinstance for the specified memory address.static VkBufferCreateInfo.Buffercreate(long address, int capacity) Create aVkBufferCreateInfo.Bufferinstance at the specified memory.static @Nullable VkBufferCreateInfocreateSafe(long address) static @Nullable VkBufferCreateInfo.BuffercreateSafe(long address, int capacity) intflags()a bitmask ofVkBufferCreateFlagBitsspecifying additional parameters of the buffer.flags(int value) Sets the specified value to theflags()field.static VkBufferCreateInfomalloc()Returns a newVkBufferCreateInfoinstance allocated withmemAlloc.static VkBufferCreateInfo.Buffermalloc(int capacity) Returns a newVkBufferCreateInfo.Bufferinstance allocated withmemAlloc.static VkBufferCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferCreateInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkBufferCreateInfoinstance allocated on the specifiedMemoryStack.static VkBufferCreateInfoDeprecated.static VkBufferCreateInfo.BuffermallocStack(int capacity) Deprecated.static VkBufferCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkBufferCreateInfomallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable IntBuffernpQueueFamilyIndices(long struct) Unsafe version ofpQueueFamilyIndices.static voidnpQueueFamilyIndices(long struct, @Nullable IntBuffer value) Unsafe version ofpQueueFamilyIndices.static intnqueueFamilyIndexCount(long struct) Unsafe version ofqueueFamilyIndexCount().static voidnqueueFamilyIndexCount(long struct, int value) Sets the specified value to thequeueFamilyIndexCountfield of the specifiedstruct.static intnsharingMode(long struct) Unsafe version ofsharingMode().static voidnsharingMode(long struct, int value) Unsafe version ofsharingMode.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intnusage(long struct) Unsafe version ofusage().static voidnusage(long struct, int value) Unsafe version ofusage.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.Prepends the specifiedVkBufferDeviceAddressCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkBufferOpaqueCaptureAddressCreateInfovalue to thepNextchain.Prepends the specifiedVkBufferOpaqueCaptureAddressCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkBufferUsageFlags2CreateInfovalue to thepNextchain.Prepends the specifiedVkBufferUsageFlags2CreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkDedicatedAllocationBufferCreateInfoNVvalue to thepNextchain.Prepends the specifiedVkExternalMemoryBufferCreateInfovalue to thepNextchain.Prepends the specifiedVkExternalMemoryBufferCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXTvalue to thepNextchain.pNext(VkVideoProfileListInfoKHR value) Prepends the specifiedVkVideoProfileListInfoKHRvalue to thepNextchain.@Nullable IntBuffera pointer to an array of queue families that will access this buffer.pQueueFamilyIndices(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepQueueFamilyIndices()field.intthe number of entries in thepQueueFamilyIndicesarray.queueFamilyIndexCount(int value) Sets the specified value to thequeueFamilyIndexCount()field.set(int sType, long pNext, int flags, long size, int usage, int sharingMode, int queueFamilyIndexCount, @Nullable IntBuffer pQueueFamilyIndices) Initializes this struct with the specified values.set(VkBufferCreateInfo src) Copies the specified struct data to this struct.intaVkSharingModevalue specifying the sharing mode of the buffer when it will be accessed by multiple queue families.sharingMode(int value) Sets the specified value to thesharingMode()field.longsize()the size in bytes of the buffer to be created.size(long value) Sets the specified value to thesize()field.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_BUFFER_CREATE_INFOvalue to thesType()field.intusage()a bitmask ofVkBufferUsageFlagBitsspecifying allowed usages of the buffer.usage(int value) Sets the specified value to theusage()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
USAGE
public static final int USAGEThe struct member offsets. -
SHARINGMODE
public static final int SHARINGMODEThe struct member offsets. -
QUEUEFAMILYINDEXCOUNT
public static final int QUEUEFAMILYINDEXCOUNTThe struct member offsets. -
PQUEUEFAMILYINDICES
public static final int PQUEUEFAMILYINDICESThe struct member offsets.
-
-
Constructor Details
-
VkBufferCreateInfo
Creates aVkBufferCreateInfoinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkBufferCreateInfo>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
flags
public int flags()a bitmask ofVkBufferCreateFlagBitsspecifying additional parameters of the buffer. -
size
public long size()the size in bytes of the buffer to be created. -
usage
public int usage()a bitmask ofVkBufferUsageFlagBitsspecifying allowed usages of the buffer. -
sharingMode
public int sharingMode()aVkSharingModevalue specifying the sharing mode of the buffer when it will be accessed by multiple queue families. -
queueFamilyIndexCount
public int queueFamilyIndexCount()the number of entries in thepQueueFamilyIndicesarray. -
pQueueFamilyIndices
a pointer to an array of queue families that will access this buffer. It is ignored ifsharingModeis notSHARING_MODE_CONCURRENT. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_BUFFER_CREATE_INFOvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
pNext
Prepends the specifiedVkBufferDeviceAddressCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkBufferOpaqueCaptureAddressCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkBufferOpaqueCaptureAddressCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkBufferUsageFlags2CreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkBufferUsageFlags2CreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkDedicatedAllocationBufferCreateInfoNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkExternalMemoryBufferCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkExternalMemoryBufferCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkVideoProfileListInfoKHRvalue to thepNextchain. -
flags
Sets the specified value to theflags()field. -
size
Sets the specified value to thesize()field. -
usage
Sets the specified value to theusage()field. -
sharingMode
Sets the specified value to thesharingMode()field. -
queueFamilyIndexCount
Sets the specified value to thequeueFamilyIndexCount()field. -
pQueueFamilyIndices
Sets the address of the specifiedIntBufferto thepQueueFamilyIndices()field. -
set
public VkBufferCreateInfo set(int sType, long pNext, int flags, long size, int usage, int sharingMode, int queueFamilyIndexCount, @Nullable IntBuffer pQueueFamilyIndices) 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 newVkBufferCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkBufferCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkBufferCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVkBufferCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkBufferCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkBufferCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkBufferCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkBufferCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkBufferCreateInfo.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 VkBufferCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkBufferCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkBufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkBufferCreateInfo.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(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
nusage
public static int nusage(long struct) Unsafe version ofusage(). -
nsharingMode
public static int nsharingMode(long struct) Unsafe version ofsharingMode(). -
nqueueFamilyIndexCount
public static int nqueueFamilyIndexCount(long struct) Unsafe version ofqueueFamilyIndexCount(). -
npQueueFamilyIndices
Unsafe version ofpQueueFamilyIndices. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize. -
nusage
public static void nusage(long struct, int value) Unsafe version ofusage. -
nsharingMode
public static void nsharingMode(long struct, int value) Unsafe version ofsharingMode. -
nqueueFamilyIndexCount
public static void nqueueFamilyIndexCount(long struct, int value) Sets the specified value to thequeueFamilyIndexCountfield of the specifiedstruct. -
npQueueFamilyIndices
Unsafe version ofpQueueFamilyIndices.
-