]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture3d.cpp
Fix reflection of image types from Spir-V modules
[libs/gl.git] / source / core / texture3d.cpp
index 0125dd0930a16a8a5dbc6cb5fe3c025cfdaddab9..496b5f1fbe80370fefda9e169ad428d98464d274 100644 (file)
@@ -91,11 +91,6 @@ LinAl::Vector<unsigned, 3> Texture3D::get_level_size(unsigned level) const
        return LinAl::Vector<unsigned, 3>(w, h, d);
 }
 
-uint64_t Texture3D::get_data_size() const
-{
-       return id ? width*height*depth*get_pixel_size(storage_fmt) : 0;
-}
-
 
 Texture3D::Loader::Loader(Texture3D &t):
        DataFile::DerivedObjectLoader<Texture3D, Texture::Loader>(t)
@@ -111,16 +106,10 @@ Texture3D::Loader::Loader(Texture3D &t, Collection &c):
 
 void Texture3D::Loader::init()
 {
-       add("raw_data", &Loader::raw_data);
        add("storage", &Loader::storage);
        add("storage", &Loader::storage_levels);
 }
 
-void Texture3D::Loader::raw_data(const string &data)
-{
-       obj.image(0, data.data());
-}
-
 void Texture3D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h, unsigned d)
 {
        obj.storage(fmt, w, h, d);