Skip to content

Conversation

@s-perron
Copy link
Collaborator

It is possible to have two struct types in spir-v that are the same
except for the decorations. Sometimes we have to reconstruct the value
from one type to another.

In the case of a vk::SpirvType, we do not know anything about the type,
so this should not happen. When trying to reconstuct the value, we
should simply return the original value.

Fixes #6963

It is possible to have two struct types in spir-v that are the same
except for the decorations. Sometimes we have to reconstruct the value
from one type to another.

In the case of a vk::SpirvType, we do not know anything about the type,
so this should not happen. When trying to reconstuct the value, we
should simply return the original value.

Fixes microsoft#6963
@s-perron s-perron requested a review from amaiorano May 14, 2025 15:08
Copy link
Collaborator

@amaiorano amaiorano left a comment

Choose a reason for hiding this comment

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

The semantics are beyond my depth, but codewise, it looks good to me.

@s-perron s-perron merged commit 2a6bacd into microsoft:main May 15, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap May 15, 2025
@s-perron s-perron deleted the i6963 branch May 28, 2025 14:37
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.

[SPIR-V] vk::SpirvType used as T in vk::RawBuffer APIs causes SIGSEGV

3 participants