Record Class VkSamplerCreateInfo
- All Implemented Interfaces:
IPointer
,IVkSamplerCreateInfo
Represents a pointer to a VkSamplerCreateInfo
structure in native memory.
Structure
typedef struct VkSamplerCreateInfo {
VkStructureType
sType
;
void const* pNext
; // optional
VkSamplerCreateFlags
flags
; // optional
VkFilter
magFilter
;
VkFilter
minFilter
;
VkSamplerMipmapMode
mipmapMode
;
VkSamplerAddressMode
addressModeU
;
VkSamplerAddressMode
addressModeV
;
VkSamplerAddressMode
addressModeW
;
float mipLodBias
;
VkBool32 anisotropyEnable
;
float maxAnisotropy
;
VkBool32 compareEnable
;
VkCompareOp
compareOp
;
float minLod
;
float maxLod
;
VkBorderColor
borderColor
;
VkBool32 unnormalizedCoordinates
;
} VkSamplerCreateInfo;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_SAMPLER_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 ofVkSamplerCreateInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final ValueLayout.OfInt
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final ValueLayout.OfInt
static final AddressLayout
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 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 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
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
ConstructorsConstructorDescriptionVkSamplerCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aVkSamplerCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
addressModeU
(int value) int
addressModeV
(int value) int
addressModeW
(int value) static VkSamplerCreateInfo
static VkSamplerCreateInfo.Ptr
int
anisotropyEnable
(int value) void
autoInit()
int
borderColor
(int value) static VkSamplerCreateInfo
clone
(Arena arena, VkSamplerCreateInfo src) int
compareEnable
(int value) int
compareOp
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) final int
hashCode()
Returns a hash code value for this object.int
magFilter
(int value) float
maxAnisotropy
(float value) float
maxLod()
maxLod
(float value) int
minFilter
(int value) float
minLod()
minLod
(float value) float
mipLodBias
(float value) int
mipmapMode
(int value) 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
unnormalizedCoordinates
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$flags
-
PATH$magFilter
-
PATH$minFilter
-
PATH$mipmapMode
-
PATH$addressModeU
-
PATH$addressModeV
-
PATH$addressModeW
-
PATH$mipLodBias
-
PATH$anisotropyEnable
-
PATH$maxAnisotropy
-
PATH$compareEnable
-
PATH$compareOp
-
PATH$minLod
-
PATH$maxLod
-
PATH$borderColor
-
PATH$unnormalizedCoordinates
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$flags
-
LAYOUT$magFilter
-
LAYOUT$minFilter
-
LAYOUT$mipmapMode
-
LAYOUT$addressModeU
-
LAYOUT$addressModeV
-
LAYOUT$addressModeW
-
LAYOUT$mipLodBias
-
LAYOUT$anisotropyEnable
-
LAYOUT$maxAnisotropy
-
LAYOUT$compareEnable
-
LAYOUT$compareOp
-
LAYOUT$minLod
-
LAYOUT$maxLod
-
LAYOUT$borderColor
-
LAYOUT$unnormalizedCoordinates
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$flags
public static final long SIZE$flags -
SIZE$magFilter
public static final long SIZE$magFilter -
SIZE$minFilter
public static final long SIZE$minFilter -
SIZE$mipmapMode
public static final long SIZE$mipmapMode -
SIZE$addressModeU
public static final long SIZE$addressModeU -
SIZE$addressModeV
public static final long SIZE$addressModeV -
SIZE$addressModeW
public static final long SIZE$addressModeW -
SIZE$mipLodBias
public static final long SIZE$mipLodBias -
SIZE$anisotropyEnable
public static final long SIZE$anisotropyEnable -
SIZE$maxAnisotropy
public static final long SIZE$maxAnisotropy -
SIZE$compareEnable
public static final long SIZE$compareEnable -
SIZE$compareOp
public static final long SIZE$compareOp -
SIZE$minLod
public static final long SIZE$minLod -
SIZE$maxLod
public static final long SIZE$maxLod -
SIZE$borderColor
public static final long SIZE$borderColor -
SIZE$unnormalizedCoordinates
public static final long SIZE$unnormalizedCoordinates -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$magFilter
public static final long OFFSET$magFilter -
OFFSET$minFilter
public static final long OFFSET$minFilter -
OFFSET$mipmapMode
public static final long OFFSET$mipmapMode -
OFFSET$addressModeU
public static final long OFFSET$addressModeU -
OFFSET$addressModeV
public static final long OFFSET$addressModeV -
OFFSET$addressModeW
public static final long OFFSET$addressModeW -
OFFSET$mipLodBias
public static final long OFFSET$mipLodBias -
OFFSET$anisotropyEnable
public static final long OFFSET$anisotropyEnable -
OFFSET$maxAnisotropy
public static final long OFFSET$maxAnisotropy -
OFFSET$compareEnable
public static final long OFFSET$compareEnable -
OFFSET$compareOp
public static final long OFFSET$compareOp -
OFFSET$minLod
public static final long OFFSET$minLod -
OFFSET$maxLod
public static final long OFFSET$maxLod -
OFFSET$borderColor
public static final long OFFSET$borderColor -
OFFSET$unnormalizedCoordinates
public static final long OFFSET$unnormalizedCoordinates
-
-
Constructor Details
-
VkSamplerCreateInfo
Creates an instance of aVkSamplerCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
flags
-
flags
-
magFilter
-
magFilter
-
minFilter
-
minFilter
-
mipmapMode
-
mipmapMode
-
addressModeU
-
addressModeU
-
addressModeV
-
addressModeV
-
addressModeW
-
addressModeW
-
mipLodBias
public float mipLodBias() -
mipLodBias
-
anisotropyEnable
-
anisotropyEnable
-
maxAnisotropy
public float maxAnisotropy() -
maxAnisotropy
-
compareEnable
-
compareEnable
-
compareOp
-
compareOp
-
minLod
public float minLod() -
minLod
-
maxLod
public float maxLod() -
maxLod
-
borderColor
-
borderColor
-
unnormalizedCoordinates
-
unnormalizedCoordinates
-
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.
-