ShaderType

from acron.core import ShaderType
class ShaderType

Bases:

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 Array

Bases:

Bases: ShaderType

An array type.

property element_type → ShaderType
static get_class_type()
property num_elements → int
property stride_bytes → int
property BOOL → Scalar

//static const ShaderType *const VOID;

getter for static ShaderType::Scalar const *const ShaderType::BOOL;

property DOUBLE → Scalar

getter for static ShaderType::Scalar const *const ShaderType::DOUBLE;

property FLOAT → Scalar

getter for static ShaderType::Scalar const *const ShaderType::FLOAT;

property INT → Scalar

getter for static ShaderType::Scalar const *const ShaderType::INT;

class 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 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 Resource

Bases:

Bases: ShaderType

Base class for all resources.

property SAMPLER → ShaderType

getter for static ShaderType const *const ShaderType::SAMPLER;

class SampledImage

Bases:

Bases: ShaderType.Resource

Sampled image type.

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

Bases:

Bases: ShaderType.Resource

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

class Scalar

Bases:

Bases: ShaderType

A numeric scalar type, like int or float.

static get_class_type()
class 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 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]
property UINT → Scalar

getter for static ShaderType::Scalar const *const ShaderType::UINT;

class Vector

Bases:

Bases: ShaderType

Multiple scalar types.

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

Bases:

Bases: ShaderType

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

property align_bytes → int
static get_class_type()
output()
property size_bytes → int