24 static ShaderInput blank(
nullptr, 0);
33 _name(
std::move(name)),
45 _name(
std::move(name)),
46 _type(M_texture_image),
57 _name(
std::move(name)),
58 _type(M_texture_sampler),
68add_hash(
size_t hash)
const {
78 return _stored_vector.add_hash(hash);
103 case M_texture_sampler:
106 case M_texture_image:
122 if (_type == M_texture_sampler) {
125 }
else if (!_value.is_null()) {
126 return get_texture()->get_default_sampler();
137register_with_read_factory() {
This is a const pointer to an InternalName, and should be used in lieu of a CPT(InternalName) in func...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A class object for storing a NodePath as a parameter.
A class object for storing a pointer to a Texture along with a set of properties that indicates which...
A class object for storing a pointer to a Texture along with a sampler state that indicates how to to...
Represents a set of settings that indicate how a texture is sampled.
static const SamplerState & get_default()
Returns a reference to the global default immutable SamplerState object.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
static size_t add_hash(size_t start, const int &key)
static size_t add_hash(size_t start, const void *key)
Adds the indicated key into a running hash.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.