22 INLINE ParamTextureSampler::
37 return Texture::get_class_type();
66 INLINE ParamTextureImage::
67 ParamTextureImage(
Texture *tex,
bool read,
bool write,
int z,
int n) :
70 _bind_level(min(n, 127)),
93 return Texture::get_class_type();
114 return (_access & A_read) != 0;
125 return (_access & A_write) != 0;
136 return (_access & A_layered) != 0;
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
bool has_write_access() const
Returns true if this image should be bound with write access enabled.
const SamplerState & get_sampler() const
Retrieves the sampler state stored in the parameter.
int get_bind_layer() const
Returns the image layer that should be bound.
Represents a set of settings that indicate how a texture is sampled.
bool has_read_access() const
Returns true if this image should be bound with read access enabled.
Texture * get_texture() const
Retrieves the texture stored in the parameter.
Texture * get_texture() const
Retrieves the texture stored in the parameter.
TypeHandle is the identifier used to differentiate C++ class types.
int get_bind_level() const
Returns the image level that should be bound.
bool get_bind_layered() const
Returns true if all layers of this image should be bound simultaneously.
virtual TypeHandle get_value_type() const
Returns Texture::get_class_type(), even though it technically stores more than just a Texture...
virtual TypeHandle get_value_type() const
Returns Texture::get_class_type(), even though it technically stores more than just a Texture...