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 recordRepresents a pointer to / an array ofVkSamplerCreateInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final AddressLayoutstatic 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 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 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkSamplerCreateInfo(@NotNull MemorySegment segment) Creates an instance of aVkSamplerCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaddressModeU(int value) intaddressModeV(int value) intaddressModeW(int value) static VkSamplerCreateInfostatic VkSamplerCreateInfo.PtrintanisotropyEnable(int value) voidautoInit()intborderColor(int value) static VkSamplerCreateInfoclone(Arena arena, VkSamplerCreateInfo src) intcompareEnable(int value) intcompareOp(int value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) final inthashCode()Returns a hash code value for this object.intmagFilter(int value) floatmaxAnisotropy(float value) floatmaxLod()maxLod(float value) intminFilter(int value) floatminLod()minLod(float value) floatmipLodBias(float value) intmipmapMode(int value) @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.intunnormalizedCoordinates(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 aVkSamplerCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-