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

digraph inheritance5c1eb2f1eb { 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=""]; "ShaderType" [URL="acron.core.ShaderType.html#acron.core.ShaderType",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "ShaderType" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",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" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; }
enum Access
enumerator NONE = 0
enumerator READ_ONLY = 1
enumerator WRITE_ONLY = 2
enumerator READ_WRITE = 3
class ShaderType.Array

Bases:

Bases: ShaderType

An array type.

property element_type → ShaderType
static get_class_type()
property num_elements → int
property stride_bytes → int
class ShaderType.Image

Bases:

Bases: ShaderType.Resource

Image type.

property access → Access
static get_class_type()
property sampled_type → Scalar
property texture_type → TextureType
property writable → bool
class ShaderType.Matrix

Bases:

Bases: ShaderType

Matrix consisting of multiple column vectors.

static get_class_type()
property num_columns → int
property num_rows → int
property row_stride_bytes → int
property scalar_type → Scalar
class ShaderType.Resource

Bases:

Bases: ShaderType

Base class for all resources.

class ShaderType.SampledImage

Bases:

Bases: ShaderType.Resource

Sampled image type.

static get_class_type()
property sampled_type → Scalar
property shadow → bool
property texture_type → TextureType
class ShaderType.Sampler

Bases:

Bases: ShaderType.Resource

Sampler state. Not exposed; Python users can check for ShaderType.SAMPLER instead.

class ShaderType.Scalar

Bases:

Bases: ShaderType

A numeric scalar type, like int or float.

static get_class_type()
class ShaderType.StorageBuffer

Bases:

Bases: ShaderType.Resource

Opaque storage buffer (SSBO) storing a given type, which is usually a struct or an array.

property access → Access
property contained_type → ShaderType
static get_class_type()
class ShaderType.Struct

Bases:

Bases: ShaderType

A structure type, with named members.

class Member

Bases:

property name → string

getter/setter for std::string ShaderType::Struct::Member::name;

property offset → int

getter/setter for uint32_t ShaderType::Struct::Member::offset;

property type → ShaderType

getter/setter for ShaderType const *ShaderType::Struct::Member::type;

static get_class_type()
property members → Sequence[Member]
class ShaderType.Vector

Bases:

Bases: ShaderType

Multiple scalar types.

static get_class_type()
property num_components → int
property scalar_type → Scalar
class ShaderType.Void

Bases:

Bases: ShaderType

The void type, invalid for most uses. Not exposed; Python users can check for ShaderType.VOID instead.

static ShaderType.get_class_type()
ShaderType.output()