Record Class SDL_GPUSamplerCreateInfo
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUSamplerCreateInfo
- All Implemented Interfaces:
IPointer,ISDL_GPUSamplerCreateInfo
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUSamplerCreateInfo(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUSamplerCreateInfo
A structure specifying the parameters of a sampler.
Note that mip_lod_bias is a no-op for the Metal driver. For Metal, LOD bias must be applied via shader instead.
Since: This function is available since SDL 3.2.0.
See also:
SDL_CreateGPUSamplerSDL_GPUFilterSDL_GPUSamplerMipmapModeSDL_GPUSamplerAddressModeSDL_GPUCompareOp
Structure
typedef struct SDL_GPUSamplerCreateInfo {
SDL_GPUFilter min_filter;
SDL_GPUFilter mag_filter;
SDL_GPUSamplerMipmapMode mipmap_mode;
SDL_GPUSamplerAddressMode address_mode_u;
SDL_GPUSamplerAddressMode address_mode_v;
SDL_GPUSamplerAddressMode address_mode_w;
float mip_lod_bias;
float max_anisotropy;
SDL_GPUCompareOp compare_op;
float min_lod;
float max_lod;
bool enable_anisotropy;
bool enable_compare;
Uint8 padding1;
Uint8 padding2;
SDL_PropertiesID props;
} SDL_GPUSamplerCreateInfo;
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(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.OfBooleanstatic final ValueLayout.OfBooleanstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic 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 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 long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUSamplerCreateInfo(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUSamplerCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaddress_mode_u(int value) intaddress_mode_v(int value) intaddress_mode_w(int value) static SDL_GPUSamplerCreateInfostatic SDL_GPUSamplerCreateInfo.Ptrstatic SDL_GPUSamplerCreateInfoclone(Arena arena, SDL_GPUSamplerCreateInfo src) intcompare_op(int value) booleanenable_anisotropy(boolean value) booleanenable_compare(boolean value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmag_filter(int value) floatmax_anisotropy(float value) floatmax_lod()max_lod(float value) intmin_filter(int value) floatmin_lod()min_lod(float value) floatmip_lod_bias(float value) intmipmap_mode(int value) bytepadding1()padding1(byte value) bytepadding2()padding2(byte value) intprops()props(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$min_filter
-
PATH$mag_filter
-
PATH$mipmap_mode
-
PATH$address_mode_u
-
PATH$address_mode_v
-
PATH$address_mode_w
-
PATH$mip_lod_bias
-
PATH$max_anisotropy
-
PATH$compare_op
-
PATH$min_lod
-
PATH$max_lod
-
PATH$enable_anisotropy
-
PATH$enable_compare
-
PATH$padding1
-
PATH$padding2
-
PATH$props
-
LAYOUT$min_filter
-
LAYOUT$mag_filter
-
LAYOUT$mipmap_mode
-
LAYOUT$address_mode_u
-
LAYOUT$address_mode_v
-
LAYOUT$address_mode_w
-
LAYOUT$mip_lod_bias
-
LAYOUT$max_anisotropy
-
LAYOUT$compare_op
-
LAYOUT$min_lod
-
LAYOUT$max_lod
-
LAYOUT$enable_anisotropy
-
LAYOUT$enable_compare
-
LAYOUT$padding1
-
LAYOUT$padding2
-
LAYOUT$props
-
SIZE$min_filter
public static final long SIZE$min_filter -
SIZE$mag_filter
public static final long SIZE$mag_filter -
SIZE$mipmap_mode
public static final long SIZE$mipmap_mode -
SIZE$address_mode_u
public static final long SIZE$address_mode_u -
SIZE$address_mode_v
public static final long SIZE$address_mode_v -
SIZE$address_mode_w
public static final long SIZE$address_mode_w -
SIZE$mip_lod_bias
public static final long SIZE$mip_lod_bias -
SIZE$max_anisotropy
public static final long SIZE$max_anisotropy -
SIZE$compare_op
public static final long SIZE$compare_op -
SIZE$min_lod
public static final long SIZE$min_lod -
SIZE$max_lod
public static final long SIZE$max_lod -
SIZE$enable_anisotropy
public static final long SIZE$enable_anisotropy -
SIZE$enable_compare
public static final long SIZE$enable_compare -
SIZE$padding1
public static final long SIZE$padding1 -
SIZE$padding2
public static final long SIZE$padding2 -
SIZE$props
public static final long SIZE$props -
OFFSET$min_filter
public static final long OFFSET$min_filter -
OFFSET$mag_filter
public static final long OFFSET$mag_filter -
OFFSET$mipmap_mode
public static final long OFFSET$mipmap_mode -
OFFSET$address_mode_u
public static final long OFFSET$address_mode_u -
OFFSET$address_mode_v
public static final long OFFSET$address_mode_v -
OFFSET$address_mode_w
public static final long OFFSET$address_mode_w -
OFFSET$mip_lod_bias
public static final long OFFSET$mip_lod_bias -
OFFSET$max_anisotropy
public static final long OFFSET$max_anisotropy -
OFFSET$compare_op
public static final long OFFSET$compare_op -
OFFSET$min_lod
public static final long OFFSET$min_lod -
OFFSET$max_lod
public static final long OFFSET$max_lod -
OFFSET$enable_anisotropy
public static final long OFFSET$enable_anisotropy -
OFFSET$enable_compare
public static final long OFFSET$enable_compare -
OFFSET$padding1
public static final long OFFSET$padding1 -
OFFSET$padding2
public static final long OFFSET$padding2 -
OFFSET$props
public static final long OFFSET$props
-
-
Constructor Details
-
SDL_GPUSamplerCreateInfo
Creates an instance of aSDL_GPUSamplerCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
min_filter
-
min_filter
-
mag_filter
-
mag_filter
-
mipmap_mode
-
mipmap_mode
-
address_mode_u
-
address_mode_u
public SDL_GPUSamplerCreateInfo address_mode_u(@EnumType(SDL_GPUSamplerAddressMode.class) int value) -
address_mode_v
-
address_mode_v
public SDL_GPUSamplerCreateInfo address_mode_v(@EnumType(SDL_GPUSamplerAddressMode.class) int value) -
address_mode_w
-
address_mode_w
public SDL_GPUSamplerCreateInfo address_mode_w(@EnumType(SDL_GPUSamplerAddressMode.class) int value) -
mip_lod_bias
public float mip_lod_bias() -
mip_lod_bias
-
max_anisotropy
public float max_anisotropy() -
max_anisotropy
-
compare_op
-
compare_op
-
min_lod
public float min_lod() -
min_lod
-
max_lod
public float max_lod() -
max_lod
-
enable_anisotropy
-
enable_anisotropy
-
enable_compare
-
enable_compare
-
padding1
-
padding1
-
padding2
-
padding2
-
props
-
props
-
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.
-