Tabnine Logo
JCGLType.getElementCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getElementCount
method
in
com.io7m.jcanephora.core.JCGLType

Best Java code snippets using com.io7m.jcanephora.core.JCGLType.getElementCount (Showing top 4 results out of 315)

origin: com.io7m.jcanephora/io7m-jcanephora-fake

@Override
public void shaderUniformPutVectorf(
 final JCGLProgramUniformType u,
 final FloatBuffer value)
 throws
 JCGLException,
 JCGLExceptionProgramNotActive,
 JCGLExceptionProgramTypeError
{
 this.checkActive(u);
 this.checkIsFloatingPoint(u);
 final int available = value.capacity() / 4;
 final JCGLType type = u.getType();
 final int required = type.getElementCount();
 if (available < required) {
  final StringBuilder sb = new StringBuilder(128);
  sb.append("Uniform data error.");
  sb.append(System.lineSeparator());
  sb.append("Expected: A buffer containing at least ");
  sb.append(required);
  sb.append(" floating point values");
  sb.append(System.lineSeparator());
  sb.append("Actual: A buffer containing ");
  sb.append(available);
  sb.append(" floating point values");
  throw new JCGLExceptionProgramTypeError(sb.toString());
 }
}
origin: com.io7m.jcanephora/com.io7m.jcanephora.fake

@Override
public void shaderUniformPutVectorf(
 final JCGLProgramUniformType u,
 final FloatBuffer value)
 throws
 JCGLException,
 JCGLExceptionProgramNotActive,
 JCGLExceptionProgramTypeError
{
 this.checkActive(u);
 this.checkIsFloatingPoint(u);
 final int available = value.capacity() / 4;
 final JCGLType type = u.type();
 final int required = type.getElementCount();
 if (available < required) {
  final StringBuilder sb = new StringBuilder(128);
  sb.append("Uniform data error.");
  sb.append(System.lineSeparator());
  sb.append("Expected: A buffer containing at least ");
  sb.append(required);
  sb.append(" floating point values");
  sb.append(System.lineSeparator());
  sb.append("Actual: A buffer containing ");
  sb.append(available);
  sb.append(" floating point values");
  throw new JCGLExceptionProgramTypeError(sb.toString());
 }
}
origin: com.io7m.jcanephora/io7m-jcanephora-lwjgl3

final int required = type.getElementCount();
if (available < required) {
 final StringBuilder sb = new StringBuilder(128);
origin: com.io7m.jcanephora/com.io7m.jcanephora.lwjgl3

final int required = type.getElementCount();
if (available < required) {
 final StringBuilder sb = new StringBuilder(128);
com.io7m.jcanephora.coreJCGLTypegetElementCount

Popular methods of JCGLType

  • isFloatingPointType
  • equals
  • values

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now