ParamTextureImage

from panda3d.core import ParamTextureImage
class ParamTextureImage

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_layerint

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

property bind_levelint

Returns the image level that should be bound.

getBindLayer()int

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

getBindLayered()bool

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

getBindLevel()int

Returns the image level that should be bound.

static getClassType()TypeHandle
getTexture()Texture

Retrieves the texture stored in the parameter.

hasReadAccess()bool

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

hasWriteAccess()bool

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

property read_accessbool

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

property textureTexture

Retrieves the texture stored in the parameter.

property write_accessbool

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