Class SDL_GPURenderStateCreateInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class SDL_GPURenderStateCreateInfo
extends Struct<SDL_GPURenderStateCreateInfo>
implements NativeResource
struct SDL_GPURenderStateCreateInfo {
SDL_GPUShader * fragment_shader;
Sint32 num_sampler_bindings;
SDL_GPUTextureSamplerBinding const * sampler_bindings;
Sint32 num_storage_textures;
SDL_GPUTexture const ** storage_textures;
Sint32 num_storage_buffers;
SDL_GPUBuffer const ** storage_buffers;
SDL_PropertiesID props;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPURenderStateCreateInfo(ByteBuffer container) Creates aSDL_GPURenderStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPURenderStateCreateInfocalloc()Returns a newSDL_GPURenderStateCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPURenderStateCreateInfocalloc(MemoryStack stack) Returns a newSDL_GPURenderStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPURenderStateCreateInfocreate()Returns a newSDL_GPURenderStateCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withBufferUtils.static SDL_GPURenderStateCreateInfocreate(long address) Returns a newSDL_GPURenderStateCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPURenderStateCreateInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPURenderStateCreateInfocreateSafe(long address) static @Nullable SDL_GPURenderStateCreateInfo.BuffercreateSafe(long address, int capacity) longfragment_shader(long value) Sets the specified value to thefragment_shaderfield.static SDL_GPURenderStateCreateInfomalloc()Returns a newSDL_GPURenderStateCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPURenderStateCreateInfomalloc(MemoryStack stack) Returns a newSDL_GPURenderStateCreateInfoinstance allocated on the specifiedMemoryStack.static longnfragment_shader(long struct) Unsafe version offragment_shader().static voidnfragment_shader(long struct, long value) Unsafe version offragment_shader.static intnnum_sampler_bindings(long struct) Unsafe version ofnum_sampler_bindings().static voidnnum_sampler_bindings(long struct, int value) Sets the specified value to thenum_sampler_bindingsfield of the specifiedstruct.static intnnum_storage_buffers(long struct) Unsafe version ofnum_storage_buffers().static voidnnum_storage_buffers(long struct, int value) Sets the specified value to thenum_storage_buffersfield of the specifiedstruct.static intnnum_storage_textures(long struct) Unsafe version ofnum_storage_textures().static voidnnum_storage_textures(long struct, int value) Sets the specified value to thenum_storage_texturesfield of the specifiedstruct.static intnprops(long struct) Unsafe version ofprops().static voidnprops(long struct, int value) Unsafe version ofprops.static @Nullable SDL_GPUTextureSamplerBinding.Buffernsampler_bindings(long struct) Unsafe version ofsampler_bindings().static voidnsampler_bindings(long struct, @Nullable SDL_GPUTextureSamplerBinding.Buffer value) Unsafe version ofsampler_bindings.static @Nullable PointerBuffernstorage_buffers(long struct) Unsafe version ofstorage_buffers.static voidnstorage_buffers(long struct, @Nullable PointerBuffer value) Unsafe version ofstorage_buffers.static @Nullable PointerBuffernstorage_textures(long struct) Unsafe version ofstorage_textures.static voidnstorage_textures(long struct, @Nullable PointerBuffer value) Unsafe version ofstorage_textures.intnum_sampler_bindings(int value) Sets the specified value to thenum_sampler_bindingsfield.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.intprops()props(int value) Sets the specified value to thepropsfield.@Nullable SDL_GPUTextureSamplerBinding.Buffersampler_bindings(@Nullable SDL_GPUTextureSamplerBinding.Buffer value) Sets the address of the specifiedSDL_GPUTextureSamplerBinding.Bufferto thesampler_bindingsfield.set(long fragment_shader, int num_sampler_bindings, @Nullable SDL_GPUTextureSamplerBinding.Buffer sampler_bindings, int num_storage_textures, @Nullable PointerBuffer storage_textures, int num_storage_buffers, @Nullable PointerBuffer storage_buffers, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).@Nullable PointerBufferstorage_buffers(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_buffersfield.@Nullable PointerBufferstorage_textures(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_texturesfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
FRAGMENT_SHADER
public static final int FRAGMENT_SHADERThe struct member offsets. -
NUM_SAMPLER_BINDINGS
public static final int NUM_SAMPLER_BINDINGSThe struct member offsets. -
SAMPLER_BINDINGS
public static final int SAMPLER_BINDINGSThe struct member offsets. -
NUM_STORAGE_TEXTURES
public static final int NUM_STORAGE_TEXTURESThe struct member offsets. -
STORAGE_TEXTURES
public static final int STORAGE_TEXTURESThe struct member offsets. -
NUM_STORAGE_BUFFERS
public static final int NUM_STORAGE_BUFFERSThe struct member offsets. -
STORAGE_BUFFERS
public static final int STORAGE_BUFFERSThe struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPURenderStateCreateInfo
Creates aSDL_GPURenderStateCreateInfoinstance 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_GPURenderStateCreateInfo>
-
fragment_shader
- Returns:
- the value of the
fragment_shaderfield.
-
num_sampler_bindings
- Returns:
- the value of the
num_sampler_bindingsfield.
-
sampler_bindings
@NativeType("SDL_GPUTextureSamplerBinding const *") public @Nullable SDL_GPUTextureSamplerBinding.Buffer sampler_bindings()- Returns:
- a
SDL_GPUTextureSamplerBinding.Bufferview of the struct array pointed to by thesampler_bindingsfield.
-
num_storage_textures
- Returns:
- the value of the
num_storage_texturesfield.
-
storage_textures
- Returns:
- a
PointerBufferview of the data pointed to by thestorage_texturesfield.
-
num_storage_buffers
- Returns:
- the value of the
num_storage_buffersfield.
-
storage_buffers
- Returns:
- a
PointerBufferview of the data pointed to by thestorage_buffersfield.
-
props
- Returns:
- the value of the
propsfield.
-
fragment_shader
Sets the specified value to thefragment_shaderfield. -
num_sampler_bindings
Sets the specified value to thenum_sampler_bindingsfield. -
sampler_bindings
public SDL_GPURenderStateCreateInfo sampler_bindings(@NativeType("SDL_GPUTextureSamplerBinding const *") @Nullable SDL_GPUTextureSamplerBinding.Buffer value) Sets the address of the specifiedSDL_GPUTextureSamplerBinding.Bufferto thesampler_bindingsfield. -
num_storage_textures
Sets the specified value to thenum_storage_texturesfield. -
storage_textures
public SDL_GPURenderStateCreateInfo storage_textures(@NativeType("SDL_GPUTexture const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_texturesfield. -
num_storage_buffers
Sets the specified value to thenum_storage_buffersfield. -
storage_buffers
public SDL_GPURenderStateCreateInfo storage_buffers(@NativeType("SDL_GPUBuffer const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_buffersfield. -
props
Sets the specified value to thepropsfield. -
set
public SDL_GPURenderStateCreateInfo set(long fragment_shader, int num_sampler_bindings, @Nullable SDL_GPUTextureSamplerBinding.Buffer sampler_bindings, int num_storage_textures, @Nullable PointerBuffer storage_textures, int num_storage_buffers, @Nullable PointerBuffer storage_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_GPURenderStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPURenderStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPURenderStateCreateInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPURenderStateCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPURenderStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPURenderStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPURenderStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPURenderStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfragment_shader
public static long nfragment_shader(long struct) Unsafe version offragment_shader(). -
nnum_sampler_bindings
public static int nnum_sampler_bindings(long struct) Unsafe version ofnum_sampler_bindings(). -
nsampler_bindings
Unsafe version ofsampler_bindings(). -
nnum_storage_textures
public static int nnum_storage_textures(long struct) Unsafe version ofnum_storage_textures(). -
nstorage_textures
Unsafe version ofstorage_textures. -
nnum_storage_buffers
public static int nnum_storage_buffers(long struct) Unsafe version ofnum_storage_buffers(). -
nstorage_buffers
Unsafe version ofstorage_buffers. -
nprops
public static int nprops(long struct) Unsafe version ofprops(). -
nfragment_shader
public static void nfragment_shader(long struct, long value) Unsafe version offragment_shader. -
nnum_sampler_bindings
public static void nnum_sampler_bindings(long struct, int value) Sets the specified value to thenum_sampler_bindingsfield of the specifiedstruct. -
nsampler_bindings
public static void nsampler_bindings(long struct, @Nullable SDL_GPUTextureSamplerBinding.Buffer value) Unsafe version ofsampler_bindings. -
nnum_storage_textures
public static void nnum_storage_textures(long struct, int value) Sets the specified value to thenum_storage_texturesfield of the specifiedstruct. -
nstorage_textures
Unsafe version ofstorage_textures. -
nnum_storage_buffers
public static void nnum_storage_buffers(long struct, int value) Sets the specified value to thenum_storage_buffersfield of the specifiedstruct. -
nstorage_buffers
Unsafe version ofstorage_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
-