Skip to content

Implement ShaderType for packed types #57

@daxpedda

Description

@daxpedda

I'm hitting the issue where I want to implement ShaderType over a struct that has a [u16; 2] field, which isn't supported by Encase.

AFAIU seeing that WGSL doesn't, it makes sense. The way I make this currently work is by representing [u16; 2] as a u32 in WGSL and then unpack it into a vec2<u32>.

Is this in scope for Encase?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions