| Modifier and Type | Field and Description |
|---|---|
| private final MTLContext | |
| private static MTLShader | |
| private final String | |
| private long | |
| private final Map | |
| private static final Map | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Shader | createShader(MTLContext ctx, String fragFuncName, Map<String, Integer> samplers, Map<String, Integer> params, int maxTexCoordIndex, boolean isPixcoordUsed, boolean isPerVertexColorUsed)
|
| public static MTLShader | |
| public void | |
| public void | |
| public void | |
| public boolean | isValid()
Implements com. Returns whether this shader is valid and can be used for rendering. |
| private static native long | |
| private static native void | |
| private static native void | |
| private static native Map | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | nSetTexture(long nMetalShader, int texID, int uniformID, long texPtr, boolean isLinear, int wrapMode)
|
| public void | |
| public void | |
| public void | |
| public void | setConstant(String name, int i0, int i1, int i2, int i3)
Implements com.
|
| public void | |
| public void | |
| public void | setConstant(String name, float f0, float f1, float f2)
Implements com.
|
| public void | setConstant(String name, float f0, float f1, float f2, float f3)
Implements com.
|
| public void | setConstants(String name, IntBuffer buf, int off, int count)
Implements com.
|
| public void | setConstants(String name, FloatBuffer buf, int off, int count)
Implements com.
|
| public static void | |
| private void |
| context | back to summary |
|---|---|
| private final MTLContext context | |
| currentEnabledShader | back to summary |
|---|---|
| private static MTLShader currentEnabledShader | |
| fragmentFunctionName | back to summary |
|---|---|
| private final String fragmentFunctionName | |
| nMetalShaderRef | back to summary |
|---|---|
| private long nMetalShaderRef | |
| samplers | back to summary |
|---|---|
| private final Map<Integer, String> samplers | |
| shaderMap | back to summary |
|---|---|
| private static final Map<String, MTLShader> shaderMap | |
| textureIdRefMap | back to summary |
|---|---|
| private final Map<Integer, WeakReference<Object>> textureIdRefMap | |
| uniformNameIdMap | back to summary |
|---|---|
| private final Map<String, Integer> uniformNameIdMap | |
| MTLShader | back to summary |
|---|---|
| private MTLShader(MTLContext context, String fragmentFunctionName) | |
| createShader | back to summary |
|---|---|
| public static Shader createShader(MTLContext ctx, String fragFuncName, Map<String, Integer> samplers, Map<String, Integer> params, int maxTexCoordIndex, boolean isPixcoordUsed, boolean isPerVertexColorUsed) | |
| createShader | back to summary |
|---|---|
| public static MTLShader createShader(MTLContext ctx, String fragFuncName) | |
| disable | back to summary |
|---|---|
| public void disable() Implements com.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com.
| |
| enable | back to summary |
|---|---|
| public void enable() Implements com.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements com. Doc from com. Returns whether this shader is valid and can be used for rendering. Called on the rendering thread.
| |
| nCreateMetalShader | back to summary |
|---|---|
| private static native long nCreateMetalShader(long context, String fragFuncName) | |
| nDisable | back to summary |
|---|---|
| private static native void nDisable(long nMetalShader) | |
| nEnable | back to summary |
|---|---|
| private static native void nEnable(long nMetalShader) | |
| nGetUniformNameIdMap | back to summary |
|---|---|
| private static native Map | |
| nSetConstants | back to summary |
|---|---|
| private static native void nSetConstants(long nMetalShader, int uniformID, float[] values, int size) | |
| nSetConstantsBuf | back to summary |
|---|---|
| private static native void nSetConstantsBuf(long nMetalShader, int uniformID, Object values, int valuesByteOffset, int size) | |
| nSetFloat1 | back to summary |
|---|---|
| private static native void nSetFloat1(long nMetalShader, int uniformID, float f0) | |
| nSetFloat2 | back to summary |
|---|---|
| private static native void nSetFloat2(long nMetalShader, int uniformID, float f0, float f1) | |
| nSetFloat3 | back to summary |
|---|---|
| private static native void nSetFloat3(long nMetalShader, int uniformID, float f0, float f1, float f2) | |
| nSetFloat4 | back to summary |
|---|---|
| private static native void nSetFloat4(long nMetalShader, int uniformID, float f0, float f1, float f2, float f3) | |
| nSetInt | back to summary |
|---|---|
| private static native void nSetInt(long nMetalShader, int uniformID, int i0) | |
| nSetTexture | back to summary |
|---|---|
| private static native void nSetTexture(long nMetalShader, int texID, int uniformID, long texPtr, boolean isLinear, int wrapMode) | |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, int i0) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, int i0, int i1) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, int i0, int i1, int i2) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, int i0, int i1, int i2, int i3) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, float f0) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, float f0, float f1) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, float f0, float f1, float f2) Implements com.
| |
| setConstant | back to summary |
|---|---|
| public void setConstant(String name, float f0, float f1, float f2, float f3) Implements com.
| |
| setConstants | back to summary |
|---|---|
| public void setConstants(String name, IntBuffer buf, int off, int count) Implements com.
| |
| setConstants | back to summary |
|---|---|
| public void setConstants(String name, FloatBuffer buf, int off, int count) Implements com.
| |
| setTexture | back to summary |
|---|---|
| public static void setTexture(int texUnit, Texture tex, boolean isLinear, int wrapMode) | |
| storeSamplers | back to summary |
|---|---|
| private void storeSamplers(Map<String, Integer> samplers) | |