Record Class VkDescriptorDataEXT
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkDescriptorDataEXT
- All Implemented Interfaces:
IPointer
,IVkDescriptorDataEXT
@ValueBasedCandidate
@UnsafeConstructor
public record VkDescriptorDataEXT(@NotNull MemorySegment segment)
extends Record
implements IVkDescriptorDataEXT
Represents a pointer to a VkDescriptorDataEXT
structure in native memory.
Structure
typedef struct VkDescriptorDataEXT {
VkSampler
const* pSampler
;
VkDescriptorImageInfo
const* pCombinedImageSampler
;
VkDescriptorImageInfo
const* pInputAttachmentImage
;
VkDescriptorImageInfo
const* pSampledImage
; // optional
VkDescriptorImageInfo
const* pStorageImage
; // optional
VkDescriptorAddressInfoEXT
const* pUniformTexelBuffer
; // optional
VkDescriptorAddressInfoEXT
const* pStorageTexelBuffer
; // optional
VkDescriptorAddressInfoEXT
const* pUniformBuffer
; // optional
VkDescriptorAddressInfoEXT
const* pStorageBuffer
; // optional
VkDeviceAddress accelerationStructure
;
} VkDescriptorDataEXT;
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 ofVkDescriptorDataEXT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final UnionLayout
static final ValueLayout.OfLong
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final long
static final long
static final long
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 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
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorDataEXT
(@NotNull MemorySegment segment) Creates an instance of aVkDescriptorDataEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
accelerationStructure
(long value) static VkDescriptorDataEXT
static VkDescriptorDataEXT.Ptr
static VkDescriptorDataEXT
clone
(Arena arena, VkDescriptorDataEXT src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable VkDescriptorImageInfo
pCombinedImageSampler
(int assumedCount) pCombinedImageSampler
(@Nullable IVkDescriptorImageInfo value) void
@Nullable VkDescriptorImageInfo
pInputAttachmentImage
(int assumedCount) pInputAttachmentImage
(@Nullable IVkDescriptorImageInfo value) void
@Nullable VkDescriptorImageInfo
pSampledImage
(int assumedCount) pSampledImage
(@Nullable IVkDescriptorImageInfo value) void
pSampledImageRaw
(MemorySegment value) pSampler()
Note: the returnedVkSampler.Ptr
does not have correctVkSampler.Ptr.size()
property.pSampler
(VkSampler.Ptr value) void
pSamplerRaw
(MemorySegment value) @Nullable VkDescriptorAddressInfoEXT
pStorageBuffer
(int assumedCount) pStorageBuffer
(@Nullable IVkDescriptorAddressInfoEXT value) void
pStorageBufferRaw
(MemorySegment value) @Nullable VkDescriptorImageInfo
pStorageImage
(int assumedCount) pStorageImage
(@Nullable IVkDescriptorImageInfo value) void
pStorageImageRaw
(MemorySegment value) @Nullable VkDescriptorAddressInfoEXT
pStorageTexelBuffer
(int assumedCount) pStorageTexelBuffer
(@Nullable IVkDescriptorAddressInfoEXT value) void
@Nullable VkDescriptorAddressInfoEXT
pUniformBuffer
(int assumedCount) pUniformBuffer
(@Nullable IVkDescriptorAddressInfoEXT value) void
pUniformBufferRaw
(MemorySegment value) @Nullable VkDescriptorAddressInfoEXT
pUniformTexelBuffer
(int assumedCount) pUniformTexelBuffer
(@Nullable IVkDescriptorAddressInfoEXT value) void
@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$pSampler
-
PATH$pCombinedImageSampler
-
PATH$pInputAttachmentImage
-
PATH$pSampledImage
-
PATH$pStorageImage
-
PATH$pUniformTexelBuffer
-
PATH$pStorageTexelBuffer
-
PATH$pUniformBuffer
-
PATH$pStorageBuffer
-
PATH$accelerationStructure
-
LAYOUT$pSampler
-
LAYOUT$pCombinedImageSampler
-
LAYOUT$pInputAttachmentImage
-
LAYOUT$pSampledImage
-
LAYOUT$pStorageImage
-
LAYOUT$pUniformTexelBuffer
-
LAYOUT$pStorageTexelBuffer
-
LAYOUT$pUniformBuffer
-
LAYOUT$pStorageBuffer
-
LAYOUT$accelerationStructure
-
SIZE$pSampler
public static final long SIZE$pSampler -
SIZE$pCombinedImageSampler
public static final long SIZE$pCombinedImageSampler -
SIZE$pInputAttachmentImage
public static final long SIZE$pInputAttachmentImage -
SIZE$pSampledImage
public static final long SIZE$pSampledImage -
SIZE$pStorageImage
public static final long SIZE$pStorageImage -
SIZE$pUniformTexelBuffer
public static final long SIZE$pUniformTexelBuffer -
SIZE$pStorageTexelBuffer
public static final long SIZE$pStorageTexelBuffer -
SIZE$pUniformBuffer
public static final long SIZE$pUniformBuffer -
SIZE$pStorageBuffer
public static final long SIZE$pStorageBuffer -
SIZE$accelerationStructure
public static final long SIZE$accelerationStructure -
OFFSET$pSampler
public static final long OFFSET$pSampler -
OFFSET$pCombinedImageSampler
public static final long OFFSET$pCombinedImageSampler -
OFFSET$pInputAttachmentImage
public static final long OFFSET$pInputAttachmentImage -
OFFSET$pSampledImage
public static final long OFFSET$pSampledImage -
OFFSET$pStorageImage
public static final long OFFSET$pStorageImage -
OFFSET$pUniformTexelBuffer
public static final long OFFSET$pUniformTexelBuffer -
OFFSET$pStorageTexelBuffer
public static final long OFFSET$pStorageTexelBuffer -
OFFSET$pUniformBuffer
public static final long OFFSET$pUniformBuffer -
OFFSET$pStorageBuffer
public static final long OFFSET$pStorageBuffer -
OFFSET$accelerationStructure
public static final long OFFSET$accelerationStructure
-
-
Constructor Details
-
VkDescriptorDataEXT
Creates an instance of aVkDescriptorDataEXT
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
pSampler
Note: the returnedVkSampler.Ptr
does not have correctVkSampler.Ptr.size()
property. It's up to user to track the size of the buffer, and useVkSampler.Ptr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pSampler
-
pSamplerRaw
-
pSamplerRaw
-
pCombinedImageSampler
-
pCombinedImageSampler
-
pCombinedImageSampler
-
pCombinedImageSamplerRaw
-
pCombinedImageSamplerRaw
public void pCombinedImageSamplerRaw(@Pointer(target=VkDescriptorImageInfo.class) MemorySegment value) -
pInputAttachmentImage
-
pInputAttachmentImage
-
pInputAttachmentImage
-
pInputAttachmentImageRaw
-
pInputAttachmentImageRaw
public void pInputAttachmentImageRaw(@Pointer(target=VkDescriptorImageInfo.class) MemorySegment value) -
pSampledImage
-
pSampledImage
-
pSampledImage
-
pSampledImageRaw
-
pSampledImageRaw
-
pStorageImage
-
pStorageImage
-
pStorageImage
-
pStorageImageRaw
-
pStorageImageRaw
-
pUniformTexelBuffer
public VkDescriptorDataEXT pUniformTexelBuffer(@Nullable @Nullable IVkDescriptorAddressInfoEXT value) -
pUniformTexelBuffer
-
pUniformTexelBuffer
-
pUniformTexelBufferRaw
-
pUniformTexelBufferRaw
public void pUniformTexelBufferRaw(@Pointer(target=VkDescriptorAddressInfoEXT.class) MemorySegment value) -
pStorageTexelBuffer
public VkDescriptorDataEXT pStorageTexelBuffer(@Nullable @Nullable IVkDescriptorAddressInfoEXT value) -
pStorageTexelBuffer
-
pStorageTexelBuffer
-
pStorageTexelBufferRaw
-
pStorageTexelBufferRaw
public void pStorageTexelBufferRaw(@Pointer(target=VkDescriptorAddressInfoEXT.class) MemorySegment value) -
pUniformBuffer
-
pUniformBuffer
-
pUniformBuffer
-
pUniformBufferRaw
-
pUniformBufferRaw
public void pUniformBufferRaw(@Pointer(target=VkDescriptorAddressInfoEXT.class) MemorySegment value) -
pStorageBuffer
-
pStorageBuffer
-
pStorageBuffer
-
pStorageBufferRaw
-
pStorageBufferRaw
public void pStorageBufferRaw(@Pointer(target=VkDescriptorAddressInfoEXT.class) MemorySegment value) -
accelerationStructure
-
accelerationStructure
public VkDescriptorDataEXT accelerationStructure(@NativeType("VkDeviceAddress") @Unsigned long 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.
-