- image(level, 0);
-}
-
-void Texture3D::image(unsigned level, const void *data)
-{
- if(width==0 || height==0 || depth==0)
- throw invalid_operation("Texture3D::image");
- if(level>=levels)
- throw out_of_range("Texture3D::image");
-
- LinAl::Vector<unsigned, 3> size = get_level_size(level);
-
- if(ARB_texture_storage)
- return sub_image(level, 0, 0, 0, size.x, size.y, size.z, data);
-
- bind_scratch();
-
- if(!allocated)