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 record
Represents a pointer to / an array ofVkSamplerYcbcrConversionCreateInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
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 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
ConstructorsConstructorDescriptionVkSamplerYcbcrConversionCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aVkSamplerYcbcrConversionCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
int
chromaFilter
(int value) clone
(Arena arena, VkSamplerYcbcrConversionCreateInfo src) @NotNull VkComponentMapping
components
(@NotNull VkComponentMapping value) components
(Consumer<@NotNull VkComponentMapping> consumer) final boolean
Indicates whether some other object is "equal to" this one.int
forceExplicitReconstruction
(int value) int
format()
format
(int value) final int
hashCode()
Returns a hash code value for this object.pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.int
xChromaOffset
(int value) int
ycbcrModel
(int value) int
ycbcrRange
(int value) int
yChromaOffset
(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 aVkSamplerYcbcrConversionCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkSamplerYcbcrConversionCreateInfo clone(Arena arena, VkSamplerYcbcrConversionCreateInfo src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
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 thesegment
record component.
-