ParamTextureImage

from panda3d.core import ParamTextureImage
class ParamTextureImage

Bases:

Bases: ParamValueBase

A class object for storing a pointer to a Texture along with a set of properties that indicates which image to bind to a shader input.

This class is useful for binding texture images to a shader, which is a fairly esoteric feature.

Inheritance diagram

Inheritance diagram of ParamTextureImage

__init__(tex: Texture, read: bool, write: bool, z: int, n: int)

Creates a new ParamTextureImage storing the given texture and image binding parameters.

property bind_layer int

Returns the image layer that should be bound. This is undefined if get_bind_layered() returns false.

property bind_level int

Returns the image level that should be bound.

get_bind_layer() int

Returns the image layer that should be bound. This is undefined if get_bind_layered() returns false.

get_bind_layered() bool

Returns true if all layers of this image should be bound simultaneously.

get_bind_level() int

Returns the image level that should be bound.

static get_class_type() TypeHandle
get_texture() Texture

Retrieves the texture stored in the parameter.

has_read_access() bool

Returns true if this image should be bound with read access enabled.

has_write_access() bool

Returns true if this image should be bound with write access enabled.

property read_access bool

Returns true if this image should be bound with read access enabled.

property texture Texture

Retrieves the texture stored in the parameter.

property write_access bool

Returns true if this image should be bound with write access enabled.