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_CreateGPUSampler
SDL_GPUFilter
SDL_GPUSamplerMipmapMode
SDL_GPUSamplerAddressMode
SDL_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 record
Represents a pointer to / an array of null 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.OfBoolean
static final ValueLayout.OfBoolean
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 ValueLayout.OfByte
static final ValueLayout.OfByte
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUSamplerCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUSamplerCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
address_mode_u
(int value) int
address_mode_v
(int value) int
address_mode_w
(int value) static SDL_GPUSamplerCreateInfo
static SDL_GPUSamplerCreateInfo.Ptr
static SDL_GPUSamplerCreateInfo
clone
(Arena arena, SDL_GPUSamplerCreateInfo src) int
compare_op
(int value) boolean
enable_anisotropy
(boolean value) boolean
enable_compare
(boolean value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
mag_filter
(int value) float
max_anisotropy
(float value) float
max_lod()
max_lod
(float value) int
min_filter
(int value) float
min_lod()
min_lod
(float value) float
mip_lod_bias
(float value) int
mipmap_mode
(int value) byte
padding1()
padding1
(byte value) byte
padding2()
padding2
(byte value) int
props()
props
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
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_GPUSamplerCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-