@EqualityReference public final class RExceptionResource extends RException
An exception raised by resource limits being exceeded.
A typical example would be attempting to render using a material requires a greater number of texture units than the current OpenGL implementation provides.
Modifier and Type | Method and Description |
---|---|
static RException |
notEnoughTextureUnits(int required,
int have)
Construct an
RException assuming that the implementation has run
out of texture units. |
static RException |
notEnoughTextureUnitsForShader(String shader_name,
int required,
int have)
Construct an
RException assuming that the given shader requires
more texture units than the current implementation provides. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static RException notEnoughTextureUnitsForShader(String shader_name, int required, int have)
RException
assuming that the given shader requires
more texture units than the current implementation provides.shader_name
- The shaderrequired
- The number of required texture unitshave
- The number of texture units availablepublic static RException notEnoughTextureUnits(int required, int have)
RException
assuming that the implementation has run
out of texture units.required
- The number of required texture unitshave
- The number of texture units availableCopyright © 2015 <code@io7m.com> http://io7m.com