panda3d.core.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) → None

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

property bind_layer

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

Return type

int

property bind_level

Returns the image level that should be bound.

Return type

int

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
Return type

TypeHandle

getTexture() → Texture

Retrieves the texture stored in the parameter.

Return type

Texture

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

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

Return type

bool

property texture

Retrieves the texture stored in the parameter.

Return type

Texture

property write_access

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

Return type

bool