ShaderInput

from panda3d.core import ShaderInput
class ShaderInput

Bases: DTOOL_SUPER_BASE

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

ALayered = 4
ARead = 1
AWrite = 2
A_layered = 4
A_read = 1
A_write = 2
MBuffer = 8
MInvalid = 0
MNodepath = 2
MNumeric = 4
MParam = 6
MTexture = 1
MTextureImage = 7
MTextureSampler = 5
MVector = 3
M_buffer = 8
M_invalid = 0
M_nodepath = 2
M_numeric = 4
M_param = 6
M_texture = 1
M_texture_image = 7
M_texture_sampler = 5
M_vector = 3
__init__(*args, **kwargs)
addHash()

C++ Interface: add_hash(ShaderInput self, int hash)

/**

*/

add_hash()

C++ Interface: add_hash(ShaderInput self, int hash)

/**

*/

getBlank()

C++ Interface: get_blank()

/**
  • Returns a static ShaderInput object with name NULL, priority zero, type

  • INVALID, and all value-fields cleared.

*/

getName()

C++ Interface: get_name(ShaderInput self)

/**

*/

getNodepath()

C++ Interface: get_nodepath(ShaderInput self)

/**
  • Warning: no error checking is done. This will crash if get_value_type()

  • is not M_nodepath.

*/

getPriority()

C++ Interface: get_priority(ShaderInput self)

/**

*/

getSampler()

C++ Interface: get_sampler(ShaderInput self)

/**
  • Warning: no error checking is done.

*/

getTexture()

C++ Interface: get_texture(ShaderInput self)

/**

*/

getValueType()

C++ Interface: get_value_type(ShaderInput self)

/**

*/

getVector()

C++ Interface: get_vector(ShaderInput self)

/**

*/

get_blank()

C++ Interface: get_blank()

/**
  • Returns a static ShaderInput object with name NULL, priority zero, type

  • INVALID, and all value-fields cleared.

*/

get_name()

C++ Interface: get_name(ShaderInput self)

/**

*/

get_nodepath()

C++ Interface: get_nodepath(ShaderInput self)

/**
  • Warning: no error checking is done. This will crash if get_value_type()

  • is not M_nodepath.

*/

get_priority()

C++ Interface: get_priority(ShaderInput self)

/**

*/

get_sampler()

C++ Interface: get_sampler(ShaderInput self)

/**
  • Warning: no error checking is done.

*/

get_texture()

C++ Interface: get_texture(ShaderInput self)

/**

*/

get_value_type()

C++ Interface: get_value_type(ShaderInput self)

/**

*/

get_vector()

C++ Interface: get_vector(ShaderInput self)

/**

*/