Package org.lwjgl.sdl
Class SDL_GPUComputePipelineCreateInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SDL_GPUComputePipelineCreateInfo>
org.lwjgl.sdl.SDL_GPUComputePipelineCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SDL_GPUComputePipelineCreateInfo
extends Struct<SDL_GPUComputePipelineCreateInfo>
implements NativeResource
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;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofSDL_GPUComputePipelineCreateInfostructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUComputePipelineCreateInfo(ByteBuffer container) Creates aSDL_GPUComputePipelineCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.code()code(ByteBuffer value) Sets the address of the specifiedByteBufferto thecodefield.longcreate()Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withBufferUtils.create(long address) Returns a newSDL_GPUComputePipelineCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUComputePipelineCreateInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUComputePipelineCreateInfocreateSafe(long address) static @Nullable SDL_GPUComputePipelineCreateInfo.BuffercreateSafe(long address, int capacity) entrypoint(ByteBuffer value) Sets the address of the specified encoded string to theentrypointfield.intformat()format(int value) Sets the specified value to theformatfield.malloc()Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated on the specifiedMemoryStack.static ByteBufferncode(long struct) Unsafe version ofcode.static voidncode(long struct, ByteBuffer value) Unsafe version ofcode.static longncode_size(long struct) Unsafe version ofcode_size().static voidncode_size(long struct, long value) Sets the specified value to thecode_sizefield of the specifiedstruct.static ByteBuffernentrypoint(long struct) Unsafe version ofentrypoint().static voidnentrypoint(long struct, ByteBuffer value) Unsafe version ofentrypoint.static StringnentrypointString(long struct) Unsafe version ofentrypointString().static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnnum_readonly_storage_buffers(long struct) Unsafe version ofnum_readonly_storage_buffers().static voidnnum_readonly_storage_buffers(long struct, int value) Unsafe version ofnum_readonly_storage_buffers.static intnnum_readonly_storage_textures(long struct) Unsafe version ofnum_readonly_storage_textures().static voidnnum_readonly_storage_textures(long struct, int value) Unsafe version ofnum_readonly_storage_textures.static intnnum_readwrite_storage_buffers(long struct) Unsafe version ofnum_readwrite_storage_buffers().static voidnnum_readwrite_storage_buffers(long struct, int value) Unsafe version ofnum_readwrite_storage_buffers.static intnnum_readwrite_storage_textures(long struct) Unsafe version ofnum_readwrite_storage_textures().static voidnnum_readwrite_storage_textures(long struct, int value) Unsafe version ofnum_readwrite_storage_textures.static intnnum_samplers(long struct) Unsafe version ofnum_samplers().static voidnnum_samplers(long struct, int value) Unsafe version ofnum_samplers.static intnnum_uniform_buffers(long struct) Unsafe version ofnum_uniform_buffers().static voidnnum_uniform_buffers(long struct, int value) Unsafe version ofnum_uniform_buffers.static intnprops(long struct) Unsafe version ofprops().static voidnprops(long struct, int value) Unsafe version ofprops.static intnthreadcount_x(long struct) Unsafe version ofthreadcount_x().static voidnthreadcount_x(long struct, int value) Unsafe version ofthreadcount_x.static intnthreadcount_y(long struct) Unsafe version ofthreadcount_y().static voidnthreadcount_y(long struct, int value) Unsafe version ofthreadcount_y.static intnthreadcount_z(long struct) Unsafe version ofthreadcount_z().static voidnthreadcount_z(long struct, int value) Unsafe version ofthreadcount_z.intnum_readonly_storage_buffers(int value) Sets the specified value to thenum_readonly_storage_buffersfield.intnum_readonly_storage_textures(int value) Sets the specified value to thenum_readonly_storage_texturesfield.intnum_readwrite_storage_buffers(int value) Sets the specified value to thenum_readwrite_storage_buffersfield.intnum_readwrite_storage_textures(int value) Sets the specified value to thenum_readwrite_storage_texturesfield.intnum_samplers(int value) Sets the specified value to thenum_samplersfield.intnum_uniform_buffers(int value) Sets the specified value to thenum_uniform_buffersfield.intprops()props(int value) Sets the specified value to thepropsfield.set(ByteBuffer code, ByteBuffer entrypoint, int format, int num_samplers, int num_readonly_storage_textures, int num_readonly_storage_buffers, int num_readwrite_storage_textures, int num_readwrite_storage_buffers, int num_uniform_buffers, int threadcount_x, int threadcount_y, int threadcount_z, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intthreadcount_x(int value) Sets the specified value to thethreadcount_xfield.intthreadcount_y(int value) Sets the specified value to thethreadcount_yfield.intthreadcount_z(int value) Sets the specified value to thethreadcount_zfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CODE_SIZE
public static final int CODE_SIZEThe struct member offsets. -
CODE
public static final int CODEThe struct member offsets. -
ENTRYPOINT
public static final int ENTRYPOINTThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
NUM_SAMPLERS
public static final int NUM_SAMPLERSThe struct member offsets. -
NUM_READONLY_STORAGE_TEXTURES
public static final int NUM_READONLY_STORAGE_TEXTURESThe struct member offsets. -
NUM_READONLY_STORAGE_BUFFERS
public static final int NUM_READONLY_STORAGE_BUFFERSThe struct member offsets. -
NUM_READWRITE_STORAGE_TEXTURES
public static final int NUM_READWRITE_STORAGE_TEXTURESThe struct member offsets. -
NUM_READWRITE_STORAGE_BUFFERS
public static final int NUM_READWRITE_STORAGE_BUFFERSThe struct member offsets. -
NUM_UNIFORM_BUFFERS
public static final int NUM_UNIFORM_BUFFERSThe struct member offsets. -
THREADCOUNT_X
public static final int THREADCOUNT_XThe struct member offsets. -
THREADCOUNT_Y
public static final int THREADCOUNT_YThe struct member offsets. -
THREADCOUNT_Z
public static final int THREADCOUNT_ZThe struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUComputePipelineCreateInfo
Creates aSDL_GPUComputePipelineCreateInfoinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SDL_GPUComputePipelineCreateInfo>
-
code_size
public long code_size()- Returns:
- the value of the
code_sizefield.
-
code
- Returns:
- a
ByteBufferview of the data pointed to by thecodefield.
-
entrypoint
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theentrypointfield.
-
entrypointString
- Returns:
- the null-terminated string pointed to by the
entrypointfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
num_samplers
public int num_samplers()- Returns:
- the value of the
num_samplersfield.
-
num_readonly_storage_textures
public int num_readonly_storage_textures()- Returns:
- the value of the
num_readonly_storage_texturesfield.
-
num_readonly_storage_buffers
public int num_readonly_storage_buffers()- Returns:
- the value of the
num_readonly_storage_buffersfield.
-
num_readwrite_storage_textures
public int num_readwrite_storage_textures()- Returns:
- the value of the
num_readwrite_storage_texturesfield.
-
num_readwrite_storage_buffers
public int num_readwrite_storage_buffers()- Returns:
- the value of the
num_readwrite_storage_buffersfield.
-
num_uniform_buffers
public int num_uniform_buffers()- Returns:
- the value of the
num_uniform_buffersfield.
-
threadcount_x
public int threadcount_x()- Returns:
- the value of the
threadcount_xfield.
-
threadcount_y
public int threadcount_y()- Returns:
- the value of the
threadcount_yfield.
-
threadcount_z
public int threadcount_z()- Returns:
- the value of the
threadcount_zfield.
-
props
public int props()- Returns:
- the value of the
propsfield.
-
code
Sets the address of the specifiedByteBufferto thecodefield. -
entrypoint
Sets the address of the specified encoded string to theentrypointfield. -
format
Sets the specified value to theformatfield. -
num_samplers
Sets the specified value to thenum_samplersfield. -
num_readonly_storage_textures
Sets the specified value to thenum_readonly_storage_texturesfield. -
num_readonly_storage_buffers
Sets the specified value to thenum_readonly_storage_buffersfield. -
num_readwrite_storage_textures
Sets the specified value to thenum_readwrite_storage_texturesfield. -
num_readwrite_storage_buffers
Sets the specified value to thenum_readwrite_storage_buffersfield. -
num_uniform_buffers
Sets the specified value to thenum_uniform_buffersfield. -
threadcount_x
Sets the specified value to thethreadcount_xfield. -
threadcount_y
Sets the specified value to thethreadcount_yfield. -
threadcount_z
Sets the specified value to thethreadcount_zfield. -
props
Sets the specified value to thepropsfield. -
set
public SDL_GPUComputePipelineCreateInfo set(ByteBuffer code, ByteBuffer entrypoint, int format, int num_samplers, int num_readonly_storage_textures, int num_readonly_storage_buffers, int num_readwrite_storage_textures, int num_readwrite_storage_buffers, int num_uniform_buffers, int threadcount_x, int threadcount_y, int threadcount_z, int props) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUComputePipelineCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUComputePipelineCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable SDL_GPUComputePipelineCreateInfo.Buffer createSafe(long address, int capacity) -
malloc
Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUComputePipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUComputePipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncode_size
public static long ncode_size(long struct) Unsafe version ofcode_size(). -
ncode
Unsafe version ofcode. -
nentrypoint
Unsafe version ofentrypoint(). -
nentrypointString
Unsafe version ofentrypointString(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nnum_samplers
public static int nnum_samplers(long struct) Unsafe version ofnum_samplers(). -
nnum_readonly_storage_textures
public static int nnum_readonly_storage_textures(long struct) Unsafe version ofnum_readonly_storage_textures(). -
nnum_readonly_storage_buffers
public static int nnum_readonly_storage_buffers(long struct) Unsafe version ofnum_readonly_storage_buffers(). -
nnum_readwrite_storage_textures
public static int nnum_readwrite_storage_textures(long struct) Unsafe version ofnum_readwrite_storage_textures(). -
nnum_readwrite_storage_buffers
public static int nnum_readwrite_storage_buffers(long struct) Unsafe version ofnum_readwrite_storage_buffers(). -
nnum_uniform_buffers
public static int nnum_uniform_buffers(long struct) Unsafe version ofnum_uniform_buffers(). -
nthreadcount_x
public static int nthreadcount_x(long struct) Unsafe version ofthreadcount_x(). -
nthreadcount_y
public static int nthreadcount_y(long struct) Unsafe version ofthreadcount_y(). -
nthreadcount_z
public static int nthreadcount_z(long struct) Unsafe version ofthreadcount_z(). -
nprops
public static int nprops(long struct) Unsafe version ofprops(). -
ncode_size
public static void ncode_size(long struct, long value) Sets the specified value to thecode_sizefield of the specifiedstruct. -
ncode
Unsafe version ofcode. -
nentrypoint
Unsafe version ofentrypoint. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
nnum_samplers
public static void nnum_samplers(long struct, int value) Unsafe version ofnum_samplers. -
nnum_readonly_storage_textures
public static void nnum_readonly_storage_textures(long struct, int value) Unsafe version ofnum_readonly_storage_textures. -
nnum_readonly_storage_buffers
public static void nnum_readonly_storage_buffers(long struct, int value) Unsafe version ofnum_readonly_storage_buffers. -
nnum_readwrite_storage_textures
public static void nnum_readwrite_storage_textures(long struct, int value) Unsafe version ofnum_readwrite_storage_textures. -
nnum_readwrite_storage_buffers
public static void nnum_readwrite_storage_buffers(long struct, int value) Unsafe version ofnum_readwrite_storage_buffers. -
nnum_uniform_buffers
public static void nnum_uniform_buffers(long struct, int value) Unsafe version ofnum_uniform_buffers. -
nthreadcount_x
public static void nthreadcount_x(long struct, int value) Unsafe version ofthreadcount_x. -
nthreadcount_y
public static void nthreadcount_y(long struct, int value) Unsafe version ofthreadcount_y. -
nthreadcount_z
public static void nthreadcount_z(long struct, int value) Unsafe version ofthreadcount_z. -
nprops
public static void nprops(long struct, int value) Unsafe version ofprops. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-