struct property

StructType<Shader> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<Shader> struct = ._builtin(
  factory: Shader.new,
  layout: .aligned<ShaderField>({
    .id:   RUnsignedInt(), // Shader program id
    .locs: RPointer(RArray(RInt(), BASE_shaderLocsCount)), // Shader locations array (RL_MAX_SHADER_LOCATIONS)
  }),
);