Record Class SDL_GPUComputePipelineCreateInfo
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUComputePipelineCreateInfo
- All Implemented Interfaces:
IPointer,ISDL_GPUComputePipelineCreateInfo
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUComputePipelineCreateInfo(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUComputePipelineCreateInfo
A structure specifying the parameters of a compute pipeline state.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_CreateGPUComputePipelineSDL_GPUShaderFormat
Structure
typedef struct SDL_GPUComputePipelineCreateInfo {
size_t code_size;
Uint8 const* code;
char const* entrypoint;
SDL_GPUShaderFormat format;
Uint32 num_samplers;
Uint32 num_readonly_storage_textures;
Uint32 num_readonly_storage_buffers;
Uint32 num_readwrite_storage_textures;
Uint32 num_readwrite_storage_buffers;
Uint32 num_uniform_buffers;
Uint32 threadcount_x;
Uint32 threadcount_y;
Uint32 threadcount_z;
SDL_PropertiesID props;
} SDL_GPUComputePipelineCreateInfo;
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 AddressLayoutstatic final AddressLayoutstatic 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.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 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 long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUComputePipelineCreateInfo(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUComputePipelineCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, SDL_GPUComputePipelineCreateInfo src) @Nullable BytePtrcode()Note: the returnedBytePtrdoes not have correctBytePtr.size()property.longcode_size(long value) codeRaw()voidcodeRaw(MemorySegment value) @Nullable BytePtrNote: the returnedBytePtrdoes not have correctBytePtr.size()property.entrypoint(@Nullable BytePtr value) voidentrypointRaw(MemorySegment value) 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.intnum_readonly_storage_buffers(int value) intnum_readonly_storage_textures(int value) intnum_readwrite_storage_buffers(int value) intnum_readwrite_storage_textures(int value) intnum_samplers(int value) intnum_uniform_buffers(int value) intprops()props(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intthreadcount_x(int value) intthreadcount_y(int value) intthreadcount_z(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$code_size
-
PATH$code
-
PATH$entrypoint
-
PATH$format
-
PATH$num_samplers
-
PATH$num_readonly_storage_textures
-
PATH$num_readonly_storage_buffers
-
PATH$num_readwrite_storage_textures
-
PATH$num_readwrite_storage_buffers
-
PATH$num_uniform_buffers
-
PATH$threadcount_x
-
PATH$threadcount_y
-
PATH$threadcount_z
-
PATH$props
-
LAYOUT$code
-
LAYOUT$entrypoint
-
LAYOUT$format
-
LAYOUT$num_samplers
-
LAYOUT$num_readonly_storage_textures
-
LAYOUT$num_readonly_storage_buffers
-
LAYOUT$num_readwrite_storage_textures
-
LAYOUT$num_readwrite_storage_buffers
-
LAYOUT$num_uniform_buffers
-
LAYOUT$threadcount_x
-
LAYOUT$threadcount_y
-
LAYOUT$threadcount_z
-
LAYOUT$props
-
SIZE$code_size
public static final long SIZE$code_size -
SIZE$code
public static final long SIZE$code -
SIZE$entrypoint
public static final long SIZE$entrypoint -
SIZE$format
public static final long SIZE$format -
SIZE$num_samplers
public static final long SIZE$num_samplers -
SIZE$num_readonly_storage_textures
public static final long SIZE$num_readonly_storage_textures -
SIZE$num_readonly_storage_buffers
public static final long SIZE$num_readonly_storage_buffers -
SIZE$num_readwrite_storage_textures
public static final long SIZE$num_readwrite_storage_textures -
SIZE$num_readwrite_storage_buffers
public static final long SIZE$num_readwrite_storage_buffers -
SIZE$num_uniform_buffers
public static final long SIZE$num_uniform_buffers -
SIZE$threadcount_x
public static final long SIZE$threadcount_x -
SIZE$threadcount_y
public static final long SIZE$threadcount_y -
SIZE$threadcount_z
public static final long SIZE$threadcount_z -
SIZE$props
public static final long SIZE$props -
OFFSET$code_size
public static final long OFFSET$code_size -
OFFSET$code
public static final long OFFSET$code -
OFFSET$entrypoint
public static final long OFFSET$entrypoint -
OFFSET$format
public static final long OFFSET$format -
OFFSET$num_samplers
public static final long OFFSET$num_samplers -
OFFSET$num_readonly_storage_textures
public static final long OFFSET$num_readonly_storage_textures -
OFFSET$num_readonly_storage_buffers
public static final long OFFSET$num_readonly_storage_buffers -
OFFSET$num_readwrite_storage_textures
public static final long OFFSET$num_readwrite_storage_textures -
OFFSET$num_readwrite_storage_buffers
public static final long OFFSET$num_readwrite_storage_buffers -
OFFSET$num_uniform_buffers
public static final long OFFSET$num_uniform_buffers -
OFFSET$threadcount_x
public static final long OFFSET$threadcount_x -
OFFSET$threadcount_y
public static final long OFFSET$threadcount_y -
OFFSET$threadcount_z
public static final long OFFSET$threadcount_z -
OFFSET$props
public static final long OFFSET$props
-
-
Constructor Details
-
SDL_GPUComputePipelineCreateInfo
Creates an instance of aSDL_GPUComputePipelineCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static SDL_GPUComputePipelineCreateInfo clone(Arena arena, SDL_GPUComputePipelineCreateInfo src) -
code_size
-
code_size
-
code
Note: the returnedBytePtrdoes not have correctBytePtr.size()property. It's up to user to track the size of the buffer, and useBytePtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
code
public SDL_GPUComputePipelineCreateInfo code(@Nullable @Pointer(comment="Uint8") @Unsigned @Nullable BytePtr value) -
codeRaw
-
codeRaw
-
entrypoint
Note: the returnedBytePtrdoes not have correctBytePtr.size()property. It's up to user to track the size of the buffer, and useBytePtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
entrypoint
-
entrypointRaw
-
entrypointRaw
-
format
-
format
-
num_samplers
-
num_samplers
-
num_readonly_storage_textures
-
num_readonly_storage_textures
public SDL_GPUComputePipelineCreateInfo num_readonly_storage_textures(@NativeType("Uint32") @Unsigned int value) -
num_readonly_storage_buffers
-
num_readonly_storage_buffers
public SDL_GPUComputePipelineCreateInfo num_readonly_storage_buffers(@NativeType("Uint32") @Unsigned int value) -
num_readwrite_storage_textures
-
num_readwrite_storage_textures
public SDL_GPUComputePipelineCreateInfo num_readwrite_storage_textures(@NativeType("Uint32") @Unsigned int value) -
num_readwrite_storage_buffers
-
num_readwrite_storage_buffers
public SDL_GPUComputePipelineCreateInfo num_readwrite_storage_buffers(@NativeType("Uint32") @Unsigned int value) -
num_uniform_buffers
-
num_uniform_buffers
public SDL_GPUComputePipelineCreateInfo num_uniform_buffers(@NativeType("Uint32") @Unsigned int value) -
threadcount_x
-
threadcount_x
-
threadcount_y
-
threadcount_y
-
threadcount_z
-
threadcount_z
-
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.
-