Record Class VkSamplerYcbcrConversionCreateInfo
- All Implemented Interfaces:
IPointer,IVkSamplerYcbcrConversionCreateInfo
Represents a pointer to a VkSamplerYcbcrConversionCreateInfo structure in native memory.
Structure
typedef struct VkSamplerYcbcrConversionCreateInfo {
VkStructureType sType;
void const* pNext; // optional
VkFormat format;
VkSamplerYcbcrModelConversion ycbcrModel;
VkSamplerYcbcrRange ycbcrRange;
VkComponentMapping components;
VkChromaLocation xChromaOffset;
VkChromaLocation yChromaOffset;
VkFilter chromaFilter;
VkBool32 forceExplicitReconstruction;
} VkSamplerYcbcrConversionCreateInfo;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO
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 ofVkSamplerYcbcrConversionCreateInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic 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 MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkSamplerYcbcrConversionCreateInfo(@NotNull MemorySegment segment) Creates an instance of aVkSamplerYcbcrConversionCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()intchromaFilter(int value) clone(Arena arena, VkSamplerYcbcrConversionCreateInfo src) @NotNull VkComponentMappingcomponents(@NotNull VkComponentMapping value) components(Consumer<@NotNull VkComponentMapping> consumer) final booleanIndicates whether some other object is "equal to" this one.intforceExplicitReconstruction(int value) intformat()format(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()Returns a string representation of this record class.intxChromaOffset(int value) intycbcrModel(int value) intycbcrRange(int value) intyChromaOffset(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$format
-
PATH$ycbcrModel
-
PATH$ycbcrRange
-
PATH$components
-
PATH$xChromaOffset
-
PATH$yChromaOffset
-
PATH$chromaFilter
-
PATH$forceExplicitReconstruction
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$format
-
LAYOUT$ycbcrModel
-
LAYOUT$ycbcrRange
-
LAYOUT$components
-
LAYOUT$xChromaOffset
-
LAYOUT$yChromaOffset
-
LAYOUT$chromaFilter
-
LAYOUT$forceExplicitReconstruction
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$format
public static final long SIZE$format -
SIZE$ycbcrModel
public static final long SIZE$ycbcrModel -
SIZE$ycbcrRange
public static final long SIZE$ycbcrRange -
SIZE$components
public static final long SIZE$components -
SIZE$xChromaOffset
public static final long SIZE$xChromaOffset -
SIZE$yChromaOffset
public static final long SIZE$yChromaOffset -
SIZE$chromaFilter
public static final long SIZE$chromaFilter -
SIZE$forceExplicitReconstruction
public static final long SIZE$forceExplicitReconstruction -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$format
public static final long OFFSET$format -
OFFSET$ycbcrModel
public static final long OFFSET$ycbcrModel -
OFFSET$ycbcrRange
public static final long OFFSET$ycbcrRange -
OFFSET$components
public static final long OFFSET$components -
OFFSET$xChromaOffset
public static final long OFFSET$xChromaOffset -
OFFSET$yChromaOffset
public static final long OFFSET$yChromaOffset -
OFFSET$chromaFilter
public static final long OFFSET$chromaFilter -
OFFSET$forceExplicitReconstruction
public static final long OFFSET$forceExplicitReconstruction
-
-
Constructor Details
-
VkSamplerYcbcrConversionCreateInfo
Creates an instance of aVkSamplerYcbcrConversionCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkSamplerYcbcrConversionCreateInfo clone(Arena arena, VkSamplerYcbcrConversionCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkSamplerYcbcrConversionCreateInfo pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
format
-
format
-
ycbcrModel
-
ycbcrModel
public VkSamplerYcbcrConversionCreateInfo ycbcrModel(@EnumType(VkSamplerYcbcrModelConversion.class) int value) -
ycbcrRange
-
ycbcrRange
public VkSamplerYcbcrConversionCreateInfo ycbcrRange(@EnumType(VkSamplerYcbcrRange.class) int value) -
components
-
components
-
components
public VkSamplerYcbcrConversionCreateInfo components(Consumer<@NotNull VkComponentMapping> consumer) -
xChromaOffset
-
xChromaOffset
public VkSamplerYcbcrConversionCreateInfo xChromaOffset(@EnumType(VkChromaLocation.class) int value) -
yChromaOffset
-
yChromaOffset
public VkSamplerYcbcrConversionCreateInfo yChromaOffset(@EnumType(VkChromaLocation.class) int value) -
chromaFilter
-
chromaFilter
-
forceExplicitReconstruction
-
forceExplicitReconstruction
public VkSamplerYcbcrConversionCreateInfo forceExplicitReconstruction(@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 thesegmentrecord component.
-