graphics.scenery.spirvcrossj.BufferRangeVec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spirvcrossj Show documentation
Show all versions of spirvcrossj Show documentation
Java bindings for Khronos' SPIRV-Cross
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package graphics.scenery.spirvcrossj;
public class BufferRangeVec {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected BufferRangeVec(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(BufferRangeVec obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libspirvcrossjJNI.delete_BufferRangeVec(swigCPtr);
}
swigCPtr = 0;
}
}
public BufferRangeVec() {
this(libspirvcrossjJNI.new_BufferRangeVec__SWIG_0(), true);
}
public BufferRangeVec(long n) {
this(libspirvcrossjJNI.new_BufferRangeVec__SWIG_1(n), true);
}
public long size() {
return libspirvcrossjJNI.BufferRangeVec_size(swigCPtr, this);
}
public long capacity() {
return libspirvcrossjJNI.BufferRangeVec_capacity(swigCPtr, this);
}
public void reserve(long n) {
libspirvcrossjJNI.BufferRangeVec_reserve(swigCPtr, this, n);
}
public boolean empty() {
return libspirvcrossjJNI.BufferRangeVec_empty(swigCPtr, this);
}
public void clear() {
libspirvcrossjJNI.BufferRangeVec_clear(swigCPtr, this);
}
public void pushBack(BufferRange x) {
libspirvcrossjJNI.BufferRangeVec_pushBack(swigCPtr, this, BufferRange.getCPtr(x), x);
}
public BufferRange get(int i) {
return new BufferRange(libspirvcrossjJNI.BufferRangeVec_get(swigCPtr, this, i), false);
}
public void set(int i, BufferRange val) {
libspirvcrossjJNI.BufferRangeVec_set(swigCPtr, this, i, BufferRange.getCPtr(val), val);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy