Lines Matching defs:cfg
329 static void glInitFlat (const TextureFlat& cfg, GLenum target, const glw::Functions& gl)
331 const TransferFormat format = transferImageFormat(cfg.internalFormat);
332 GLint w = cfg.width;
333 GLint h = cfg.height;
334 for (GLint level = 0; level < cfg.numLevels; level++)
336 gl.texImage2D(target, level, cfg.internalFormat.format, w, h, 0,
343 static void glInitLayered (const TextureLayered& cfg,
346 const TransferFormat format = transferImageFormat(cfg.internalFormat);
347 GLint w = cfg.width;
348 GLint h = cfg.height;
349 GLint depth = cfg.numLayers;
350 for (GLint level = 0; level < cfg.numLevels; level++)
352 gl.texImage3D(glTarget(cfg), level, cfg.internalFormat.format, w, h, depth, 0,
360 static void glInit (const Texture& cfg, const glw::Functions& gl)
362 if (const Texture2D* t2d = dynamic_cast<const Texture2D*>(&cfg))
364 else if (const TextureCubeMap* tcm = dynamic_cast<const TextureCubeMap*>(&cfg))
382 else if (const Texture3D* t3d = dynamic_cast<const Texture3D*>(&cfg))
384 else if (const Texture2DArray* t2a = dynamic_cast<const Texture2DArray*>(&cfg))
388 static GLuint glCreate (const Image& cfg, const glw::Functions& gl)
391 if (const Renderbuffer* const rbo = dynamic_cast<const Renderbuffer*>(&cfg))
406 else if (const Texture* const tex = dynamic_cast<const Texture*>(&cfg))
418 static void glDelete (const Image& cfg, GLuint img, const glw::Functions& gl)
420 if (dynamic_cast<const Renderbuffer*>(&cfg) != DE_NULL)
422 else if (dynamic_cast<const Texture*>(&cfg) != DE_NULL)
732 void logFramebufferConfig (const Framebuffer& cfg, TestLog& log)
736 for (RboMap::const_iterator it = cfg.rbos.begin(); it != cfg.rbos.end(); ++it)
744 for (TextureMap::const_iterator it = cfg.textures.begin();
745 it != cfg.textures.end(); ++it)
753 const string attDesc = cfg.attachments.empty()
757 for (AttachmentMap::const_iterator it = cfg.attachments.begin();
758 it != cfg.attachments.end(); it++)