Class ExrSubmitInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrSubmitInfo {
uint32_t command_buffer_count;
ExrCommandBuffer const * command_buffers;
ExrFence signal_fence;
ExrSubmitComplete on_complete;
void * userdata;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrSubmitInfo(ByteBuffer container) Creates aExrSubmitInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrSubmitInfocalloc()Returns a newExrSubmitInfoinstance allocated withmemCalloc.static ExrSubmitInfo.Buffercalloc(int capacity) Returns a newExrSubmitInfo.Bufferinstance allocated withmemCalloc.static ExrSubmitInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrSubmitInfocalloc(MemoryStack stack) Returns a newExrSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcommand_buffers(PointerBuffer value) Sets the address of the specifiedPointerBufferto thecommand_buffersfield.static ExrSubmitInfocreate()Returns a newExrSubmitInfoinstance allocated withBufferUtils.static ExrSubmitInfo.Buffercreate(int capacity) Returns a newExrSubmitInfo.Bufferinstance allocated withBufferUtils.static ExrSubmitInfocreate(long address) Returns a newExrSubmitInfoinstance for the specified memory address.static ExrSubmitInfo.Buffercreate(long address, int capacity) Create aExrSubmitInfo.Bufferinstance at the specified memory.static @Nullable ExrSubmitInfocreateSafe(long address) static @Nullable ExrSubmitInfo.BuffercreateSafe(long address, int capacity) static ExrSubmitInfomalloc()Returns a newExrSubmitInfoinstance allocated withmemAlloc.static ExrSubmitInfo.Buffermalloc(int capacity) Returns a newExrSubmitInfo.Bufferinstance allocated withmemAlloc.static ExrSubmitInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrSubmitInfomalloc(MemoryStack stack) Returns a newExrSubmitInfoinstance allocated on the specifiedMemoryStack.static intncommand_buffer_count(long struct) Unsafe version ofcommand_buffer_count().static voidncommand_buffer_count(long struct, int value) Sets the specified value to thecommand_buffer_countfield of the specifiedstruct.static PointerBufferncommand_buffers(long struct) Unsafe version ofcommand_buffers.static voidncommand_buffers(long struct, PointerBuffer value) Unsafe version ofcommand_buffers.static @Nullable ExrSubmitCompletenon_complete(long struct) Unsafe version ofon_complete().static voidnon_complete(long struct, @Nullable ExrSubmitCompleteI value) Unsafe version ofon_complete.static longnsignal_fence(long struct) Unsafe version ofsignal_fence().static voidnsignal_fence(long struct, long value) Unsafe version ofsignal_fence.static longnuserdata(long struct) Unsafe version ofuserdata().static voidnuserdata(long struct, long value) Unsafe version ofuserdata.@Nullable ExrSubmitCompleteon_complete(@Nullable ExrSubmitCompleteI value) Sets the specified value to theon_completefield.set(PointerBuffer command_buffers, long signal_fence, @Nullable ExrSubmitCompleteI on_complete, long userdata) Initializes this struct with the specified values.set(ExrSubmitInfo src) Copies the specified struct data to this struct.longsignal_fence(long value) Sets the specified value to thesignal_fencefield.intsizeof()Returnssizeof(struct).longuserdata()userdata(long value) Sets the specified value to theuserdatafield.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. -
COMMAND_BUFFER_COUNT
public static final int COMMAND_BUFFER_COUNTThe struct member offsets. -
COMMAND_BUFFERS
public static final int COMMAND_BUFFERSThe struct member offsets. -
SIGNAL_FENCE
public static final int SIGNAL_FENCEThe struct member offsets. -
ON_COMPLETE
public static final int ON_COMPLETEThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets.
-
-
Constructor Details
-
ExrSubmitInfo
Creates aExrSubmitInfoinstance 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<ExrSubmitInfo>
-
command_buffer_count
- Returns:
- the value of the
command_buffer_countfield.
-
command_buffers
- Returns:
- a
PointerBufferview of the data pointed to by thecommand_buffersfield.
-
signal_fence
- Returns:
- the value of the
signal_fencefield.
-
on_complete
- Returns:
- the value of the
on_completefield.
-
userdata
- Returns:
- the value of the
userdatafield.
-
command_buffers
Sets the address of the specifiedPointerBufferto thecommand_buffersfield. -
signal_fence
Sets the specified value to thesignal_fencefield. -
on_complete
public ExrSubmitInfo on_complete(@NativeType("ExrSubmitComplete") @Nullable ExrSubmitCompleteI value) Sets the specified value to theon_completefield. -
userdata
Sets the specified value to theuserdatafield. -
set
public ExrSubmitInfo set(PointerBuffer command_buffers, long signal_fence, @Nullable ExrSubmitCompleteI on_complete, long userdata) 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 newExrSubmitInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrSubmitInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrSubmitInfoinstance allocated withBufferUtils. -
create
Returns a newExrSubmitInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrSubmitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrSubmitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrSubmitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrSubmitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncommand_buffer_count
public static int ncommand_buffer_count(long struct) Unsafe version ofcommand_buffer_count(). -
ncommand_buffers
Unsafe version ofcommand_buffers. -
nsignal_fence
public static long nsignal_fence(long struct) Unsafe version ofsignal_fence(). -
non_complete
Unsafe version ofon_complete(). -
nuserdata
public static long nuserdata(long struct) Unsafe version ofuserdata(). -
ncommand_buffer_count
public static void ncommand_buffer_count(long struct, int value) Sets the specified value to thecommand_buffer_countfield of the specifiedstruct. -
ncommand_buffers
Unsafe version ofcommand_buffers. -
nsignal_fence
public static void nsignal_fence(long struct, long value) Unsafe version ofsignal_fence. -
non_complete
Unsafe version ofon_complete. -
nuserdata
public static void nuserdata(long struct, long value) Unsafe version ofuserdata. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-