ShaderInput

from panda3d.core import ShaderInput
class ShaderInput

Bases:

This is a small container class that can hold any one of the value types that can be passed as input to a shader.

Inheritance diagram

Inheritance diagram of ShaderInput

enum AccessFlags

Used when binding texture images.

enumerator A_read = 1
enumerator A_write = 2
enumerator A_layered = 4
enum ShaderInputType
enumerator M_invalid = 0
enumerator M_texture = 1
enumerator M_nodepath = 2
enumerator M_vector = 3
enumerator M_numeric = 4
enumerator M_texture_sampler = 5
enumerator M_param = 6
enumerator M_texture_image = 7
enumerator M_buffer = 8
__eq__(other: ShaderInput) bool
__init__(name: InternalName, value: object, priority: int)
__init__(name: InternalName, tex: Texture, sampler: SamplerState, priority: int)
__init__(name: InternalName, tex: Texture, read: bool, write: bool, z: int, n: int, priority: int)
__init__(name: InternalName, priority: int)
__init__(param0: ShaderInput)
__lt__(other: ShaderInput) bool
__ne__(other: ShaderInput) bool
addHash(hash: int) int
static getBlank() ShaderInput

Returns a static ShaderInput object with name NULL, priority zero, type INVALID, and all value-fields cleared.

getName() InternalName
getNodepath() NodePath

Warning: no error checking is done. This will crash if getValueType() is not M_nodepath.

getPriority() int
getPtr() ShaderPtrData
getSampler() SamplerState

Warning: no error checking is done.

getTexture() Texture
getValueType() int
getVector() LVecBase4