Skip to content

[HLSL] Implement vector extension/truncation/conversion standard conversion sequences #70125

Closed
@llvm-beanz

Description

@llvm-beanz

HLSL's standard conversion sequences support vector splat and truncation as a "second" conversions, and have an element-wise integral or floating point conversion that can be inserted between C++'s second and third conversions.

This is not well documented, but the WIP specification of the behavior is here:

https://github.com/microsoft/hlsl-specs/blob/main/specs/language/conversions.tex

The draft specification is also available as a PDF. The relevant chapter has the stable reference [Conv].

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