Lines Matching refs:target

122 static tcu::CubeFace texTargetToFace (Framebuffer::TexTarget target)
124 switch (target)
611 void ReferenceContext::bindTexture (deUint32 target, deUint32 texture)
615 RC_IF_ERROR(target != GL_TEXTURE_1D &&
616 target != GL_TEXTURE_2D &&
617 target != GL_TEXTURE_CUBE_MAP &&
618 target != GL_TEXTURE_2D_ARRAY &&
619 target != GL_TEXTURE_3D &&
620 target != GL_TEXTURE_CUBE_MAP_ARRAY,
623 RC_IF_ERROR(glu::isContextTypeES(m_limits.contextType) && (target == GL_TEXTURE_1D), GL_INVALID_ENUM, RC_RET_VOID);
628 switch (target)
648 switch (target)
665 switch (target)
680 switch (target)
751 void ReferenceContext::bindFramebuffer (deUint32 target, deUint32 name)
755 RC_IF_ERROR(target != GL_FRAMEBUFFER &&
756 target != GL_DRAW_FRAMEBUFFER &&
757 target != GL_READ_FRAMEBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
775 if (target != GL_FRAMEBUFFER && target != bindingTarget)
776 continue; // Doesn't match this target.
829 void ReferenceContext::bindRenderbuffer (deUint32 target, deUint32 name)
833 RC_IF_ERROR(target != GL_RENDERBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
1017 void ReferenceContext::texImage1D (deUint32 target, int level, deUint32 internalFormat, int width, int border, deUint32 format, deUint32 type, const void* data)
1019 texImage2D(target, level, internalFormat, width, 1, border, format, type, data);
1022 void ReferenceContext::texImage2D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int border, deUint32 format, deUint32 type, const void* data)
1024 texImage3D(target, level, internalFormat, width, height, 1, border, format, type, data);
1041 void ReferenceContext::texImage3D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int depth, int border, deUint32 format, deUint32 type, const void* data)
1062 if (target == GL_TEXTURE_1D && glu::isContextTypeGLCore(m_limits.contextType))
1097 else if (target == GL_TEXTURE_2D)
1133 else if (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X ||
1134 target == GL_TEXTURE_CUBE_MAP_POSITIVE_X ||
1135 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y ||
1136 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Y ||
1137 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z ||
1138 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Z)
1145 tcu::CubeFace face = mapGLCubeFace(target);
1175 else if (target == GL_TEXTURE_2D_ARRAY)
1214 else if (target == GL_TEXTURE_3D)
1253 else if (target == GL_TEXTURE_CUBE_MAP_ARRAY)
1297 void ReferenceContext::texSubImage1D (deUint32 target, int level, int xoffset, int width, deUint32 format, deUint32 type, const void* data)
1299 texSubImage2D(target, level, xoffset, 0, width, 1, format, type, data);
1302 void ReferenceContext::texSubImage2D (deUint32 target, int level, int xoffset, int yoffset, int width, int height, deUint32 format, deUint32 type, const void* data)
1304 texSubImage3D(target, level, xoffset, yoffset, 0, width, height, 1, format, type, data);
1307 void ReferenceContext::texSubImage3D (deUint32 target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, deUint32 format, deUint32 type, const void* data)
1320 if (target == GL_TEXTURE_1D && glu::isContextTypeGLCore(m_limits.contextType))
1339 else if (target == GL_TEXTURE_2D)
1358 else if (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X ||
1359 target == GL_TEXTURE_CUBE_MAP_POSITIVE_X ||
1360 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y ||
1361 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Y ||
1362 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z ||
1363 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Z)
1366 tcu::CubeFace face = mapGLCubeFace(target);
1383 else if (target == GL_TEXTURE_3D)
1402 else if (target == GL_TEXTURE_2D_ARRAY)
1421 else if (target == GL_TEXTURE_CUBE_MAP_ARRAY)
1444 void ReferenceContext::copyTexImage1D (deUint32 target, int level, deUint32 internalFormat, int x, int y, int width, int border)
1459 if (target == GL_TEXTURE_1D)
1492 void ReferenceContext::copyTexImage2D (deUint32 target, int level, deUint32 internalFormat, int x, int y, int width, int height, int border)
1507 if (target == GL_TEXTURE_2D)
1538 else if (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X ||
1539 target == GL_TEXTURE_CUBE_MAP_POSITIVE_X ||
1540 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y ||
1541 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Y ||
1542 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z ||
1543 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Z)
1550 tcu::CubeFace face = mapGLCubeFace(target);
1579 void ReferenceContext::copyTexSubImage1D (deUint32 target, int level, int xoffset, int x, int y, int width)
1588 if (target == GL_TEXTURE_1D)
1610 void ReferenceContext::copyTexSubImage2D (deUint32 target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
1619 if (target == GL_TEXTURE_2D)
1640 else if (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X ||
1641 target == GL_TEXTURE_CUBE_MAP_POSITIVE_X ||
1642 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y ||
1643 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Y ||
1644 target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z ||
1645 target == GL_TEXTURE_CUBE_MAP_POSITIVE_Z)
1648 tcu::CubeFace face = mapGLCubeFace(target);
1671 void ReferenceContext::copyTexSubImage3D (deUint32 target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
1673 DE_UNREF(target && level && xoffset && yoffset && zoffset && x && y && width && height);
1677 void ReferenceContext::texStorage2D (deUint32 target, int levels, deUint32 internalFormat, int width, int height)
1690 if (target == GL_TEXTURE_2D)
1708 else if (target == GL_TEXTURE_CUBE_MAP)
1731 void ReferenceContext::texStorage3D (deUint32 target, int levels, deUint32 internalFormat, int width, int height, int depth)
1744 if (target == GL_TEXTURE_2D_ARRAY)
1764 else if (target == GL_TEXTURE_3D)
1785 else if (target == GL_TEXTURE_CUBE_MAP_ARRAY)
1837 void ReferenceContext::texParameteri (deUint32 target, deUint32 pname, int value)
1842 switch (target)
1920 static inline Framebuffer::TexTarget mapGLFboTexTarget (deUint32 target)
1922 switch (target)
1989 void ReferenceContext::framebufferTexture2D (deUint32 target, deUint32 attachment, deUint32 textarget, deUint32 texture, int level)
1994 framebufferTexture2D(target, GL_DEPTH_ATTACHMENT, textarget, texture, level);
1995 framebufferTexture2D(target, GL_STENCIL_ATTACHMENT, textarget, texture, level);
2003 RC_IF_ERROR(target != GL_FRAMEBUFFER &&
2004 target != GL_DRAW_FRAMEBUFFER &&
2005 target != GL_READ_FRAMEBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
2009 rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) ? m_drawFramebufferBinding : m_readFramebufferBinding;
2051 void ReferenceContext::framebufferTextureLayer (deUint32 target, deUint32 attachment, deUint32 texture, int level, int layer)
2056 framebufferTextureLayer(target, GL_DEPTH_ATTACHMENT, texture, level, layer);
2057 framebufferTextureLayer(target, GL_STENCIL_ATTACHMENT, texture, level, layer);
2064 RC_IF_ERROR(target != GL_FRAMEBUFFER &&
2065 target != GL_DRAW_FRAMEBUFFER &&
2066 target != GL_READ_FRAMEBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
2070 rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) ? m_drawFramebufferBinding : m_readFramebufferBinding;
2121 void ReferenceContext::framebufferRenderbuffer (deUint32 target, deUint32 attachment, deUint32 renderbuffertarget, deUint32 renderbuffer)
2126 framebufferRenderbuffer(target, GL_DEPTH_ATTACHMENT, renderbuffertarget, renderbuffer);
2127 framebufferRenderbuffer(target, GL_STENCIL_ATTACHMENT, renderbuffertarget, renderbuffer);
2134 RC_IF_ERROR(target != GL_FRAMEBUFFER &&
2135 target != GL_DRAW_FRAMEBUFFER &&
2136 target != GL_READ_FRAMEBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
2140 rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) ? m_drawFramebufferBinding : m_readFramebufferBinding;
2171 deUint32 ReferenceContext::checkFramebufferStatus (deUint32 target)
2173 RC_IF_ERROR(target != GL_FRAMEBUFFER &&
2174 target != GL_DRAW_FRAMEBUFFER &&
2175 target != GL_READ_FRAMEBUFFER, GL_INVALID_ENUM, 0);
2178 rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) ? m_drawFramebufferBinding : m_readFramebufferBinding;
2248 TCU_FAIL("Framebuffer attached to a texture but no valid target specified");
2322 void ReferenceContext::getFramebufferAttachmentParameteriv (deUint32 target, deUint32 attachment, deUint32 pname, int* params)
2324 DE_UNREF(target && attachment && pname && params);
2328 void ReferenceContext::renderbufferStorage (deUint32 target, deUint32 internalformat, int width, int height)
2332 RC_IF_ERROR(target != GL_RENDERBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
2343 void ReferenceContext::renderbufferStorageMultisample (deUint32 target, int samples, deUint32 internalFormat, int width, int height)
2347 renderbufferStorage(target, internalFormat, width, height);
2430 static bool isValidBufferTarget (deUint32 target)
2432 switch (target)
2450 void ReferenceContext::setBufferBinding (deUint32 target, DataBuffer* buffer)
2455 switch (target)
2483 DataBuffer* ReferenceContext::getBufferBinding (deUint32 target) const
2487 switch (target)
2504 void ReferenceContext::bindBuffer (deUint32 target, deUint32 buffer)
2506 RC_IF_ERROR(!isValidBufferTarget(target), GL_INVALID_ENUM, RC_RET_VOID);
2520 setBufferBinding(target, bufObj);
2600 void ReferenceContext::bufferData (deUint32 target, deIntptr size, const void* data, deUint32 usage)
2602 RC_IF_ERROR(!isValidBufferTarget(target), GL_INVALID_ENUM, RC_RET_VOID);
2607 DataBuffer* buffer = getBufferBinding(target);
2616 void ReferenceContext::bufferSubData (deUint32 target, deIntptr offset, deIntptr size, const void* data)
2618 RC_IF_ERROR(!isValidBufferTarget(target), GL_INVALID_ENUM, RC_RET_VOID);
2621 DataBuffer* buffer = getBufferBinding(target);
3319 void ReferenceContext::invalidateSubFramebuffer (deUint32 target, int numAttachments, const deUint32* attachments, int x, int y, int width, int height)
3321 RC_IF_ERROR(target != GL_FRAMEBUFFER, GL_INVALID_ENUM, RC_RET_VOID);
3375 void ReferenceContext::invalidateFramebuffer (deUint32 target, int numAttachments, const deUint32* attachments)
3392 invalidateSubFramebuffer(target, numAttachments, attachments, 0, 0, width, height);