ShaderType

from panda3d.core import ShaderType
class ShaderType

Bases: TypedWritable

This represents a single type as defined in a shader. There is only ever a single instance in existence for any particular type.

Inheritance diagram

Inheritance diagram of ShaderType

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: ShaderType

An 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: ShaderType

Image 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: ShaderType

Matrix 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: ShaderType

Sampled 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: ShaderType

A 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: ShaderType

Opaque 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: ShaderType

A structure type, with named members.

class Member

Bases: DTOOL_SUPER_BASE

__init__(*args, **kwargs)
name
offset
type
__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()

members
UINT = uint
class Vector

Bases: ShaderType

Multiple 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