StructTypeLayoutShape

Experimental: The implementation may change or be removed.

Inherits: ShaderTypeLayoutShape < Resource

Description

Represents the shape of a struct type layout used within a ComputeShaderFile.

Properties

int

alignment

0

Dictionary

properties

{}

int

size

0

Dictionary

user_attributes

{}


Property Descriptions

int alignment = 0 🔗

  • void set_alignment(value: int)

  • int get_alignment()

The alignment size of the struct, in bytes.


Dictionary properties = {} 🔗

  • void set_properties(value: Dictionary)

  • Dictionary get_properties()

The properties of the struct.


int size = 0 🔗

  • void set_size(value: int)

  • int get_size()

The total size of the struct, in bytes.


Dictionary user_attributes = {} 🔗

  • void set_user_attributes(value: Dictionary)

  • Dictionary get_user_attributes()

The user attributes declared for this struct.