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 getBindLayered() returns false.

property bind_level int

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_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.