ShaderUniform
An inheritable dataclass representing a shader uniform variable.
Constructor
ShaderUniform()Inherit from this class and define fields to create uniform data structures for shaders.
Methods
To Bytes
to_bytes() → bytesConvert the shader uniform data to a bytes object.