Class VkImageMemoryBarrier
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageMemoryBarrier
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkImageMemoryBarrier extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying the parameters of an image memory barrier.Description
The first access scope is limited to access to memory through the specified image subresource range, via access types in the source access mask specified by
srcAccessMask
. IfsrcAccessMask
includesACCESS_HOST_WRITE_BIT
, memory writes performed by that access type are also made visible, as that access type is not performed through a resource.The second access scope is limited to access to memory through the specified image subresource range, via access types in the destination access mask specified by
dstAccessMask
. IfdstAccessMask
includesACCESS_HOST_WRITE_BIT
orACCESS_HOST_READ_BIT
, available memory writes are also made visible to accesses of those types, as those access types are not performed through a resource.If
srcQueueFamilyIndex
is not equal todstQueueFamilyIndex
, andsrcQueueFamilyIndex
is equal to the current queue family, then the memory barrier defines a queue family release operation for the specified image subresource range, and the second access scope includes no access, as ifdstAccessMask
was 0.If
dstQueueFamilyIndex
is not equal tosrcQueueFamilyIndex
, anddstQueueFamilyIndex
is equal to the current queue family, then the memory barrier defines a queue family acquire operation for the specified image subresource range, and the first access scope includes no access, as ifsrcAccessMask
was 0.If
oldLayout
is not equal tonewLayout
, then the memory barrier defines an image layout transition for the specified image subresource range.Layout transitions that are performed via image memory barriers execute in their entirety in submission order, relative to other image layout transitions submitted to the same queue, including those performed by render passes. In effect there is an implicit execution dependency from each such layout transition to all layout transitions previously submitted to the same queue.
The image layout of each image subresource of a depth/stencil image created with
IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
is dependent on the last sample locations used to render to the image subresource as a depth/stencil attachment, thus when theimage
member of anVkImageMemoryBarrier
is an image created with this flag the application can chain aVkSampleLocationsInfoEXT
structure to thepNext
chain ofVkImageMemoryBarrier
to specify the sample locations to use during the image layout transition.If the
VkSampleLocationsInfoEXT
structure in thepNext
chain ofVkImageMemoryBarrier
does not match the sample location state last used to render to the image subresource range specified bysubresourceRange
or if noVkSampleLocationsInfoEXT
structure is in thepNext
chain ofVkImageMemoryBarrier
then the contents of the given image subresource range becomes undefined as ifoldLayout
would equalIMAGE_LAYOUT_UNDEFINED
.If
image
has a multi-planar format and the image is disjoint, then includingIMAGE_ASPECT_COLOR_BIT
in theaspectMask
member ofsubresourceRange
is equivalent to includingIMAGE_ASPECT_PLANE_0_BIT
,IMAGE_ASPECT_PLANE_1_BIT
, and (for three-plane formats only)IMAGE_ASPECT_PLANE_2_BIT
.Valid Usage
oldLayout
must beIMAGE_LAYOUT_UNDEFINED
or the current layout of the image subresources affected by the barriernewLayout
must not beIMAGE_LAYOUT_UNDEFINED
orIMAGE_LAYOUT_PREINITIALIZED
- If
image
was created with a sharing mode ofSHARING_MODE_CONCURRENT
, at least one ofsrcQueueFamilyIndex
anddstQueueFamilyIndex
must beQUEUE_FAMILY_IGNORED
- If
image
was created with a sharing mode ofSHARING_MODE_CONCURRENT
, and one ofsrcQueueFamilyIndex
anddstQueueFamilyIndex
isQUEUE_FAMILY_IGNORED
, the other must beQUEUE_FAMILY_IGNORED
or a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
image
was created with a sharing mode ofSHARING_MODE_EXCLUSIVE
andsrcQueueFamilyIndex
isQUEUE_FAMILY_IGNORED
,dstQueueFamilyIndex
must also beQUEUE_FAMILY_IGNORED
. - If
image
was created with a sharing mode ofSHARING_MODE_EXCLUSIVE
andsrcQueueFamilyIndex
is notQUEUE_FAMILY_IGNORED
, it must be a valid queue family or a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
image
was created with a sharing mode ofSHARING_MODE_EXCLUSIVE
anddstQueueFamilyIndex
is notQUEUE_FAMILY_IGNORED
, it must be a valid queue family or a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
image
was created with a sharing mode ofSHARING_MODE_EXCLUSIVE
, andsrcQueueFamilyIndex
anddstQueueFamilyIndex
are notQUEUE_FAMILY_IGNORED
, at least one of them must be the same as the family of the queue that will execute this barrier subresourceRange.baseMipLevel
must be less than themipLevels
specified inVkImageCreateInfo
whenimage
was created- If
subresourceRange.levelCount
is notREMAINING_MIP_LEVELS
,subresourceRange.baseMipLevel + subresourceRange.levelCount
must be less than or equal to themipLevels
specified inVkImageCreateInfo
whenimage
was created subresourceRange.baseArrayLayer
must be less than thearrayLayers
specified inVkImageCreateInfo
whenimage
was created- If
subresourceRange.layerCount
is notREMAINING_ARRAY_LAYERS
,subresourceRange.baseArrayLayer subresourceRange.layerCount
must be less than or equal to thearrayLayers
specified inVkImageCreateInfo
whenimage
was created - If
image
has a depth/stencil format with both depth and stencil components, then theaspectMask
member ofsubresourceRange
must include bothIMAGE_ASPECT_DEPTH_BIT
andIMAGE_ASPECT_STENCIL_BIT
- If
image
has a single-plane color format or is not disjoint, then theaspectMask
member ofsubresourceRange
must beIMAGE_ASPECT_COLOR_BIT
- If
image
has a multi-planar format and the image is disjoint, then theaspectMask
member ofsubresourceRange
must include either at least one ofIMAGE_ASPECT_PLANE_0_BIT
,IMAGE_ASPECT_PLANE_1_BIT
, andIMAGE_ASPECT_PLANE_2_BIT
; or must includeIMAGE_ASPECT_COLOR_BIT
- If
image
has a multi-planar format with only two planes, then theaspectMask
member ofsubresourceRange
must not includeIMAGE_ASPECT_PLANE_2_BIT
- If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_COLOR_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_SAMPLED_BIT
orIMAGE_USAGE_INPUT_ATTACHMENT_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_TRANSFER_SRC_BIT
set - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_TRANSFER_DST_OPTIMAL
thenimage
must have been created withIMAGE_USAGE_TRANSFER_DST_BIT
set - If
image
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object - If either
oldLayout
ornewLayout
isIMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV
thenimage
must have been created withIMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV
set
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
pNext
must beNULL
or a pointer to a valid instance ofVkSampleLocationsInfoEXT
srcAccessMask
must be a valid combination ofVkAccessFlagBits
valuesdstAccessMask
must be a valid combination ofVkAccessFlagBits
valuesoldLayout
must be a validVkImageLayout
valuenewLayout
must be a validVkImageLayout
valueimage
must be a validVkImage
handlesubresourceRange
must be a validVkImageSubresourceRange
structure
See Also
VkImageSubresourceRange
,CmdPipelineBarrier
,CmdWaitEvents
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.srcAccessMask
– a bitmask ofVkAccessFlagBits
specifying a source access mask.dstAccessMask
– a bitmask ofVkAccessFlagBits
specifying a destination access mask.oldLayout
– the old layout in an image layout transition.newLayout
– the new layout in an image layout transition.srcQueueFamilyIndex
– the source queue family for a queue family ownership transfer.dstQueueFamilyIndex
– the destination queue family for a queue family ownership transfer.image
– a handle to the image affected by this barrier.subresourceRange
– describes the image subresource range withinimage
that is affected by this barrier.
Layout
struct VkImageMemoryBarrier { VkStructureType sType; void const * pNext; VkAccessFlags srcAccessMask; VkAccessFlags dstAccessMask; VkImageLayout oldLayout; VkImageLayout newLayout; uint32_t srcQueueFamilyIndex; uint32_t dstQueueFamilyIndex; VkImage image;
VkImageSubresourceRange
subresourceRange; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkImageMemoryBarrier.Buffer
An array ofVkImageMemoryBarrier
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DSTACCESSMASK
DSTQUEUEFAMILYINDEX
IMAGE
NEWLAYOUT
OLDLAYOUT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SRCACCESSMASK
SRCQUEUEFAMILYINDEX
STYPE
SUBRESOURCERANGEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageMemoryBarrier(java.nio.ByteBuffer container)
Creates aVkImageMemoryBarrier
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 VkImageMemoryBarrier
calloc()
Returns a newVkImageMemoryBarrier
instance allocated withmemCalloc
.static VkImageMemoryBarrier.Buffer
calloc(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withmemCalloc
.static VkImageMemoryBarrier
callocStack()
Returns a newVkImageMemoryBarrier
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageMemoryBarrier.Buffer
callocStack(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageMemoryBarrier.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageMemoryBarrier
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageMemoryBarrier
create()
Returns a newVkImageMemoryBarrier
instance allocated withBufferUtils
.static VkImageMemoryBarrier.Buffer
create(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withBufferUtils
.static VkImageMemoryBarrier
create(long address)
Returns a newVkImageMemoryBarrier
instance for the specified memory address.static VkImageMemoryBarrier.Buffer
create(long address, int capacity)
Create aVkImageMemoryBarrier.Buffer
instance at the specified memory.static VkImageMemoryBarrier
createSafe(long address)
static VkImageMemoryBarrier.Buffer
createSafe(long address, int capacity)
int
dstAccessMask()
Returns the value of thedstAccessMask
field.VkImageMemoryBarrier
dstAccessMask(int value)
Sets the specified value to thedstAccessMask
field.int
dstQueueFamilyIndex()
Returns the value of thedstQueueFamilyIndex
field.VkImageMemoryBarrier
dstQueueFamilyIndex(int value)
Sets the specified value to thedstQueueFamilyIndex
field.long
image()
Returns the value of theimage
field.VkImageMemoryBarrier
image(long value)
Sets the specified value to theimage
field.static VkImageMemoryBarrier
malloc()
Returns a newVkImageMemoryBarrier
instance allocated withmemAlloc
.static VkImageMemoryBarrier.Buffer
malloc(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withmemAlloc
.static VkImageMemoryBarrier
mallocStack()
Returns a newVkImageMemoryBarrier
instance allocated on the thread-localMemoryStack
.static VkImageMemoryBarrier.Buffer
mallocStack(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the thread-localMemoryStack
.static VkImageMemoryBarrier.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageMemoryBarrier
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier
instance allocated on the specifiedMemoryStack
.static int
ndstAccessMask(long struct)
Unsafe version ofdstAccessMask()
.static void
ndstAccessMask(long struct, int value)
Unsafe version ofdstAccessMask
.static int
ndstQueueFamilyIndex(long struct)
Unsafe version ofdstQueueFamilyIndex()
.static void
ndstQueueFamilyIndex(long struct, int value)
Unsafe version ofdstQueueFamilyIndex
.int
newLayout()
Returns the value of thenewLayout
field.VkImageMemoryBarrier
newLayout(int value)
Sets the specified value to thenewLayout
field.static long
nimage(long struct)
Unsafe version ofimage()
.static void
nimage(long struct, long value)
Unsafe version ofimage
.static int
nnewLayout(long struct)
Unsafe version ofnewLayout()
.static void
nnewLayout(long struct, int value)
Unsafe version ofnewLayout
.static int
noldLayout(long struct)
Unsafe version ofoldLayout()
.static void
noldLayout(long struct, int value)
Unsafe version ofoldLayout
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsrcAccessMask(long struct)
Unsafe version ofsrcAccessMask()
.static void
nsrcAccessMask(long struct, int value)
Unsafe version ofsrcAccessMask
.static int
nsrcQueueFamilyIndex(long struct)
Unsafe version ofsrcQueueFamilyIndex()
.static void
nsrcQueueFamilyIndex(long struct, int value)
Unsafe version ofsrcQueueFamilyIndex
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static VkImageSubresourceRange
nsubresourceRange(long struct)
Unsafe version ofsubresourceRange()
.static void
nsubresourceRange(long struct, VkImageSubresourceRange value)
Unsafe version ofsubresourceRange
.int
oldLayout()
Returns the value of theoldLayout
field.VkImageMemoryBarrier
oldLayout(int value)
Sets the specified value to theoldLayout
field.long
pNext()
Returns the value of thepNext
field.VkImageMemoryBarrier
pNext(long value)
Sets the specified value to thepNext
field.VkImageMemoryBarrier
set(int sType, long pNext, int srcAccessMask, int dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)
Initializes this struct with the specified values.VkImageMemoryBarrier
set(VkImageMemoryBarrier src)
Copies the specified struct data to this struct.int
sizeof()
int
srcAccessMask()
Returns the value of thesrcAccessMask
field.VkImageMemoryBarrier
srcAccessMask(int value)
Sets the specified value to thesrcAccessMask
field.int
srcQueueFamilyIndex()
Returns the value of thesrcQueueFamilyIndex
field.VkImageMemoryBarrier
srcQueueFamilyIndex(int value)
Sets the specified value to thesrcQueueFamilyIndex
field.int
sType()
Returns the value of thesType
field.VkImageMemoryBarrier
sType(int value)
Sets the specified value to thesType
field.VkImageSubresourceRange
subresourceRange()
Returns aVkImageSubresourceRange
view of thesubresourceRange
field.VkImageMemoryBarrier
subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRange
field to the specifiedConsumer
.VkImageMemoryBarrier
subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRange
to thesubresourceRange
field.
-
-
-
Constructor Detail
-
VkImageMemoryBarrier
public VkImageMemoryBarrier(java.nio.ByteBuffer container)
Creates aVkImageMemoryBarrier
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
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
srcAccessMask
public int srcAccessMask()
Returns the value of thesrcAccessMask
field.
-
dstAccessMask
public int dstAccessMask()
Returns the value of thedstAccessMask
field.
-
oldLayout
public int oldLayout()
Returns the value of theoldLayout
field.
-
newLayout
public int newLayout()
Returns the value of thenewLayout
field.
-
srcQueueFamilyIndex
public int srcQueueFamilyIndex()
Returns the value of thesrcQueueFamilyIndex
field.
-
dstQueueFamilyIndex
public int dstQueueFamilyIndex()
Returns the value of thedstQueueFamilyIndex
field.
-
image
public long image()
Returns the value of theimage
field.
-
subresourceRange
public VkImageSubresourceRange subresourceRange()
Returns aVkImageSubresourceRange
view of thesubresourceRange
field.
-
sType
public VkImageMemoryBarrier sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkImageMemoryBarrier pNext(long value)
Sets the specified value to thepNext
field.
-
srcAccessMask
public VkImageMemoryBarrier srcAccessMask(int value)
Sets the specified value to thesrcAccessMask
field.
-
dstAccessMask
public VkImageMemoryBarrier dstAccessMask(int value)
Sets the specified value to thedstAccessMask
field.
-
oldLayout
public VkImageMemoryBarrier oldLayout(int value)
Sets the specified value to theoldLayout
field.
-
newLayout
public VkImageMemoryBarrier newLayout(int value)
Sets the specified value to thenewLayout
field.
-
srcQueueFamilyIndex
public VkImageMemoryBarrier srcQueueFamilyIndex(int value)
Sets the specified value to thesrcQueueFamilyIndex
field.
-
dstQueueFamilyIndex
public VkImageMemoryBarrier dstQueueFamilyIndex(int value)
Sets the specified value to thedstQueueFamilyIndex
field.
-
image
public VkImageMemoryBarrier image(long value)
Sets the specified value to theimage
field.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRange
to thesubresourceRange
field.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRange
field to the specifiedConsumer
.
-
set
public VkImageMemoryBarrier set(int sType, long pNext, int srcAccessMask, int dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)
Initializes this struct with the specified values.
-
set
public VkImageMemoryBarrier set(VkImageMemoryBarrier src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkImageMemoryBarrier malloc()
Returns a newVkImageMemoryBarrier
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImageMemoryBarrier calloc()
Returns a newVkImageMemoryBarrier
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImageMemoryBarrier create()
Returns a newVkImageMemoryBarrier
instance allocated withBufferUtils
.
-
create
public static VkImageMemoryBarrier create(long address)
Returns a newVkImageMemoryBarrier
instance for the specified memory address.
-
createSafe
@Nullable public static VkImageMemoryBarrier createSafe(long address)
-
malloc
public static VkImageMemoryBarrier.Buffer malloc(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImageMemoryBarrier.Buffer calloc(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageMemoryBarrier.Buffer create(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageMemoryBarrier.Buffer create(long address, int capacity)
Create aVkImageMemoryBarrier.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkImageMemoryBarrier.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageMemoryBarrier mallocStack()
Returns a newVkImageMemoryBarrier
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImageMemoryBarrier callocStack()
Returns a newVkImageMemoryBarrier
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImageMemoryBarrier mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImageMemoryBarrier callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkImageMemoryBarrier.Buffer mallocStack(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImageMemoryBarrier.Buffer callocStack(int capacity)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkImageMemoryBarrier.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkImageMemoryBarrier.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
nsrcAccessMask
public static int nsrcAccessMask(long struct)
Unsafe version ofsrcAccessMask()
.
-
ndstAccessMask
public static int ndstAccessMask(long struct)
Unsafe version ofdstAccessMask()
.
-
noldLayout
public static int noldLayout(long struct)
Unsafe version ofoldLayout()
.
-
nnewLayout
public static int nnewLayout(long struct)
Unsafe version ofnewLayout()
.
-
nsrcQueueFamilyIndex
public static int nsrcQueueFamilyIndex(long struct)
Unsafe version ofsrcQueueFamilyIndex()
.
-
ndstQueueFamilyIndex
public static int ndstQueueFamilyIndex(long struct)
Unsafe version ofdstQueueFamilyIndex()
.
-
nimage
public static long nimage(long struct)
Unsafe version ofimage()
.
-
nsubresourceRange
public static VkImageSubresourceRange nsubresourceRange(long struct)
Unsafe version ofsubresourceRange()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nsrcAccessMask
public static void nsrcAccessMask(long struct, int value)
Unsafe version ofsrcAccessMask
.
-
ndstAccessMask
public static void ndstAccessMask(long struct, int value)
Unsafe version ofdstAccessMask
.
-
noldLayout
public static void noldLayout(long struct, int value)
Unsafe version ofoldLayout
.
-
nnewLayout
public static void nnewLayout(long struct, int value)
Unsafe version ofnewLayout
.
-
nsrcQueueFamilyIndex
public static void nsrcQueueFamilyIndex(long struct, int value)
Unsafe version ofsrcQueueFamilyIndex
.
-
ndstQueueFamilyIndex
public static void ndstQueueFamilyIndex(long struct, int value)
Unsafe version ofdstQueueFamilyIndex
.
-
nimage
public static void nimage(long struct, long value)
Unsafe version ofimage
.
-
nsubresourceRange
public static void nsubresourceRange(long struct, VkImageSubresourceRange value)
Unsafe version ofsubresourceRange
.
-
-