@ -39,7 +39,7 @@ template<UnsignedInt dimensions> BufferImage<dimensions>::BufferImage(const Pixe
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const Magnum : : PixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : ArrayView < const void > const data , const BufferUsage usage ) : BufferImage { storage , GL : : pixelFormat ( format ) , GL : : pixelType ( format ) , size , data , usage } { }
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const Magnum : : PixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : ArrayView < const void > const data , const BufferUsage usage ) : BufferImage { storage , GL : : pixelFormat ( format ) , GL : : pixelType ( format ) , size , data , usage } { }
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const PixelFormat format , const PixelType type , const VectorTypeFor < dimensions , Int > & size , Buffer & & buffer , const std : : size_t dataSize ) noexcept : _storage { storage } , _format { format } , _type { type } , _size { size } , _buffer { Utility : : move ( buffer ) } , _pixelSize { pixelFormatSize ( format , type ) } , _dataSize { dataSize } {
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const PixelFormat format , const PixelType type , const VectorTypeFor < dimensions , Int > & size , Buffer & & buffer , const std : : size_t dataSize ) noexcept : _storage { storage } , _format { format } , _type { type } , _size { size } , _buffer { Utility : : move ( buffer ) } , _pixelSize { pixelFormatSize ( format , type ) } , _dataSize { dataSize } {
CORRADE_ASSERT ( Magnum : : Implementation : : imageDataSize ( * this ) < = dataSize , " GL::BufferImage::BufferImage(): data too small, got " < < dataSize < < " but expected at least " < < Magnum : : Implementation : : imageDataSize ( * this ) < < " bytes " , ) ;
CORRADE_ASSERT ( Magnum : : Implementation : : imageDataSize ( * this ) < = dataSize , " GL::BufferImage: data too small, got " < < dataSize < < " but expected at least " < < Magnum : : Implementation : : imageDataSize ( * this ) < < " bytes " , ) ;
}
}
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const Magnum : : PixelFormat format , const VectorTypeFor < dimensions , Int > & size , Buffer & & buffer , const std : : size_t dataSize ) noexcept : BufferImage { storage , GL : : pixelFormat ( format ) , GL : : pixelType ( format ) , size , Utility : : move ( buffer ) , dataSize } { }
template < UnsignedInt dimensions > BufferImage < dimensions > : : BufferImage ( const PixelStorage storage , const Magnum : : PixelFormat format , const VectorTypeFor < dimensions , Int > & size , Buffer & & buffer , const std : : size_t dataSize ) noexcept : BufferImage { storage , GL : : pixelFormat ( format ) , GL : : pixelType ( format ) , size , Utility : : move ( buffer ) , dataSize } { }