Home | History | Annotate | Download | only in canvas

Lines Matching refs:reason

316 bool WebGLFramebuffer::isAttachmentComplete(WebGLAttachment* attachedObject, GLenum attachment, const char** reason) const
319 ASSERT(reason);
328 *reason = "the internalformat of the attached renderbuffer is not DEPTH_COMPONENT16";
335 *reason = "the attached texture is not a depth texture";
344 *reason = "the internalformat of the attached renderbuffer is not STENCIL_INDEX8";
351 *reason = "the internalformat of the attached renderbuffer is not DEPTH_STENCIL";
358 *reason = "the attached texture is not a DEPTH_STENCIL texture";
367 *reason = "the internalformat of the attached renderbuffer is not color-renderable";
373 *reason = "the internalformat of the attached texture is not color-renderable";
386 *reason = "unsupported type: The attached texture is not supported to be rendered to";
391 *reason = "unknown framebuffer attachment point";
396 *reason = "attachment has a 0 dimension";
468 GLenum WebGLFramebuffer::checkStatus(const char** reason) const
477 if (!isAttachmentComplete(attachment, it->key, reason))
480 *reason = "attachment is not valid";
484 *reason = "attachment is an unsupported format";
503 *reason = "attachments do not have the same dimensions";
510 *reason = "no attachments";
514 *reason = "framebuffer has a 0 dimension";
519 *reason = "conflicting DEPTH/STENCIL/DEPTH_STENCIL attachments";
525 bool WebGLFramebuffer::onAccess(blink::WebGraphicsContext3D* context3d, const char** reason)
527 if (checkStatus(reason) != GL_FRAMEBUFFER_COMPLETE)