-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.
Description
Add support for NonUniformResourceIndex
- a qualifier on a resource array index that indicates the index in not uniform across threads.
https://learn.microsoft.com/en-us/windows/win32/direct3d12/resource-binding-in-hlsl
This could be done by adding NonUniformResourceIndex
function to hlsl.h
that would call a builtin function __builtin_hlsl_resource_nonuniformindex
. The builtin would be translated to an LLVM intrinsic llvm.{dx|svp}.resource.nonuniformindex
.
During DXIL lowering the intrinsic will be translated to the NonUniform
parameter on create handle DXIL ops (#155701).
Depends on #155701
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.
Type
Projects
Status
Closed