ShaderInput

class ShaderInput

Bases: MemoryBase

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

digraph inheritancecbe91e7a66 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ShaderInput" [URL="acron.core.ShaderInput.html#acron.core.ShaderInput",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ShaderInput" [arrowsize=0.75,style=""]; }
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
ShaderInput.__eq__()
ShaderInput.__init__()
ShaderInput.__lt__()
ShaderInput.__ne__()
ShaderInput.add_hash()
static ShaderInput.get_blank()

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

ShaderInput.get_name()
ShaderInput.get_nodepath()

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

ShaderInput.get_priority()
ShaderInput.get_ptr()
ShaderInput.get_sampler()

Warning: no error checking is done.

ShaderInput.get_texture()
ShaderInput.get_value_type()
ShaderInput.get_vector()