Skip to content

LinAlg: restrict input vector component based on input ComponentEnum #8398

@tex3d

Description

@tex3d

Description
See the Convert() API in the linalg.h header here:

And the MakeInterpretedVector() API:

InterpretedVector<T, N, DT> MakeInterpretedVector(vector<T, N> Vec) {

These both need to implement a restriction for the allowed input vector's native HLSL component type based on the ComponentType (or ComponentEnum) enum value for that input vector.

For instance, this check would report an error when using an input vector<float, ...> with ComponentType::PackedS8x32 for that input.

We should also look for any other APIs where this restriction should apply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions