void Texture1D::allocate(unsigned level)
{
+ if(width==0)
+ throw invalid_operation("Texture1D::allocate");
if(allocated&(1<<level))
return;
void Texture2D::allocate(unsigned level)
{
+ if(width==0 || height==0)
+ throw invalid_operation("Texture2D::allocate");
if(allocated&(1<<level))
return;
void Texture3D::allocate(unsigned level)
{
+ if(width==0 || height==0 || depth==0)
+ throw invalid_operation("Texture3D::allocate");
if(allocated&(1<<level))
return;
void TextureCube::allocate(unsigned level)
{
+ if(size==0)
+ throw invalid_operation("TextureCube::allocate");
if(allocated&(1<<level))
return;