/** Array version of: {@link #glGetPerfCounterInfoINTEL GetPerfCounterInfoINTEL} */
 public static void glGetPerfCounterInfoINTEL(
     int queryId,
     int counterId,
     ByteBuffer counterName,
     ByteBuffer counterDesc,
     int[] counterOffset,
     int[] counterDataSize,
     int[] counterTypeEnum,
     int[] counterDataTypeEnum,
     long[] rawCounterMaxValue) {
   long __functionAddress = GLES.getCapabilities().glGetPerfCounterInfoINTEL;
   if (CHECKS) {
     checkFunctionAddress(__functionAddress);
     checkBuffer(counterOffset, 1);
     checkBuffer(counterDataSize, 1);
     checkBuffer(counterTypeEnum, 1);
     checkBuffer(counterDataTypeEnum, 1);
     checkBuffer(rawCounterMaxValue, 1);
   }
   callPPPPPPPV(
       __functionAddress,
       queryId,
       counterId,
       counterName.remaining(),
       memAddress(counterName),
       counterDesc.remaining(),
       memAddress(counterDesc),
       counterOffset,
       counterDataSize,
       counterTypeEnum,
       counterDataTypeEnum,
       rawCounterMaxValue);
 }
 public static void glGetPerfCounterInfoINTEL(
     int queryId,
     int counterId,
     ByteBuffer counterName,
     ByteBuffer counterDesc,
     IntBuffer counterOffset,
     IntBuffer counterDataSize,
     IntBuffer counterTypeEnum,
     IntBuffer counterDataTypeEnum,
     LongBuffer rawCounterMaxValue) {
   if (CHECKS) {
     checkBuffer(counterOffset, 1);
     checkBuffer(counterDataSize, 1);
     checkBuffer(counterTypeEnum, 1);
     checkBuffer(counterDataTypeEnum, 1);
     checkBuffer(rawCounterMaxValue, 1);
   }
   nglGetPerfCounterInfoINTEL(
       queryId,
       counterId,
       counterName.remaining(),
       memAddress(counterName),
       counterDesc.remaining(),
       memAddress(counterDesc),
       memAddress(counterOffset),
       memAddress(counterDataSize),
       memAddress(counterTypeEnum),
       memAddress(counterDataTypeEnum),
       memAddress(rawCounterMaxValue));
 }
 /** Array version of: {@link #glGetPerfQueryInfoINTEL GetPerfQueryInfoINTEL} */
 public static void glGetPerfQueryInfoINTEL(
     int queryId,
     ByteBuffer queryName,
     int[] dataSize,
     int[] noCounters,
     int[] noInstances,
     int[] capsMask) {
   long __functionAddress = GLES.getCapabilities().glGetPerfQueryInfoINTEL;
   if (CHECKS) {
     checkFunctionAddress(__functionAddress);
     checkBuffer(dataSize, 1);
     checkBuffer(noCounters, 1);
     checkBuffer(noInstances, 1);
     checkBuffer(capsMask, 1);
   }
   callPPPPPV(
       __functionAddress,
       queryId,
       queryName.remaining(),
       memAddress(queryName),
       dataSize,
       noCounters,
       noInstances,
       capsMask);
 }
Example #4
0
 /** Array version of: {@link #stbi_info_from_memory info_from_memory} */
 public static int stbi_info_from_memory(ByteBuffer buffer, int[] x, int[] y, int[] comp) {
   if (CHECKS) {
     checkBuffer(x, 1);
     checkBuffer(y, 1);
     checkBuffer(comp, 1);
   }
   return nstbi_info_from_memory(memAddress(buffer), buffer.remaining(), x, y, comp);
 }
Example #5
0
 /**
  * In-memory version of {@link #stbi_info info}.
  *
  * @param buffer the buffer from which to read the image data
  * @param x outputs the image width in pixels
  * @param y outputs the image height in pixels
  * @param comp outputs number of components in image
  */
 public static int stbi_info_from_memory(
     ByteBuffer buffer, IntBuffer x, IntBuffer y, IntBuffer comp) {
   if (CHECKS) {
     checkBuffer(x, 1);
     checkBuffer(y, 1);
     checkBuffer(comp, 1);
   }
   return nstbi_info_from_memory(
       memAddress(buffer), buffer.remaining(), memAddress(x), memAddress(y), memAddress(comp));
 }
 /** Array version of: {@link #glGetPerfQueryDataINTEL GetPerfQueryDataINTEL} */
 public static void glGetPerfQueryDataINTEL(
     int queryHandle, int flags, ByteBuffer data, int[] bytesWritten) {
   long __functionAddress = GLES.getCapabilities().glGetPerfQueryDataINTEL;
   if (CHECKS) {
     checkFunctionAddress(__functionAddress);
     checkBuffer(bytesWritten, 1);
   }
   callPPV(
       __functionAddress, queryHandle, flags, data.remaining(), memAddress(data), bytesWritten);
 }
Example #7
0
 /**
  * ZLIB client - used by PNG, available for other purposes
  *
  * @param buffer
  */
 public static ByteBuffer stbi_zlib_decode_malloc(ByteBuffer buffer) {
   MemoryStack stack = stackGet();
   int stackPointer = stack.getPointer();
   try {
     IntBuffer outlen = stack.callocInt(1);
     long __result =
         nstbi_zlib_decode_malloc(memAddress(buffer), buffer.remaining(), memAddress(outlen));
     return memByteBuffer(__result, outlen.get(0));
   } finally {
     stack.setPointer(stackPointer);
   }
 }
Example #8
0
 /**
  * ZLIB client - used by PNG, available for other purposes
  *
  * @param buffer
  * @param initial_size
  * @param parse_header
  */
 public static ByteBuffer stbi_zlib_decode_malloc_guesssize_headerflag(
     ByteBuffer buffer, int initial_size, int parse_header) {
   MemoryStack stack = stackGet();
   int stackPointer = stack.getPointer();
   try {
     IntBuffer outlen = stack.callocInt(1);
     long __result =
         nstbi_zlib_decode_malloc_guesssize_headerflag(
             memAddress(buffer),
             buffer.remaining(),
             initial_size,
             memAddress(outlen),
             parse_header);
     return memByteBuffer(__result, outlen.get(0));
   } finally {
     stack.setPointer(stackPointer);
   }
 }
Example #9
0
 /**
  * Floating-point version of {@link #stbi_load_from_memory load_from_memory}.
  *
  * @param buffer the buffer from which to load the image data
  * @param x outputs the image width in pixels
  * @param y outputs the image height in pixels
  * @param comp outputs number of components in image
  * @param req_comp 0 or 1..4 to force that many components per pixel. One of:<br>
  *     <table><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr></table>
  */
 public static FloatBuffer stbi_loadf_from_memory(
     ByteBuffer buffer, IntBuffer x, IntBuffer y, IntBuffer comp, int req_comp) {
   if (CHECKS) {
     checkBuffer(x, 1);
     checkBuffer(y, 1);
     checkBuffer(comp, 1);
   }
   long __result =
       nstbi_loadf_from_memory(
           memAddress(buffer),
           buffer.remaining(),
           memAddress(x),
           memAddress(y),
           memAddress(comp),
           req_comp);
   return memFloatBuffer(
       __result, x.get(x.position()) * y.get(y.position()) * comp.get(comp.position()));
 }
 public static void glGetPerfQueryInfoINTEL(
     int queryId,
     ByteBuffer queryName,
     IntBuffer dataSize,
     IntBuffer noCounters,
     IntBuffer noInstances,
     IntBuffer capsMask) {
   if (CHECKS) {
     checkBuffer(dataSize, 1);
     checkBuffer(noCounters, 1);
     checkBuffer(noInstances, 1);
     checkBuffer(capsMask, 1);
   }
   nglGetPerfQueryInfoINTEL(
       queryId,
       queryName.remaining(),
       memAddress(queryName),
       memAddress(dataSize),
       memAddress(noCounters),
       memAddress(noInstances),
       memAddress(capsMask));
 }
Example #11
0
 /**
  * ZLIB client - used by PNG, available for other purposes
  *
  * @param obuffer
  * @param ibuffer
  */
 public static int stbi_zlib_decode_buffer(ByteBuffer obuffer, ByteBuffer ibuffer) {
   return nstbi_zlib_decode_buffer(
       memAddress(obuffer), obuffer.remaining(), memAddress(ibuffer), ibuffer.remaining());
 }
Example #12
0
 /**
  * In-memory version of {@link #stbi_is_hdr is_hdr}.
  *
  * @param buffer the buffer from which to read the image data
  */
 public static int stbi_is_hdr_from_memory(ByteBuffer buffer) {
   return nstbi_is_hdr_from_memory(memAddress(buffer), buffer.remaining());
 }
 public static void glGetPerfQueryDataINTEL(
     int queryHandle, int flags, ByteBuffer data, IntBuffer bytesWritten) {
   if (CHECKS) checkBuffer(bytesWritten, 1);
   nglGetPerfQueryDataINTEL(
       queryHandle, flags, data.remaining(), memAddress(data), memAddress(bytesWritten));
 }
 /**
  * Creates a new {@link VkImageSubresourceRange.Buffer} instance backed by the specified
  * container.
  *
  * <p>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 VkImageSubresourceRange#SIZEOF}, and its mark will
  * be undefined.
  *
  * <p>The created buffer instance holds a strong reference to the container object.
  */
 public Buffer(ByteBuffer container) {
   super(container, container.remaining() / SIZEOF);
 }