40 INLINE
explicit ShaderBuffer(
const std::string &name, uint64_t size, UsageHint usage_hint);
41 INLINE
explicit ShaderBuffer(
const std::string &name, vector_uchar initial_data, UsageHint usage_hint);
44 INLINE uint64_t get_data_size_bytes()
const;
45 INLINE UsageHint get_usage_hint()
const;
46 INLINE
const unsigned char *get_initial_data()
const;
48 virtual void output(std::ostream &out)
const;
51 MAKE_PROPERTY(data_size_bytes, get_data_size_bytes);
52 MAKE_PROPERTY(usage_hint, get_usage_hint);
66 uint64_t _data_size_bytes;
67 UsageHint _usage_hint;
68 vector_uchar _initial_data;
74 static void register_with_read_factory();
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
89 static void init_type() {
90 TypedWritableReferenceCount::init_type();
93 TypedWritableReferenceCount::get_class_type(),
94 Namable::get_class_type());
103INLINE std::ostream &operator << (std::ostream &out,
const ShaderBuffer &m) {
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A base class for all things which can have a name.
void output(std::ostream &out) const
Outputs the Namable.
A table of objects that are saved within the graphics context for reference by handle later.
This is a generic buffer object that lives in graphics memory.
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
Base class for objects that can be written to and read from Bam files.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This is our own Panda specialization on the default STL map.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.