Skip to content

[HLSL] Define the hlsl::contained_type attribute #104855

Closed
@bogner

Description

@bogner

We need a type attribute that describes the "contained type" of a buffer or resource type. Specifically, our resource types should attribute the __hlsl_resource_t with the template type of the resource, like so:

template <typename T> struct RWBuffer {
  __hlsl_resource_t [[hlsl::contained_type(T)]] h;
};

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