Record Class VkDependencyInfo
- All Implemented Interfaces:
IPointer
,IVkDependencyInfo
Represents a pointer to a VkDependencyInfo
structure in native memory.
Structure
typedef struct VkDependencyInfo {
VkStructureType
sType
;
void const* pNext
; // optional
VkDependencyFlags
dependencyFlags
; // optional
uint32_t memoryBarrierCount
; // optional
VkMemoryBarrier2
const* pMemoryBarriers
;
uint32_t bufferMemoryBarrierCount
; // optional
VkBufferMemoryBarrier2
const* pBufferMemoryBarriers
;
uint32_t imageMemoryBarrierCount
; // optional
VkImageMemoryBarrier2
const* pImageMemoryBarriers
;
} VkDependencyInfo;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkDependencyInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkDependencyInfo
(@NotNull MemorySegment segment) Creates an instance of aVkDependencyInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDependencyInfo
static VkDependencyInfo.Ptr
void
autoInit()
int
bufferMemoryBarrierCount
(int value) static VkDependencyInfo
clone
(Arena arena, VkDependencyInfo src) int
dependencyFlags
(int value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
imageMemoryBarrierCount
(int value) int
memoryBarrierCount
(int value) @Nullable VkBufferMemoryBarrier2
pBufferMemoryBarriers
(int assumedCount) pBufferMemoryBarriers
(@Nullable IVkBufferMemoryBarrier2 value) void
@Nullable VkImageMemoryBarrier2
pImageMemoryBarriers
(int assumedCount) pImageMemoryBarriers
(@Nullable IVkImageMemoryBarrier2 value) void
@Nullable VkMemoryBarrier2
pMemoryBarriers
(int assumedCount) pMemoryBarriers
(@Nullable IVkMemoryBarrier2 value) void
pMemoryBarriersRaw
(MemorySegment value) pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$dependencyFlags
-
PATH$memoryBarrierCount
-
PATH$pMemoryBarriers
-
PATH$bufferMemoryBarrierCount
-
PATH$pBufferMemoryBarriers
-
PATH$imageMemoryBarrierCount
-
PATH$pImageMemoryBarriers
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$dependencyFlags
-
LAYOUT$memoryBarrierCount
-
LAYOUT$pMemoryBarriers
-
LAYOUT$bufferMemoryBarrierCount
-
LAYOUT$pBufferMemoryBarriers
-
LAYOUT$imageMemoryBarrierCount
-
LAYOUT$pImageMemoryBarriers
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$dependencyFlags
public static final long SIZE$dependencyFlags -
SIZE$memoryBarrierCount
public static final long SIZE$memoryBarrierCount -
SIZE$pMemoryBarriers
public static final long SIZE$pMemoryBarriers -
SIZE$bufferMemoryBarrierCount
public static final long SIZE$bufferMemoryBarrierCount -
SIZE$pBufferMemoryBarriers
public static final long SIZE$pBufferMemoryBarriers -
SIZE$imageMemoryBarrierCount
public static final long SIZE$imageMemoryBarrierCount -
SIZE$pImageMemoryBarriers
public static final long SIZE$pImageMemoryBarriers -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$dependencyFlags
public static final long OFFSET$dependencyFlags -
OFFSET$memoryBarrierCount
public static final long OFFSET$memoryBarrierCount -
OFFSET$pMemoryBarriers
public static final long OFFSET$pMemoryBarriers -
OFFSET$bufferMemoryBarrierCount
public static final long OFFSET$bufferMemoryBarrierCount -
OFFSET$pBufferMemoryBarriers
public static final long OFFSET$pBufferMemoryBarriers -
OFFSET$imageMemoryBarrierCount
public static final long OFFSET$imageMemoryBarrierCount -
OFFSET$pImageMemoryBarriers
public static final long OFFSET$pImageMemoryBarriers
-
-
Constructor Details
-
VkDependencyInfo
Creates an instance of aVkDependencyInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
dependencyFlags
-
dependencyFlags
-
memoryBarrierCount
-
memoryBarrierCount
-
pMemoryBarriers
-
pMemoryBarriers
-
pMemoryBarriers
-
pMemoryBarriersRaw
-
pMemoryBarriersRaw
-
bufferMemoryBarrierCount
-
bufferMemoryBarrierCount
-
pBufferMemoryBarriers
-
pBufferMemoryBarriers
-
pBufferMemoryBarriers
-
pBufferMemoryBarriersRaw
-
pBufferMemoryBarriersRaw
public void pBufferMemoryBarriersRaw(@Pointer(target=VkBufferMemoryBarrier2.class) MemorySegment value) -
imageMemoryBarrierCount
-
imageMemoryBarrierCount
-
pImageMemoryBarriers
-
pImageMemoryBarriers
-
pImageMemoryBarriers
-
pImageMemoryBarriersRaw
-
pImageMemoryBarriersRaw
public void pImageMemoryBarriersRaw(@Pointer(target=VkImageMemoryBarrier2.class) MemorySegment value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-