Skip to content

[HLSL] Add __is_intangible type trait #102954

Closed
@hekota

Description

@hekota

HLSL has a set of intangible types, which are described in in the draft HLSL Specification ([Basic.types]).

There are special implementation-defined types such as handle types, which fall into a category of standard intangible types. Intangible types are types that have no defined object representation or value representation, as such the size is unknown at compile time.

A class type T is an intangible class type if it contains base classes or members of intangible class type, standard intangible type, or arrays of such types. Standard intangible types and intangible class types are collectively called intangible types(9).

It would be good to have a builtin type trait __is_intangible that would determine whether a type is intangible or not.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions