Skip to content

Disallow auto from infer types from ResourceDescriptorHeap and SamplerDescriptorHeap#8474

Merged
joaosaffran merged 6 commits into
microsoft:mainfrom
joaosaffran:auto/disallow-types
May 27, 2026
Merged

Disallow auto from infer types from ResourceDescriptorHeap and SamplerDescriptorHeap#8474
joaosaffran merged 6 commits into
microsoft:mainfrom
joaosaffran:auto/disallow-types

Conversation

@joaosaffran

Copy link
Copy Markdown
Collaborator

This patch builds on top of #8452, by disallowing auto to infer the types being read from dynamic sampler and resource heaps.

Part of: #8450

@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

✅ With the latest revision this PR passed the C/C++ code formatter.

@joaosaffran joaosaffran marked this pull request as ready for review May 27, 2026 16:47

@tex3d tex3d left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

}
if (const HLSLDynamicResourceAttr *Attr =
getAttr<HLSLDynamicResourceAttr>(type))
return !Attr->getIsSampler();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: I suppose we could avoid a redundant attribute lookup in IsDynamicHeapInitializer by exposing a function IsHLSLDescriptorHeapType that takes a bool &IsSampler. These functions could use that, and so could IsDynamicHeapInitializer.

@joaosaffran joaosaffran merged commit 42da79c into microsoft:main May 27, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants