Skip to content

[HLSL] Implement resource initialization by constructors #134154

Closed
@hekota

Description

@hekota
  1. Add resource constructor for explicit binding to HLSLExternalSemaSource.
  2. Replace current resource initialization function (in Codegen) with init expression that calls the constructor (in Sema).
  3. Update default resource constructor to initialize resource handle to poison (needs to happen after # 1, otherwise the initialized handle will get overridden).

Design proposal: llvm/wg-hlsl#197

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

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions