Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Investigate custom repr for GPU memory #11

@Jasper-Bekkers

Description

@Jasper-Bekkers

A few options here:

  • Hack the compiler to just output the data layout that we want
  • Add #[repr(std140)] and #[repr(std430)] to the language frontend (maybe have better names for when we want to support non-Vulkan backends with different layout requirements
  • Support #[repr(Rust)] and #[repr(C)] natively through Vulkan's Scalar Block Layout. (Note that this comes with a performance warning).
  • All / most of the above

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: designDesign of our rust-gpu language and std

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions