Package org.lwjgl.sdl
Class SDL_GPUShaderCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SDL_GPUShaderCreateInfo
extends Struct<SDL_GPUShaderCreateInfo>
implements NativeResource
struct SDL_GPUShaderCreateInfo {
size_t code_size;
Uint8 const * code;
char const * entrypoint;
SDL_GPUShaderFormat format;
SDL_GPUShaderStage stage;
Uint32 num_samplers;
Uint32 num_storage_textures;
Uint32 num_storage_buffers;
Uint32 num_uniform_buffers;
SDL_PropertiesID props;
}-
Nested Class Summary
Nested ClassesNested 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 size in bytes.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_GPUShaderCreateInfo(ByteBuffer container) Creates aSDL_GPUShaderCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUShaderCreateInfocalloc()Returns a newSDL_GPUShaderCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUShaderCreateInfocalloc(MemoryStack stack) Returns a newSDL_GPUShaderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.code()code(ByteBuffer value) Sets the address of the specifiedByteBufferto thecodefield.longstatic SDL_GPUShaderCreateInfocreate()Returns a newSDL_GPUShaderCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withBufferUtils.static SDL_GPUShaderCreateInfocreate(long address) Returns a newSDL_GPUShaderCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUShaderCreateInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUShaderCreateInfocreateSafe(long address) static @Nullable SDL_GPUShaderCreateInfo.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.static SDL_GPUShaderCreateInfomalloc()Returns a newSDL_GPUShaderCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUShaderCreateInfomalloc(MemoryStack stack) Returns a newSDL_GPUShaderCreateInfoinstance 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_samplers(long struct) Unsafe version ofnum_samplers().static voidnnum_samplers(long struct, int value) Unsafe version ofnum_samplers.static intnnum_storage_buffers(long struct) Unsafe version ofnum_storage_buffers().static voidnnum_storage_buffers(long struct, int value) Unsafe version ofnum_storage_buffers.static intnnum_storage_textures(long struct) Unsafe version ofnum_storage_textures().static voidnnum_storage_textures(long struct, int value) Unsafe version ofnum_storage_textures.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 intnstage(long struct) Unsafe version ofstage().static voidnstage(long struct, int value) Unsafe version ofstage.intnum_samplers(int value) Sets the specified value to thenum_samplersfield.intnum_storage_buffers(int value) Sets the specified value to thenum_storage_buffersfield.intnum_storage_textures(int value) Sets the specified value to thenum_storage_texturesfield.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 stage, int num_samplers, int num_storage_textures, int num_storage_buffers, int num_uniform_buffers, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstage()stage(int value) Sets the specified value to thestagefield.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. -
STAGE
public static final int STAGEThe struct member offsets. -
NUM_SAMPLERS
public static final int NUM_SAMPLERSThe struct member offsets. -
NUM_STORAGE_TEXTURES
public static final int NUM_STORAGE_TEXTURESThe struct member offsets. -
NUM_STORAGE_BUFFERS
public static final int NUM_STORAGE_BUFFERSThe struct member offsets. -
NUM_UNIFORM_BUFFERS
public static final int NUM_UNIFORM_BUFFERSThe struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUShaderCreateInfo
Creates aSDL_GPUShaderCreateInfoinstance 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_GPUShaderCreateInfo>
-
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.
-
stage
public int stage()- Returns:
- the value of the
stagefield.
-
num_samplers
public int num_samplers()- Returns:
- the value of the
num_samplersfield.
-
num_storage_textures
public int num_storage_textures()- Returns:
- the value of the
num_storage_texturesfield.
-
num_storage_buffers
public int num_storage_buffers()- Returns:
- the value of the
num_storage_buffersfield.
-
num_uniform_buffers
public int num_uniform_buffers()- Returns:
- the value of the
num_uniform_buffersfield.
-
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. -
stage
Sets the specified value to thestagefield. -
num_samplers
Sets the specified value to thenum_samplersfield. -
num_storage_textures
Sets the specified value to thenum_storage_texturesfield. -
num_storage_buffers
Sets the specified value to thenum_storage_buffersfield. -
num_uniform_buffers
Sets the specified value to thenum_uniform_buffersfield. -
props
Sets the specified value to thepropsfield. -
set
public SDL_GPUShaderCreateInfo set(ByteBuffer code, ByteBuffer entrypoint, int format, int stage, int num_samplers, int num_storage_textures, int num_storage_buffers, int num_uniform_buffers, 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_GPUShaderCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUShaderCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUShaderCreateInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUShaderCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUShaderCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUShaderCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUShaderCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUShaderCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUShaderCreateInfo.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(). -
nstage
public static int nstage(long struct) Unsafe version ofstage(). -
nnum_samplers
public static int nnum_samplers(long struct) Unsafe version ofnum_samplers(). -
nnum_storage_textures
public static int nnum_storage_textures(long struct) Unsafe version ofnum_storage_textures(). -
nnum_storage_buffers
public static int nnum_storage_buffers(long struct) Unsafe version ofnum_storage_buffers(). -
nnum_uniform_buffers
public static int nnum_uniform_buffers(long struct) Unsafe version ofnum_uniform_buffers(). -
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. -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage. -
nnum_samplers
public static void nnum_samplers(long struct, int value) Unsafe version ofnum_samplers. -
nnum_storage_textures
public static void nnum_storage_textures(long struct, int value) Unsafe version ofnum_storage_textures. -
nnum_storage_buffers
public static void nnum_storage_buffers(long struct, int value) Unsafe version ofnum_storage_buffers. -
nnum_uniform_buffers
public static void nnum_uniform_buffers(long struct, int value) Unsafe version ofnum_uniform_buffers. -
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
-