graphics.scenery.spirvcrossj.TProgram 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 TProgram {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected TProgram(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(TProgram obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libspirvcrossjJNI.delete_TProgram(swigCPtr);
}
swigCPtr = 0;
}
}
public TProgram() {
this(libspirvcrossjJNI.new_TProgram(), true);
}
public void addShader(TShader shader) {
libspirvcrossjJNI.TProgram_addShader(swigCPtr, this, TShader.getCPtr(shader), shader);
}
public boolean link(int arg0) {
return libspirvcrossjJNI.TProgram_link(swigCPtr, this, arg0);
}
public String getInfoLog() {
return libspirvcrossjJNI.TProgram_getInfoLog(swigCPtr, this);
}
public String getInfoDebugLog() {
return libspirvcrossjJNI.TProgram_getInfoDebugLog(swigCPtr, this);
}
public SWIGTYPE_p_glslang__TIntermediate getIntermediate(int stage) {
long cPtr = libspirvcrossjJNI.TProgram_getIntermediate(swigCPtr, this, stage);
return (cPtr == 0) ? null : new SWIGTYPE_p_glslang__TIntermediate(cPtr, false);
}
public boolean buildReflection() {
return libspirvcrossjJNI.TProgram_buildReflection(swigCPtr, this);
}
public int getNumLiveUniformVariables() {
return libspirvcrossjJNI.TProgram_getNumLiveUniformVariables(swigCPtr, this);
}
public int getNumLiveUniformBlocks() {
return libspirvcrossjJNI.TProgram_getNumLiveUniformBlocks(swigCPtr, this);
}
public String getUniformName(int index) {
return libspirvcrossjJNI.TProgram_getUniformName(swigCPtr, this, index);
}
public String getUniformBlockName(int blockIndex) {
return libspirvcrossjJNI.TProgram_getUniformBlockName(swigCPtr, this, blockIndex);
}
public int getUniformBlockSize(int blockIndex) {
return libspirvcrossjJNI.TProgram_getUniformBlockSize(swigCPtr, this, blockIndex);
}
public int getUniformIndex(String name) {
return libspirvcrossjJNI.TProgram_getUniformIndex(swigCPtr, this, name);
}
public int getUniformBlockIndex(int index) {
return libspirvcrossjJNI.TProgram_getUniformBlockIndex(swigCPtr, this, index);
}
public int getUniformType(int index) {
return libspirvcrossjJNI.TProgram_getUniformType(swigCPtr, this, index);
}
public int getUniformBufferOffset(int index) {
return libspirvcrossjJNI.TProgram_getUniformBufferOffset(swigCPtr, this, index);
}
public int getUniformArraySize(int index) {
return libspirvcrossjJNI.TProgram_getUniformArraySize(swigCPtr, this, index);
}
public int getNumLiveAttributes() {
return libspirvcrossjJNI.TProgram_getNumLiveAttributes(swigCPtr, this);
}
public String getAttributeName(int index) {
return libspirvcrossjJNI.TProgram_getAttributeName(swigCPtr, this, index);
}
public int getAttributeType(int index) {
return libspirvcrossjJNI.TProgram_getAttributeType(swigCPtr, this, index);
}
public SWIGTYPE_p_glslang__TType getUniformTType(int index) {
long cPtr = libspirvcrossjJNI.TProgram_getUniformTType(swigCPtr, this, index);
return (cPtr == 0) ? null : new SWIGTYPE_p_glslang__TType(cPtr, false);
}
public SWIGTYPE_p_glslang__TType getUniformBlockTType(int index) {
long cPtr = libspirvcrossjJNI.TProgram_getUniformBlockTType(swigCPtr, this, index);
return (cPtr == 0) ? null : new SWIGTYPE_p_glslang__TType(cPtr, false);
}
public SWIGTYPE_p_glslang__TType getAttributeTType(int index) {
long cPtr = libspirvcrossjJNI.TProgram_getAttributeTType(swigCPtr, this, index);
return (cPtr == 0) ? null : new SWIGTYPE_p_glslang__TType(cPtr, false);
}
public void dumpReflection() {
libspirvcrossjJNI.TProgram_dumpReflection(swigCPtr, this);
}
public boolean mapIO(TIoMapResolver resolver) {
return libspirvcrossjJNI.TProgram_mapIO__SWIG_0(swigCPtr, this, TIoMapResolver.getCPtr(resolver), resolver);
}
public boolean mapIO() {
return libspirvcrossjJNI.TProgram_mapIO__SWIG_1(swigCPtr, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy