Lines Matching defs:samples
318 int samples;
320 FboSpec(int width_, int height_, int samples_) : width(width_), height(height_), samples(samples_){}
367 int samples = getSamples();
374 gl.framebufferParameteri(GL_DRAW_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_SAMPLES, samples);
385 if (samples >= 2)
386 samples /= 2;
398 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Unable to find a supported no-attachment framebuffer width/height/samples");
402 log << TestLog::Message << "Verifying " << width << "x" << height << " framebuffer with " << samples << "x multisampling" << TestLog::EndMessage;
446 if (m_spec.samples != USE_MAXIMUM)
447 return m_spec.samples;
451 GLint samples = 0;
453 gl.getIntegerv(GL_MAX_FRAMEBUFFER_SAMPLES, &samples);
455 return samples;
502 gl.framebufferParameteri(GL_DRAW_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_SAMPLES, m_defaultSpec.samples);
506 gl.renderbufferStorageMultisample(GL_RENDERBUFFER, m_attachmentSpec.samples, GL_RGBA8, m_attachmentSpec.width, m_attachmentSpec.height);
509 log << TestLog::Message << "Verifying " << m_attachmentSpec.width << "x" << m_attachmentSpec.height << " framebuffer with " << m_attachmentSpec.samples << "x multisampling"
510 << " and defaults set to " << m_defaultSpec.width << "x" << m_defaultSpec.height << " with " << m_defaultSpec.samples << "x multisampling" << TestLog::EndMessage;
608 for (int samples = 0; samples <= maxSamples; samples++)
610 const FboSpec spec (128, 128, samples);
613 name << "samples" << samples;
630 const int samples = rng.getInt(0, maxSamples);
631 const FboSpec spec (width, height, samples);
662 baseSpecName << baseSpec.width << "x" << baseSpec.height << "ms" << baseSpec.samples;
663 altSpecName << altSpec.width << "x" << altSpec.height << "ms" << altSpec.samples;
681 group->addChild(new SizeCase(testCtx, renderCtx, "samples", "Maximum samples", FboSpec(128, 128, SizeCase::USE_MAXIMUM)));
682 group->addChild(new SizeCase(testCtx, renderCtx, "all", "Maximum size & samples", FboSpec(SizeCase::USE_MAXIMUM, SizeCase::USE_MAXIMUM, SizeCase::USE_MAXIMUM)));