Go to the documentation of this file.
14 #ifndef SHADERBUFFER_H
15 #define SHADERBUFFER_H
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());
103 INLINE std::ostream &operator << (std::ostream &out,
const ShaderBuffer &m) {
A table of objects that are saved within the graphics context for reference by handle later.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
This is our own Panda specialization on the default STL map.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is a generic buffer object that lives in graphics memory.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
void output(std::ostream &out) const
Outputs the Namable.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
A base class for all things which can have a name.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.