Record Class VkSampleLocationsInfoEXT
- All Implemented Interfaces:
IPointer,IVkSampleLocationsInfoEXT
Represents a pointer to a VkSampleLocationsInfoEXT structure in native memory.
Structure
typedef struct VkSampleLocationsInfoEXT {
VkStructureType sType;
void const* pNext; // optional
VkSampleCountFlags sampleLocationsPerPixel;
VkExtent2D sampleLocationGridSize;
uint32_t sampleLocationsCount; // optional
VkSampleLocationEXT const* pSampleLocations; // optional
} VkSampleLocationsInfoEXT;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT
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 ofVkSampleLocationsInfoEXTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkSampleLocationsInfoEXT(@NotNull MemorySegment segment) Creates an instance of aVkSampleLocationsInfoEXTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSampleLocationsInfoEXTstatic VkSampleLocationsInfoEXT.PtrvoidautoInit()static VkSampleLocationsInfoEXTclone(Arena arena, VkSampleLocationsInfoEXT src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @Nullable VkSampleLocationEXTpSampleLocations(int assumedCount) pSampleLocations(@Nullable IVkSampleLocationEXT value) @NotNull MemorySegmentvoidpSampleLocationsRaw(@NotNull MemorySegment value) @NotNull VkExtent2DsampleLocationGridSize(@NotNull VkExtent2D value) sampleLocationGridSize(Consumer<@NotNull VkExtent2D> consumer) intsampleLocationsCount(int value) intsampleLocationsPerPixel(int 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$sampleLocationsPerPixel
-
PATH$sampleLocationGridSize
-
PATH$sampleLocationsCount
-
PATH$pSampleLocations
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$sampleLocationsPerPixel
-
LAYOUT$sampleLocationGridSize
-
LAYOUT$sampleLocationsCount
-
LAYOUT$pSampleLocations
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$sampleLocationsPerPixel
public static final long SIZE$sampleLocationsPerPixel -
SIZE$sampleLocationGridSize
public static final long SIZE$sampleLocationGridSize -
SIZE$sampleLocationsCount
public static final long SIZE$sampleLocationsCount -
SIZE$pSampleLocations
public static final long SIZE$pSampleLocations -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$sampleLocationsPerPixel
public static final long OFFSET$sampleLocationsPerPixel -
OFFSET$sampleLocationGridSize
public static final long OFFSET$sampleLocationGridSize -
OFFSET$sampleLocationsCount
public static final long OFFSET$sampleLocationsCount -
OFFSET$pSampleLocations
public static final long OFFSET$pSampleLocations
-
-
Constructor Details
-
VkSampleLocationsInfoEXT
Creates an instance of aVkSampleLocationsInfoEXTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkSampleLocationsInfoEXT pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
sampleLocationsPerPixel
-
sampleLocationsPerPixel
public VkSampleLocationsInfoEXT sampleLocationsPerPixel(@Bitmask(VkSampleCountFlags.class) int value) -
sampleLocationGridSize
-
sampleLocationGridSize
-
sampleLocationGridSize
-
sampleLocationsCount
-
sampleLocationsCount
-
pSampleLocations
-
pSampleLocations
-
pSampleLocations
-
pSampleLocationsRaw
@Pointer(target=VkSampleLocationEXT.class) @NotNull public @NotNull MemorySegment pSampleLocationsRaw() -
pSampleLocationsRaw
public void pSampleLocationsRaw(@Pointer(target=VkSampleLocationEXT.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.
-