Skip to content

[SPIR-V] Add sampler & resource heaps for textures#8281

Open
Keenuts wants to merge 1 commit intomicrosoft:mainfrom
Keenuts:descriptor-heap
Open

[SPIR-V] Add sampler & resource heaps for textures#8281
Keenuts wants to merge 1 commit intomicrosoft:mainfrom
Keenuts:descriptor-heap

Conversation

@Keenuts
Copy link
Collaborator

@Keenuts Keenuts commented Mar 20, 2026

Resource & Sampler heaps are already implemented in DXC, but rely on an emulated heap. A new VK/SPV extension bring actual descriptor heaps. This is the first step toward a complete support.

This commits focuses on Texture/Sampler/Buffer resources, which are all backed by OpTypeImage/OpTypeSampler. This path is a bit simpler as we have no ArrayStride, nor OpAccessChain legalization issues: the whole image handle loading is handled in DXC, and the rest follows the normal path.

Next step is to implement RWStructuredBuffer/StructuredBuffer support, with counters and chain legalization.

Related to #8243

Resource & Sampler heaps are already implemented in DXC, but rely
on an emulated heap. A new VK/SPV extension bring actual descriptor
heaps. This is the first step toward a complete support.

This commits focuses on Texture/Sampler/Buffer resources, which are
all backed by OpTypeImage/OpTypeSampler. This path is a bit simpler as
we have no ArrayStride, nor OpAccessChain legalization issues: the whole
image handle loading is handled in DXC, and the rest follows the normal
path.

Next step is to implement RWStructuredBuffer/StructuredBuffer support,
with counters and chain legalization.

Related to microsoft#8243
@Keenuts
Copy link
Collaborator Author

Keenuts commented Mar 20, 2026

CI failure is because of SPV tools update, requires #8278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant