Class BGFXCapsLimits

  • All Implemented Interfaces:

    public class BGFXCapsLimits
    extends Struct
    Rendering limits.

    Member documentation

    • maxDrawCalls – maximum number of draw calls
    • maxBlits – maximum number of blit calls
    • maxTextureSize – maximum texture size
    • maxTextureLayers – maximum texture layers
    • maxViews – maximum number of views
    • maxFrameBuffers – maximum number of frame buffer handles
    • maxFBAttachments – maximum number of frame buffer attachments
    • maxPrograms – maximum number of program handles
    • maxShaders – maximum number of shader handles
    • maxTextures – maximum number of texture handles
    • maxTextureSamplers – maximum number of texture samplers
    • maxComputeBindings – maximum number of compute bindings
    • maxVertexLayouts – maximum number of vertex format layouts
    • maxVertexStreams – maximum number of vertex streams
    • maxIndexBuffers – maximum number of index buffer handles
    • maxVertexBuffers – maximum number of vertex buffer handles
    • maxDynamicIndexBuffers – maximum number of dynamic index buffer handles
    • maxDynamicVertexBuffers – maximum number of vertex buffer handles
    • maxUniforms – maximum number of uniform handles
    • maxOcclusionQueries – maximum number of occlusion query handles
    • maxEncoders – maximum number of encoder threads
    • transientVbSize – maximum transient vertex buffer size
    • transientIbSize – maximum transient index buffer size


     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 transientVbSize;
         uint32_t transientIbSize;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • BGFXCapsLimits

        public BGFXCapsLimits​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • 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 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.
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        public static 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().
      • ntransientVbSize

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

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