Record Class VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
- All Implemented Interfaces:
IPointer
,IVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
Represents a pointer to a VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
structure in native memory.
Structure
typedef struct VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
VkStructureType
sType
;
void* pNext
; // optional
VkBool32 workgroupMemoryExplicitLayout
;
VkBool32 workgroupMemoryExplicitLayoutScalarBlockLayout
;
VkBool32 workgroupMemoryExplicitLayout8BitAccess
;
VkBool32 workgroupMemoryExplicitLayout16BitAccess
;
} VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR
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 ofVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
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 long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.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.int
workgroupMemoryExplicitLayout
(int value) int
workgroupMemoryExplicitLayout16BitAccess
(int value) int
workgroupMemoryExplicitLayout8BitAccess
(int value) int
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$workgroupMemoryExplicitLayout
-
PATH$workgroupMemoryExplicitLayoutScalarBlockLayout
-
PATH$workgroupMemoryExplicitLayout8BitAccess
-
PATH$workgroupMemoryExplicitLayout16BitAccess
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$workgroupMemoryExplicitLayout
-
LAYOUT$workgroupMemoryExplicitLayoutScalarBlockLayout
-
LAYOUT$workgroupMemoryExplicitLayout8BitAccess
-
LAYOUT$workgroupMemoryExplicitLayout16BitAccess
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$workgroupMemoryExplicitLayout
public static final long SIZE$workgroupMemoryExplicitLayout -
SIZE$workgroupMemoryExplicitLayoutScalarBlockLayout
public static final long SIZE$workgroupMemoryExplicitLayoutScalarBlockLayout -
SIZE$workgroupMemoryExplicitLayout8BitAccess
public static final long SIZE$workgroupMemoryExplicitLayout8BitAccess -
SIZE$workgroupMemoryExplicitLayout16BitAccess
public static final long SIZE$workgroupMemoryExplicitLayout16BitAccess -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$workgroupMemoryExplicitLayout
public static final long OFFSET$workgroupMemoryExplicitLayout -
OFFSET$workgroupMemoryExplicitLayoutScalarBlockLayout
public static final long OFFSET$workgroupMemoryExplicitLayoutScalarBlockLayout -
OFFSET$workgroupMemoryExplicitLayout8BitAccess
public static final long OFFSET$workgroupMemoryExplicitLayout8BitAccess -
OFFSET$workgroupMemoryExplicitLayout16BitAccess
public static final long OFFSET$workgroupMemoryExplicitLayout16BitAccess
-
-
Constructor Details
-
VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(@NotNull @NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Ptr allocate(Arena arena, long count) -
clone
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR clone(Arena arena, VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR src) -
autoInit
public void autoInit() -
sType
-
sType
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
-
pNext
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR pNext(@Nullable @Nullable IPointer pointer) -
workgroupMemoryExplicitLayout
-
workgroupMemoryExplicitLayout
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout(@NativeType("VkBool32") @Unsigned int value) -
workgroupMemoryExplicitLayoutScalarBlockLayout
-
workgroupMemoryExplicitLayoutScalarBlockLayout
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayoutScalarBlockLayout(@NativeType("VkBool32") @Unsigned int value) -
workgroupMemoryExplicitLayout8BitAccess
-
workgroupMemoryExplicitLayout8BitAccess
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout8BitAccess(@NativeType("VkBool32") @Unsigned int value) -
workgroupMemoryExplicitLayout16BitAccess
-
workgroupMemoryExplicitLayout16BitAccess
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout16BitAccess(@NativeType("VkBool32") @Unsigned int 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.
-