All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.bgfx.BGFXCapsLimits Maven / Gradle / Ivy

Go to download

A cross-platform, graphics API agnostic rendering library. It provides a high performance, low level abstraction for common platform graphics APIs like OpenGL, Direct3D and Apple Metal.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.bgfx;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.MemoryUtil.*;

/**
 * Rendering limits.
 * 
 * 

Member documentation

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

Layout

* *

 * 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 maxVertexDecls;
 *     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;
 * }
*/ @NativeType("struct bgfx_caps_limits_t") public class BGFXCapsLimits extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; /** The struct alignment in bytes. */ public static final int ALIGNOF; /** The struct member offsets. */ public static final int MAXDRAWCALLS, MAXBLITS, MAXTEXTURESIZE, MAXTEXTURELAYERS, MAXVIEWS, MAXFRAMEBUFFERS, MAXFBATTACHMENTS, MAXPROGRAMS, MAXSHADERS, MAXTEXTURES, MAXTEXTURESAMPLERS, MAXVERTEXDECLS, MAXVERTEXSTREAMS, MAXINDEXBUFFERS, MAXVERTEXBUFFERS, MAXDYNAMICINDEXBUFFERS, MAXDYNAMICVERTEXBUFFERS, MAXUNIFORMS, MAXOCCLUSIONQUERIES, MAXENCODERS, TRANSIENTVBSIZE, TRANSIENTIBSIZE; static { Layout layout = __struct( __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); MAXDRAWCALLS = layout.offsetof(0); MAXBLITS = layout.offsetof(1); MAXTEXTURESIZE = layout.offsetof(2); MAXTEXTURELAYERS = layout.offsetof(3); MAXVIEWS = layout.offsetof(4); MAXFRAMEBUFFERS = layout.offsetof(5); MAXFBATTACHMENTS = layout.offsetof(6); MAXPROGRAMS = layout.offsetof(7); MAXSHADERS = layout.offsetof(8); MAXTEXTURES = layout.offsetof(9); MAXTEXTURESAMPLERS = layout.offsetof(10); MAXVERTEXDECLS = layout.offsetof(11); MAXVERTEXSTREAMS = layout.offsetof(12); MAXINDEXBUFFERS = layout.offsetof(13); MAXVERTEXBUFFERS = layout.offsetof(14); MAXDYNAMICINDEXBUFFERS = layout.offsetof(15); MAXDYNAMICVERTEXBUFFERS = layout.offsetof(16); MAXUNIFORMS = layout.offsetof(17); MAXOCCLUSIONQUERIES = layout.offsetof(18); MAXENCODERS = layout.offsetof(19); TRANSIENTVBSIZE = layout.offsetof(20); TRANSIENTIBSIZE = layout.offsetof(21); } BGFXCapsLimits(long address, @Nullable ByteBuffer container) { super(address, container); } /** * Creates a {@link BGFXCapsLimits} instance at the current position of the specified {@link 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.

*/ public BGFXCapsLimits(ByteBuffer container) { this(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code maxDrawCalls} field. */ @NativeType("uint32_t") public int maxDrawCalls() { return nmaxDrawCalls(address()); } /** Returns the value of the {@code maxBlits} field. */ @NativeType("uint32_t") public int maxBlits() { return nmaxBlits(address()); } /** Returns the value of the {@code maxTextureSize} field. */ @NativeType("uint32_t") public int maxTextureSize() { return nmaxTextureSize(address()); } /** Returns the value of the {@code maxTextureLayers} field. */ @NativeType("uint32_t") public int maxTextureLayers() { return nmaxTextureLayers(address()); } /** Returns the value of the {@code maxViews} field. */ @NativeType("uint32_t") public int maxViews() { return nmaxViews(address()); } /** Returns the value of the {@code maxFrameBuffers} field. */ @NativeType("uint32_t") public int maxFrameBuffers() { return nmaxFrameBuffers(address()); } /** Returns the value of the {@code maxFBAttachments} field. */ @NativeType("uint32_t") public int maxFBAttachments() { return nmaxFBAttachments(address()); } /** Returns the value of the {@code maxPrograms} field. */ @NativeType("uint32_t") public int maxPrograms() { return nmaxPrograms(address()); } /** Returns the value of the {@code maxShaders} field. */ @NativeType("uint32_t") public int maxShaders() { return nmaxShaders(address()); } /** Returns the value of the {@code maxTextures} field. */ @NativeType("uint32_t") public int maxTextures() { return nmaxTextures(address()); } /** Returns the value of the {@code maxTextureSamplers} field. */ @NativeType("uint32_t") public int maxTextureSamplers() { return nmaxTextureSamplers(address()); } /** Returns the value of the {@code maxVertexDecls} field. */ @NativeType("uint32_t") public int maxVertexDecls() { return nmaxVertexDecls(address()); } /** Returns the value of the {@code maxVertexStreams} field. */ @NativeType("uint32_t") public int maxVertexStreams() { return nmaxVertexStreams(address()); } /** Returns the value of the {@code maxIndexBuffers} field. */ @NativeType("uint32_t") public int maxIndexBuffers() { return nmaxIndexBuffers(address()); } /** Returns the value of the {@code maxVertexBuffers} field. */ @NativeType("uint32_t") public int maxVertexBuffers() { return nmaxVertexBuffers(address()); } /** Returns the value of the {@code maxDynamicIndexBuffers} field. */ @NativeType("uint32_t") public int maxDynamicIndexBuffers() { return nmaxDynamicIndexBuffers(address()); } /** Returns the value of the {@code maxDynamicVertexBuffers} field. */ @NativeType("uint32_t") public int maxDynamicVertexBuffers() { return nmaxDynamicVertexBuffers(address()); } /** Returns the value of the {@code maxUniforms} field. */ @NativeType("uint32_t") public int maxUniforms() { return nmaxUniforms(address()); } /** Returns the value of the {@code maxOcclusionQueries} field. */ @NativeType("uint32_t") public int maxOcclusionQueries() { return nmaxOcclusionQueries(address()); } /** Returns the value of the {@code maxEncoders} field. */ @NativeType("uint32_t") public int maxEncoders() { return nmaxEncoders(address()); } /** Returns the value of the {@code transientVbSize} field. */ @NativeType("uint32_t") public int transientVbSize() { return ntransientVbSize(address()); } /** Returns the value of the {@code transientIbSize} field. */ @NativeType("uint32_t") public int transientIbSize() { return ntransientIbSize(address()); } // ----------------------------------- /** Returns a new {@link BGFXCapsLimits} instance for the specified memory address. */ public static BGFXCapsLimits create(long address) { return new BGFXCapsLimits(address, null); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static BGFXCapsLimits createSafe(long address) { return address == NULL ? null : create(address); } /** * Create a {@link BGFXCapsLimits.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static BGFXCapsLimits.Buffer create(long address, int capacity) { return new Buffer(address, capacity); } /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static BGFXCapsLimits.Buffer createSafe(long address, int capacity) { return address == NULL ? null : create(address, capacity); } // ----------------------------------- /** Unsafe version of {@link #maxDrawCalls}. */ public static int nmaxDrawCalls(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXDRAWCALLS); } /** Unsafe version of {@link #maxBlits}. */ public static int nmaxBlits(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXBLITS); } /** Unsafe version of {@link #maxTextureSize}. */ public static int nmaxTextureSize(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXTEXTURESIZE); } /** Unsafe version of {@link #maxTextureLayers}. */ public static int nmaxTextureLayers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXTEXTURELAYERS); } /** Unsafe version of {@link #maxViews}. */ public static int nmaxViews(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXVIEWS); } /** Unsafe version of {@link #maxFrameBuffers}. */ public static int nmaxFrameBuffers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXFRAMEBUFFERS); } /** Unsafe version of {@link #maxFBAttachments}. */ public static int nmaxFBAttachments(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXFBATTACHMENTS); } /** Unsafe version of {@link #maxPrograms}. */ public static int nmaxPrograms(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXPROGRAMS); } /** Unsafe version of {@link #maxShaders}. */ public static int nmaxShaders(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXSHADERS); } /** Unsafe version of {@link #maxTextures}. */ public static int nmaxTextures(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXTEXTURES); } /** Unsafe version of {@link #maxTextureSamplers}. */ public static int nmaxTextureSamplers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXTEXTURESAMPLERS); } /** Unsafe version of {@link #maxVertexDecls}. */ public static int nmaxVertexDecls(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXVERTEXDECLS); } /** Unsafe version of {@link #maxVertexStreams}. */ public static int nmaxVertexStreams(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXVERTEXSTREAMS); } /** Unsafe version of {@link #maxIndexBuffers}. */ public static int nmaxIndexBuffers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXINDEXBUFFERS); } /** Unsafe version of {@link #maxVertexBuffers}. */ public static int nmaxVertexBuffers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXVERTEXBUFFERS); } /** Unsafe version of {@link #maxDynamicIndexBuffers}. */ public static int nmaxDynamicIndexBuffers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXDYNAMICINDEXBUFFERS); } /** Unsafe version of {@link #maxDynamicVertexBuffers}. */ public static int nmaxDynamicVertexBuffers(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXDYNAMICVERTEXBUFFERS); } /** Unsafe version of {@link #maxUniforms}. */ public static int nmaxUniforms(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXUNIFORMS); } /** Unsafe version of {@link #maxOcclusionQueries}. */ public static int nmaxOcclusionQueries(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXOCCLUSIONQUERIES); } /** Unsafe version of {@link #maxEncoders}. */ public static int nmaxEncoders(long struct) { return memGetInt(struct + BGFXCapsLimits.MAXENCODERS); } /** Unsafe version of {@link #transientVbSize}. */ public static int ntransientVbSize(long struct) { return memGetInt(struct + BGFXCapsLimits.TRANSIENTVBSIZE); } /** Unsafe version of {@link #transientIbSize}. */ public static int ntransientIbSize(long struct) { return memGetInt(struct + BGFXCapsLimits.TRANSIENTIBSIZE); } // ----------------------------------- /** An array of {@link BGFXCapsLimits} structs. */ public static class Buffer extends StructBuffer { /** * Creates a new {@link BGFXCapsLimits.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link BGFXCapsLimits#SIZEOF}, and its mark will be undefined. * *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } public Buffer(long address, int cap) { super(address, null, -1, 0, cap, cap); } Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected Buffer newBufferInstance(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { return new Buffer(address, container, mark, pos, lim, cap); } @Override protected BGFXCapsLimits newInstance(long address) { return new BGFXCapsLimits(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code maxDrawCalls} field. */ @NativeType("uint32_t") public int maxDrawCalls() { return BGFXCapsLimits.nmaxDrawCalls(address()); } /** Returns the value of the {@code maxBlits} field. */ @NativeType("uint32_t") public int maxBlits() { return BGFXCapsLimits.nmaxBlits(address()); } /** Returns the value of the {@code maxTextureSize} field. */ @NativeType("uint32_t") public int maxTextureSize() { return BGFXCapsLimits.nmaxTextureSize(address()); } /** Returns the value of the {@code maxTextureLayers} field. */ @NativeType("uint32_t") public int maxTextureLayers() { return BGFXCapsLimits.nmaxTextureLayers(address()); } /** Returns the value of the {@code maxViews} field. */ @NativeType("uint32_t") public int maxViews() { return BGFXCapsLimits.nmaxViews(address()); } /** Returns the value of the {@code maxFrameBuffers} field. */ @NativeType("uint32_t") public int maxFrameBuffers() { return BGFXCapsLimits.nmaxFrameBuffers(address()); } /** Returns the value of the {@code maxFBAttachments} field. */ @NativeType("uint32_t") public int maxFBAttachments() { return BGFXCapsLimits.nmaxFBAttachments(address()); } /** Returns the value of the {@code maxPrograms} field. */ @NativeType("uint32_t") public int maxPrograms() { return BGFXCapsLimits.nmaxPrograms(address()); } /** Returns the value of the {@code maxShaders} field. */ @NativeType("uint32_t") public int maxShaders() { return BGFXCapsLimits.nmaxShaders(address()); } /** Returns the value of the {@code maxTextures} field. */ @NativeType("uint32_t") public int maxTextures() { return BGFXCapsLimits.nmaxTextures(address()); } /** Returns the value of the {@code maxTextureSamplers} field. */ @NativeType("uint32_t") public int maxTextureSamplers() { return BGFXCapsLimits.nmaxTextureSamplers(address()); } /** Returns the value of the {@code maxVertexDecls} field. */ @NativeType("uint32_t") public int maxVertexDecls() { return BGFXCapsLimits.nmaxVertexDecls(address()); } /** Returns the value of the {@code maxVertexStreams} field. */ @NativeType("uint32_t") public int maxVertexStreams() { return BGFXCapsLimits.nmaxVertexStreams(address()); } /** Returns the value of the {@code maxIndexBuffers} field. */ @NativeType("uint32_t") public int maxIndexBuffers() { return BGFXCapsLimits.nmaxIndexBuffers(address()); } /** Returns the value of the {@code maxVertexBuffers} field. */ @NativeType("uint32_t") public int maxVertexBuffers() { return BGFXCapsLimits.nmaxVertexBuffers(address()); } /** Returns the value of the {@code maxDynamicIndexBuffers} field. */ @NativeType("uint32_t") public int maxDynamicIndexBuffers() { return BGFXCapsLimits.nmaxDynamicIndexBuffers(address()); } /** Returns the value of the {@code maxDynamicVertexBuffers} field. */ @NativeType("uint32_t") public int maxDynamicVertexBuffers() { return BGFXCapsLimits.nmaxDynamicVertexBuffers(address()); } /** Returns the value of the {@code maxUniforms} field. */ @NativeType("uint32_t") public int maxUniforms() { return BGFXCapsLimits.nmaxUniforms(address()); } /** Returns the value of the {@code maxOcclusionQueries} field. */ @NativeType("uint32_t") public int maxOcclusionQueries() { return BGFXCapsLimits.nmaxOcclusionQueries(address()); } /** Returns the value of the {@code maxEncoders} field. */ @NativeType("uint32_t") public int maxEncoders() { return BGFXCapsLimits.nmaxEncoders(address()); } /** Returns the value of the {@code transientVbSize} field. */ @NativeType("uint32_t") public int transientVbSize() { return BGFXCapsLimits.ntransientVbSize(address()); } /** Returns the value of the {@code transientIbSize} field. */ @NativeType("uint32_t") public int transientIbSize() { return BGFXCapsLimits.ntransientIbSize(address()); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy