Record Class SDL_GPUTextureCreateInfo
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUTextureCreateInfo
- All Implemented Interfaces:
IPointer
,ISDL_GPUTextureCreateInfo
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUTextureCreateInfo(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUTextureCreateInfo
A structure specifying the parameters of a texture.
Usage flags can be bitwise OR'd together for combinations of usages. Note that certain usage combinations are invalid, for example SAMPLER and GRAPHICS_STORAGE.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_CreateGPUTexture
SDL_GPUTextureType
SDL_GPUTextureFormat
SDL_GPUTextureUsageFlags
SDL_GPUSampleCount
Structure
typedef struct SDL_GPUTextureCreateInfo {
SDL_GPUTextureType
type
;
SDL_GPUTextureFormat
format
;
SDL_GPUTextureUsageFlags
usage
;
Uint32 width
;
Uint32 height
;
Uint32 layer_count_or_depth
;
Uint32 num_levels
;
SDL_GPUSampleCount
sample_count
;
SDL_PropertiesID props
;
} SDL_GPUTextureCreateInfo;
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.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 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
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUTextureCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUTextureCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUTextureCreateInfo
static SDL_GPUTextureCreateInfo.Ptr
static SDL_GPUTextureCreateInfo
clone
(Arena arena, SDL_GPUTextureCreateInfo src) final boolean
Indicates whether some other object is "equal to" this one.int
format()
format
(int value) final int
hashCode()
Returns a hash code value for this object.int
height()
height
(int value) int
layer_count_or_depth
(int value) int
num_levels
(int value) int
props()
props
(int value) int
sample_count
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.int
type()
type
(int value) int
usage()
usage
(int value) int
width()
width
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$type
-
PATH$format
-
PATH$usage
-
PATH$width
-
PATH$height
-
PATH$layer_count_or_depth
-
PATH$num_levels
-
PATH$sample_count
-
PATH$props
-
LAYOUT$type
-
LAYOUT$format
-
LAYOUT$usage
-
LAYOUT$width
-
LAYOUT$height
-
LAYOUT$layer_count_or_depth
-
LAYOUT$num_levels
-
LAYOUT$sample_count
-
LAYOUT$props
-
SIZE$type
public static final long SIZE$type -
SIZE$format
public static final long SIZE$format -
SIZE$usage
public static final long SIZE$usage -
SIZE$width
public static final long SIZE$width -
SIZE$height
public static final long SIZE$height -
SIZE$layer_count_or_depth
public static final long SIZE$layer_count_or_depth -
SIZE$num_levels
public static final long SIZE$num_levels -
SIZE$sample_count
public static final long SIZE$sample_count -
SIZE$props
public static final long SIZE$props -
OFFSET$type
public static final long OFFSET$type -
OFFSET$format
public static final long OFFSET$format -
OFFSET$usage
public static final long OFFSET$usage -
OFFSET$width
public static final long OFFSET$width -
OFFSET$height
public static final long OFFSET$height -
OFFSET$layer_count_or_depth
public static final long OFFSET$layer_count_or_depth -
OFFSET$num_levels
public static final long OFFSET$num_levels -
OFFSET$sample_count
public static final long OFFSET$sample_count -
OFFSET$props
public static final long OFFSET$props
-
-
Constructor Details
-
SDL_GPUTextureCreateInfo
Creates an instance of aSDL_GPUTextureCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
type
-
type
-
format
-
format
-
usage
-
usage
-
width
-
width
-
height
-
height
-
layer_count_or_depth
-
layer_count_or_depth
-
num_levels
-
num_levels
-
sample_count
-
sample_count
-
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.
-