Skip to content

[HLSL] Enable truncation to scalar #102964

@llvm-beanz

Description

@llvm-beanz

Based on spec updates in microsoft/hlsl-specs#301, we should extend the HLSL truncation conversion to support truncating down to a scalar. The updated language spec text is:

Image

This should be fairly minimal, we just need to allow the output of a truncation conversion to be a scalar if the to-type is a scalar.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions