Class BGFXCapsLimits

All Implemented Interfaces:
Pointer

public class BGFXCapsLimits extends Struct<BGFXCapsLimits>

 struct bgfx_caps_limits_t {
     uint32_t maxDrawCalls;
     uint32_t maxBlits;
     uint32_t maxTextureSize;
     uint32_t maxTextureLayers;
     uint32_t maxViews;
     uint32_t maxFrameBuffers;
     uint32_t maxFBAttachments;
     uint32_t maxPrograms;
     uint32_t maxShaders;
     uint32_t maxTextures;
     uint32_t maxTextureSamplers;
     uint32_t maxComputeBindings;
     uint32_t maxVertexLayouts;
     uint32_t maxVertexStreams;
     uint32_t maxIndexBuffers;
     uint32_t maxVertexBuffers;
     uint32_t maxDynamicIndexBuffers;
     uint32_t maxDynamicVertexBuffers;
     uint32_t maxUniforms;
     uint32_t maxOcclusionQueries;
     uint32_t maxEncoders;
     uint32_t minResourceCbSize;
     uint32_t transientVbSize;
     uint32_t transientIbSize;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MAXDRAWCALLS
      The struct member offsets.
    • MAXBLITS

      public static final int MAXBLITS
      The struct member offsets.
    • MAXTEXTURESIZE

      public static final int MAXTEXTURESIZE
      The struct member offsets.
    • MAXTEXTURELAYERS

      public static final int MAXTEXTURELAYERS
      The struct member offsets.
    • MAXVIEWS

      public static final int MAXVIEWS
      The struct member offsets.
    • MAXFRAMEBUFFERS

      public static final int MAXFRAMEBUFFERS
      The struct member offsets.
    • MAXFBATTACHMENTS

      public static final int MAXFBATTACHMENTS
      The struct member offsets.
    • MAXPROGRAMS

      public static final int MAXPROGRAMS
      The struct member offsets.
    • MAXSHADERS

      public static final int MAXSHADERS
      The struct member offsets.
    • MAXTEXTURES

      public static final int MAXTEXTURES
      The struct member offsets.
    • MAXTEXTURESAMPLERS

      public static final int MAXTEXTURESAMPLERS
      The struct member offsets.
    • MAXCOMPUTEBINDINGS

      public static final int MAXCOMPUTEBINDINGS
      The struct member offsets.
    • MAXVERTEXLAYOUTS

      public static final int MAXVERTEXLAYOUTS
      The struct member offsets.
    • MAXVERTEXSTREAMS

      public static final int MAXVERTEXSTREAMS
      The struct member offsets.
    • MAXINDEXBUFFERS

      public static final int MAXINDEXBUFFERS
      The struct member offsets.
    • MAXVERTEXBUFFERS

      public static final int MAXVERTEXBUFFERS
      The struct member offsets.
    • MAXDYNAMICINDEXBUFFERS

      public static final int MAXDYNAMICINDEXBUFFERS
      The struct member offsets.
    • MAXDYNAMICVERTEXBUFFERS

      public static final int MAXDYNAMICVERTEXBUFFERS
      The struct member offsets.
    • MAXUNIFORMS

      public static final int MAXUNIFORMS
      The struct member offsets.
    • MAXOCCLUSIONQUERIES

      public static final int MAXOCCLUSIONQUERIES
      The struct member offsets.
    • MAXENCODERS

      public static final int MAXENCODERS
      The struct member offsets.
    • MINRESOURCECBSIZE

      public static final int MINRESOURCECBSIZE
      The struct member offsets.
    • TRANSIENTVBSIZE

      public static final int TRANSIENTVBSIZE
      The struct member offsets.
    • TRANSIENTIBSIZE

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

    • BGFXCapsLimits

      public BGFXCapsLimits(ByteBuffer container)
      Creates a BGFXCapsLimits 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<BGFXCapsLimits>
    • maxDrawCalls

      public int maxDrawCalls()
      Returns:
      the value of the maxDrawCalls field.
    • maxBlits

      public int maxBlits()
      Returns:
      the value of the maxBlits field.
    • maxTextureSize

      public int maxTextureSize()
      Returns:
      the value of the maxTextureSize field.
    • maxTextureLayers

      public int maxTextureLayers()
      Returns:
      the value of the maxTextureLayers field.
    • maxViews

      public int maxViews()
      Returns:
      the value of the maxViews field.
    • maxFrameBuffers

      public int maxFrameBuffers()
      Returns:
      the value of the maxFrameBuffers field.
    • maxFBAttachments

      public int maxFBAttachments()
      Returns:
      the value of the maxFBAttachments field.
    • maxPrograms

      public int maxPrograms()
      Returns:
      the value of the maxPrograms field.
    • maxShaders

      public int maxShaders()
      Returns:
      the value of the maxShaders field.
    • maxTextures

      public int maxTextures()
      Returns:
      the value of the maxTextures field.
    • maxTextureSamplers

      public int maxTextureSamplers()
      Returns:
      the value of the maxTextureSamplers field.
    • maxComputeBindings

      public int maxComputeBindings()
      Returns:
      the value of the maxComputeBindings field.
    • maxVertexLayouts

      public int maxVertexLayouts()
      Returns:
      the value of the maxVertexLayouts field.
    • maxVertexStreams

      public int maxVertexStreams()
      Returns:
      the value of the maxVertexStreams field.
    • maxIndexBuffers

      public int maxIndexBuffers()
      Returns:
      the value of the maxIndexBuffers field.
    • maxVertexBuffers

      public int maxVertexBuffers()
      Returns:
      the value of the maxVertexBuffers field.
    • maxDynamicIndexBuffers

      public int maxDynamicIndexBuffers()
      Returns:
      the value of the maxDynamicIndexBuffers field.
    • maxDynamicVertexBuffers

      public int maxDynamicVertexBuffers()
      Returns:
      the value of the maxDynamicVertexBuffers field.
    • maxUniforms

      public int maxUniforms()
      Returns:
      the value of the maxUniforms field.
    • maxOcclusionQueries

      public int maxOcclusionQueries()
      Returns:
      the value of the maxOcclusionQueries field.
    • maxEncoders

      public int maxEncoders()
      Returns:
      the value of the maxEncoders field.
    • minResourceCbSize

      public int minResourceCbSize()
      Returns:
      the value of the minResourceCbSize field.
    • transientVbSize

      public int transientVbSize()
      Returns:
      the value of the transientVbSize field.
    • transientIbSize

      public int transientIbSize()
      Returns:
      the value of the transientIbSize field.
    • create

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

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

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

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

      public static int nmaxDrawCalls(long struct)
      Unsafe version of maxDrawCalls().
    • nmaxBlits

      public static int nmaxBlits(long struct)
      Unsafe version of maxBlits().
    • nmaxTextureSize

      public static int nmaxTextureSize(long struct)
      Unsafe version of maxTextureSize().
    • nmaxTextureLayers

      public static int nmaxTextureLayers(long struct)
      Unsafe version of maxTextureLayers().
    • nmaxViews

      public static int nmaxViews(long struct)
      Unsafe version of maxViews().
    • nmaxFrameBuffers

      public static int nmaxFrameBuffers(long struct)
      Unsafe version of maxFrameBuffers().
    • nmaxFBAttachments

      public static int nmaxFBAttachments(long struct)
      Unsafe version of maxFBAttachments().
    • nmaxPrograms

      public static int nmaxPrograms(long struct)
      Unsafe version of maxPrograms().
    • nmaxShaders

      public static int nmaxShaders(long struct)
      Unsafe version of maxShaders().
    • nmaxTextures

      public static int nmaxTextures(long struct)
      Unsafe version of maxTextures().
    • nmaxTextureSamplers

      public static int nmaxTextureSamplers(long struct)
      Unsafe version of maxTextureSamplers().
    • nmaxComputeBindings

      public static int nmaxComputeBindings(long struct)
      Unsafe version of maxComputeBindings().
    • nmaxVertexLayouts

      public static int nmaxVertexLayouts(long struct)
      Unsafe version of maxVertexLayouts().
    • nmaxVertexStreams

      public static int nmaxVertexStreams(long struct)
      Unsafe version of maxVertexStreams().
    • nmaxIndexBuffers

      public static int nmaxIndexBuffers(long struct)
      Unsafe version of maxIndexBuffers().
    • nmaxVertexBuffers

      public static int nmaxVertexBuffers(long struct)
      Unsafe version of maxVertexBuffers().
    • nmaxDynamicIndexBuffers

      public static int nmaxDynamicIndexBuffers(long struct)
      Unsafe version of maxDynamicIndexBuffers().
    • nmaxDynamicVertexBuffers

      public static int nmaxDynamicVertexBuffers(long struct)
      Unsafe version of maxDynamicVertexBuffers().
    • nmaxUniforms

      public static int nmaxUniforms(long struct)
      Unsafe version of maxUniforms().
    • nmaxOcclusionQueries

      public static int nmaxOcclusionQueries(long struct)
      Unsafe version of maxOcclusionQueries().
    • nmaxEncoders

      public static int nmaxEncoders(long struct)
      Unsafe version of maxEncoders().
    • nminResourceCbSize

      public static int nminResourceCbSize(long struct)
      Unsafe version of minResourceCbSize().
    • ntransientVbSize

      public static int ntransientVbSize(long struct)
      Unsafe version of transientVbSize().
    • ntransientIbSize

      public static int ntransientIbSize(long struct)
      Unsafe version of transientIbSize().