Skip to content

Treat raytracing::acceleration_structure as a texture resource in argument buffer#2492

Merged
HansKristian-Work merged 1 commit into
KhronosGroup:mainfrom
shobomaru:argument_buffer_raytracing
Jun 11, 2025
Merged

Treat raytracing::acceleration_structure as a texture resource in argument buffer#2492
HansKristian-Work merged 1 commit into
KhronosGroup:mainfrom
shobomaru:argument_buffer_raytracing

Conversation

@shobomaru

Copy link
Copy Markdown
Contributor

Currently, acceleration structures in argument buffers are treated as buffers, so the constant qualifier and a pointer are added to raytracing::acceleration_structure.
This results in code that does not compile.

struct spvDescriptorSetBuffer0
{
    constant raytracing::acceleration_structure<raytracing::instancing>* RTAS [[id(0)]];
};

This PR fixes the issue by handling acceleration structures in argument buffers in the same way as textures, ensuring that the generated code is compilable.

struct spvDescriptorSetBuffer0
{
    raytracing::acceleration_structure<raytracing::instancing> RTAS [[id(0)]];
};

@CLAassistant

CLAassistant commented May 28, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@HansKristian-Work HansKristian-Work merged commit 0d5a98c into KhronosGroup:main Jun 11, 2025
10 checks passed
@shobomaru shobomaru deleted the argument_buffer_raytracing branch July 27, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants