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_CreateGPUTextureSDL_GPUTextureTypeSDL_GPUTextureFormatSDL_GPUTextureUsageFlagsSDL_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 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.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic 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 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 long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUTextureCreateInfo(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUTextureCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUTextureCreateInfostatic SDL_GPUTextureCreateInfo.Ptrstatic SDL_GPUTextureCreateInfoclone(Arena arena, SDL_GPUTextureCreateInfo src) final booleanIndicates whether some other object is "equal to" this one.intformat()format(int value) final inthashCode()Returns a hash code value for this object.intheight()height(int value) intlayer_count_or_depth(int value) intnum_levels(int value) intprops()props(int value) intsample_count(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.inttype()type(int value) intusage()usage(int value) intwidth()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_GPUTextureCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-