-
Notifications
You must be signed in to change notification settings - Fork 782
Add sample demonstrating VK_KHR_shader_relaxed_extended_instruction #1420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add sample demonstrating VK_KHR_shader_relaxed_extended_instruction #1420
Conversation
|
I'm not really sure what I'm expecting to see with this sample. What I'm currently seeing is that I seem to have some seemingly random framebuffers begin displayed, and a bunch of these being printed to the console: |
|
Hello! I don't know if GLSL emits those, but you can have a HLSL shader doing the same thing with the following code: // RUN: %dxc %s -T cs_6_0 -spirv -fspv-target-env=vulkan1.3 -E main -fspv-debug=vulkan-with-source -O3
class A {
void foo(uint3 gid) {
printf("relaxed-ext-inst demo: gid = %u", gid.x);
}
};
[numthreads(1, 1, 1)]
void main(uint3 gid : SV_DispatchThreadID)
{
A a;
a.foo(tid);
}Here, one |
# Conflicts: # samples/extensions/README.adoc
… and update copyrights to 2026
|
Great thanks for the validation of HLSL. I went ahead and switched from GLSL to Slang and validated that it does emit the OpExtInstWithForwardRef instruction. This Sample should now be ready (also merged the latest master and fixed merge conflicts.) |
… with debug info to trigger OpExtInstWithForwardRef
Description
Add a sample that shows how to use VK_KHR_shader_relaxed_extended_instruction and tutorial for it.
Fixes #
General Checklist:
Please ensure the following points are checked:
Note: The Samples CI runs a number of checks including:
If this PR contains framework changes:
batchcommand line argument to make sure all samples still work properlySample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: