ArrayTypeLayoutShape

Experimental: The implementation may change or be removed.

Inherits: ShaderTypeLayoutShape < Resource

Description

Represents the shape of an array type layout used within a ComputeShaderFile.

Properties

int

element_count

0

ShaderTypeLayoutShape

element_shape

int

size

0

int

stride

0


Property Descriptions

int element_count = 0 🔗

  • void set_element_count(value: int)

  • int get_element_count()

The number of elements. Zero if the size of this array is unbounded.


ShaderTypeLayoutShape element_shape 🔗

The shape of the element type layout.


int size = 0 🔗

  • void set_size(value: int)

  • int get_size()

The total size of the array, in bytes.


int stride = 0 🔗

  • void set_stride(value: int)

  • int get_stride()

The stride of the array, in bytes. That is, how much space is used for each element.