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; // optional
uint32_t bufferMemoryBarrierCount; // optional
VkBufferMemoryBarrier2 const* pBufferMemoryBarriers; // optional
uint32_t imageMemoryBarrierCount; // optional
VkImageMemoryBarrier2 const* pImageMemoryBarriers; // optional
} 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 recordRepresents a pointer to / an array ofVkDependencyInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkDependencyInfo(@NotNull MemorySegment segment) Creates an instance of aVkDependencyInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDependencyInfostatic VkDependencyInfo.PtrvoidautoInit()intbufferMemoryBarrierCount(int value) static VkDependencyInfoclone(Arena arena, VkDependencyInfo src) intdependencyFlags(int value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intimageMemoryBarrierCount(int value) intmemoryBarrierCount(int value) @Nullable VkBufferMemoryBarrier2pBufferMemoryBarriers(int assumedCount) pBufferMemoryBarriers(@Nullable IVkBufferMemoryBarrier2 value) @NotNull MemorySegmentvoidpBufferMemoryBarriersRaw(@NotNull MemorySegment value) @Nullable VkImageMemoryBarrier2pImageMemoryBarriers(int assumedCount) pImageMemoryBarriers(@Nullable IVkImageMemoryBarrier2 value) @NotNull MemorySegmentvoidpImageMemoryBarriersRaw(@NotNull MemorySegment value) @Nullable VkMemoryBarrier2pMemoryBarriers(int assumedCount) pMemoryBarriers(@Nullable IVkMemoryBarrier2 value) @NotNull MemorySegmentvoidpMemoryBarriersRaw(@NotNull MemorySegment value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()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 aVkDependencyInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
dependencyFlags
-
dependencyFlags
-
memoryBarrierCount
-
memoryBarrierCount
-
pMemoryBarriers
-
pMemoryBarriers
-
pMemoryBarriers
-
pMemoryBarriersRaw
-
pMemoryBarriersRaw
public void pMemoryBarriersRaw(@Pointer(target=VkMemoryBarrier2.class) @NotNull @NotNull MemorySegment value) -
bufferMemoryBarrierCount
-
bufferMemoryBarrierCount
-
pBufferMemoryBarriers
-
pBufferMemoryBarriers
-
pBufferMemoryBarriers
-
pBufferMemoryBarriersRaw
@Pointer(target=VkBufferMemoryBarrier2.class) @NotNull public @NotNull MemorySegment pBufferMemoryBarriersRaw() -
pBufferMemoryBarriersRaw
public void pBufferMemoryBarriersRaw(@Pointer(target=VkBufferMemoryBarrier2.class) @NotNull @NotNull MemorySegment value) -
imageMemoryBarrierCount
-
imageMemoryBarrierCount
-
pImageMemoryBarriers
-
pImageMemoryBarriers
-
pImageMemoryBarriers
-
pImageMemoryBarriersRaw
@Pointer(target=VkImageMemoryBarrier2.class) @NotNull public @NotNull MemorySegment pImageMemoryBarriersRaw() -
pImageMemoryBarriersRaw
public void pImageMemoryBarriersRaw(@Pointer(target=VkImageMemoryBarrier2.class) @NotNull @NotNull 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 thesegmentrecord component.
-