Class ExrSubmitInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrSubmitInfo extends Struct<ExrSubmitInfo> implements NativeResource
struct ExrSubmitInfo {
    uint32_t command_buffer_count;
    ExrCommandBuffer const * command_buffers;
    ExrFence signal_fence;
    ExrSubmitComplete on_complete;
    void * userdata;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • COMMAND_BUFFER_COUNT

      public static final int COMMAND_BUFFER_COUNT
      The struct member offsets.
    • COMMAND_BUFFERS

      public static final int COMMAND_BUFFERS
      The struct member offsets.
    • SIGNAL_FENCE

      public static final int SIGNAL_FENCE
      The struct member offsets.
    • ON_COMPLETE

      public static final int ON_COMPLETE
      The struct member offsets.
    • USERDATA

      public static final int USERDATA
      The struct member offsets.
  • Constructor Details

    • ExrSubmitInfo

      public ExrSubmitInfo(ByteBuffer container)
      Creates a ExrSubmitInfo instance at the current position of the specified ByteBuffer container. 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: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ExrSubmitInfo>
    • command_buffer_count

      @NativeType("uint32_t") public int command_buffer_count()
      Returns:
      the value of the command_buffer_count field.
    • command_buffers

      @NativeType("ExrCommandBuffer const *") public PointerBuffer command_buffers()
      Returns:
      a PointerBuffer view of the data pointed to by the command_buffers field.
    • signal_fence

      @NativeType("ExrFence") public long signal_fence()
      Returns:
      the value of the signal_fence field.
    • on_complete

      public @Nullable ExrSubmitComplete on_complete()
      Returns:
      the value of the on_complete field.
    • userdata

      @NativeType("void *") public long userdata()
      Returns:
      the value of the userdata field.
    • command_buffers

      public ExrSubmitInfo command_buffers(@NativeType("ExrCommandBuffer const *") PointerBuffer value)
      Sets the address of the specified PointerBuffer to the command_buffers field.
    • signal_fence

      public ExrSubmitInfo signal_fence(@NativeType("ExrFence") long value)
      Sets the specified value to the signal_fence field.
    • on_complete

      public ExrSubmitInfo on_complete(@NativeType("ExrSubmitComplete") @Nullable ExrSubmitCompleteI value)
      Sets the specified value to the on_complete field.
    • userdata

      public ExrSubmitInfo userdata(@NativeType("void *") long value)
      Sets the specified value to the userdata field.
    • set

      public ExrSubmitInfo set(PointerBuffer command_buffers, long signal_fence, @Nullable ExrSubmitCompleteI on_complete, long userdata)
      Initializes this struct with the specified values.
    • set

      public ExrSubmitInfo set(ExrSubmitInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static ExrSubmitInfo malloc()
      Returns a new ExrSubmitInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static ExrSubmitInfo calloc()
      Returns a new ExrSubmitInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static ExrSubmitInfo create()
      Returns a new ExrSubmitInfo instance allocated with BufferUtils.
    • create

      public static ExrSubmitInfo create(long address)
      Returns a new ExrSubmitInfo instance for the specified memory address.
    • createSafe

      public static @Nullable ExrSubmitInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrSubmitInfo.Buffer malloc(int capacity)
      Returns a new ExrSubmitInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static ExrSubmitInfo.Buffer calloc(int capacity)
      Returns a new ExrSubmitInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrSubmitInfo.Buffer create(int capacity)
      Returns a new ExrSubmitInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrSubmitInfo.Buffer create(long address, int capacity)
      Create a ExrSubmitInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ExrSubmitInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrSubmitInfo malloc(MemoryStack stack)
      Returns a new ExrSubmitInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static ExrSubmitInfo calloc(MemoryStack stack)
      Returns a new ExrSubmitInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static ExrSubmitInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new ExrSubmitInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static ExrSubmitInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ExrSubmitInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ncommand_buffer_count

      public static int ncommand_buffer_count(long struct)
      Unsafe version of command_buffer_count().
    • ncommand_buffers

      public static PointerBuffer ncommand_buffers(long struct)
      Unsafe version of command_buffers.
    • nsignal_fence

      public static long nsignal_fence(long struct)
      Unsafe version of signal_fence().
    • non_complete

      public static @Nullable ExrSubmitComplete non_complete(long struct)
      Unsafe version of on_complete().
    • nuserdata

      public static long nuserdata(long struct)
      Unsafe version of userdata().
    • ncommand_buffer_count

      public static void ncommand_buffer_count(long struct, int value)
      Sets the specified value to the command_buffer_count field of the specified struct.
    • ncommand_buffers

      public static void ncommand_buffers(long struct, PointerBuffer value)
      Unsafe version of command_buffers.
    • nsignal_fence

      public static void nsignal_fence(long struct, long value)
      Unsafe version of signal_fence.
    • non_complete

      public static void non_complete(long struct, @Nullable ExrSubmitCompleteI value)
      Unsafe version of on_complete.
    • nuserdata

      public static void nuserdata(long struct, long value)
      Unsafe version of userdata.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate