Skip to content

[HLSL] Split [[hlsl::resource_class]] out of the HLSLResource attribute #98193

Closed
@bogner

Description

@bogner

Create a new hlsl::resource_class attribute to replace the resource class argument of the HLSLResource unspellable attribute. The attribute should be spellable so that we can use it to simplify testing.

AC:

  • Decide what the spelling should be
  • The attribute [[hlsl::resource_class(...)]] can be applied to types in HLSL source
  • The attribute is parametrized with uav, srv, cbuffer, or sampler
  • HLSLResource no longer has a ResourceClass argument, and existing code that used that now uses the new attribute

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.clang: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