ShaderStorageStruct

data class ShaderStorageStruct(    val structName: String,     val name: String,     val elements: List<ShaderStorageElement>,     val arraySize: Int = 1) : ShaderStorageElement(source)

Represents a structure within shader storage, typically used for organizing and grouping related shader storage elements.

Constructors

Link copied to clipboard
constructor(structName: String, name: String, elements: List<ShaderStorageElement>, arraySize: Int = 1)

Properties

Link copied to clipboard
open override val arraySize: Int = 1

The size of the structure when represented as an array. Defaults to 1.

Link copied to clipboard

A list of elements contained within the structure.

Link copied to clipboard
open override val name: String

The name identifier for this specific instance of the structure.

Link copied to clipboard

The name of the structure as defined in the shader.

Functions

Link copied to clipboard
open override fun alignmentInBytes(): Int