26 #include <vsg/io/ReaderWriter.h>
glsl ReaderWriter supports reading and writing GLSL shader files.
Definition: glsl.h:35
ref_ptr< vsg::Object > read(const uint8_t *ptr, size_t size, ref_ptr< const Options >={}) const override
read object from memory block, return object on success, return null ref_ptr<> if format not supporte...
bool write(const vsg::Object *object, const vsg::Path &filename, vsg::ref_ptr< const vsg::Options > options={}) const override
write object to file, return true on success, return false on failure.
ref_ptr< vsg::Object > read(std::istream &fin, ref_ptr< const Options > options={}) const override
read object from input stream, return object on success, return null ref_ptr<> if format not supporte...
static bool extensionSupported(const vsg::Path &path)
return true if .ext is supported
bool getFeatures(Features &features) const override
get the Features supported by this ReaderWriter
vsg::ref_ptr< vsg::Object > read(const vsg::Path &filename, vsg::ref_ptr< const vsg::Options > options={}) const override
read object from file, return object on success, return null ref_ptr<> if format not supported,...
Definition: ReaderWriter.h:92