Record Class VkShaderStatisticsInfoAMD
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkShaderStatisticsInfoAMD
- All Implemented Interfaces:
IPointer,IVkShaderStatisticsInfoAMD
@ValueBasedCandidate
@UnsafeConstructor
public record VkShaderStatisticsInfoAMD(@NotNull MemorySegment segment)
extends Record
implements IVkShaderStatisticsInfoAMD
Represents a pointer to a VkShaderStatisticsInfoAMD structure in native memory.
Structure
typedef struct VkShaderStatisticsInfoAMD {
VkShaderStageFlags shaderStageMask;
VkShaderResourceUsageAMD resourceUsage;
uint32_t numPhysicalVgprs;
uint32_t numPhysicalSgprs;
uint32_t numAvailableVgprs;
uint32_t numAvailableSgprs;
uint32_t[3] computeWorkGroupSize;
} VkShaderStatisticsInfoAMD;
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 ofVkShaderStatisticsInfoAMDstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final ValueLayout.OfIntstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkShaderStatisticsInfoAMD(@NotNull MemorySegment segment) Creates an instance of aVkShaderStatisticsInfoAMDrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkShaderStatisticsInfoAMDstatic VkShaderStatisticsInfoAMDclone(Arena arena, VkShaderStatisticsInfoAMD src) computeWorkGroupSize(IntPtr value) computeWorkGroupSize(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegmentfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumAvailableSgprs(int value) intnumAvailableVgprs(int value) intnumPhysicalSgprs(int value) intnumPhysicalVgprs(int value) @NotNull VkShaderResourceUsageAMDresourceUsage(@NotNull VkShaderResourceUsageAMD value) resourceUsage(Consumer<@NotNull VkShaderResourceUsageAMD> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intshaderStageMask(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$shaderStageMask
-
PATH$resourceUsage
-
PATH$numPhysicalVgprs
-
PATH$numPhysicalSgprs
-
PATH$numAvailableVgprs
-
PATH$numAvailableSgprs
-
PATH$computeWorkGroupSize
-
LAYOUT$shaderStageMask
-
LAYOUT$resourceUsage
-
LAYOUT$numPhysicalVgprs
-
LAYOUT$numPhysicalSgprs
-
LAYOUT$numAvailableVgprs
-
LAYOUT$numAvailableSgprs
-
LAYOUT$computeWorkGroupSize
-
SIZE$shaderStageMask
public static final long SIZE$shaderStageMask -
SIZE$resourceUsage
public static final long SIZE$resourceUsage -
SIZE$numPhysicalVgprs
public static final long SIZE$numPhysicalVgprs -
SIZE$numPhysicalSgprs
public static final long SIZE$numPhysicalSgprs -
SIZE$numAvailableVgprs
public static final long SIZE$numAvailableVgprs -
SIZE$numAvailableSgprs
public static final long SIZE$numAvailableSgprs -
SIZE$computeWorkGroupSize
public static final long SIZE$computeWorkGroupSize -
OFFSET$shaderStageMask
public static final long OFFSET$shaderStageMask -
OFFSET$resourceUsage
public static final long OFFSET$resourceUsage -
OFFSET$numPhysicalVgprs
public static final long OFFSET$numPhysicalVgprs -
OFFSET$numPhysicalSgprs
public static final long OFFSET$numPhysicalSgprs -
OFFSET$numAvailableVgprs
public static final long OFFSET$numAvailableVgprs -
OFFSET$numAvailableSgprs
public static final long OFFSET$numAvailableSgprs -
OFFSET$computeWorkGroupSize
public static final long OFFSET$computeWorkGroupSize
-
-
Constructor Details
-
VkShaderStatisticsInfoAMD
Creates an instance of aVkShaderStatisticsInfoAMDrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
shaderStageMask
-
shaderStageMask
-
resourceUsage
-
resourceUsage
-
resourceUsage
public VkShaderStatisticsInfoAMD resourceUsage(Consumer<@NotNull VkShaderResourceUsageAMD> consumer) -
numPhysicalVgprs
-
numPhysicalVgprs
-
numPhysicalSgprs
-
numPhysicalSgprs
-
numAvailableVgprs
-
numAvailableVgprs
-
numAvailableSgprs
-
numAvailableSgprs
-
computeWorkGroupSize
-
computeWorkGroupSize
-
computeWorkGroupSize
-
computeWorkGroupSizeRaw
-
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.
-