ShaderType
from panda3d.core import ShaderType
- class ShaderType
Bases:
TypedWritableThis represents a single type as defined in a shader. There is only ever a single instance in existence for any particular type.
Inheritance diagram
- class Access(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum- NONE = 0
- READ_ONLY = 1
- READ_WRITE = 3
- WRITE_ONLY = 2
- class Array
Bases:
ShaderTypeAn array type.
- __init__(*args, **kwargs)
- element_type
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- num_elements
- stride_bytes
- BOOL = bool
- DOUBLE = double
- FLOAT = float
- INT = int
- class Image
Bases:
ShaderTypeImage type.
- __init__(*args, **kwargs)
- access
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- sampled_type
- texture_type
- writable
- class Matrix
Bases:
ShaderTypeMatrix consisting of multiple column vectors.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- num_columns
- num_rows
- row_stride_bytes
- scalar_type
- SAMPLER = sampler
- class SampledImage
Bases:
ShaderTypeSampled image type.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- sampled_type
- shadow
- texture_type
- class Scalar
Bases:
ShaderTypeA numeric scalar type, like int or float.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- class StorageBuffer
Bases:
ShaderTypeOpaque storage buffer (SSBO) storing a given type, which is usually a struct or an array.
- __init__(*args, **kwargs)
- access
- contained_type
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- class Struct
Bases:
ShaderTypeA structure type, with named members.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- members
- UINT = uint
- class Vector
Bases:
ShaderTypeMultiple scalar types.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- num_components
- scalar_type
- __init__(*args, **kwargs)
- align_bytes
- getClassType()
C++ Interface: get_class_type()
- get_class_type()
C++ Interface: get_class_type()
- output()
C++ Interface: output(ShaderType self, ostream out)
- size_bytes
