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 record
Represents a pointer to / an array ofVkShaderStatisticsInfoAMD
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final SequenceLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionVkShaderStatisticsInfoAMD
(@NotNull MemorySegment segment) Creates an instance of aVkShaderStatisticsInfoAMD
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkShaderStatisticsInfoAMD
static VkShaderStatisticsInfoAMD
clone
(Arena arena, VkShaderStatisticsInfoAMD src) computeWorkGroupSize
(IntPtr 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
numAvailableSgprs
(int value) int
numAvailableVgprs
(int value) int
numPhysicalSgprs
(int value) int
numPhysicalVgprs
(int value) @NotNull VkShaderResourceUsageAMD
resourceUsage
(@NotNull VkShaderResourceUsageAMD value) resourceUsage
(Consumer<@NotNull VkShaderResourceUsageAMD> consumer) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
shaderStageMask
(int value) final String
toString()
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 aVkShaderStatisticsInfoAMD
record class.- Parameters:
segment
- the value for thesegment
record 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
-
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 thesegment
record component.
-