-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
Implement GetDimensions methods on all buffer resources based on proposal llvm/wg-hlsl#346.
- Introduce Clang builtin function(s) based on the proposal.
- Lower the builtin calls to
llvm.dx.resource.getdimensionsand read the arguments back. - Implement
GetDimensionsmethods for buffers inHLSLBuildinTypeDeclBuilderand add them to all resource buffers
Applieds to:
StructuredBuffer
RWStructuredBuffer
RasterizerOrderedStructuredBuffer
AppendStructuredBuffer
ConsumeStructuredBuffer
RWBuffer
ByteAddressBuffer
{RW}ByteAddressBuffer
Docs:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-structuredbuffer-getdimensions
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-rwbuffer-getdimensions
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-rwbyteaddressbuffer-getdimensions
Example:
https://godbolt.org/z/bz7zxsf5n
Depends on: #112982
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Type
Projects
Status
Closed