Skip to content

[0035] Convert and MakeInterpretedVector: restrict input vector component based on ComponentEnum #860

@tex3d

Description

@tex3d

Which proposal does this relate to?
https://github.com/microsoft/hlsl-specs/blob/main/proposals/0035-linalg-matrix.md#linalgconvert

Describe the issue or outstanding question.
We should add language to the Convert function section to say that the HLSL API should restrict the allowed input vector component type based on the ComponentEnum value for that input vector.

MakeInterpretedVector should also apply the same restriction:

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

For the DXIL op, corresponding validation is already described, but we need something implemented in the header to catch mistakes earlier.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions